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 17:59Ilya AniskovetsIlya AniskovetsScore: 6,380Success
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 17:596,358383,037,368141,549,00042,837,00034,504,704
2Sep 20, 2021 17:596,364391,994,469151,814,00032,744,00034,050,048
3Sep 20, 2021 17:596,370395,878,210156,312,00028,420,00034,361,344
4Sep 20, 2021 17:596,374396,144,440160,679,00024,154,00033,898,496
5Sep 20, 2021 17:596,377379,752,870158,221,00026,712,00034,242,560
6Sep 20, 2021 17:596,380393,164,165158,134,00026,872,00033,718,272
7Sep 20, 2021 17:596,380387,908,455156,232,00028,779,00033,964,032
8Sep 20, 2021 17:596,384402,482,778153,273,00031,849,00033,980,416
9Sep 20, 2021 17:596,385512,751,255185,164,865027,451,392
10Sep 20, 2021 17:596,397396,292,906159,745,00025,765,00033,570,816
11Sep 20, 2021 17:596,412499,103,955185,946,578027,463,680
12Sep 20, 2021 17:596,438490,895,610186,699,554027,451,392