結果
| 問題 | No.1149 色塗りゲーム |
| コンテスト | |
| ユーザー |
orangekid
|
| 提出日時 | 2026-05-14 09:14:40 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 466 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 35,588 KB |
| 平均クエリ数 | 1.96 |
| 最終ジャッジ日時 | 2026-05-14 09:14:53 |
| 合計ジャッジ時間 | 11,407 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 48 |
ソースコード
n = int(input())
if n % 2 == 0:
print(2, n // 2, flush = True)
a = n // 2 + 2
else:
print(1, n // 2 + 1, flush = True)
a = n // 2 + 2
while True:
t = int(input())
if t < 2:
break
elif t == 2:
k, x = map(int, input().split())
break
else:
k, x = map(int, input().split())
if k < a:
print(k + a, x, flush = True)
else:
print(k - a, x, flush = True)
orangekid