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 30, 2026 18:49Charles CabergsCharles CabergsScore: 21,668Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 18:4921,660644,189,748626,156,0002,000,0002,506,752stderr
2Apr 30, 2026 18:4921,667646,487,648625,348,0002,996,0002,502,656stderr
3Apr 30, 2026 18:4921,667647,148,261625,350,0002,996,0002,494,464stderr
4Apr 30, 2026 18:4921,667651,756,558624,368,0003,995,0002,494,464stderr
5Apr 30, 2026 18:4921,668651,550,857626,382,0001,998,0002,498,560stderr
6Apr 30, 2026 18:4921,669646,959,332625,414,0002,997,0002,502,656stderr
7Apr 30, 2026 18:4921,669648,098,328625,425,0002,997,0002,498,560stderr
8Apr 30, 2026 18:4921,676646,611,241625,606,0002,998,0002,498,560stderr
9Apr 30, 2026 18:4921,676649,825,467626,616,0001,998,0002,506,752stderr