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 21, 2026 23:41olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 05:06Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 05:08045,019,10134,136,0001,030,0002,129,920line 5: expected -10 got 0
2Sep 9, 2026 05:08045,946,86834,947,0001,030,0002,134,016line 5: expected -10 got 0
3Sep 9, 2026 05:08045,059,31733,116,0002,052,0002,174,976line 5: expected -10 got 0
4Apr 21, 2026 23:434,900150,288,244140,100,0002,001,0002,379,776
5Apr 21, 2026 23:434,920150,810,031140,677,0002,009,0002,330,624
6Apr 21, 2026 23:434,928154,793,761140,928,0001,998,0002,306,048
7Apr 21, 2026 23:434,928150,108,320138,919,0003,997,0002,379,776
8Apr 21, 2026 23:434,932150,296,412141,040,0002,000,0002,379,776
9Apr 21, 2026 23:434,935150,207,908140,124,0003,002,0002,437,120
10Apr 21, 2026 23:434,936150,355,815139,157,0004,004,0002,359,296
11Apr 21, 2026 23:434,945150,580,512141,409,0002,005,0002,355,200
12Apr 21, 2026 23:434,946150,650,237142,431,0001,003,0002,363,392