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 listApr 18, 2026 12:01Charles CabergsCharles CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:41Haha Expert47.87CustomSolution Broken
Sep 9, 2026 08:12Tomislav Tunkovic47.87CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:44074,663,68961,691,0002,060,0002,113,536line 6: expected 17893889098008 got 1073692955
2Sep 9, 2026 08:44074,680,71261,627,0002,118,0002,113,536line 6: expected 17893889098008 got 1073692955
3Sep 9, 2026 08:44073,670,48262,488,0001,017,0002,113,536line 6: expected 17893889098008 got 1073692955
4Apr 18, 2026 12:016,174205,768,448177,053,0002,000,0002,457,600
5Apr 18, 2026 12:016,176203,707,223177,116,0002,001,0002,281,472
6Apr 18, 2026 12:016,177203,308,735177,127,0002,001,0002,461,696
7Apr 18, 2026 12:016,182212,797,460177,283,0001,991,0002,281,472
8Apr 18, 2026 12:016,183201,615,818178,303,0001,001,0002,281,472
9Apr 18, 2026 12:016,183205,100,168178,305,0001,001,0002,281,472
10Apr 18, 2026 12:016,185203,638,796178,364,0001,002,0002,457,600
11Apr 18, 2026 12:016,186202,969,067178,392,0001,002,0002,281,472
12Apr 18, 2026 12:016,200205,971,744177,816,0001,997,0002,281,472