Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5640 朱嘉铭 分离整数的各个数位 C++ Accepted 100 0 MS 248 KB 326 2020-08-14 16:37:06

Tests(2/2):


#include <iostream> using namespace std; int main() { int n, index=0; cin >> n; while (n > 0){ if (index == 0) cout << n%10; else cout << " " << n%10; index++; n /= 10; } cout << endl; return 0; }


Judgement Protocol: