| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 168269 | D班-柯铭皓 | 高精度乘法 | C++ | Runtime Error | 3 | 0 MS | 256 KB | 328 | 2024-08-20 09:07:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[110]={}; cin>>n; for(int i=1;i<=n;i++) { int x,y; cin>>x>>y; a[i]=y+x; } for(int i=n;i>=1;i--) { if(a[i]>=10) { a[i-1]+=1; a[i]-=10; } } if(a[0]!=0) cout<<a[0]; for(int i=1;i<=n;i++) cout<<a[i]; return 0; }