Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100684 | 欧阳俊懿 | [在线测评解答教程] A+B Problem | C++ | Wrong Answer | 1 MS | 272 KB | 227 | 2024-12-10 20:21:48 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n<0) { cout<<"-"; n=n*-1; } int r=0; while(n!=0) { int yu=n%10; r=r*10+yu; n/=10; } cout<<r; return 0; }
------Input------
87 93
------Answer-----
180
------Your output-----
78