結果
問題 | No.327 アルファベット列 |
ユーザー |
|
提出日時 | 2024-12-24 13:09:01 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 901 ms |
コンパイル使用メモリ | 87,932 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 13:09:05 |
合計ジャッジ時間 | 2,577 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <iostream>#include <cstdint>#include <algorithm>using namespace std;int main(){cin.tie(nullptr);ios::sync_with_stdio(false);uint64_t N;cin >> N;string S;while (N >= 26)S.push_back('A' + N % 26), N /= 26, --N;S.push_back('A' + N % 26);reverse(S.begin(), S.end());cout << S << '\n';return 0;}