| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149919 | 傻逼小安 | 十六进制转十进制 | C++ | Wrong Answer | 1 MS | 260 KB | 270 | 2026-03-20 19:47:19 |
#include<bits/stdc++.h> using namespace std; int y[32]; int cnt=0; int main() { int n; cin>>n; while(1) { int yu=n%2; y[cnt]=yu; cnt++; n=n/2; if(n==0) { break; } } for(int i=cnt-1; i>=0; i--) { cout<<y[i]; } return 0; }
------Input------
19df0
------Answer-----
105968
------Your output-----
10011