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:16Ilya AniskovetsIlya AniskovetsScore: 6,271Success
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:166,238381,564,863150,245,00030,662,00033,816,576
2Sep 20, 2021 18:166,246376,176,516155,119,00026,026,00033,427,456
3Sep 20, 2021 18:166,253399,696,889155,443,00025,907,00034,230,272
4Sep 20, 2021 18:166,255393,892,906155,338,00026,063,00033,591,296
5Sep 20, 2021 18:166,266481,986,225181,711,145027,463,680
6Sep 20, 2021 18:166,266398,406,045153,997,00027,719,00033,947,648
7Sep 20, 2021 18:166,271376,589,676150,721,00031,149,00034,246,656
8Sep 20, 2021 18:166,272393,191,987152,260,00029,634,00034,136,064
9Sep 20, 2021 18:166,288396,412,201156,309,00026,051,00034,926,592
10Sep 20, 2021 18:166,314401,886,494154,314,00028,805,00034,406,400
11Sep 20, 2021 18:166,329460,473,482183,544,185027,443,200
12Sep 20, 2021 18:166,369491,627,469184,705,201027,463,680