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 listJul 30, 2026 12:16Andrew TsibinAndrew TsibinScore: 8,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2026 12:178,159247,015,760229,538,0007,098,0002,117,632
2Jul 30, 2026 12:178,160246,482,035229,563,0007,077,0002,121,728
3Jul 30, 2026 12:178,161246,572,922229,582,0007,106,0002,117,632
4Jul 30, 2026 12:178,162247,255,096229,618,0007,091,0002,121,728
5Jul 30, 2026 12:178,162247,178,561229,626,0007,086,0002,121,728
6Jul 30, 2026 12:178,162246,543,861229,608,0007,098,0002,117,632
7Jul 30, 2026 12:178,164247,359,884229,702,0007,069,0002,121,728
8Jul 30, 2026 12:178,166246,609,712229,722,0007,102,0002,121,728
9Jul 30, 2026 12:178,174246,877,116229,968,0007,089,0002,121,728