結果
| 問題 | No.3598 Queen vs. King |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-07-30 01:40:37 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 183 ms / 2,000 ms |
| + 1µs | |
| コード長 | 630 bytes |
| 記録 | |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 21,544 KB |
| 実行使用メモリ | 15,868 KB |
| 平均クエリ数 | 2137.92 |
| 最終ジャッジ日時 | 2026-07-30 01:40:40 |
| 合計ジャッジ時間 | 3,286 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
H,W=list(map(int,input().split()))
x,y=list(map(int,input().split()))
if x==0 and y==0:
continue
if x-1!=1:
print(x-1,1,flush=True)
a=x-1
b=1
x,y=list(map(int,input().split()))
if x==0 and y==0:
continue
else:
a=x-1
print(a,y,flush=True)
b=y
x,y=list(map(int,input().split()))
if x==0 and y==0:
continue
print(x-1,y,flush=True)
x,y=list(map(int,input().split()))
if x==0 and y==0:
continue
titia