結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
akanaya
|
| 提出日時 | 2020-04-05 14:36:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 300 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-03 08:11:20 |
| 合計ジャッジ時間 | 2,840 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 15 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)
print(result)
result = reversed(result)
result = ''.join([chr(i + ord('A')) for i in result])
print(result)
akanaya