結果
| 問題 | No.3598 Queen vs. King |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2026-07-24 22:27:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 938 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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
nikoro256