Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listAug 17, 2026 03:08Victor MerckléVictor MerckléError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 12:53Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 12:59026,040,28715,307,0001,034,00077,824No answer to stdout. Died or killed?
2Aug 17, 2026 03:162,59885,021,24674,184,0001,158,0002,154,496stderr
3Aug 17, 2026 03:162,59985,112,33874,217,0001,170,0002,134,016stderr
4Aug 17, 2026 03:162,60385,162,99774,233,0001,266,0002,179,072stderr
5Aug 17, 2026 03:162,60385,203,54274,225,0001,266,0002,134,016stderr
6Aug 17, 2026 03:162,60485,275,52174,278,0001,262,0002,134,016stderr
7Aug 17, 2026 03:162,60485,279,20474,277,0001,261,0002,138,112stderr
8Aug 17, 2026 03:162,60485,231,14274,284,0001,258,0002,138,112stderr
9Aug 17, 2026 03:162,60485,273,05274,249,0001,267,0002,134,016stderr
10Aug 17, 2026 03:162,60585,366,24574,553,0001,013,0002,134,016stderr