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 listSep 20, 2021 20:49Ilya AniskovetsIlya AniskovetsScore: 5,912Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 20:495,858379,196,305137,095,00032,783,00033,685,504
2Sep 20, 2021 20:495,872378,626,146143,293,00026,997,00033,697,792
3Sep 20, 2021 20:495,877368,107,854146,236,00024,197,00034,156,544
4Sep 20, 2021 20:495,882355,868,622134,523,00036,067,00034,242,560
5Sep 20, 2021 20:495,897359,189,513145,684,00025,336,00033,947,648
6Sep 20, 2021 20:495,912381,729,917143,562,00027,886,00033,640,448
7Sep 20, 2021 20:495,912382,846,689143,397,00028,055,00033,812,480
8Sep 20, 2021 20:495,918383,846,144146,344,00025,268,00033,943,552
9Sep 20, 2021 20:495,924373,931,756147,395,00024,389,00033,411,072
10Sep 20, 2021 20:496,296464,713,772182,573,413027,451,392
11Sep 20, 2021 20:496,336497,923,878183,741,860027,459,584
12Sep 20, 2021 20:496,354481,626,362184,270,492027,459,584