結果
| 問題 | No.1149 色塗りゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-29 01:02:43 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 278 bytes |
| 記録 | |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 28,040 KB |
| 平均クエリ数 | 19.82 |
| 最終ジャッジ日時 | 2024-10-03 01:12:20 |
| 合計ジャッジ時間 | 9,126 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 50 |
ソースコード
N = int(input())
if N & 1:
n = N // 2 + 1
print(1,n)
else:
n = N // 2
print(2,n)
while True:
t = input()
if t == 0:
break
k,x = map(int,input().split())
if k == 1:
print(1,N + 1 - x)
else:
print(2,N + 1 - x - 1)