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 29, 2021 16:24Yuriy LyfenkoYuriy LyfenkoScore: 5,554Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 16:245,500452,650,366159,487,125027,463,680
2Sep 29, 2021 16:245,524352,376,723135,064,00025,128,00033,517,568
3Sep 29, 2021 16:245,525363,983,240129,363,00030,848,00033,882,112
4Sep 29, 2021 16:245,533364,745,027132,865,00027,595,00033,742,848
5Sep 29, 2021 16:245,536477,898,548160,545,735027,467,776
6Sep 29, 2021 16:245,540368,567,694137,264,00023,409,00033,632,256
7Sep 29, 2021 16:245,554368,312,701127,671,00033,390,00033,751,040
8Sep 29, 2021 16:245,558471,392,127161,179,122027,455,488
9Sep 29, 2021 16:245,569364,351,068132,047,00029,456,00034,103,296
10Sep 29, 2021 16:245,571360,080,655127,867,00033,701,00033,849,344
11Sep 29, 2021 16:245,571361,359,225134,642,00026,928,00033,751,040
12Sep 29, 2021 16:245,590370,482,116132,731,00029,383,00034,750,464