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 21, 2021 20:02Ilya AniskovetsIlya AniskovetsScore: 5,594Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 20:025,296462,307,626153,576,656027,463,680
2Sep 21, 2021 20:025,302444,272,351153,767,901027,455,488
3Sep 21, 2021 20:025,342496,389,435154,909,939027,459,584
4Sep 21, 2021 20:025,579358,698,430132,292,00029,511,00034,013,184
5Sep 21, 2021 20:025,582367,538,161130,908,00030,978,00033,980,416
6Sep 21, 2021 20:025,592347,780,753131,961,00030,220,00034,099,200
7Sep 21, 2021 20:025,594371,660,758129,388,00032,844,00033,701,888
8Sep 21, 2021 20:025,595371,454,786129,595,00032,646,00034,275,328
9Sep 21, 2021 20:025,623362,776,734130,266,00032,815,00034,504,704
10Sep 21, 2021 20:025,626378,472,687129,334,00033,825,00034,832,384
11Sep 21, 2021 20:025,646375,360,289131,780,00031,946,00033,619,968
12Sep 21, 2021 20:025,702355,579,575133,296,00032,071,00034,254,848