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:47Ilya AniskovetsIlya AniskovetsScore: 5,560Success
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:475,255458,162,977152,382,478027,430,912
2Oct 11, 2021 05:485,263518,944,319152,617,382027,463,680
3Oct 11, 2021 05:475,265497,609,923152,694,427027,459,584
4Oct 11, 2021 05:485,301476,003,190153,733,701027,435,008
5Oct 11, 2021 05:475,305453,727,241153,836,167027,340,800
6Oct 11, 2021 05:485,337482,864,406154,768,086027,459,584
7Oct 11, 2021 05:485,533373,214,398125,656,00034,797,00033,886,208
8Oct 11, 2021 05:475,549351,718,565126,576,00034,342,00034,242,560
9Oct 11, 2021 05:475,552374,067,289135,039,00025,969,00034,275,328
10Oct 11, 2021 05:485,554352,105,551132,333,00028,723,00033,984,512
11Oct 11, 2021 05:485,558372,223,144126,786,00034,399,00033,951,744
12Oct 11, 2021 05:475,559346,754,699126,800,00034,403,00033,984,512
13Oct 11, 2021 05:485,560340,117,805133,517,00027,730,00033,935,360
14Oct 11, 2021 05:475,561352,263,958134,218,00027,051,00034,263,040
15Oct 11, 2021 05:485,563377,299,691131,726,00029,612,00034,213,888
16Oct 11, 2021 05:475,571372,437,734131,065,00030,480,00033,984,512
17Oct 11, 2021 05:485,572368,164,212128,663,00032,913,00034,095,104
18Oct 11, 2021 05:475,573364,653,997133,644,00027,972,00033,931,264
19Oct 11, 2021 05:475,574373,905,802132,828,00028,830,00033,714,176
20Oct 11, 2021 05:485,574370,163,493132,823,00028,829,00034,402,304
21Oct 11, 2021 05:485,586373,649,241135,866,00026,128,00033,968,128
22Oct 11, 2021 05:485,621356,727,722131,435,00031,585,00033,853,440
23Oct 11, 2021 05:475,622380,508,485138,380,00024,672,00034,672,640
24Oct 11, 2021 05:475,637370,635,913134,857,00028,606,00033,722,368