Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
21345 gaoyx 分离未知整数 C++ 解答错误 0 0 MS 704 KB 174 2021-12-18 15:26:56

Tests(0/10):


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


测评信息:

输入

-1969767

输出

7
6
7
9
6
9
1

答案

-7
-6
-7
-9
-6
-9
-1

系统信息

exit code: 0, checker exit code: 0