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