結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-03-15 17:59:18 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 1,528 ms |
| コンパイル使用メモリ | 75,256 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-15 17:59:24 |
| 合計ジャッジ時間 | 1,833 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 49 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
long long N;
string res;
int main() {
cin >> N;
if (N < 26) {
cout << char(N + 'A');
return 0;
}
while (N) {
res.push_back(N % 26 + 'A');
N /= 26;
}
reverse(res.begin(), res.end());
res[0] --;
cout << res;
return 0;
}
vjudge1