| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155239 | 任艺宸 | 十进制转二进制 | C++ | Runtime Error | 0 MS | 268 KB | 268 | 2026-06-06 10:49:53 |
#include<bits/stdc++.h> using namespace std; int main() { int n,er[17]={},i=0; cin>>n; if(n==0)cout<<0; while(n!=0){ er[i]=n%2; n/=2; i++; } for(int j=i-1;j>=0;j--){ cout<<er[j]; } return 0; }
*** stack smashing detected ***: ./Main terminated