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 listMay 3, 2026 21:15TudyMTudyMScore: 4,123Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 21:154,118135,333,918118,382,0001,046,0002,371,584
2May 3, 2026 21:154,119137,339,493119,454,00002,371,584
3May 3, 2026 21:154,122136,142,038118,538,0001,027,0002,363,392
4May 3, 2026 21:154,122137,996,255118,504,0001,047,0002,367,488
5May 3, 2026 21:154,123138,922,971118,524,0001,046,0002,367,488
6May 3, 2026 21:154,124136,300,842118,578,0001,024,0002,375,680
7May 3, 2026 21:154,127136,121,027118,645,0001,040,0002,371,584
8May 3, 2026 21:154,128136,826,051118,675,0001,052,0002,363,392
9May 3, 2026 21:154,157138,679,393119,512,0001,041,0002,379,776