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 21, 2026 18:42Charles CabergsCharles CabergsScore: 4,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 18:424,265141,044,948121,692,0002,011,0002,510,848
2Apr 21, 2026 18:424,266139,774,120121,722,0002,011,0002,514,944
3Apr 21, 2026 18:424,270143,117,146120,855,0002,996,0002,314,240
4Apr 21, 2026 18:424,272142,885,276120,912,0002,997,0002,523,136
5Apr 21, 2026 18:424,273142,654,362121,942,0001,999,0002,314,240
6Apr 21, 2026 18:424,274142,083,657120,952,0002,998,0002,523,136
7Apr 21, 2026 18:424,277144,734,458121,055,0003,001,0002,510,848
8Apr 21, 2026 18:424,279144,300,805121,090,0003,002,0002,322,432
9Apr 21, 2026 18:424,282143,616,591121,187,0003,004,0002,510,848