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 listOct 11, 2021 05:56Yuriy LyfenkoYuriy LyfenkoScore: 5,469Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 05:565,116467,928,665148,356,668027,447,296
2Oct 11, 2021 05:565,148495,522,899149,287,418027,443,200
3Oct 11, 2021 05:565,151491,012,043149,369,612027,443,200
4Oct 11, 2021 05:565,448355,618,713124,625,00033,364,00033,304,576
5Oct 11, 2021 05:565,463366,002,020127,537,00030,888,00033,484,800
6Oct 11, 2021 05:565,466368,857,390131,935,00026,591,00033,861,632
7Oct 11, 2021 05:565,469346,653,482130,796,00027,807,00033,955,840
8Oct 11, 2021 05:565,471360,218,655132,046,00026,613,00034,058,240
9Oct 11, 2021 05:565,475367,858,977133,700,00025,068,00033,800,192
10Oct 11, 2021 05:565,488349,529,821130,400,00028,749,00033,816,576
11Oct 11, 2021 05:565,497370,049,349132,504,00026,914,00034,058,240
12Oct 11, 2021 05:565,503375,054,907129,930,00029,669,00034,271,232