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 20, 2026 14:41olliecrowolliecrowScore: 3,719Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 14:423,714123,241,429106,714,0001,006,0002,273,280
2Apr 20, 2026 14:423,718136,090,402105,843,0001,997,0002,441,216
3Apr 20, 2026 14:423,718123,221,213105,834,0001,996,0002,273,280
4Apr 20, 2026 14:423,719122,938,583105,861,0001,997,0002,437,120
5Apr 20, 2026 14:423,719127,121,744105,871,0001,997,0002,273,280
6Apr 20, 2026 14:423,720123,180,048106,896,000999,0002,256,896
7Apr 20, 2026 14:423,722122,978,820105,952,0001,999,0002,273,280
8Apr 20, 2026 14:423,743121,264,915107,554,0001,005,0002,453,504
9Apr 20, 2026 14:423,743119,233,285107,551,0001,005,0002,273,280