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 20:32TudyMTudyMScore: 4,428Success
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 20:344,422143,482,486127,242,0001,022,0002,375,680
2May 3, 2026 20:344,424143,328,395127,305,0001,013,0002,367,488
3May 3, 2026 20:344,424144,658,416128,318,00002,367,488
4May 3, 2026 20:344,428147,521,862127,378,0001,040,0002,375,680
5May 3, 2026 20:344,428146,995,563127,388,0001,047,0002,363,392
6May 3, 2026 20:344,429144,372,250127,434,0001,014,0002,363,392
7May 3, 2026 20:344,429148,044,560127,398,0001,066,0002,359,296
8May 3, 2026 20:344,429144,670,342127,411,0001,032,0002,363,392
9May 3, 2026 20:344,433146,161,200127,544,0001,039,0002,363,392