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 05:41Victor MerckléVictor MerckléScore: 3,509Success
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 05:423,505122,118,73299,677,0001,993,0002,519,040
2Apr 30, 2026 05:423,505121,149,129100,650,0001,006,0002,527,232
3Apr 30, 2026 05:423,506118,019,63199,691,0001,993,0002,531,328
4Apr 30, 2026 05:423,507120,777,06699,720,0001,994,0002,523,136
5Apr 30, 2026 05:423,509126,703,02799,794,0001,995,0002,523,136
6Apr 30, 2026 05:423,510121,506,38599,817,0001,996,0002,338,816
7Apr 30, 2026 05:423,510119,335,30899,800,0001,996,0002,527,232
8Apr 30, 2026 05:423,511119,592,35799,830,0001,996,0002,531,328
9Apr 30, 2026 05:423,511121,155,43699,823,0001,996,0002,527,232