The problem statement is here.

Usage

Changing the value in the Seed field will generate the corresponding input to the Input field.
By setting the N and M fields to positive values, you can change the input to the specified N and M values.
Pressing the Download button will download the inputs for seed values seed, seed+1, ..., seed+#cases-1 at once.

By running your program locally against the generated input and pasting the output of your program into the Output field, the visualization results will be displayed.
Pressing the ▶ button starts animation.
By pressing the Save as PNG or Save as Animation GIF button, you can download the visualization results.

The black circles represent dots and the red circle represent the last placed dot.
Pointing the mouse cursor over a grid point displays the coordinates and the weight as a tooltip.

Checking the "manual mode" checkbox allows you to apply operations manually.
Pointing the mouse cursor over a grid point displays a blue rectangle indicating possible operation to place a dot on that grid point.
By clicking on it, you can draw the rectangle.
Pressing the Backspace key or clicking on the dot placed by the last operation (red circle) cancels that operation.
If there are multiple choices for a rectangle, all but the first choice are shown in light blue.
By repeatedly clicking, you can switch to the second choice → ... → the nth choice → cancel.

問題文はこちら

使い方

Seed 欄の値を変えると対応する入力が Input 欄に生成されます。
N、M の欄を正の値に設定することで、入力を指定された N、M の値に変更出来ます。
Download ボタンを押すと、シード値が seed, seed+1, ..., seed+#cases-1 に対応する入力を一括ダウンロード出来ます。

生成された入力に対して解答プログラムをローカル実行し、プログラムの出力を Output 欄に貼り付けると、ビジュアライズ結果が表示されます。
▶ ボタンを押すと、アニメーションが開始します。
Save as PNG や Save as Animation GIF ボタンを押すと、ビジュアライズ結果のダウンロードが出来ます。

黒丸が印の付いた格子点を、赤丸が最後に印を付けた格子点を表します。
格子点にマウスカーソルを合わせると座標と重みがツールチップで表示されます。

manual mode にチェックを入れると手動で操作を追加することが出来ます。
格子点にマウスカーソルを合わせると、その格子点に新たに印を付ける操作の選択肢が青色の長方形で示され、クリックすることでその長方形を描きます。
Backspaceキーを押すか、直前の操作で印を付けた格子点(赤丸)をクリックすると、直前の操作を取り消します。
複数の長方形の選択肢がある場合、第一候補以外は薄い青色で示され、クリックを繰り返すことで第2候補→…→第n候補→取り消し、という順に切り替わります。


show grid