結果
問題 | No.1149 色塗りゲーム |
ユーザー |
|
提出日時 | 2020-12-21 20:39:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 174 ms / 2,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 27,616 KB |
平均クエリ数 | 19.82 |
最終ジャッジ日時 | 2024-07-17 10:15:32 |
合計ジャッジ時間 | 9,299 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
import sys N = int(input()) if N%2 == 0: k = 2 x = N//2 print(k,x) sys.stdout.flush() else: k = 1 x = -(-N//2) print(k,x) sys.stdout.flush() t = 3 while t != 0: t = int(input()) if t == 0: break k,x = map(int,input().split()) x1 = N-x+2-k print(k,x1) sys.stdout.flush()