結果

問題 No.2252 Find Zero
ユーザー 👑 p-adicp-adic
提出日時 2023-05-22 03:10:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 24,268 KB
平均クエリ数 78.17
最終ジャッジ日時 2023-08-23 16:50:30
合計ジャッジ時間 2,769 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
24,228 KB
testcase_01 AC 87 ms
23,652 KB
testcase_02 AC 58 ms
24,268 KB
testcase_03 AC 71 ms
23,748 KB
testcase_04 AC 58 ms
23,864 KB
testcase_05 AC 58 ms
23,804 KB
testcase_06 AC 57 ms
24,112 KB
testcase_07 AC 58 ms
23,912 KB
testcase_08 AC 68 ms
24,048 KB
testcase_09 AC 72 ms
24,004 KB
testcase_10 AC 59 ms
24,052 KB
testcase_11 AC 58 ms
24,048 KB
testcase_12 AC 56 ms
23,556 KB
testcase_13 AC 58 ms
24,124 KB
testcase_14 AC 57 ms
23,936 KB
testcase_15 AC 59 ms
23,640 KB
testcase_16 AC 59 ms
23,800 KB
testcase_17 AC 58 ms
24,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,P=input,print
S={i for i in range(int(I()))}
G=S.pop
while len(S)>1:
	x,y=G(),G()
	P("?",x,y)
	z=int(I())
	if x==z:P("!",y),exit(0)
	if y==z:P("!",x),exit(0)
P("!",G())
0