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:21TudyMTudyMScore: 4,711Success
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:224,697152,268,647136,241,00002,359,296
2May 3, 2026 20:224,701153,026,312135,318,0001,035,0002,371,584
3May 3, 2026 20:224,710153,370,944135,581,0001,037,0002,379,776
4May 3, 2026 20:224,711152,137,263135,589,0001,032,0002,371,584
5May 3, 2026 20:224,711151,640,133135,595,0001,029,0002,367,488
6May 3, 2026 20:224,711150,708,291135,584,0001,052,0002,363,392
7May 3, 2026 20:224,712155,458,533135,614,0001,055,0002,367,488
8May 3, 2026 20:224,713154,254,979136,701,00002,371,584
9May 3, 2026 20:224,715154,565,980135,682,0001,066,0002,367,488