結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2021-04-19 22:22:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 400 bytes |
コンパイル時間 | 1,662 ms |
コンパイル使用メモリ | 167,172 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 05:09:42 |
合計ジャッジ時間 | 2,949 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <bits/stdc++.h> using namespace std; //#include <atcoder/all> //using namespace atcoder; using ll=long long; using Graph=vector<vector<int>>; #define MAX 200003 #define MOD 1000000007 #define INF 1000000000000000000 int main(){ ll N; cin>>N; N++; string ans=""; while(N>0){ N--; ans+=(char)('A'+N%26); N/=26; } reverse(ans.begin(),ans.end()); cout<<ans<<endl; }