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 11, 2026 23:38Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:53Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:00045,111,75434,134,0001,020,0002,113,536line 5: expected -10 got 0
2Sep 9, 2026 09:00045,051,78534,109,0001,018,0002,113,536line 5: expected -10 got 0
3Sep 9, 2026 09:00045,185,76134,173,0001,021,0002,113,536line 5: expected -10 got 0
4Apr 11, 2026 23:383,894137,048,896110,927,0001,998,0002,392,064
5Apr 11, 2026 23:383,895135,224,430111,964,000999,0002,387,968
6Apr 11, 2026 23:383,896133,430,869110,981,0001,999,0002,281,472
7Apr 11, 2026 23:383,897133,360,607112,020,0001,000,0002,494,464
8Apr 11, 2026 23:383,899137,943,712112,085,0001,000,0002,281,472
9Apr 11, 2026 23:383,901136,183,215112,123,0001,001,0002,379,776
10Apr 11, 2026 23:383,902140,414,731111,163,0002,002,0002,281,472
11Apr 11, 2026 23:383,938136,477,194114,206,00002,265,088
12Apr 11, 2026 23:383,947140,814,259113,456,000995,0002,387,968