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 11:09Andrew TsibinAndrew TsibinScore: 4,037Success
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 11:104,033127,112,024114,563,0002,400,0002,113,536
2Jul 30, 2026 11:104,036127,187,576114,624,0002,441,0002,113,536
3Jul 30, 2026 11:104,037127,206,371114,671,0002,407,0002,113,536
4Jul 30, 2026 11:104,037127,224,044114,694,0002,404,0002,113,536
5Jul 30, 2026 11:104,037127,190,128114,671,0002,402,0002,113,536
6Jul 30, 2026 11:104,038127,253,661114,707,0002,408,0002,113,536
7Jul 30, 2026 11:104,046127,524,427114,690,0002,650,0002,113,536
8Jul 30, 2026 11:104,050127,649,813115,051,0002,412,0002,113,536
9Jul 30, 2026 11:104,055127,781,493115,222,0002,393,0002,113,536