結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2020-04-05 14:37:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-03 08:11:28 |
合計ジャッジ時間 | 2,811 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 14 RE * 35 |
ソースコード
n = int(input()) result = [] temp = n if n < 26: result = [n] else: while temp // 26 != 0: result.append(temp % 26) temp //= 26 result.append(temp - 1) result = reversed(result) result = ''.join([chr(i + ord('A')) for i in result]) print(result)