結果
| 問題 | No.3598 Queen vs. King |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-24 21:31:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 205 ms / 2,000 ms |
| + 2µs | |
| コード長 | 392 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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())