| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 141613 | 沈子雯 | 十进制转d进制 | C++ | Wrong Answer | 80 | 0 MS | 256 KB | 295 | 2024-04-06 09:02:48 |
#include<bits/stdc++.h> using namespace std; int n,k; stack <int> t; int main() { cin>>n>>k; while(n!=0) { t.push(n%k); n/=k; } while(!t.empty()) { int f=t.top(); t.pop(); if(f>9) { char c=f-10+'A'; cout<<c; } else cout<<f; } return 0; }