Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93994 胡海峰老师 02数字拼接 C Wrong Answer 1 MS 204 KB 250 2024-10-19 17:01:01

Tests(1/10):


Code:

#include <stdio.h> #include <math.h> int main() { int a ; int b ,bb; scanf("%d%d",&a,&b); bb = b; int t = 0; while(b!=0) { b=b/10; t++; } int c; c = (int) a* pow(10,t) + bb; printf("%d",c*c); return 0; }


Run Info:

------Input------
10866 2
------Answer-----
11807430244
------Your output-----
-1077471644