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 22, 2021 13:05Yuriy LyfenkoYuriy LyfenkoScore: 6,203Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 13:055,674441,671,310164,535,748027,455,488
2Sep 22, 2021 13:055,743509,952,206166,555,215027,451,392
3Sep 22, 2021 13:055,749484,678,603166,716,356027,455,488
4Sep 22, 2021 13:056,173362,609,714147,374,00031,650,00033,644,544
5Sep 22, 2021 13:056,195373,196,667152,083,00027,558,00033,570,816
6Sep 22, 2021 13:056,202380,442,121151,403,00028,451,00033,849,344
7Sep 22, 2021 13:056,203393,878,051148,740,00031,155,00034,217,984
8Sep 22, 2021 13:056,206386,017,321153,079,00026,892,00034,074,624
9Sep 22, 2021 13:056,212372,140,971157,771,00022,386,00033,927,168
10Sep 22, 2021 13:056,213390,554,728148,985,00031,206,00033,894,400
11Sep 22, 2021 13:056,233388,523,498155,535,00025,222,00034,426,880
12Sep 22, 2021 13:056,281402,499,800151,611,00030,525,00034,603,008