← CSES Better

Moo Language

USACO · 2023 · US Open · bronze-2

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

Moo Language: sample trace

Trace this official sample for Moo Language: use the task rules to map the shown input to the expected output.

Published input3 1 1 1 bessie noun 10 5 4 bessie noun taught transitive-verb flew intransitive-verb elsie noun farmer noun john noun and conjunction and conjunction nhoj noun mooed intransitive-verb 24 5 4 but conjunction bessie noun taught transitive-verb flew intransitive-verb elsie noun farmer noun john noun and conjunction and conjunction nhoj noun mooed intransitive-verb bob noun impressed transitive-verb cow noun impressed transitive-verb leaped intransitive-verb elsie noun bella noun buttercup noun pushed transitive-verb mooed intransitive-verb envy noun john noun nhoj nounmodelAlgorithm ideaApply the task rule to this published instance, preserving the relationships defined by the statement.task resultExpected output0 9 nhoj mooed. farmer taught elsie, bessie and john flew. 23 nhoj mooed. nhoj impressed john, farmer, elsie, bessie and cow impressed bob. bella pushed elsie and buttercup flew. envy mooed but john leaped.
  1. 1

    Read the sample

    Use the official example for Moo Language 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.