結果

問題 No.3598 Queen vs. King
コンテスト
ユーザー titia
提出日時 2026-07-30 01:37:08
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 572 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 296 ms
コンパイル使用メモリ 21,280 KB
実行使用メモリ 20,604 KB
平均クエリ数 3.67
最終ジャッジ日時 2026-07-30 01:37:15
合計ジャッジ時間 4,313 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1 RE * 1
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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
        

    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
        
    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
    
0