結果
問題 | No.327 アルファベット列 |
ユーザー |
|
提出日時 | 2016-01-10 03:22:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 1,113 ms |
コンパイル使用メモリ | 60,580 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-06 22:45:25 |
合計ジャッジ時間 | 1,595 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); long long int n; vector<char> str; cin >> n; do{ str.push_back(n%26+'A'); n/=26; --n; }while(n!=-1); for(vector<char>::reverse_iterator it=str.rbegin(); it!=str.rend(); ++it){ cout << *it; } cout << "\n"; return 0; }