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 10:39Andrew TsibinAndrew TsibinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 16:46Tomislav Tunkovic213.27CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 16:570219,794,226207,337,0002,540,0002,113,536line 18: expected -485134232950496 got 485134232950490
2Sep 4, 2026 16:570220,652,071207,365,0002,493,0002,113,536line 20: expected 277882160536793 got -296335553819923
3Sep 4, 2026 16:570219,899,286207,549,0002,447,0002,113,536line 23: expected -914642892611879 got 916844803348163
4Jul 30, 2026 10:394,683145,948,059133,417,0002,415,0002,113,536
5Jul 30, 2026 10:394,689146,865,498133,594,0002,401,0002,113,536
6Jul 30, 2026 10:394,690146,197,837133,604,0002,407,0002,113,536