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 listAug 23, 2026 14:55Andrew EpsteinAndrew EpsteinScore: 8,219Success
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 05:14Tomislav Tunkovic89.69CustomSolution Held
Sep 4, 2026 20:48Tomislav Tunkovic89.69CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2026 14:568,153246,436,658235,421,0001,017,0002,113,536
2Aug 23, 2026 14:568,175247,069,343236,094,0001,005,0002,113,536
3Aug 23, 2026 14:568,210247,979,991237,092,0001,001,0002,113,536
4Aug 23, 2026 14:568,213248,131,363237,186,0001,005,0002,113,536
5Aug 23, 2026 14:568,219248,640,227237,352,0001,001,0002,113,536
6Aug 23, 2026 14:568,222248,399,255237,332,0001,122,0002,113,536
7Aug 23, 2026 14:568,231248,725,579237,716,0001,001,0002,113,536
8Aug 23, 2026 14:568,233248,697,649237,738,0001,026,0002,113,536
9Aug 23, 2026 14:568,264249,660,901238,660,0001,002,0002,113,536