結果
問題 | No.327 アルファベット列 |
ユーザー |
|
提出日時 | 2020-08-29 16:50:53 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 81,932 KB |
実行使用メモリ | 53,800 KB |
最終ジャッジ日時 | 2024-11-14 14:13:36 |
合計ジャッジ時間 | 4,010 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
N = int(input()) x = 26 i = 1 while N >= x: N -= x x *= 26 i += 1 ans = [] for j in range(i): ans += [chr(N % 26 + 65)] N //= 26 ans.reverse() print(''.join(ans))