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 20, 2021 18:14Ilya AniskovetsIlya AniskovetsScore: 6,312Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:146,276365,250,856156,158,00025,854,00033,644,544
2Sep 20, 2021 18:146,277524,452,972182,024,851027,467,776
3Sep 20, 2021 18:146,282493,884,708182,179,767027,455,488
4Sep 20, 2021 18:146,285375,724,878152,058,00030,210,00033,456,128
5Sep 20, 2021 18:146,287385,357,445148,988,00033,326,00034,631,680
6Sep 20, 2021 18:146,306395,853,013153,401,00029,461,00033,894,400
7Sep 20, 2021 18:146,312395,957,314155,114,00027,920,00033,636,352
8Sep 20, 2021 18:146,312406,255,876151,702,00031,351,00033,906,688
9Sep 20, 2021 18:146,313394,732,365149,238,00033,827,00033,640,448
10Sep 20, 2021 18:146,315395,418,562154,478,00028,644,00033,894,400
11Sep 20, 2021 18:146,323472,795,738183,356,582027,459,584
12Sep 20, 2021 18:146,329392,565,208153,965,00029,569,00033,550,336