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 14:47olliecrowolliecrowScore: 3,665Success
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 14:473,663121,566,959105,249,0001,002,0002,478,080
2Apr 28, 2026 14:473,663122,584,749105,234,0001,002,0002,482,176
3Apr 28, 2026 14:473,664118,746,112106,281,00002,334,720
4Apr 28, 2026 14:473,664122,995,298105,265,0001,002,0002,482,176
5Apr 28, 2026 14:473,665125,868,474105,299,0001,002,0002,486,272
6Apr 28, 2026 14:473,665123,585,465105,285,0001,002,0002,482,176
7Apr 28, 2026 14:473,665122,607,326105,307,0001,002,0002,473,984
8Apr 28, 2026 14:473,668120,675,878105,379,0001,003,0002,334,720
9Apr 28, 2026 14:473,668118,739,795105,384,0001,003,0002,478,080