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 13:06Yuriy LyfenkoYuriy LyfenkoScore: 6,200Success
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 13:065,682453,809,334164,779,260027,459,584
2Sep 22, 2021 13:065,736460,377,258166,337,693027,451,392
3Sep 22, 2021 13:065,764510,428,581167,154,121027,467,776
4Sep 22, 2021 13:066,178381,974,989148,976,00030,197,00033,632,256
5Sep 22, 2021 13:066,189367,802,024151,778,00027,689,00033,751,040
6Sep 22, 2021 13:066,198386,181,699138,559,00041,193,00034,242,560
7Sep 22, 2021 13:066,200381,756,359149,508,00030,305,00033,898,496
8Sep 22, 2021 13:066,203359,267,415151,275,00028,619,00033,456,128
9Sep 22, 2021 13:066,209405,491,511152,270,00027,779,00033,902,592
10Sep 22, 2021 13:066,221389,675,386147,691,00032,710,00033,947,648
11Sep 22, 2021 13:066,236398,282,667154,713,00026,134,00034,275,328
12Sep 22, 2021 13:066,245378,493,610150,744,00030,351,00034,017,280