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 22, 2021 13:26Yuriy LyfenkoYuriy LyfenkoScore: 6,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 13:266,003540,180,280174,073,212027,451,392
2Sep 22, 2021 13:266,054499,403,987175,554,357027,451,392
3Sep 22, 2021 13:266,078552,526,096176,261,934027,455,488
4Sep 22, 2021 13:266,397394,616,225161,414,00024,107,00033,550,336
5Sep 22, 2021 13:266,397380,935,459157,850,00027,675,00033,988,608
6Sep 22, 2021 13:266,399370,375,279153,635,00031,924,00033,488,896
7Sep 22, 2021 13:266,410403,952,178150,663,00035,220,00033,976,320
8Sep 22, 2021 13:266,411387,579,454152,293,00033,623,00034,013,184
9Sep 22, 2021 13:266,412389,486,275158,068,00027,894,00034,103,296
10Sep 22, 2021 13:266,417388,343,208159,201,00026,878,00033,976,320
11Sep 22, 2021 13:266,426392,102,237158,567,00027,800,00033,980,416
12Sep 22, 2021 13:266,440390,933,041159,936,00026,828,00034,111,488