2 solutions
-
0
Guest MOD
- 1
Information
- ID
- 1271
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 8
- Tags
- # Submissions
- 18
- Accepted
- 6
- Uploaded By
#include <bits/stdc++.h>
using namespace std;
int main(){
char a,b,c;
cin>>a>>b>>c;
cout<<c<<b<<a;
return 0;
}
最简单方法,没有之一。
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; cout<<n%10100+n/10%1010+n/100%10; return 0; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.