| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143309 | 伊建润 | 02数字拼接 | C++ | Wrong Answer | 0 MS | 268 KB | 433 | 2026-01-11 20:05:11 |
#include <iostream> #include <sstream> #include <string> using namespace std; int main() { int num1, num2; cin >> num1 >> num2; stringstream ss1, ss2; string str1, str2; ss1 << num1; ss1 >> str1; ss2 << (char)(num2 + '0'); ss2 >> str2; string resultStr = str1 + str2; int result; stringstream(resultStr) >> result; cout << result * result << endl; return 0; }
------Input------
10866 2
------Answer-----
11807430244
------Your output-----
-1077471644