Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5312 孙浩楠 倒序输出一个四位整数 C++ Accepted 100 0 MS 256 KB 286 2020-07-29 10:58:04

Tests(9/9):


#include<bits/stdc++.h> using namespace std; int main(){ // char a,b,c,d; // cin>>a>>b>>c>>d; // cout<<d<<c<<b<<a; int n,g,s,b,q; cin>>n; g=n/(int)pow(10,0)%10; s=n/(int)pow(10,1)%10; b=n/(int)pow(10,2)%10; q=n/(int)pow(10,3)%10; cout<<g<<s<<b<<q; return 0; }


Judgement Protocol: