結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2020-10-16 00:26:33 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 1,720 ms |
コンパイル使用メモリ | 195,192 KB |
最終ジャッジ日時 | 2025-01-15 07:44:01 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 42 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; int main(){ ll n; cin>>n; vector<char> A; ll p=26; A.push_back(char(n%p+'A')); n-=p; while(n>=0){ A.push_back(char((n/p)%p+'A')); p*=26; n-=p; } reverse(ALL(A)); rep(i,A.size()) cout<<A[i]; cout<<endl; return 0; }