結果
| 問題 | No.3598 Queen vs. King |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-07-24 21:42:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 740 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 94,592 KB |
| 平均クエリ数 | 619.75 |
| 最終ジャッジ日時 | 2026-07-24 21:42:27 |
| 合計ジャッジ時間 | 3,381 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 RE * 8 |
ソースコード
def Bob():
h, w = map(int, input().split())
return h, w
def Alice(h, w):
print(h, w)
for _ in range(int(input())):
c, d = map(int, input().split())
a, b = 1, 1
W = d
for i in range(3):
if i == 0:
c, d = Bob()
if c == 0 or c == -1: break
if 4 <= W:
Alice(1, d-1)
a, b = 1, d-1
else:
Alice(1, d)
a, b = 1, d
elif i == 1:
c, d = Bob()
if c == 0 or c == -1: break
Alice(c, b)
a = c
else:
c, d = Bob()
if c == 0 or c == -1: break
Alice(c, d-1)
else:
c, d = map(int, input().split())
detteiuu