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:24TudyMTudyMScore: 4,225Success
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:244,220142,044,501121,335,0001,051,0002,375,680
2May 3, 2026 21:244,221140,607,477121,396,0001,029,0002,371,584
3May 3, 2026 21:244,222139,340,377122,444,00002,367,488
4May 3, 2026 21:244,222138,870,766121,356,0001,103,0002,375,680
5May 3, 2026 21:244,225140,150,318121,501,0001,045,0002,359,296
6May 3, 2026 21:244,226141,707,052121,464,0001,112,0002,359,296
7May 3, 2026 21:244,226141,988,832121,537,0001,045,0002,375,680
8May 3, 2026 21:244,227140,805,126121,537,0001,065,0002,359,296
9May 3, 2026 21:244,228139,032,656121,575,0001,045,0002,359,296