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 10:59Charles CabergsCharles CabergsScore: 3,762Success
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 11:003,761128,530,992106,081,0003,002,0002,523,136stderr
2Apr 28, 2026 11:003,761126,116,377106,095,0003,002,0002,531,328stderr
3Apr 28, 2026 11:003,761126,225,802106,079,0003,002,0002,523,136stderr
4Apr 28, 2026 11:003,762128,259,832106,101,0003,002,0002,506,752stderr
5Apr 28, 2026 11:003,762129,853,900106,115,0003,003,0002,519,040stderr
6Apr 28, 2026 11:003,762126,555,831107,117,0002,002,0002,514,944stderr
7Apr 28, 2026 11:003,766127,609,583107,211,0002,003,0002,523,136stderr
8Apr 28, 2026 11:003,767124,446,878106,258,0003,007,0002,510,848stderr
9Apr 28, 2026 11:003,770126,843,582106,348,0003,009,0002,527,232stderr