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 28, 2021 08:13Ilya AniskovetsIlya AniskovetsScore: 5,543Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 08:135,243437,526,182152,035,878027,451,392
2Sep 28, 2021 08:185,252499,274,561152,318,131027,455,488
3Sep 28, 2021 08:185,280465,471,613153,119,479027,340,800
4Sep 28, 2021 08:135,288426,364,141153,354,506027,455,488
5Sep 28, 2021 08:185,289508,780,228153,381,945027,463,680
6Sep 28, 2021 08:135,294474,827,630153,520,509027,455,488
7Sep 28, 2021 08:185,499361,297,621127,786,00031,698,00033,701,888
8Sep 28, 2021 08:185,518349,201,065130,847,00029,189,00033,693,696
9Sep 28, 2021 08:135,526363,861,417133,540,00026,708,00033,849,344
10Sep 28, 2021 08:135,534360,592,054134,427,00026,051,00033,755,136
11Sep 28, 2021 08:185,535374,590,250131,232,00029,274,00034,107,392
12Sep 28, 2021 08:135,535349,561,742124,734,00035,776,00033,964,032
13Sep 28, 2021 08:185,543361,659,263139,319,00021,433,00033,910,784
14Sep 28, 2021 08:185,550367,467,626133,943,00026,996,00033,734,656
15Sep 28, 2021 08:135,551364,976,633122,649,00038,327,00033,865,728
16Sep 28, 2021 08:135,555363,089,773132,366,00028,730,00033,628,160
17Sep 28, 2021 08:185,558371,171,561129,944,00031,226,00033,968,128
18Sep 28, 2021 08:135,560372,393,873126,278,00034,969,00034,193,408
19Sep 28, 2021 08:185,560343,997,815129,992,00031,238,00033,976,320
20Sep 28, 2021 08:135,563368,160,830127,113,00034,222,00033,734,656
21Sep 28, 2021 08:185,574388,223,931131,346,00030,310,00035,274,752
22Sep 28, 2021 08:135,640357,569,697132,269,00031,300,00033,816,576
23Sep 28, 2021 08:135,641373,749,358132,290,00031,305,00034,963,456
24Sep 28, 2021 08:185,653372,526,878137,668,00026,272,00033,832,960