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:18TudyMTudyMScore: 4,706Success
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:194,701151,133,293136,331,00002,367,488
2May 3, 2026 20:194,701152,270,740136,329,00002,359,296
3May 3, 2026 20:194,701153,416,362136,353,00002,375,680
4May 3, 2026 20:194,705155,771,952136,450,00002,359,296
5May 3, 2026 20:194,706152,115,601135,464,0001,031,0002,359,296
6May 3, 2026 20:194,706150,828,855135,486,0001,014,0002,363,392
7May 3, 2026 20:194,708154,921,794135,508,0001,047,0002,371,584
8May 3, 2026 20:194,709153,008,250135,486,0001,078,0002,359,296
9May 3, 2026 20:194,720153,098,849135,895,0001,008,0002,367,488