Problem statement

Usage

Get started

  1. Choose a Seed to generate an input in Input.
  2. Run your solution locally and paste its output into Output.
  3. Press ▶ to play the animation. Use the slider to change the display position, and Speed to adjust the playback speed.

Load and save

  • Download: save #cases inputs, starting from Seed.
  • Select directory: choose a folder of output files and switch between them. Names such as 1234.txt or abcd_1234.txt automatically select seed 1234; other names use seed 0.
  • Export: save the current image as PNG, or the animation as GIF or Video at the current Speed.

Grid and score

  • Gray blocks are walls, and colored hollows are nests. Hover over a cell to see its coordinates and the colors in its tower.
  • The dotted line shows the jump path, and the circle marks the destination. LAST ACTION shows the preceding operation.
  • TURN is the number of operations, REMAINING is the number of slimes still on the grid, and SCORE is the absolute score. Received / Total shows the number of slimes that have returned home / the initial number for each color.
  • Animation: turn this off to display only the state after each operation. This also applies to Export.
  • Manual mode: left-click a tower to select one more slime from the top. Clicking again after selecting all slimes clears the selection. Right-click to cycle in reverse. Click a blue destination to jump.
  • ↑↓: change the number selected. Esc: clear the selection. Backspace: undo one operation. Playing from an earlier position replaces the subsequent operations.
  • Fix: fix N (grid size), K (number of colors), rho (density), or beta (wall proposal probability). Seed 0 without Fix uses the handmade input.
  • Post to X: open a post with your score only for an AC output on the seed=0 input. Save an image or video with Export and attach it.

問題文

使い方

まず使ってみる

  1. Seed を選ぶと、Input に入力が生成されます。
  2. 解答プログラムをローカルで実行し、出力を Output に貼り付けます。
  3. ▶ で再生します。スライダーで表示位置、Speed で再生速度を変更できます。

ファイルの読み込み・保存

  • Download:Seed から連続する #cases 個の入力をまとめて保存します。
  • Select directory:出力ファイルのフォルダを選ぶと、ファイルを切り替えられます。1234.txt や abcd_1234.txt の形式なら Seed も自動で 1234 に切り替わり、それ以外の名前は Seed 0 で開きます。
  • Export:現在の画像を PNG、アニメーションを現在の Speed で GIF または Video に保存します。

盤面と得点

  • 灰色のブロックは壁、色の付いたくぼみは巣です。マスにマウスを重ねると、座標と塔の色の並びを確認できます。
  • 点線は移動経路、丸印は着地点です。LAST ACTION は直前の操作を示します。
  • TURN は操作数、REMAINING は未帰巣数、SCORE は絶対スコアです。Received / Total は色別の帰巣数 / 初期匹数です。
  • Animation:OFF にすると操作ごとの確定状態を表示します。Export にも反映されます。
  • Manual mode:塔を左クリックすると上から1匹ずつ選択し、全選択の次は解除します。右クリックは逆順です。青い着地先をクリックすると跳びます。
  • ↑↓:選択数を増減。Esc:選択解除。Backspace:1手戻す。途中から操作すると後続の手順を置き換えます。
  • Fix:N は盤面サイズ、K は色数、rho は密度、beta は壁の提案率を固定します。Fix 未指定の Seed 0 は手動作成の入力です。
  • Post to X:seed=0 の入力かつ AC の場合に、点数入りの投稿画面を開きます。画像・動画は Export で保存して添付して下さい。
No directory selected