結果
問題 |
No.1149 色塗りゲーム
|
ユーザー |
![]() |
提出日時 | 2023-01-23 21:13:23 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 391 ms |
コンパイル使用メモリ | 82,116 KB |
実行使用メモリ | 83,680 KB |
平均クエリ数 | 1.06 |
最終ジャッジ日時 | 2024-06-25 15:18:45 |
合計ジャッジ時間 | 8,908 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 RE * 48 |
ソースコード
import sys N = int(input()) print((N + 1)//2, 2 - N % 2) sys.stdout.flush() while True: t = int(input()) if t == 0: exit() k, x = map(int, input().split()) if k == 1: print(1, N + 1 - x) else: x += 1 print(2, N + 1 - x) sys.stdout.flush()