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 listSep 7, 2026 07:19C#_userC#_userError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 22:10Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 22:14072,028,65453,444,0008,451,0002,158,592line 19: expected 1879141666098 got EOFstderr
2Sep 9, 2026 22:14061,076,25042,965,0008,127,0002,154,496line 15: expected 0 got EOFstderr
3Sep 9, 2026 22:14065,995,12148,830,0007,167,0002,158,592line 17: expected 970424585379 got EOFstderr
4Sep 7, 2026 07:229,535286,802,817255,789,00020,741,0002,150,400
5Sep 7, 2026 07:229,649290,557,548257,162,00022,664,0002,203,648
6Sep 7, 2026 07:229,666290,709,774256,738,00023,588,0002,150,400
7Sep 7, 2026 07:229,788294,412,152259,269,00024,609,0002,150,400
8Sep 7, 2026 07:229,807297,484,543257,668,00026,750,0002,154,496
9Sep 7, 2026 07:229,896297,380,201258,909,00028,081,0002,150,400
10Sep 7, 2026 07:229,987299,718,696261,141,00028,506,0002,154,496
11Sep 7, 2026 07:2210,028301,020,503261,271,00029,545,0002,154,496
12Sep 7, 2026 07:2210,054314,446,655262,096,00029,497,0002,154,496