Visualizer

The problem statement is here.

Usage

Changing the value in the Seed field will generate the corresponding input to the Input field.
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.
The graph on the left side shows the status of the land of each month. The graph on the right side shows the sum of Xk that each block contributes to the final score.
By selecting "none", "Dk - month", or "Dk", the number displayed on the graph will be changed to "none", "the remaining number of months until harvest", or "the month to harvest".
Pressing the ▶ button starts animation.
By pressing the Save as PNG or Save as Animation GIF button, you can download the visualization results.

When hovering on the block where crops are planted, the coordinate, the index of the crop, Dk, and Sk will be showed on a tooltip.

If an invalid output is pasted into the Output field, the visualizer will show the result "until" the invalid month.
For the invalid blocks, a "!!" inside a red rectangle will be displayed inside the block. The error message could be checked by hovering on the block.

問題文はこちら

使い方

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

生成された入力に対して解答プログラムをローカル実行し、プログラムの出力を Output 欄に貼り付けると、ビジュアライズ結果が表示されます。
左側は各月の盤面の状態を、右側は各マスについてそのマスで得たXkの総和をビジュアライズしています。
盤面に表示する数字を「none」、「Dk - month」、「Dk」でそれぞれ、「なし」、「収穫するまでの月数」、「収穫する月」に変更できます。
▶ ボタンを押すと、アニメーションが開始します。
Save Field as PNG や Save Utility Map as PNG、 Save as Animation GIF ボタンを押すと、ビジュアライズ結果のダウンロードが出来ます。

栽培している領域にマウスカーソルを合わせると、座標、作物の番号k、Dk、Skがツールチップで表示されます。

満たすべき条件を満たさないプログラムの出力を Output 欄に貼り付けた場合、条件を満たさない月までがビジュアライズされます。
条件を満たさない箇所については、赤い四角に「!!」が表示され、マウスカーソルを合わせることでエラーメッセージを確認することができます。


none Dk - month Dk