結果
| 問題 | No.1149 色塗りゲーム |
| コンテスト | |
| ユーザー |
orangekid
|
| 提出日時 | 2026-05-14 09:19:03 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 185 ms / 2,000 ms |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 35,460 KB |
| 平均クエリ数 | 19.88 |
| 最終ジャッジ日時 | 2026-05-14 09:19:17 |
| 合計ジャッジ時間 | 10,592 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
n = int(input())
if n % 2 == 0:
print(2, n // 2, flush = True)
a = n // 2 + 1
else:
print(1, n // 2 + 1, flush = True)
a = n // 2 + 1
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