結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-06 03:59:19 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 2,000 ms |
| + 993µs | |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-16 04:03:23 |
| 合計ジャッジ時間 | 3,622 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
n = int(input())
x = 1
while True:
p26 = pow(26, x)
if n < p26:
break
n -= p26
x += 1
ans = ['A']*x
i = -1
while n != 0:
ans[i] = chr(ord('A') + (n % 26))
n //= 26
i -= 1
print(''.join(ans))