Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99910 | 任斌 | 十进制转二进制 | C++ | Runtime Error | 0 MS | 268 KB | 217 | 2024-12-01 10:45:45 |
#include<bits/stdc++.h> using namespace std; int main() { int x,y[20]={0},s; cin>>x; int i=0; while(x!=0){ y[i]=x%2; x/=2; i++; } for(int j=i-1;j>=0;j--){ cout<<y[j]; } return 0; }
*** stack smashing detected ***: ./Main terminated