結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-03-17 19:19:05 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 892 ms |
| コンパイル使用メモリ | 183,028 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-17 19:19:07 |
| 合計ジャッジ時間 | 2,338 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 31 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n ++ ;
string s;
while (n) {
int x = n % 26;
if (x == 0) s += 'Z', -- n;
else s += x + 'A' - 1;
n /= 26;
}
reverse(s.begin(), s.end());
cout << s;
}
vjudge1