結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2025-03-20 18:42:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 82,408 KB |
実行使用メモリ | 54,132 KB |
最終ジャッジ日時 | 2025-03-20 18:42:55 |
合計ジャッジ時間 | 3,340 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)))