結果
問題 | No.327 アルファベット列 |
ユーザー |
|
提出日時 | 2021-09-13 00:15:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 317 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-24 21:21:29 |
合計ジャッジ時間 | 3,559 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 WA * 21 |
ソースコード
import stringN=int(input())if N==0:print('A')exit()ret=""alp=list(string.ascii_uppercase)cnt=0while N:if not cnt:ret+=alp[N%26]else:ret+=alp[(N-1)%26]cnt+=1N=N//26ret=ret[::-1]print(ret)