結果
| 問題 |
No.2502 Optimization in the Dark
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-10-13 22:45:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 399 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,464 KB |
| 平均クエリ数 | 4.00 |
| 最終ジャッジ日時 | 2024-09-15 18:31:07 |
| 合計ジャッジ時間 | 5,145 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 43 |
ソースコード
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)
ニックネーム