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 listSep 18, 2026 13:59Andrew EpsteinAndrew EpsteinScore: 18,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2026 13:5918,885556,536,117546,681,0001,002,0002,125,824stderr
2Sep 18, 2026 13:5918,886557,046,431546,693,0001,001,0002,125,824stderr
3Sep 18, 2026 13:5918,894557,575,442545,888,0002,055,0002,125,824stderr
4Sep 18, 2026 13:5918,902557,637,467547,158,0001,002,0002,125,824stderr
5Sep 18, 2026 13:5918,913557,382,436547,490,0001,001,0002,125,824stderr
6Sep 18, 2026 13:5918,913557,800,456546,426,0002,074,0002,125,824stderr
7Sep 18, 2026 13:5918,918558,134,143547,629,0001,001,0002,125,824stderr
8Sep 18, 2026 13:5918,928557,777,402546,900,0002,026,0002,125,824stderr
9Sep 18, 2026 13:5918,930557,824,370547,995,0001,002,0002,125,824stderr