結果

問題 No.2502 Optimization in the Dark
ユーザー ニックネームニックネーム
提出日時 2023-10-13 22:45:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 24,372 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-10-13 22:46:03
合計ジャッジ時間 4,702 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,920 KB
testcase_01 AC 39 ms
24,012 KB
testcase_02 AC 38 ms
24,216 KB
testcase_03 AC 39 ms
23,680 KB
testcase_04 AC 39 ms
23,532 KB
testcase_05 AC 39 ms
23,508 KB
testcase_06 AC 40 ms
23,352 KB
testcase_07 AC 40 ms
24,180 KB
testcase_08 AC 39 ms
23,940 KB
testcase_09 AC 38 ms
24,000 KB
testcase_10 AC 39 ms
23,628 KB
testcase_11 AC 38 ms
23,520 KB
testcase_12 AC 41 ms
23,660 KB
testcase_13 AC 38 ms
23,456 KB
testcase_14 AC 40 ms
24,228 KB
testcase_15 AC 39 ms
24,276 KB
testcase_16 AC 39 ms
23,808 KB
testcase_17 AC 39 ms
23,940 KB
testcase_18 AC 39 ms
23,976 KB
testcase_19 AC 39 ms
23,964 KB
testcase_20 AC 38 ms
23,388 KB
testcase_21 AC 38 ms
23,784 KB
testcase_22 AC 38 ms
24,024 KB
testcase_23 AC 38 ms
23,388 KB
testcase_24 AC 39 ms
24,024 KB
testcase_25 AC 38 ms
24,348 KB
testcase_26 AC 39 ms
23,536 KB
testcase_27 AC 39 ms
23,988 KB
testcase_28 AC 39 ms
23,492 KB
testcase_29 AC 40 ms
24,168 KB
testcase_30 AC 40 ms
23,976 KB
testcase_31 AC 39 ms
23,592 KB
testcase_32 AC 38 ms
23,604 KB
testcase_33 AC 39 ms
23,976 KB
testcase_34 AC 40 ms
23,640 KB
testcase_35 AC 39 ms
23,536 KB
testcase_36 AC 39 ms
23,940 KB
testcase_37 AC 38 ms
23,928 KB
testcase_38 AC 39 ms
24,012 KB
testcase_39 AC 39 ms
23,656 KB
testcase_40 AC 39 ms
23,520 KB
testcase_41 AC 40 ms
23,988 KB
testcase_42 AC 39 ms
24,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
print("?",1,2*n,2,2*n)
z = 1 if input()=="No" else 2
print("?",z,2*n,3,2*n)
z = z if input()=="No" else 3
x = 1 if z!=1 else 2
y = 3 if z!=3 else 2
print("?",x,n,y,n)
if input()=="No": x,y = y,x
print("!",*[y,z]*n+[x,z]*n+[x,y]*n)
0