結果
問題 | No.1149 色塗りゲーム |
ユーザー |
![]() |
提出日時 | 2020-08-07 21:45:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 169 ms / 2,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,488 KB |
平均クエリ数 | 19.88 |
最終ジャッジ日時 | 2024-07-17 04:30:02 |
合計ジャッジ時間 | 8,369 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
N = int(input())half = (N + 1) // 2disp = N // 2 + 1# 初手で真ん中を寸断するif N % 2 == 1:print(1, half)else:print(2, half)while True:t = int(input())if t == 0 or t == 1:breakk, x = map(int, input().split())if t == 2:breakif x < half:x += dispprint(k, x)else:x -= dispprint(k, x)