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:52Ilya AniskovetsIlya AniskovetsScore: 6,329Success
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:526,269555,136,319181,815,197027,451,392
2Sep 20, 2021 18:526,284482,659,706182,243,867027,459,584
3Sep 20, 2021 18:526,289391,896,826159,201,00023,194,00033,751,040
4Sep 20, 2021 18:526,297386,510,216157,722,00024,903,00033,980,416
5Sep 20, 2021 18:526,299541,011,889182,682,525027,459,584
6Sep 20, 2021 18:526,304390,757,031156,990,00025,820,00034,045,952
7Sep 20, 2021 18:526,329398,952,388158,219,00025,315,00033,980,416
8Sep 20, 2021 18:526,330382,778,631158,243,00025,318,00033,980,416
9Sep 20, 2021 18:526,339380,078,711152,693,00031,141,00034,275,328
10Sep 20, 2021 18:526,363400,663,957155,990,00028,547,00033,849,344
11Sep 20, 2021 18:526,385406,075,269147,945,00037,231,00035,782,656
12Sep 20, 2021 18:526,393377,474,844159,978,00025,427,00033,751,040