結果
問題 |
No.327 アルファベット列
|
ユーザー |
|
提出日時 | 2018-09-11 12:51:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 60,664 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 06:31:56 |
合計ジャッジ時間 | 1,772 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <iostream> #include <vector> typedef long long dlong; int main(int argc, char const* argv[]) { dlong n; std::cin >> n; std::vector<dlong> ans; for (;;) { ans.insert(ans.begin(), n%26); n /= 26; if (n == 0) break; n--; } for (const auto& var : ans) { std::cout << (char)('A' + var); } std::cout << std::endl; return 0; }