結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2020-01-09 17:59:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 1,392 ms |
コンパイル使用メモリ | 168,544 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-23 04:00:01 |
合計ジャッジ時間 | 2,859 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include<bits/stdc++.h>using namespace std;#ifdef LOCAL_DEBUG#include "LOCAL_DEBUG.hpp"#endif#define int long longsigned main(){int n; cin >> n;n++;string ans;while(n > 0){ans += (char)('A' + --n % 26);n /= 26;}reverse(ans.begin(),ans.end());cout << ans << endl;return 0;}