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 28, 2026 03:28Charles CabergsCharles CabergsScore: 4,565Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 03:294,556150,616,263130,130,0002,002,0002,514,944stderr
2Apr 28, 2026 03:294,557151,257,490131,161,0001,001,0002,338,816stderr
3Apr 28, 2026 03:294,559154,026,487130,228,0002,003,0002,510,848stderr
4Apr 28, 2026 03:294,560146,418,865129,241,0003,005,0002,527,232stderr
5Apr 28, 2026 03:294,565150,692,155130,404,0002,006,0002,527,232stderr
6Apr 28, 2026 03:294,566150,173,291130,419,0002,006,0002,506,752stderr
7Apr 28, 2026 03:294,566149,646,886130,412,0002,006,0002,527,232stderr
8Apr 28, 2026 03:294,567149,503,657130,437,0002,006,0002,519,040stderr
9Apr 28, 2026 03:294,571152,522,848129,594,0002,990,0002,514,944stderr