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 26, 2021 07:53Ilya AniskovetsIlya AniskovetsScore: 6,026Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 26, 2021 07:535,849426,624,970169,617,902027,455,488
2Sep 26, 2021 07:535,888501,208,885170,737,748027,451,392
3Sep 26, 2021 07:535,912486,015,457171,459,993027,459,584
4Sep 26, 2021 07:535,990380,712,173140,958,00032,757,00033,587,200
5Sep 26, 2021 07:536,016383,661,999145,728,00028,735,00033,894,400
6Sep 26, 2021 07:536,020379,862,720145,986,00028,584,00033,980,416
7Sep 26, 2021 07:536,026376,558,160142,612,00032,138,00033,894,400
8Sep 26, 2021 07:536,031366,114,766145,419,00029,490,00033,648,640
9Sep 26, 2021 07:536,035364,461,300149,702,00025,301,00034,013,184
10Sep 26, 2021 07:536,036385,183,216144,681,00030,352,00033,959,936
11Sep 26, 2021 07:536,062376,123,557150,690,00025,115,00034,009,088
12Sep 26, 2021 07:536,074387,617,609147,135,00029,012,00034,205,696