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 14:04Yuriy LyfenkoYuriy LyfenkoScore: 6,142Success
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 14:045,808464,018,600168,442,114027,455,488
2Sep 22, 2021 14:045,870552,290,894170,236,195027,451,392
3Sep 22, 2021 14:045,900512,962,090171,096,753027,455,488
4Sep 22, 2021 14:046,134396,927,426156,592,00021,305,00033,595,392
5Sep 22, 2021 14:046,136376,962,096151,362,00026,590,00034,308,096
6Sep 22, 2021 14:046,139371,668,688156,711,00021,321,00033,894,400
7Sep 22, 2021 14:046,142368,422,576144,469,00033,643,00033,894,400
8Sep 22, 2021 14:046,149357,214,883147,928,00030,396,00033,976,320
9Sep 22, 2021 14:046,152381,247,007151,586,00026,811,00034,156,544
10Sep 22, 2021 14:046,154381,277,385148,895,00029,575,00034,136,064
11Sep 22, 2021 14:046,162376,449,673150,797,00027,887,00033,902,592
12Sep 22, 2021 14:046,179390,981,251143,752,00035,445,00034,750,464