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 28, 2021 04:18Yuriy LyfenkoYuriy LyfenkoScore: 5,941Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 04:185,829480,681,094169,030,671027,443,200
2Sep 28, 2021 04:185,848523,775,401169,581,759027,443,200
3Sep 28, 2021 04:185,890553,699,668170,818,402027,447,296
4Sep 28, 2021 04:185,934359,188,621142,082,00030,017,00033,746,944
5Sep 28, 2021 04:185,938371,698,528138,750,00033,457,00033,595,392
6Sep 28, 2021 04:185,939354,706,932138,768,00033,461,00033,488,896
7Sep 28, 2021 04:185,941360,122,195146,330,00025,945,00033,746,944
8Sep 28, 2021 04:185,941386,724,226135,705,00036,573,00033,615,872
9Sep 28, 2021 04:185,950377,666,139142,456,00030,096,00034,054,144
10Sep 28, 2021 04:185,964386,470,581141,791,00031,174,00034,185,216
11Sep 28, 2021 04:185,977382,556,873140,469,00032,875,00033,828,864
12Sep 28, 2021 04:185,985379,744,570144,980,00028,587,00033,755,136