結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2024-08-20 09:56:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 199 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 82,564 KB |
実行使用メモリ | 53,816 KB |
最終ジャッジ日時 | 2024-08-20 09:56:55 |
合計ジャッジ時間 | 4,035 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
def f(n): cs = [] x = n + 1 while x > 0: x, m = divmod(x-1, 26) cs.append(m) return ''.join(reversed([chr(c + ord('A')) for c in cs])) N = int(input()) print(f(N))