Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
42248 | YOYOLEE-李昕颖 | 年号字符串 | C++ | Accepted | 1 MS | 244 KB | 212 | 2024-02-25 09:28:05 |
#include<bits/stdc++.h> using namespace std; int a[10],cnt; int main() { int n; cin>>n; while(n){ a[cnt++]=n%26+64; n/=26; } for(int i=cnt-1;i>=0;i--){ cout<<char(a[i]); } return 0; }