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 25, 2021 22:49Ilya AniskovetsIlya AniskovetsScore: 5,604Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2021 22:495,304495,270,491153,805,584027,459,584
2Sep 25, 2021 22:495,325482,304,525154,436,009027,455,488
3Sep 25, 2021 22:495,341428,917,157154,874,972027,447,296
4Sep 25, 2021 22:495,348479,753,430155,099,471027,455,488
5Sep 25, 2021 22:495,351516,704,480155,164,887027,394,048
6Sep 25, 2021 22:495,380497,287,906156,015,414027,455,488
7Sep 25, 2021 22:495,573354,695,186132,135,00029,476,00033,751,040
8Sep 25, 2021 22:495,587366,388,327130,208,00031,806,00033,640,448
9Sep 25, 2021 22:495,591377,814,254134,440,00027,709,00034,217,984
10Sep 25, 2021 22:495,592352,872,671142,715,00019,461,00033,456,128
11Sep 25, 2021 22:495,600375,076,916124,921,00037,476,00033,718,272
12Sep 25, 2021 22:495,603375,873,131130,586,00031,898,00033,787,904
13Sep 25, 2021 22:495,604347,862,857134,752,00027,773,00033,906,688
14Sep 25, 2021 22:495,608374,546,474133,820,00028,822,00034,013,184
15Sep 25, 2021 22:495,608366,339,465139,097,00023,539,00034,004,992
16Sep 25, 2021 22:495,612376,631,074136,677,00026,083,00033,853,440
17Sep 25, 2021 22:495,613361,541,505132,012,00030,769,00033,808,384
18Sep 25, 2021 22:495,614382,057,013133,123,00029,696,00034,111,488
19Sep 25, 2021 22:495,616368,290,938133,152,00029,703,00034,009,088
20Sep 25, 2021 22:495,617379,626,269130,123,00032,779,00033,902,592
21Sep 25, 2021 22:495,618353,127,066131,544,00031,368,00033,820,672
22Sep 25, 2021 22:495,628342,981,314136,364,00026,859,00033,456,128
23Sep 25, 2021 22:495,630378,789,957126,334,00036,928,00034,062,336
24Sep 25, 2021 22:495,648381,133,736135,633,00028,170,00033,587,200