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