結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2020-01-07 18:05:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 350 bytes |
コンパイル時間 | 620 ms |
コンパイル使用メモリ | 70,144 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 01:02:13 |
合計ジャッジ時間 | 2,011 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long long n; cin >> n; auto to_str = [](long long n) { string res; while (n--) res += char('A' + n % 26), n /= 26; reverse(begin(res), end(res)); return res; }; cout << to_str(n + 1) << endl; return 0; }