結果

問題 No.3598 Queen vs. King
コンテスト
ユーザー hiryuN
提出日時 2026-07-24 21:31:37
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 205 ms / 2,000 ms
+ 2µs
コード長 392 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 254 ms
コンパイル使用メモリ 96,240 KB
実行使用メモリ 85,120 KB
平均クエリ数 2392.17
最終ジャッジ日時 2026-07-24 21:31:41
合計ジャッジ時間 3,227 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

t=int(input())
for _ in range(t):
    h,w=map(int,input().split())
    if w!=3:
        a,b=map(int,input().split())
        if (a,b)==(0,0):
            continue
        print(1,w-2)
    a,b=map(int,input().split())
    if (a,b)==(0,0):
        continue
    print(a,w-2)
    a,b=map(int,input().split())
    if (a,b)==(0,0):
        continue
    print(a,w-1)
    a,b=map(int,input().split())
0