23 lines
No EOL
1,020 B
JSON
23 lines
No EOL
1,020 B
JSON
{
|
|
"year": "2020",
|
|
"day": "18",
|
|
"title": "Operation Order",
|
|
"testCases": {
|
|
"one": [
|
|
{"input":"1 + 2 * 3 + 4 * 5 + 6", "expected":71},
|
|
{"input":"1 + (2 * 3) + (4 * (5 + 6))", "expected":51},
|
|
{"input":"2 * 3 + (4 * 5)", "expected":26},
|
|
{"input":"5 + (8 * 3 + 9 + 3 * 4 * 3)", "expected":437},
|
|
{"input":"5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))", "expected":12240},
|
|
{"input":"((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2", "expected":13632}
|
|
],
|
|
"two": [
|
|
{"input":"1 + 2 * 3 + 4 * 5 + 6", "expected":231},
|
|
{"input":"1 + (2 * 3) + (4 * (5 + 6))", "expected": 51},
|
|
{"input":"2 * 3 + (4 * 5)", "expected": 46},
|
|
{"input":"5 + (8 * 3 + 9 + 3 * 4 * 3)", "expected": 1445},
|
|
{"input":"5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))", "expected": 669060},
|
|
{"input":"((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2", "expected": 23340}
|
|
]
|
|
}
|
|
} |