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 listDec 23, 2024 23:15Joad NacerJoad NacerError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 17:00C#_user18.55CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 17:0009,799,346800,000020,480No answer to stdout. Died or killed?
2Dec 23, 2024 23:156,686218,792,487192,889,000999,0002,539,520
3Dec 23, 2024 23:156,686217,601,723192,908,000999,0002,527,232
4Dec 23, 2024 23:156,689215,773,707192,978,000999,0002,437,120
5Dec 23, 2024 23:156,689218,449,829192,992,000999,0002,277,376
6Dec 23, 2024 23:156,690220,492,545194,014,00002,527,232
7Dec 23, 2024 23:156,690215,669,129194,019,00002,277,376
8Dec 23, 2024 23:156,691217,401,800194,027,00002,527,232
9Dec 23, 2024 23:156,693221,499,635191,105,0003,001,0002,433,024
10Dec 23, 2024 23:156,698217,170,829193,229,0001,001,0002,277,376