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 18:53Ilya AniskovetsIlya AniskovetsScore: 6,299Success
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 18:536,256394,999,346150,520,00030,901,00033,890,304
2Sep 20, 2021 18:536,273367,772,332152,439,00029,471,00033,587,200
3Sep 20, 2021 18:536,281376,041,385145,911,00036,233,00033,488,896
4Sep 20, 2021 18:536,282397,197,346150,974,00031,201,00033,996,800
5Sep 20, 2021 18:536,290390,185,010155,471,00026,948,00033,980,416
6Sep 20, 2021 18:536,296497,132,373182,578,980027,451,392
7Sep 20, 2021 18:536,299398,064,415151,391,00031,287,00034,238,464
8Sep 20, 2021 18:536,299400,666,461157,627,00025,053,00033,849,344
9Sep 20, 2021 18:536,309370,266,812153,474,00029,475,00034,357,248
10Sep 20, 2021 18:536,329399,653,595154,672,00028,872,00034,160,640
11Sep 20, 2021 18:536,342552,384,268183,913,300027,455,488
12Sep 20, 2021 18:536,381512,573,821185,041,756027,451,392