結果
問題 |
No.1149 色塗りゲーム
|
ユーザー |
![]() |
提出日時 | 2020-08-07 21:40:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 398 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,904 KB |
平均クエリ数 | 15.68 |
最終ジャッジ日時 | 2024-07-17 04:22:54 |
合計ジャッジ時間 | 8,089 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 24 |
ソースコード
N = int(input()) h = (N + 1) // 2 # 初手で真ん中を寸断する if N % 2 == 1: k = 1 x = h print(k, x) else: k = 2 x = h print(k, x) while True: t = int(input()) if t == 0 or t == 1: break k, x = map(int, input().split()) if t == 2: break if x < h: x += h print(k, x) else: x -= h print(k, x)