結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
23,696 KB
testcase_01 AC 85 ms
24,180 KB
testcase_02 AC 58 ms
23,680 KB
testcase_03 AC 71 ms
23,860 KB
testcase_04 AC 60 ms
23,856 KB
testcase_05 AC 58 ms
24,220 KB
testcase_06 AC 57 ms
24,228 KB
testcase_07 AC 57 ms
24,252 KB
testcase_08 AC 67 ms
24,088 KB
testcase_09 AC 70 ms
24,024 KB
testcase_10 AC 55 ms
23,700 KB
testcase_11 AC 57 ms
24,132 KB
testcase_12 AC 54 ms
23,384 KB
testcase_13 AC 57 ms
24,224 KB
testcase_14 AC 56 ms
23,940 KB
testcase_15 AC 57 ms
24,168 KB
testcase_16 AC 57 ms
23,688 KB
testcase_17 AC 57 ms
23,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,P=input,print
S=set(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