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:20Andrew TsibinAndrew TsibinScore: 8,188Success
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:208,181247,523,890230,054,0007,197,0002,117,632
2Jul 30, 2026 12:208,182247,531,475230,092,0007,191,0002,117,632
3Jul 30, 2026 12:208,185247,486,321230,176,0007,189,0002,117,632
4Jul 30, 2026 12:208,186247,576,568230,236,0007,181,0002,117,632
5Jul 30, 2026 12:208,188247,610,937230,226,0007,240,0002,117,632
6Jul 30, 2026 12:208,188247,662,349230,269,0007,193,0002,117,632
7Jul 30, 2026 12:208,189247,681,448230,300,0007,207,0002,117,632
8Jul 30, 2026 12:208,192247,685,483230,367,0007,201,0002,117,632
9Jul 30, 2026 12:208,195247,789,078230,540,0007,125,0002,117,632