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 13:49Yuriy LyfenkoYuriy LyfenkoScore: 6,068Success
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 13:495,764423,863,129167,148,796027,447,296
2Sep 22, 2021 13:495,786472,087,719167,791,540027,451,392
3Sep 22, 2021 13:495,787483,981,946167,809,952027,455,488
4Sep 22, 2021 13:496,066385,529,176149,002,00026,903,00033,587,200
5Sep 22, 2021 13:496,067354,078,705138,457,00037,498,00033,464,320
6Sep 22, 2021 13:496,068368,680,037147,316,00028,644,00034,258,944
7Sep 22, 2021 13:496,068357,515,755146,465,00029,496,00033,714,176
8Sep 22, 2021 13:496,074379,078,834151,885,00024,259,00033,374,208
9Sep 22, 2021 13:496,080385,393,464146,083,00030,224,00033,849,344
10Sep 22, 2021 13:496,085387,374,107142,952,00033,519,00034,242,560
11Sep 22, 2021 13:496,094395,216,348147,969,00028,771,00034,230,272
12Sep 22, 2021 13:496,100394,556,704150,891,00026,015,00034,951,168