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 04:07Yuriy LyfenkoYuriy LyfenkoScore: 6,185Success
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 04:075,731494,279,491166,204,117027,455,488
2Sep 22, 2021 04:075,761472,126,568167,070,521027,455,488
3Sep 22, 2021 04:075,799507,350,697168,162,725027,451,392
4Sep 22, 2021 04:076,164384,050,964147,959,00030,783,00033,591,296
5Sep 22, 2021 04:076,173391,240,622149,678,00029,328,00033,488,896
6Sep 22, 2021 04:076,175386,730,534152,164,00026,913,00033,722,368
7Sep 22, 2021 04:076,185368,138,955150,825,00028,534,00034,013,184
8Sep 22, 2021 04:076,188376,855,425151,771,00027,688,00033,746,944
9Sep 22, 2021 04:076,194380,543,093149,188,00030,446,00033,751,040
10Sep 22, 2021 04:076,198378,667,291154,673,00025,082,00033,632,256
11Sep 22, 2021 04:076,209385,277,008151,425,00028,647,00034,693,120
12Sep 22, 2021 04:076,238392,112,415157,626,00023,273,00033,894,400