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 listJul 7, 2026 23:55Victor MerckléVictor MerckléScore: 3,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 23:563,12998,799,23290,764,00002,117,632stderr
2Jul 7, 2026 23:563,13098,942,51890,780,00002,117,632stderr
3Jul 7, 2026 23:563,13098,902,08190,798,00002,117,632stderr
4Jul 7, 2026 23:563,13198,911,22790,811,00002,117,632stderr
5Jul 7, 2026 23:563,13298,971,31690,851,00002,117,632stderr
6Jul 7, 2026 23:563,13298,899,64490,844,00002,117,632stderr
7Jul 7, 2026 23:563,13299,013,06890,836,00002,117,632stderr
8Jul 7, 2026 23:563,13398,980,44490,866,00002,117,632stderr
9Jul 7, 2026 23:563,13399,016,37890,872,00002,117,632stderr