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 10, 2026 12:40limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:35Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:35013,141,4501,215,0001,193,00020,480No answer to stdout. Died or killed?
2Apr 10, 2026 12:405,671188,576,645163,464,0001,002,0002,293,760
3Apr 10, 2026 12:405,671190,030,276163,471,0001,002,0002,293,760
4Apr 10, 2026 12:405,672183,089,463163,486,0001,002,0002,355,200
5Apr 10, 2026 12:405,674187,779,527163,535,0001,003,0002,293,760
6Apr 10, 2026 12:405,675196,021,669163,577,0001,003,0002,355,200
7Apr 10, 2026 12:405,677189,367,277163,625,0001,003,0002,359,296
8Apr 10, 2026 12:405,681187,165,841162,751,0001,996,0002,355,200
9Apr 10, 2026 12:405,684192,459,802163,830,000998,0002,293,760
10Apr 10, 2026 12:405,686191,751,891162,894,0001,998,0002,293,760