結果
問題 | No.1149 色塗りゲーム |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2020-11-20 20:44:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 185 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 81,916 KB |
実行使用メモリ | 70,568 KB |
平均クエリ数 | 19.82 |
最終ジャッジ日時 | 2024-07-17 07:24:41 |
合計ジャッジ時間 | 9,121 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
import sys n = int(input()) if n%2: print(1,(n+1)//2) c = (n+1)//2 sys.stdout.flush() else: print(2,n//2) c = 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,1+n-x) sys.stdout.flush() else: print(2,n-x) sys.stdout.flush()