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 25, 2021 16:40Yuriy LyfenkoYuriy LyfenkoScore: 5,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2021 16:405,416415,657,583157,063,995027,430,912
2Sep 25, 2021 16:405,461473,291,268158,368,571027,480,064
3Sep 25, 2021 16:405,480458,227,944158,928,571027,439,104
4Sep 25, 2021 16:405,721368,978,796137,761,00028,155,00033,771,520
5Sep 25, 2021 16:405,722356,151,350140,019,00025,929,00033,841,152
6Sep 25, 2021 16:405,732362,713,769133,168,00033,049,00033,763,328
7Sep 25, 2021 16:405,732366,754,236132,786,00033,442,00033,484,800
8Sep 25, 2021 16:405,740363,082,647140,461,00026,011,00033,705,984
9Sep 25, 2021 16:405,743368,763,116140,675,00025,859,00033,546,240
10Sep 25, 2021 16:405,743382,019,062145,060,00021,490,00033,959,936
11Sep 25, 2021 16:405,799385,180,177139,457,00028,711,00033,763,328
12Sep 25, 2021 16:405,808384,516,448138,640,00029,782,00033,787,904