Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
42248 YOYOLEE-李昕颖 年号字符串 C++ 通过 1 MS 244 KB 212 2024-02-25 09:28:05

Tests(1/1):


#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; }


测评信息: