← CSES Better

2D Conveyor Belt

USACO · 2024 · December · silver-3

Open official problem ↗
Ask AI

Open a hint-first prompt in a new AI chat. Grok may ask you to confirm before sending.

Open Claude Desktop

The organizer’s problem statement is available at the official source link.

sample trace

2D Conveyor Belt: sample trace

Trace this official sample for 2D Conveyor Belt: use the task rules to map the shown input to the expected output.

Published input3 5 1 1 R 3 3 L 3 2 D 1 2 L 2 1 U 3 8 1 1 R 1 2 L 1 3 D 2 3 U 3 3 L 3 2 R 3 1 U 2 1 D 4 13 2 2 R 2 3 R 2 4 D 3 4 D 4 4 L 4 3 L 4 2 U 3 1 D 4 1 R 2 1 L 1 1 D 1 4 L 1 3 DmodelAlgorithm ideaApply the task rule to this published instance, preserving the relationships defined by the statement.task resultExpected output0 0 0 2 3 0 2 2 4 4 6 6 9 0 0 0 0 0 0 0 0 11 11 11 11 13
  1. 1

    Read the sample

    Use the official example for 2D Conveyor Belt as the concrete instance.
  2. 2

    Follow the task relation

    Apply the exact rule in the official statement to the displayed values.
  3. 3

    Check the result

    Verify that the final value matches the published expected output.
Tools
1
2
3
4
5
6
7
8
9
10
11
12
Draft saved locally
|12 lines, 156 chars

Run output

Run your code to see output.