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 listOct 7, 2026 16:57Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2026 16:570195,798,858186,829,000020,480line 0: expected -65390696642 got n5000000 g8312979 c2973480 c3437564 o21016829 o542706 dv692843 dvp274685 glen26006175 L1432 L13628 L137106 L1372232 L3475602 L0
2Oct 7, 2026 16:570195,736,196186,707,000020,480line 0: expected 34216428921 got n5000000 g8313416 c2974177 c3437893 o21017820 o542999 dv692943 dvp274357 glen26006695 L1463 L13664 L137362 L1373427 L3474084 L0
3Oct 7, 2026 16:570195,752,904186,733,000020,480line 0: expected -65378902008 got n5000000 g8313271 c2974597 c3437345 o21017623 o542703 dv693100 dvp274858 glen26009018 L1456 L13740 L138213 L1373881 L3472710 L0