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:41Yuriy LyfenkoYuriy LyfenkoScore: 6,227Success
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:415,686451,633,316164,888,598027,455,488
2Sep 22, 2021 03:415,725490,499,018166,026,144027,455,488
3Sep 22, 2021 03:415,732494,865,050166,226,615027,455,488
4Sep 22, 2021 03:416,200366,358,936146,572,00033,223,00033,783,808
5Sep 22, 2021 03:416,204389,434,514144,900,00035,009,00033,828,864
6Sep 22, 2021 03:416,226370,867,759150,303,00030,262,00034,013,184
7Sep 22, 2021 03:416,227385,116,789148,489,00032,105,00033,587,200
8Sep 22, 2021 03:416,230386,887,939156,654,00024,020,00033,374,208
9Sep 22, 2021 03:416,230381,742,299149,567,00031,117,00034,263,040
10Sep 22, 2021 03:416,235394,618,074151,351,00029,457,00033,943,552
11Sep 22, 2021 03:416,235396,333,238152,926,00027,898,00034,369,536
12Sep 22, 2021 03:416,244385,664,771151,411,00029,668,00034,045,952