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 listApr 29, 2026 19:41Victor MerckléVictor MerckléScore: 25,637Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 19:4825,576761,462,102734,726,0006,997,0002,367,488stderr
2Apr 29, 2026 19:4825,582760,178,548733,903,0007,998,0002,420,736stderr
3Apr 29, 2026 19:4825,628764,270,530732,246,00010,988,0002,363,392stderr
4Apr 29, 2026 19:4825,628768,256,717734,228,0008,990,0002,347,008stderr
5Apr 29, 2026 19:4825,637763,363,193734,488,0008,993,0002,371,584stderr
6Apr 29, 2026 19:4825,649763,468,934728,848,00014,976,0002,318,336stderr
7Apr 29, 2026 19:4825,658765,928,935728,107,00015,980,0002,363,392stderr
8Apr 29, 2026 19:4825,686765,707,539733,900,00010,998,0002,371,584stderr
9Apr 29, 2026 19:4825,765764,646,513737,210,00010,002,0002,404,352stderr