結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2020-01-07 17:48:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 647 ms |
コンパイル使用メモリ | 71,092 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-23 01:01:26 |
合計ジャッジ時間 | 2,674 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 31 |
ソースコード
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long long n; cin >> n; auto to_str = [](auto to_str, int n) -> string { if (n == 0) return ""; n--; return to_str(to_str, n / 26) + string(1, 'A' + n % 26); }; cout << to_str(to_str, n + 1) << endl; return 0; }