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 19:48TudyMTudyMScore: 4,716Success
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 19:524,712155,875,196135,570,0001,081,0002,355,200
2May 3, 2026 19:524,712153,038,361135,578,0001,086,0002,363,392
3May 3, 2026 19:524,713151,857,411135,617,0001,071,0002,367,488
4May 3, 2026 19:524,715152,902,593135,619,0001,128,0002,367,488
5May 3, 2026 19:524,716155,684,060135,684,0001,098,0002,367,488
6May 3, 2026 19:524,716152,315,587135,694,0001,085,0002,375,680
7May 3, 2026 19:524,716152,275,674135,708,0001,060,0002,367,488
8May 3, 2026 19:524,730152,298,328136,138,0001,050,0002,363,392
9May 3, 2026 19:524,731155,406,979136,135,0001,078,0002,371,584