結果
問題 |
No.1149 色塗りゲーム
|
ユーザー |
![]() |
提出日時 | 2020-08-07 21:28:01 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 524 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 69,344 KB |
平均クエリ数 | 2.72 |
最終ジャッジ日時 | 2024-07-17 04:13:59 |
合計ジャッジ時間 | 7,707 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 45 |
ソースコード
mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline N = int(input()) if N&1: n = N // 2 + 1 print(1, (N+1) // 2) sys.stdout.flush() else: n = (N-2) // 2 + 2 print(2, N//2) sys.stdout.flush() while True: t = int(input()) if t == 0 or t == 1 or t == 2: exit() k, x = map(int, input().split()) print(k, x + n) sys.stdout.flush() if __name__ == '__main__': main()