| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 118378 | 林泽豪 | 十进制转d进制 | C++ | Wrong Answer | 80 | 0 MS | 260 KB | 248 | 2023-12-30 10:30:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,p=0,f[100000]; cin>>a>>b; while(a!=0){ f[++p]=a%b; a/=b; } for(int i=p;i>=1;i--){ if(f[i]<10)cout<<f[i]; else{ cout<<char(f[i]-10+'A'); } } }