結果
問題 |
No.327 アルファベット列
|
ユーザー |
|
提出日時 | 2016-04-04 00:05:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 619 ms |
コンパイル使用メモリ | 69,812 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 23:53:49 |
合計ジャッジ時間 | 2,084 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <iostream> #include <vector> using ll = long long int; int main(){ std::ios::sync_with_stdio(false); std::cin.tie(0); ll n; std::vector<char> str; std::cin >> n; do{ str.push_back(n%26+'A'); n/=26; --n; }while(n!=-1); for(auto rit=str.rbegin(); rit!=str.rend(); ++rit){ std::cout << *rit; } std::cout << "\n"; return 0; }