結果

問題 No.3598 Queen vs. King
コンテスト
ユーザー nikoro256
提出日時 2026-07-24 22:27:11
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 938 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 322 ms
コンパイル使用メモリ 95,980 KB
実行使用メモリ 93,952 KB
平均クエリ数 29.00
最終ジャッジ日時 2026-07-24 22:27:15
合計ジャッジ時間 3,676 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

T=int(input())
for _ in range(T):
    H,W=map(int,input().split())
    x,y=map(int,input().split())
    if x == 0 and y == 0:
        continue
    if x == H:
        print(H-1, 1)
        x, y = map(int,input().split())
        if x == 0 and y == 0:
            continue
        print(H-1, y)
        x, y = map(int,input().split())
        if x == 0 and y == 0:
            continue
        assert 0==1
    if H != 3:
        yn = 1
        print(H-2, 1)
    else:
        yn = 2
        print(H-2, 2)
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        continue
    if x == H:
        print(H-1, yn)
        x, y = map(int,input().split())
        if x == 0 and y == 0:
            continue
        print(H-1, y)
        if x == 0 and y == 0:
            continue
    else:
        print(H-2, y)
        if x == 0 and y == 0:
            continue
        print(H-1, y)
        if x == 0 and y == 0:
            continue
0