結果
| 問題 | No.1149 色塗りゲーム |
| コンテスト | |
| ユーザー |
orangekid
|
| 提出日時 | 2026-05-14 09:16:09 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 521 ms |
| コンパイル使用メモリ | 20,784 KB |
| 実行使用メモリ | 35,716 KB |
| 平均クエリ数 | 9.92 |
| 最終ジャッジ日時 | 2026-05-14 09:16:28 |
| 合計ジャッジ時間 | 11,362 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 x < a:
print(k, x + a, flush = True)
else:
print(k, x - a, flush = True)
orangekid