結果
| 問題 |
No.3236 累乗数大好きbot
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-08-15 22:04:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 687 ms / 4,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 82,456 KB |
| 実行使用メモリ | 240,124 KB |
| 最終ジャッジ日時 | 2025-08-15 22:05:03 |
| 合計ジャッジ時間 | 20,540 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 |
ソースコード
D = dict()
for n in reversed(range(2, 40)):
for a in range(2, 1<<60):
if 10**12 < a**n:
break
if a**n in D:
continue
D[a**n] = n
for _ in range(int(input())):
N = int(input())
print(D[N] if N in D else 1)
detteiuu