結果
問題 |
No.1149 色塗りゲーム
|
ユーザー |
![]() |
提出日時 | 2020-08-10 21:09:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 173 ms / 2,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,776 KB |
平均クエリ数 | 19.82 |
最終ジャッジ日時 | 2024-07-17 05:45:21 |
合計ジャッジ時間 | 8,876 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
N = int(input()) if N % 2 == 0: print(2, N // 2) else: print(1, (N + 1) // 2) while True: t = int(input()) if t == 0: break elif t == 1 or t == 2: raise Exception else: k, x = map(int, input().split()) if k == 1: print(1, N + 1 - x) else: print(2, N - x)