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 03:30Yuriy LyfenkoYuriy LyfenkoScore: 6,277Success
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 03:305,716485,107,086165,761,684027,447,296
2Sep 22, 2021 03:305,759478,408,701167,014,405027,455,488
3Sep 22, 2021 03:305,768522,208,727167,272,908027,463,680
4Sep 22, 2021 03:306,250367,923,642148,555,00032,682,00033,681,408
5Sep 22, 2021 03:306,263373,997,515153,924,00027,706,00033,644,544
6Sep 22, 2021 03:306,277400,033,151142,954,00039,074,00033,828,864
7Sep 22, 2021 03:306,277370,680,848153,404,00028,635,00034,435,072
8Sep 22, 2021 03:306,278397,148,865150,043,00032,009,00033,648,640
9Sep 22, 2021 03:306,291397,474,489152,029,00030,405,00033,910,784
10Sep 22, 2021 03:306,308397,012,660150,763,00032,162,00034,508,800
11Sep 22, 2021 03:306,309407,325,654150,795,00032,169,00033,857,536
12Sep 22, 2021 03:306,350400,306,168152,784,00031,366,00035,328,000