結果
| 問題 | No.3522 冪乗乗 |
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2026-05-01 21:54:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 72,736 KB |
| 平均クエリ数 | 30.48 |
| 最終ジャッジ日時 | 2026-05-01 21:54:21 |
| 合計ジャッジ時間 | 17,062 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 57 |
ソースコード
N,M,L=map(int,input().split())
l=1
r=10**9
while True:
if l==r:
break
m=(l+r)//2
print('?',m,1,flush=True)
t=int(input())
if t==m:
r=m
else:
l=m+1
result=pow(N,M**L,l)
print('!',result,flush=True)
ゼット