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 listAug 18, 2024 07:59Andrey LikhachevAndrey LikhachevScore: 9,370Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 18, 2024 07:599,329491,197,009270,527,501027,402,240
2Aug 18, 2024 07:599,339486,601,888270,832,370027,439,104
3Aug 18, 2024 07:599,362487,013,426271,498,870027,389,952
4Aug 18, 2024 07:599,370476,718,410271,716,064027,389,952
5Aug 18, 2024 07:599,381483,796,296272,057,729027,463,680
6Aug 18, 2024 07:599,388477,350,520272,264,967027,512,832