結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:17:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,100 KB |
| 実行使用メモリ | 79,180 KB |
| 最終ジャッジ日時 | 2026-07-07 08:41:39 |
| 合計ジャッジ時間 | 6,386 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
n = int(input())
n += 1 # Convert to 1-based index similar to Excel columns
result = []
while n > 0:
n, remainder = divmod(n - 1, 26)
result.append(chr(remainder + ord('A')))
print(''.join(reversed(result)))
lam6er