Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
36939 YOYOLEE-李昕颖 大整数加法 C++ 解答错误 0 MS 244 KB 327 2024-01-18 14:30:38

Tests(0/1):


#include<bits/stdc++.h> #include<cstring> using namespace std; int main() { int a[10000],b[10000],t[10000],i=9999; while(cin>>a[i]>>b[i]){ t[i]=a[i]+b[i]; if(t[i]>=10){ t[i]-=10; t[i-1]++; } i--; } for(int j=i;j<10000;j++){ if(t[j]==0&&j==i) continue; else cout<<t[i]; } return 0; }


测评信息: