結果
| 問題 | No.1149 色塗りゲーム |
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2021-04-04 02:15:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 180 ms / 2,000 ms |
| コード長 | 416 bytes |
| 記録 | |
| コンパイル時間 | 254 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 71,024 KB |
| 平均クエリ数 | 19.82 |
| 最終ジャッジ日時 | 2024-07-17 11:12:41 |
| 合計ジャッジ時間 | 8,903 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
n = int(input())
if n%2 == 0:
print(2, n//2, flush=True)
else:
print(1, (n+1)//2, flush=True)
while True:
t = int(input())
if t == 0 or t == 1:
exit()
elif t == 2:
k, x = map(int, input().split())
exit()
else:
k, x = map(int, input().split())
if k == 1:
print(1, n+1-x, flush=True)
else:
print(2, n+1-(x+1), flush=True)
brthyyjp