結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2015-12-20 04:47:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-17 11:43:15 |
合計ジャッジ時間 | 3,024 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 WA * 19 |
ソースコード
import string N = int(input()) digit = 1 while 26 * (26**digit - 1) // 25 < N + 1: digit += 1 S = '' for i in range(digit): S += string.ascii_uppercase[N%(26**i*26)//(26**i)-1] S = S[::-1] T = string.ascii_uppercase[N%26] print(S[:-1] + T)