結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
rsk0315
|
| 提出日時 | 2019-03-19 23:09:40 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 78,720 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-10-11 18:40:01 |
| 合計ジャッジ時間 | 2,892 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 47 |
ソースコード
#include <cstdio>
#include <cstdint>
#include <vector>
#include <string>
#include <algorithm>
int main() {
uintmax_t N;
scanf("%ju", &N);
std::string res;
res += 'A' + (N % 26);
N /= 26;
while (N) {
res += 'A' + (N%27 - 1);
N /= 27;
}
std::reverse(res.begin(), res.end());
printf("%s\n", res.c_str());
}
rsk0315