Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
42259 老方 年号字符串 C++ Accepted 0 MS 236 KB 197 2024-02-25 09:44:11

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,ns[100],x=0; cin>>n; while(n){ ns[x++]=n%26; n/=26; } for(int i=x-1;i>=0;i--)cout<<char('A'+ns[i]-1); return 0; }


Judgement Protocol: