{
 "seed": 20261123,
 "tasks": [
  {
   "id": "E1",
   "tier": "easy",
   "kind": "json",
   "prompt": "From this note, extract vendor, total (integer dollars, compute it), and due date (YYYY-MM-DD).\n\n\"Hey, got the bill from Pellucid Ferry Co. today. Lines:\n  4 x gaskets @ $38.00\n  8 x bolts @ $27.00\n  4 x hinges @ $4.00\nNo tax. They want it paid by 2026-12-12.\"\n\nAnswer as JSON {\"vendor\": str, \"total\": int, \"due\": str}.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": {
    "vendor": "Pellucid Ferry Co.",
    "total": 384,
    "due": "2026-12-12"
   }
  },
  {
   "id": "E2",
   "tier": "easy",
   "kind": "list",
   "prompt": "Categories:\n- GLINT: anything about being charged money\n- MOSS: login or password trouble\n- TARN: a physical item arrived damaged\n- WREN: a feature request\n\nLabel each ticket in order:\n1. Please let me export to CSV.\n2. Box was crushed and the lamp shade is bent.\n3. Why is there a $4 fee on my statement?\n4. I was billed twice this month.\n5. The mug came cracked in the box.\n6. 2FA code keeps getting rejected.\n\nAnswer as a comma-separated list of labels, e.g. GLINT,MOSS,...\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": [
    "WREN",
    "TARN",
    "GLINT",
    "GLINT",
    "TARN",
    "MOSS"
   ]
  },
  {
   "id": "E3",
   "tier": "easy",
   "kind": "int",
   "prompt": "A ferry carries 30 crates per trip and makes 5 trips a day. On the last day of a 4-day week it skips the final trip, and 19 crates are rejected at inspection over the whole week. How many crates passed inspection that week?\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": 551
  },
  {
   "id": "E4",
   "tier": "easy",
   "kind": "list",
   "prompt": "Sort these words by their LAST letter (a\u2192z); break ties by length (shorter first), then alphabetically: ember, harbor, cobalt, tundra, lintel, velvet. Answer as a comma-separated list.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": [
    "tundra",
    "lintel",
    "ember",
    "harbor",
    "cobalt",
    "velvet"
   ]
  },
  {
   "id": "M1",
   "tier": "medium",
   "kind": "intlist",
   "prompt": "GLYPH is a stack language over Python integers. Tokens run left to right:\n- an integer literal: push it\n- dup: copy top | drop: pop top | swap: swap top two | over: copy second-from-top to top\n- rot: (a b c -> b c a)  i.e. third-from-top moves to top\n- add, sub, mul: pop b then a, push a+b / a-b / a*b\n- mod: pop b then a, push a mod b using floored modulo (Python %), b is never 0\n- zig: pop a; push a*3+1 if a is odd, else a//2 (floor division)\n- rep N [ ... ]: run the bracketed body N times\n- ifz [ ... ]: pop a; run the body only if a == 0\nThe program starts with an empty stack.\n\nProgram:\n9 3 5 6 8 4 rot sub 10 1 sub rot mod over mul drop swap\n\nWhat is the final stack, bottom to top? Answer as a comma-separated list of integers.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": [
    9,
    3,
    -2,
    5
   ]
  },
  {
   "id": "H1",
   "tier": "hard",
   "kind": "intlist",
   "prompt": "GLYPH is a stack language over Python integers. Tokens run left to right:\n- an integer literal: push it\n- dup: copy top | drop: pop top | swap: swap top two | over: copy second-from-top to top\n- rot: (a b c -> b c a)  i.e. third-from-top moves to top\n- add, sub, mul: pop b then a, push a+b / a-b / a*b\n- mod: pop b then a, push a mod b using floored modulo (Python %), b is never 0\n- zig: pop a; push a*3+1 if a is odd, else a//2 (floor division)\n- rep N [ ... ]: run the bracketed body N times\n- ifz [ ... ]: pop a; run the body only if a == 0\nThe program starts with an empty stack.\n\nProgram:\n5 3 2 rep 2 [ dup zig 11 ] 8 2 ifz [ 3 ] 2 ifz [ swap zig add ] mod rot 2 ifz [ drop ] sub drop over 12 swap 11 1 mul rot 1 ifz [ 5 over 5 ] 1 ifz [ 9 ] rep 2 [ mod rot 2 sub ] mod 3 add\n\nWhat is the final stack, bottom to top? Answer as a comma-separated list of integers.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": [
    5,
    3,
    2,
    1,
    3
   ]
  },
  {
   "id": "M2",
   "tier": "medium",
   "kind": "code",
   "prompt": "Write `ripple(xs: list[int]) -> list[int]`:\n1. For each index i, let d be (j - i) for the smallest j > i with xs[j] >= xs[i], or 0 if no such j. Set out[i] = xs[i] + d.\n2. Let k = sum(xs) mod len(xs) (Python floored modulo). Return out rotated LEFT by k positions.\nAn empty list returns [].\n\nReply with a single ```python code block containing the complete function (stdlib only, no I/O, no tests).",
   "gold": {
    "func": "ripple",
    "cases": [
     [
      [],
      []
     ],
     [
      [
       5
      ],
      [
       5
      ]
     ],
     [
      [
       3,
       3
      ],
      [
       4,
       3
      ]
     ],
     [
      [
       1,
       2,
       3
      ],
      [
       2,
       3,
       3
      ]
     ],
     [
      [
       3,
       2,
       1
      ],
      [
       3,
       2,
       1
      ]
     ],
     [
      [
       -4,
       7,
       -1,
       0
      ],
      [
       0,
       0,
       -3,
       7
      ]
     ],
     [
      [
       0,
       0,
       0,
       0,
       0
      ],
      [
       1,
       1,
       1,
       1,
       0
      ]
     ],
     [
      [
       4,
       -16,
       -4,
       8
      ],
      [
       7,
       -15,
       -3,
       8
      ]
     ],
     [
      [
       -13,
       0,
       18,
       -10,
       5
      ],
      [
       -12,
       1,
       18,
       -9,
       5
      ]
     ],
     [
      [
       12,
       14,
       6,
       15,
       -2,
       -20,
       -8,
       -18,
       9,
       14,
       12,
       -7
      ],
      [
       15,
       2,
       -19,
       -6,
       -17,
       10,
       14,
       12,
       -7,
       13,
       16,
       7
      ]
     ],
     [
      [
       1,
       -4,
       12,
       8,
       6,
       -10,
       10
      ],
      [
       12,
       11,
       8,
       -9,
       10,
       3,
       -3
      ]
     ],
     [
      [
       -6,
       -18,
       -1,
       -6,
       -9,
       -15,
       -18,
       -9,
       -10,
       -20,
       -14,
       -8
      ],
      [
       -13,
       -8,
       -4,
       -17,
       -1,
       -6,
       -6,
       -13,
       -17,
       -5,
       -7,
       -19
      ]
     ],
     [
      [
       -6,
       10,
       -7,
       -18,
       7,
       -8,
       -1,
       8
      ],
      [
       10,
       -5,
       -17,
       10,
       -7,
       0,
       8,
       -5
      ]
     ],
     [
      [
       -11,
       1,
       -1,
       9,
       4
      ],
      [
       0,
       9,
       4,
       -10,
       3
      ]
     ],
     [
      [
       16,
       -18,
       -4,
       9,
       -7,
       0,
       0,
       -18,
       -6,
       10,
       6,
       13
      ],
      [
       -17,
       -3,
       15,
       -6,
       1,
       3,
       -17,
       -5,
       12,
       7,
       13,
       16
      ]
     ],
     [
      [
       -12
      ],
      [
       -12
      ]
     ],
     [
      [
       6,
       -10,
       0,
       -15,
       9,
       20,
       3,
       -11
      ],
      [
       2,
       -14,
       10,
       20,
       3,
       -11,
       10,
       -9
      ]
     ],
     [
      [
       13,
       14,
       -7,
       16,
       -19,
       8,
       16,
       18
      ],
      [
       19,
       -18,
       9,
       17,
       18,
       14,
       16,
       -6
      ]
     ],
     [
      [
       16,
       13,
       20,
       18,
       11,
       20
      ],
      [
       23,
       20,
       12,
       20,
       18,
       14
      ]
     ],
     [
      [
       4,
       -5,
       -12
      ],
      [
       -12,
       4,
       -5
      ]
     ],
     [
      [
       17,
       10,
       7,
       -5,
       9,
       19,
       -13,
       1
      ],
      [
       19,
       -12,
       1,
       22,
       14,
       9,
       -4,
       10
      ]
     ],
     [
      [
       7,
       -8,
       -4,
       14,
       13,
       7,
       -3,
       -17,
       1,
       17,
       -6
      ],
      [
       -6,
       10,
       -7,
       -3,
       20,
       18,
       11,
       -1,
       -16,
       2,
       17
      ]
     ],
     [
      [
       -18,
       -5,
       -10,
       2,
       20,
       5,
       16,
       17,
       18,
       9
      ],
      [
       20,
       6,
       17,
       18,
       18,
       9,
       -17,
       -3,
       -9,
       3
      ]
     ],
     [
      [
       6,
       5,
       12,
       16,
       -18,
       -13,
       -16,
       -16,
       18,
       -19,
       -15,
       4
      ],
      [
       8,
       6,
       13,
       21,
       -17,
       -10,
       -15,
       -15,
       18,
       -18,
       -14,
       4
      ]
     ],
     [
      [
       1,
       17,
       -18,
       -14,
       -3,
       -6,
       -20,
       16,
       -11,
       2,
       -2,
       -10
      ],
      [
       2,
       17,
       -17,
       -13,
       0,
       -4,
       -19,
       16,
       -10,
       2,
       -2,
       -10
      ]
     ],
     [
      [
       0,
       2,
       -10,
       -1,
       19,
       -4,
       -12,
       3,
       10
      ],
      [
       4,
       10,
       1,
       5,
       -9,
       0,
       19,
       -2,
       -11
      ]
     ],
     [
      [
       -12,
       -3
      ],
      [
       -3,
       -11
      ]
     ],
     [
      [
       -3,
       15,
       -1
      ],
      [
       -1,
       -2,
       15
      ]
     ],
     [
      [
       1,
       -15,
       -20
      ],
      [
       -20,
       1,
       -15
      ]
     ],
     [
      [
       5,
       8,
       17,
       17,
       19,
       -19,
       12,
       18,
       -16,
       20,
       -5
      ],
      [
       -5,
       6,
       9,
       18,
       18,
       24,
       -18,
       13,
       20,
       -15,
       20
      ]
     ],
     [
      [
       20,
       15,
       1,
       -4,
       -12,
       12
      ],
      [
       4,
       -2,
       -11,
       12,
       20,
       15
      ]
     ],
     [
      [
       16,
       20,
       -17,
       1,
       -18,
       4
      ],
      [
       17,
       20,
       -16,
       3,
       -17,
       4
      ]
     ],
     [
      [
       -20,
       12,
       -9,
       12,
       11,
       -14,
       -10,
       -17
      ],
      [
       -13,
       -10,
       -17,
       -19,
       14,
       -8,
       12,
       11
      ]
     ],
     [
      [
       13,
       -4,
       2,
       -15,
       -10,
       1,
       -9,
       -14,
       -15,
       -17,
       3,
       7
      ],
      [
       10,
       -14,
       -9,
       6,
       -5,
       -11,
       -13,
       -16,
       4,
       7,
       13,
       -3
      ]
     ],
     [
      [
       -8,
       13,
       -5,
       -6,
       5,
       6,
       15,
       11,
       3
      ],
      [
       11,
       3,
       -7,
       18,
       -3,
       -5,
       6,
       7,
       15
      ]
     ],
     [
      [
       -13,
       17,
       16,
       -18,
       -2,
       11,
       -12,
       -20,
       10
      ],
      [
       -19,
       10,
       -12,
       17,
       16,
       -17,
       -1,
       11,
       -10
      ]
     ],
     [
      [
       -15,
       12,
       -3,
       20,
       -2,
       15,
       0,
       17,
       4,
       11
      ],
      [
       11,
       -14,
       14,
       -2,
       20,
       -1,
       17,
       1,
       17,
       5
      ]
     ]
    ]
   }
  },
  {
   "id": "M3",
   "tier": "medium",
   "kind": "str",
   "prompt": "The Veltrine calendar has 7 months in order: Ashen (31 days), Brine (28 days), Cinder (30 days), Dross (33 days), Ember (29 days), Fallow (31 days), Gale (30 days). In a leap year Brine has 30 days instead of 28. A year is leap if divisible by 5 but not by 40.\nWhat date is 2536 days after 25 Brine 1122? Answer in the form `<day> <Month> <year>`, e.g. 4 Cinder 1112.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": "13 Brine 1134"
  },
  {
   "id": "M4",
   "tier": "medium",
   "kind": "grid",
   "prompt": "4 houses stand in a row, numbered 1 (left) to 4 (right). Each has one resident (names: Evander, Fenna, Gideon, Ilsa), one color (coral, ochre, olive, slate), and the resident drinks one drink (chicha, kvass, mate, sbiten); all distinct.\n\nClues:\n1. Ilsa is not the same house as the coral house.\n2. Ilsa is somewhere left of the slate house.\n3. The coral house is next to the sbiten drinker.\n4. Evander is somewhere left of the kvass drinker.\n5. The kvass drinker is in house 3.\n6. The slate house is the same house as the kvass drinker.\n7. The mate drinker is not the same house as Evander.\n8. Fenna is immediately left of Gideon.\n9. The ochre house is somewhere left of the coral house.\n\nThere is exactly one solution. Answer as JSON {\"1\": {\"name\":..,\"color\":..,\"drink\":..}, \"2\": ...}.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": {
    "1": {
     "name": "Ilsa",
     "color": "ochre",
     "drink": "sbiten"
    },
    "2": {
     "name": "Evander",
     "color": "coral",
     "drink": "chicha"
    },
    "3": {
     "name": "Fenna",
     "color": "slate",
     "drink": "kvass"
    },
    "4": {
     "name": "Gideon",
     "color": "olive",
     "drink": "mate"
    }
   }
  },
  {
   "id": "H4",
   "tier": "hard",
   "kind": "grid",
   "prompt": "5 houses stand in a row, numbered 1 (left) to 5 (right). Each has one resident (names: Bram, Corin, Evander, Fenna, Gideon), one color (coral, ochre, olive, slate, teal), and the resident drinks one drink (chicha, horchata, lassi, mate, sbiten); all distinct.\n\nClues:\n1. The ochre house is somewhere left of the olive house.\n2. The lassi drinker is the same house as Bram.\n3. The olive house is not the same house as Evander.\n4. Corin is next to Bram.\n5. Gideon is in house 1.\n6. The horchata drinker is the same house as the olive house.\n7. Gideon is somewhere left of the chicha drinker.\n8. The teal house is immediately left of the slate house.\n9. Bram is immediately left of the slate house.\n10. The mate drinker is somewhere left of the coral house.\n11. The chicha drinker is somewhere left of Corin.\n12. The olive house is next to the ochre house.\n\nThere is exactly one solution. Answer as JSON {\"1\": {\"name\":..,\"color\":..,\"drink\":..}, \"2\": ...}.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": {
    "1": {
     "name": "Gideon",
     "color": "ochre",
     "drink": "mate"
    },
    "2": {
     "name": "Fenna",
     "color": "olive",
     "drink": "horchata"
    },
    "3": {
     "name": "Evander",
     "color": "coral",
     "drink": "chicha"
    },
    "4": {
     "name": "Bram",
     "color": "teal",
     "drink": "lassi"
    },
    "5": {
     "name": "Corin",
     "color": "slate",
     "drink": "sbiten"
    }
   }
  },
  {
   "id": "H2",
   "tier": "hard",
   "kind": "code",
   "prompt": "Write `vault(grid: list[str]) -> int`: minimum total cost to walk from 'S' to 'E', or -1 if impossible.\nRules: move up/down/left/right, one cell at a time, staying in the grid. '#' is a wall. Entering any cell costs 1, plus d extra if the cell is a digit d (1-9). Lowercase a/b/c are keys: entering one picks it up permanently. Uppercase A/B/C are doors: you may enter only if you already hold the matching lowercase key. If there are exactly two '*' cells they are linked portals: while standing on one you may jump to the other at cost 0 (you may also just walk over them; with any other number of '*' they are plain floor). 'S', 'E', '.' are plain floor. Reaching E ends the walk. Grids are rectangular and may be up to 9x9.\n\nReply with a single ```python code block containing the complete function (stdlib only, no I/O, no tests).",
   "gold": {
    "func": "vault",
    "cases": [
     [
      [
       [
        "S.E"
       ]
      ],
      2
     ],
     [
      [
       [
        "S#E"
       ]
      ],
      -1
     ],
     [
      [
       [
        "SA.",
        "##.",
        "a.E"
       ]
      ],
      -1
     ],
     [
      [
       [
        "S9E"
       ]
      ],
      11
     ],
     [
      [
       [
        "S.#.E"
       ]
      ],
      -1
     ],
     [
      [
       [
        "*#####",
        "S#..E*"
       ]
      ],
      2
     ],
     [
      [
       [
        "23E.....",
        ".....96.",
        "5.....#2",
        "*#.*1S.."
       ]
      ],
      6
     ],
     [
      [
       [
        "...c..",
        "#...1S",
        "a.4...",
        "...#4.",
        ".E.A..",
        "C.47B#",
        "9#.1#.",
        ".b.#6.",
        "294.74"
       ]
      ],
      8
     ],
     [
      [
       [
        "A.3.",
        "6.#E",
        "...c",
        "34.3",
        "..b.",
        ".C..",
        "#B.*",
        ".Sa*"
       ]
      ],
      8
     ],
     [
      [
       [
        "aA#.",
        "...C",
        "*E#.",
        "#.9.",
        "S.8.",
        ".B*#",
        "..#."
       ]
      ],
      3
     ],
     [
      [
       [
        "83E....9A",
        "B.S....#a",
        "#*#84.52.",
        ".8b..*.c.",
        "7.......8",
        "..1..C.#2"
       ]
      ],
      1
     ],
     [
      [
       [
        ".7A.4#.4",
        "..5.4..S",
        "22.....E",
        "2......C",
        "b...82a."
       ]
      ],
      1
     ],
     [
      [
       [
        ".6.**.8",
        "....92.",
        ".6#21.#",
        "S.9#.E."
       ]
      ],
      12
     ],
     [
      [
       [
        "##.A.9#.1",
        ".93..7...",
        "..#6C8*8B",
        "#4E1.S...",
        "..#.....*"
       ]
      ],
      4
     ],
     [
      [
       [
        "b3a...",
        ".*c.S*",
        "#E.C32",
        "B..#8A"
       ]
      ],
      2
     ],
     [
      [
       [
        ".AE#3#a",
        "...BC..",
        "#*.9.Sb",
        "#1...c4",
        "#9*..##"
       ]
      ],
      7
     ],
     [
      [
       [
        "#.6#9#.A",
        "2.3..*#.",
        "#.7..864",
        ".b....a#",
        "#E..1.#C",
        ".4B7c...",
        ".#882.S*"
       ]
      ],
      8
     ],
     [
      [
       [
        ".EBc",
        "*C4S",
        "b.#.",
        "1...",
        "....",
        "..7*",
        "a#A5",
        ".#..",
        "9.3."
       ]
      ],
      6
     ],
     [
      [
       [
        "47.#9",
        ".b4S.",
        "E.##A",
        "#.47.",
        "a.52C",
        "c...#",
        ".#.B."
       ]
      ],
      8
     ],
     [
      [
       [
        "b#..",
        "#9.1",
        ".S#c",
        "....",
        "9.#.",
        "....",
        ".E..",
        "#.#."
       ]
      ],
      4
     ],
     [
      [
       [
        "#.S...a",
        "....E.6",
        "A*.8#..",
        "....B*9"
       ]
      ],
      3
     ],
     [
      [
       [
        "##6.**5",
        "..29..7",
        ".S16...",
        "..##.2.",
        "..8#.2#",
        "##.6119",
        "...5.#.",
        ".7.4.E."
       ]
      ],
      17
     ],
     [
      [
       [
        "S7#.a41..",
        "..5...9..",
        ".....B6#.",
        "43E.#3b.7",
        ".CA7...#6"
       ]
      ],
      5
     ],
     [
      [
       [
        ".a.5...",
        "...3...",
        "......E",
        "S3C..4#",
        "9.8Bb.."
       ]
      ],
      7
     ],
     [
      [
       [
        ".*.1.9S",
        "*.##4.#",
        "B.1E8.#",
        "#.#...7",
        "4......",
        "9.9...a",
        "..#.9##"
       ]
      ],
      16
     ],
     [
      [
       [
        "9E.1*.3*.",
        "#..S42A..",
        "..1.4.#..",
        ".#.1..7#2",
        ".7..26.5b",
        ".....#...",
        ".......41"
       ]
      ],
      3
     ],
     [
      [
       [
        "3.....",
        "S..#59",
        "...#.*",
        ".E...#",
        "446...",
        "#.7c##",
        "B.81.*"
       ]
      ],
      3
     ],
     [
      [
       [
        ".5#..",
        "#.E..",
        "...c8",
        "SB.8.",
        "C56*#",
        "9#.5.",
        "..#.8",
        "...#.",
        ".*.1."
       ]
      ],
      4
     ],
     [
      [
       [
        "E3.S",
        "3b.*",
        ".*..",
        "B#Ca"
       ]
      ],
      6
     ],
     [
      [
       [
        "..E*24#.",
        "5.#.7127",
        ".S5#.*..",
        "17.2##.."
       ]
      ],
      3
     ],
     [
      [
       [
        "#E#..",
        ".7...",
        ".#9#.",
        "C..4.",
        "1....",
        "...46",
        "...S.",
        "....#",
        "....c"
       ]
      ],
      19
     ],
     [
      [
       [
        "......",
        "#b.aE.",
        "##S6.5",
        "4....B",
        ".1#*C*",
        ".cA..."
       ]
      ],
      3
     ],
     [
      [
       [
        "....",
        ".S.*",
        ".#E.",
        ".*#4"
       ]
      ],
      2
     ],
     [
      [
       [
        "...3BA#.#",
        ".....##..",
        ".6.S5.11.",
        ".#....3.a",
        "3..#..4#.",
        "..#..8..9",
        ".E.C.#...",
        "..37..6.#"
       ]
      ],
      6
     ],
     [
      [
       [
        "c.8*",
        "b.#.",
        ".3..",
        "E..*",
        "C#S.",
        "5.3.",
        "7.a."
       ]
      ],
      3
     ],
     [
      [
       [
        "#.1..",
        "4.8.5",
        "S...#",
        "....*",
        "..37.",
        ".#...",
        "89...",
        "#....",
        "8*6.E"
       ]
      ],
      10
     ],
     [
      [
       [
        ".64..S#",
        "#....E.",
        "..1*.C.",
        ".#..2..",
        "9.##...",
        ".##.1.6",
        "*.#3###"
       ]
      ],
      1
     ],
     [
      [
       [
        "E4.*",
        "6S##",
        "2.7.",
        "c.6*"
       ]
      ],
      6
     ],
     [
      [
       [
        ".*.2..",
        "#2..7.",
        "1C....",
        ".#7#6E",
        ".S....",
        ".#*..."
       ]
      ],
      5
     ],
     [
      [
       [
        "#..#c...",
        "..#....E",
        ".##*.7S2",
        ".#.#7.#.",
        "#.##1.8.",
        ".#95b.#*",
        "#8#...#2",
        "C.4.563.",
        "...2...8"
       ]
      ],
      2
     ],
     [
      [
       [
        "..#45#...",
        "..#...a.E",
        ".1B.5C8.S",
        "73...81#."
       ]
      ],
      1
     ],
     [
      [
       [
        "E..A.3",
        ".9#...",
        ".6....",
        ".S....",
        "8...78",
        "#.....",
        "...3.."
       ]
      ],
      4
     ],
     [
      [
       [
        "##BS",
        "*ECc",
        "A..*",
        "b6#a"
       ]
      ],
      3
     ],
     [
      [
       [
        "62....",
        "A#.*.2",
        "..25.#",
        "a4.C##",
        "#BEScb",
        "##8*.9"
       ]
      ],
      1
     ],
     [
      [
       [
        "..#b5.C",
        "6.E*S#.",
        "Aa..B#*",
        ".c9##..",
        "274...."
       ]
      ],
      2
     ],
     [
      [
       [
        "a.......",
        "...3.1S6",
        ".#.E....",
        ".#Bb.#c."
       ]
      ],
      4
     ]
    ]
   }
  },
  {
   "id": "H3",
   "tier": "hard",
   "kind": "sched",
   "prompt": "Schedule 8 jobs on 2 identical machines (each machine runs one job at a time; jobs run without interruption; times are integers starting at 0).\nDurations: J1=3, J2=3, J3=3, J4=3, J5=1, J6=5, J7=6, J8=6.\nPrecedence (X before Y means Y starts no earlier than X finishes): J1 before J4, J1 before J6, J2 before J3, J2 before J4, J2 before J8, J4 before J7, J5 before J8.\nHeat rule: the 'hot' jobs J1, J2, J7 may never run at the same time as each other.\nMinimize the makespan (latest finish time). Answer as JSON mapping each job to its start time, e.g. {\"J1\": 0, ...}.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": {
    "dur": {
     "J1": 3,
     "J2": 3,
     "J3": 3,
     "J4": 3,
     "J5": 1,
     "J6": 5,
     "J7": 6,
     "J8": 6
    },
    "prec": [
     [
      "J1",
      "J4"
     ],
     [
      "J1",
      "J6"
     ],
     [
      "J2",
      "J3"
     ],
     [
      "J2",
      "J4"
     ],
     [
      "J2",
      "J8"
     ],
     [
      "J4",
      "J7"
     ],
     [
      "J5",
      "J8"
     ]
    ],
    "hot": [
     "J1",
     "J2",
     "J7"
    ],
    "machines": 2,
    "optimal": 17
   }
  },
  {
   "id": "X1",
   "tier": "extreme",
   "kind": "intlist",
   "prompt": "GLYPH is a stack language over Python integers. Tokens run left to right:\n- an integer literal: push it\n- dup: copy top | drop: pop top | swap: swap top two | over: copy second-from-top to top\n- rot: (a b c -> b c a)  i.e. third-from-top moves to top\n- add, sub, mul: pop b then a, push a+b / a-b / a*b\n- mod: pop b then a, push a mod b using floored modulo (Python %), b is never 0\n- zig: pop a; push a*3+1 if a is odd, else a//2 (floor division)\n- rep N [ ... ]: run the bracketed body N times\n- ifz [ ... ]: pop a; run the body only if a == 0\nThe program starts with an empty stack.\n\nProgram:\n3 3 2 0 ifz [ drop 7 mul ] 0 ifz [ over 8 12 ] 10 zig add 2 ifz [ zig ] rep 3 [ sub 12 swap sub ] over over dup zig 2 mul 5 sub 1 sub mod 0 ifz [ mul ] swap 2 ifz [ mod ] rep 2 [ zig swap ] 7 2 ifz [ 11 dup ] 11 sub over sub 8 add mul add mod 0 ifz [ zig ] rep 2 [ 12 9 drop dup ] rep 4 [ zig 1 sub 3 ] sub rep 3 [ sub 5 add ] 12 over rep 2 [ add drop 3 sub ] 1 ifz [ 10 rot ] dup 2 ifz [ over 9 4 ] rot zig rot mod\n\nWhat is the final stack, bottom to top? Answer as a comma-separated list of integers.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": [
    -10940,
    9,
    6
   ]
  },
  {
   "id": "X2",
   "tier": "extreme",
   "kind": "str",
   "prompt": "The Veltrine calendar has 7 months in order: Ashen (31 days), Brine (28 days), Cinder (30 days), Dross (33 days), Ember (29 days), Fallow (31 days), Gale (30 days). In a leap year Brine has 30 days instead of 28. A year is leap if divisible by 5 but not by 40. Veltrine weeks have 9 days in order: Ord, Pell, Quist, Rhee, Sorn, Tavi, Ulm, Vane, Wick (then back to Ord).\n19 Ashen 1238 was a Pell. What are the date and weekday 35254 days later? Answer in the form `<Weekday> <day> <Month> <year>`, e.g. Rhee 4 Cinder 1112.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": "Quist 25 Ashen 1404"
  },
  {
   "id": "X3",
   "tier": "extreme",
   "kind": "code",
   "prompt": "Write `vault2(grid: list[str]) -> int`: minimum total cost to walk from 'S' to 'E', or -1 if impossible.\nRules: move up/down/left/right one cell at a time inside the grid. '#' is a wall. Entering any cell costs 1, plus d extra if the cell is a digit d (1-9); re-entering a digit cell costs the same again.\nLowercase a/b/c are key cells. The FIRST time you enter a given key cell you pick up one key of that letter; that cell gives nothing on later visits (it then acts as plain floor). You can carry any number of keys.\nUppercase A/B/C are doors. The first time you enter a given door cell you must spend (consume) one matching key you are carrying; if you have none you cannot enter. Once a particular door cell has been opened it stays open and can be re-entered for free (no key). Each door cell is opened separately.\n'S', 'E', '.' are plain floor. Reaching E ends the walk. Grids are rectangular, up to 10x10, with at most 4 key cells and 4 door cells.\n\nReply with a single ```python code block containing the complete function (stdlib only, no I/O, no tests).",
   "gold": {
    "func": "vault2",
    "cases": [
     [
      [
       [
        "SaAAE"
       ]
      ],
      -1
     ],
     [
      [
       [
        "SaaAAE"
       ]
      ],
      5
     ],
     [
      [
       [
        "SA",
        "aE"
       ]
      ],
      2
     ],
     [
      [
       [
        "aSAbBE"
       ]
      ],
      6
     ],
     [
      [
       [
        "S.a",
        "#A#",
        "EA."
       ]
      ],
      -1
     ],
     [
      [
       [
        "Sa.",
        "AAE"
       ]
      ],
      3
     ],
     [
      [
       [
        "..#C.",
        "8.4.8",
        "6Eaab",
        "BB9..",
        "b7B..",
        "S.8.5",
        "....."
       ]
      ],
      10
     ],
     [
      [
       [
        "E#32.c#..3",
        "C2.C827.1.",
        "7...1A....",
        ".C1.8#...#",
        "..4Sa#.#.."
       ]
      ],
      25
     ],
     [
      [
       [
        ".5S..#.",
        "#..7..#",
        ".b...62",
        "....A.A",
        "56.a##.",
        "..3#.E."
       ]
      ],
      20
     ],
     [
      [
       [
        "EC#......",
        "..B.7...6",
        ".#B..c.8.",
        "#..7...##",
        "5b#S.B.#6",
        "...8.....",
        "##...1..2"
       ]
      ],
      23
     ],
     [
      [
       [
        "3b2..",
        ".bBBE",
        "..S.9",
        "74#C.",
        "c..B."
       ]
      ],
      7
     ],
     [
      [
       [
        "S6..1.4A4",
        "#bc.B.3#E",
        ".95.C4B.2",
        ".c.#..4..",
        "#.7a.#.52"
       ]
      ],
      23
     ],
     [
      [
       [
        "...5.4",
        "1...b3",
        "#E.##.",
        "#1CS.#",
        ".#8C..",
        "AB1...",
        "2.....",
        "c.87.."
       ]
      ],
      21
     ],
     [
      [
       [
        "4#2.8",
        ".c...",
        "...5.",
        "#E...",
        "....a",
        "#.#35",
        "8B3..",
        ".B.9.",
        "#b..S"
       ]
      ],
      11
     ],
     [
      [
       [
        ".2..a",
        ".#c6.",
        "7E#3.",
        "..#..",
        "#AA4.",
        "..39.",
        "..#bS"
       ]
      ],
      22
     ],
     [
      [
       [
        "89a...#",
        ".E#SA.A",
        ".a.9.2.",
        "....A#4",
        "5.B7..3"
       ]
      ],
      13
     ],
     [
      [
       [
        "1bB..831",
        "SB.2886#",
        "1..#..#3",
        "....##E#",
        ".#3#.73.",
        "..##1.#b",
        ".3#.BA7.",
        "...53#.."
       ]
      ],
      39
     ],
     [
      [
       [
        ".a..Bc",
        ".A.a#.",
        "..17.b",
        ".38...",
        "..#1.B",
        ".66995",
        ".E.B.S"
       ]
      ],
      29
     ],
     [
      [
       [
        "..1a#..",
        "7.c.S#6",
        ".1A7A#9",
        "..A....",
        "..E3.9A"
       ]
      ],
      8
     ],
     [
      [
       [
        "8c8.....",
        "...E.c7#",
        "..##C93#",
        "7B.2481#",
        "#.B4.b..",
        "....#S43",
        "...4#A.#"
       ]
      ],
      16
     ],
     [
      [
       [
        "..3.#",
        "BS...",
        "..7.4",
        "....a",
        "26.#6",
        ".3c..",
        "9.C7.",
        "6.6a#",
        "C#a24",
        "E.8#."
       ]
      ],
      20
     ],
     [
      [
       [
        ".591.",
        ".a#E.",
        "..6Ab",
        "..cA.",
        ".76SA",
        "....A"
       ]
      ],
      17
     ],
     [
      [
       [
        "..A..",
        "a....",
        "6...b",
        "#.BB4",
        "a.CSb",
        ".E.#.",
        "72#.."
       ]
      ],
      9
     ],
     [
      [
       [
        ".94.1...",
        "2#B..5..",
        "9..6..4.",
        "..B6...#",
        "18.#.#2E",
        "#S.#7.1.",
        "3cb62c1."
       ]
      ],
      18
     ],
     [
      [
       [
        "5.....",
        ".4C29.",
        "E.1.b.",
        "a.CC..",
        "..8.3.",
        "..4.4.",
        "#A..Sc",
        ".1....",
        ".....b"
       ]
      ],
      11
     ],
     [
      [
       [
        "9#8b.",
        "8c...",
        "aB.CC",
        "5..72",
        ".7#S.",
        "##.A9",
        "a2E#4",
        "..#49",
        "..#1."
       ]
      ],
      32
     ],
     [
      [
       [
        "Ec.#b.5#",
        "A##.#...",
        "..7...A.",
        "5.....#.",
        "S8c...#.",
        ".66.2#..",
        "6#..B2a#",
        ".B..6..."
       ]
      ],
      39
     ],
     [
      [
       [
        "#2#8.",
        "#..91",
        ".E...",
        "47##9",
        "BBS.#",
        "415.8",
        ".bC.C"
       ]
      ],
      21
     ],
     [
      [
       [
        "S.#9#E9.4.",
        ".8.59.B5.#",
        "...1.#.C.a",
        ".7b9..B.74",
        "9.11.2.#..",
        "...#.7.3#9"
       ]
      ],
      19
     ],
     [
      [
       [
        ".#5.3",
        "..b#.",
        "#Sb6.",
        ".#B2#",
        ".361.",
        "a.EB.",
        "5CCc.",
        "....4"
       ]
      ],
      10
     ],
     [
      [
       [
        "..Sc.9.",
        ".6#C.96",
        "....33.",
        "2.3....",
        "A.3....",
        "7a9.6.#",
        ".9#9###",
        ".#..CE."
       ]
      ],
      24
     ],
     [
      [
       [
        ".c....#",
        "1.4..##",
        "243.#.4",
        "3E#C.5c",
        "##.BC..",
        "6S..93."
       ]
      ],
      38
     ],
     [
      [
       [
        ".1#1..#.",
        ".##74.9.",
        ".1....c.",
        "59..115.",
        ".B.2..#.",
        "b#...BEC",
        "..7.1#.B",
        ".S...7.#"
       ]
      ],
      13
     ],
     [
      [
       [
        "9.8..",
        "#E.3.",
        ".A##.",
        "..#.A",
        "BS1..",
        "#3442",
        "#Aa..",
        "4.2c."
       ]
      ],
      19
     ],
     [
      [
       [
        "177#.4..",
        ".2..Ca.1",
        "##5.59..",
        ".44C...4",
        "E.A.Ab6S"
       ]
      ],
      33
     ],
     [
      [
       [
        ".6..6.#8..",
        "..A5.b.1.3",
        ".E..#b..#S",
        ".#3AA.7a.1",
        "3.7..#3..9"
       ]
      ],
      18
     ],
     [
      [
       [
        "4.B..S9",
        "..9#b..",
        "#BA.8#.",
        "E..2...",
        "....8.8"
       ]
      ],
      12
     ],
     [
      [
       [
        "......a.A.",
        "53.#.9162A",
        "3.#S8#.a3.",
        "7..9#b15.E",
        "..b.##.6.#",
        ".AC74..#.4"
       ]
      ],
      23
     ],
     [
      [
       [
        ".b5S56B9.",
        "...3.2.#7",
        "6#.5B3#.3",
        "###..B..b",
        "...##.#.1",
        ".2..#37.7",
        ".#..7....",
        "..#c.1E..",
        "C....829.",
        "......1.."
       ]
      ],
      26
     ],
     [
      [
       [
        "..#..1.",
        ".9..#.E",
        "#a...A.",
        "..#58AC",
        "a4....2",
        "#6.1..#",
        ".#9.#4S",
        "#.9..a."
       ]
      ],
      19
     ],
     [
      [
       [
        "2.1..1....",
        "4#.c17.#9.",
        "C...7...5.",
        "1.128b.5..",
        "7..46SE8A#",
        "...#8a.3.."
       ]
      ],
      1
     ],
     [
      [
       [
        ".B.A#",
        "AA..1",
        "...Sa",
        ".....",
        "34E.7"
       ]
      ],
      3
     ],
     [
      [
       [
        ".63.8##a..",
        "##......2#",
        ".B.#6.65..",
        "...5711.26",
        "S.6.......",
        "..7..#2#78",
        "7..#...E..",
        "..51...18.",
        ".........8",
        "....4#4.64"
       ]
      ],
      13
     ],
     [
      [
       [
        "..b..",
        ".#...",
        "..5#E",
        ".S.8.",
        "..C.a",
        "48537",
        "#...5",
        ".68#B",
        ".b.#b",
        "..45."
       ]
      ],
      10
     ],
     [
      [
       [
        "...C3bS",
        "a7E...7",
        ".#...5.",
        "...4..A",
        ".9B6...",
        "#...#b9",
        ".A....7"
       ]
      ],
      5
     ],
     [
      [
       [
        "C6...",
        ".a.##",
        "..##b",
        ".b..4",
        "E.aB8",
        "S....",
        ".....",
        "52C.."
       ]
      ],
      1
     ],
     [
      [
       [
        ".5.C.",
        "BaA.1",
        "..391",
        ".#.BE",
        ".S.9."
       ]
      ],
      12
     ],
     [
      [
       [
        "37....5S#8",
        "1b........",
        "...#4..59.",
        "B66.1.##..",
        "352....7..",
        "...8.#c#.9",
        "1...54#.#E",
        ".91....##4",
        "674#...#4.",
        "..1..4.#3."
       ]
      ],
      17
     ],
     [
      [
       [
        ".9#S#..3.",
        ".A.5....A",
        "...#.C.9.",
        ".1a9#4E.#",
        "#5..4..C4",
        ".9..7a..b",
        "2#5a.6.1."
       ]
      ],
      11
     ],
     [
      [
       [
        "..7..#...#",
        "..6S.#..##",
        "39.E...#..",
        "...19A.A.b",
        "3..2.....a",
        "...5...#5."
       ]
      ],
      1
     ],
     [
      [
       [
        "#.S5C",
        "...C.",
        "..bE3",
        "AA..#",
        "...4b"
       ]
      ],
      3
     ],
     [
      [
       [
        ".A..b.",
        "...c..",
        "21..#8",
        "C.4341",
        "A....9",
        "..#S5.",
        "B.#.18",
        ".29#.#",
        "E68...",
        "..3.b."
       ]
      ],
      10
     ],
     [
      [
       [
        "9.342#a..",
        "E..58....",
        "..#.5S.CB",
        "..7b.6.3#",
        "....a.#b."
       ]
      ],
      15
     ],
     [
      [
       [
        "c.5#..2",
        "6.76.C#",
        "...#SC2",
        "Ea#.#.8",
        "#11#97a",
        "....C.#"
       ]
      ],
      20
     ],
     [
      [
       [
        "5#.1E",
        "...#.",
        ".7.#.",
        "AC#.9",
        ".7c.S"
       ]
      ],
      13
     ],
     [
      [
       [
        ".#c.5#.BS.",
        "8.15###.7.",
        "2...9.A..a",
        "5C..5...#.",
        "B.39.#...2",
        ".E..5#...7"
       ]
      ],
      22
     ],
     [
      [
       [
        "E7#9..",
        "..B36c",
        "...b..",
        "3.2#AC",
        "9bS1Aa"
       ]
      ],
      6
     ],
     [
      [
       [
        "6.S...5",
        "..#.A9#",
        "..3....",
        "9....5.",
        "..96A.#",
        ".3..bE.",
        "4#71...",
        "B..1#.a"
       ]
      ],
      13
     ],
     [
      [
       [
        "ac...",
        "E...5",
        "##S5.",
        ".C#.9",
        "a...b"
       ]
      ],
      3
     ],
     [
      [
       [
        "...21..#4",
        ".8..##...",
        ".#.2..b..",
        ".S7.5.8E.",
        "55.4A..#6",
        ".3.#...bb",
        ".....7...",
        "#.#.3.61.",
        "#.9..9..."
       ]
      ],
      16
     ],
     [
      [
       [
        "b6a.C.",
        ".8..53",
        "#.S#..",
        "bC..#9",
        "......",
        ".a8.96",
        "B.E44.",
        "6.#.7B"
       ]
      ],
      6
     ],
     [
      [
       [
        "..14..",
        "1.2..#",
        ".7.1..",
        ".3.7.A",
        ".4aS.E",
        "...AA#",
        ".1...6",
        "..B..6",
        "8.2##."
       ]
      ],
      2
     ],
     [
      [
       [
        "15...#a",
        "..476.3",
        "3....4.",
        "#2...c.",
        ".....2.",
        "..#E8S1",
        "...b1..",
        ".8.#...",
        "#B..#.."
       ]
      ],
      5
     ],
     [
      [
       [
        "..2..75C.",
        ".#4...a.9",
        "cb#4194.E",
        "C..#4B#..",
        ".5.S....1",
        "...8.#445",
        "....2a..."
       ]
      ],
      7
     ],
     [
      [
       [
        ".....",
        "#3..a",
        ".S..E",
        ".4a#.",
        ".B4.b"
       ]
      ],
      3
     ],
     [
      [
       [
        "..#5...9",
        "...3....",
        "...E7C5.",
        ".#2#..#7",
        ".....#..",
        "..5.##.2",
        "#5.Sb.##"
       ]
      ],
      8
     ]
    ]
   }
  },
  {
   "id": "X4",
   "tier": "extreme",
   "kind": "sched",
   "prompt": "Schedule 9 jobs on 2 identical machines (each machine runs one job at a time; jobs run without interruption; times are integers starting at 0).\nDurations: J1=7, J2=3, J3=6, J4=6, J5=5, J6=5, J7=3, J8=4, J9=2.\nRelease times (a job may not start before this): J2=4, J4=2, J5=2, J6=2, J7=4 (all others 0).\nPrecedence (X before Y means Y starts no earlier than X finishes): J1 before J2, J1 before J3, J1 before J6, J1 before J8, J2 before J4, J3 before J9, J5 before J7, J6 before J8.\nHeat rule: the 'hot' jobs J3, J6, J9 may never run at the same time as each other.\nMinimize the makespan (latest finish time). Answer as JSON mapping each job to its start time, e.g. {\"J1\": 0, ...}.\n\nThink as long as you need, then give ONLY the final answer inside <answer></answer> tags.",
   "gold": {
    "dur": {
     "J1": 7,
     "J2": 3,
     "J3": 6,
     "J4": 6,
     "J5": 5,
     "J6": 5,
     "J7": 3,
     "J8": 4,
     "J9": 2
    },
    "prec": [
     [
      "J1",
      "J2"
     ],
     [
      "J1",
      "J3"
     ],
     [
      "J1",
      "J6"
     ],
     [
      "J1",
      "J8"
     ],
     [
      "J2",
      "J4"
     ],
     [
      "J3",
      "J9"
     ],
     [
      "J5",
      "J7"
     ],
     [
      "J6",
      "J8"
     ]
    ],
    "hot": [
     "J3",
     "J6",
     "J9"
    ],
    "rel": {
     "J1": 0,
     "J2": 4,
     "J3": 0,
     "J4": 2,
     "J5": 2,
     "J6": 2,
     "J7": 4,
     "J8": 0,
     "J9": 0
    },
    "machines": 2,
    "optimal": 22
   }
  }
 ]
}