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 listFeb 22, 2026 07:18olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:13C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:13042,264,10230,283,0001,032,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 09:13042,379,96730,261,0001,032,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 09:13041,442,76730,179,0001,028,0002,117,632line 5: expected -10 got 0
4Feb 22, 2026 07:133,692128,379,023106,082,0001,000,0002,281,472
5Mar 22, 2026 21:333,692141,883,987106,079,0001,000,0002,523,136
6Mar 22, 2026 21:333,692129,497,807105,075,0002,001,0002,281,472
7Mar 22, 2026 21:333,692134,768,299105,075,0002,001,0002,281,472
8Mar 22, 2026 21:333,692137,403,274105,070,0002,001,0002,523,136
9Feb 22, 2026 07:133,693130,917,804105,103,0002,001,0002,285,568
10Mar 22, 2026 21:333,693127,342,184105,098,0002,001,0002,293,760
11Mar 22, 2026 21:333,693131,639,629105,097,0002,001,0002,523,136
12Mar 22, 2026 21:333,693130,250,655105,090,0002,001,0002,293,760
13Feb 22, 2026 07:223,693130,499,892105,089,0002,001,0002,285,568
14Feb 22, 2026 07:183,693129,591,390105,096,0002,001,0002,269,184
15Feb 22, 2026 07:133,693131,101,577105,105,0002,002,0002,269,184
16Feb 22, 2026 07:133,694135,176,639105,134,0002,002,0002,527,232
17Mar 22, 2026 21:333,694130,423,034105,125,0002,002,0002,514,944
18Feb 22, 2026 07:133,694136,703,231105,131,0002,002,0002,527,232
19Feb 22, 2026 07:133,694129,560,466105,117,0002,002,0002,285,568
20Feb 22, 2026 07:223,695128,927,681105,145,0002,002,0002,285,568
21Feb 22, 2026 07:183,695129,732,211105,147,0002,002,0002,285,568
22Feb 22, 2026 07:223,696133,177,330106,183,0001,001,0002,527,232
23Feb 22, 2026 07:183,697131,823,100105,215,0002,004,0002,527,232
24Feb 22, 2026 07:133,697131,499,905106,202,0001,001,0002,281,472
25Mar 22, 2026 21:333,698137,029,845106,239,0001,002,0002,523,136
26Feb 22, 2026 07:133,699129,862,429106,274,0001,002,0002,281,472
27Feb 22, 2026 07:133,699136,382,113105,254,0002,004,0002,523,136