結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2024-08-20 09:49:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 188 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 82,424 KB |
実行使用メモリ | 53,552 KB |
最終ジャッジ日時 | 2024-08-20 09:49:44 |
合計ジャッジ時間 | 4,410 ms |
ジャッジサーバーID (参考情報) |
judge1 / 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(chr(m + ord('A'))) return ''.join(reversed(cs)) N = int(input()) print(f(N))