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:40Yuriy LyfenkoYuriy LyfenkoScore: 6,294Success
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:405,680441,745,293164,729,631027,451,392
2Sep 22, 2021 13:405,739456,580,625166,436,660027,463,680
3Sep 22, 2021 13:405,797553,716,276168,118,910027,340,800
4Sep 22, 2021 13:406,268372,987,924155,223,00026,551,00034,013,184
5Sep 22, 2021 13:406,269389,796,304150,839,00030,967,00033,746,944
6Sep 22, 2021 13:406,287395,564,283152,939,00029,372,00033,902,592
7Sep 22, 2021 13:406,294390,738,516156,591,00025,925,00034,144,256
8Sep 22, 2021 13:406,296372,652,385154,191,00028,403,00033,947,648
9Sep 22, 2021 13:406,302399,795,307142,976,00039,768,00034,263,040
10Sep 22, 2021 13:406,329389,155,204154,661,00028,870,00034,729,984
11Sep 22, 2021 13:406,330381,843,098153,821,00029,738,00033,980,416
12Sep 22, 2021 13:406,330381,583,026159,437,00024,125,00033,980,416