結果
問題 |
No.3236 累乗数大好きbot
|
ユーザー |
![]() |
提出日時 | 2025-08-15 22:42:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 82,596 KB |
実行使用メモリ | 77,076 KB |
最終ジャッジ日時 | 2025-08-15 22:43:35 |
合計ジャッジ時間 | 10,499 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 4 TLE * 1 -- * 24 |
ソースコード
from math import log Q = int(input()) for _ in range(Q): N = int(input()) for exp in range(40,0,-1): ng,ok = 0,10**6+1 while(ok - ng > 1): mid = (ok+ng)//2 if(exp*log(mid,2) >= log(N,2)): ok = mid else: ng = mid if(ok**exp == N): print(exp) break elif(exp == 1): print(exp) break