結果
| 問題 | No.3236 累乗数大好きbot |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-08-15 22:04:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 461 ms / 4,000 ms |
| + 289µs | |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 652 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 267,136 KB |
| 最終ジャッジ日時 | 2026-07-14 02:49:30 |
| 合計ジャッジ時間 | 15,910 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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