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 21:53Victor MerckléVictor MerckléScore: 3,569Success
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 21:543,566119,015,342102,421,0001,004,0002,523,136
2Apr 29, 2026 21:543,568121,715,152102,487,0001,004,0002,330,624
3Apr 29, 2026 21:543,568122,823,017102,480,0001,004,0002,527,232
4Apr 29, 2026 21:543,569119,179,187102,502,0001,004,0002,342,912
5Apr 29, 2026 21:543,569122,127,794102,515,0001,005,0002,527,232
6Apr 29, 2026 21:543,570123,753,948102,531,0001,005,0002,531,328
7Apr 29, 2026 21:543,573119,498,031102,634,0001,006,0002,531,328
8Apr 29, 2026 21:543,577120,818,640101,751,0001,995,0002,519,040
9Apr 29, 2026 21:543,577124,194,590101,752,0001,995,0002,523,136