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 03:26Yuriy LyfenkoYuriy LyfenkoScore: 6,356Success
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 03:265,747449,548,136166,650,017027,455,488
2Sep 22, 2021 03:265,752436,937,154166,795,497027,459,584
3Sep 22, 2021 03:265,792451,688,685167,966,716027,459,584
4Sep 22, 2021 03:266,341364,919,007153,590,00030,313,00033,906,688
5Sep 22, 2021 03:266,349400,098,301155,478,00028,640,00033,902,592
6Sep 22, 2021 03:266,354369,428,797151,393,00032,868,00034,111,488
7Sep 22, 2021 03:266,356394,323,445153,088,00031,222,00033,751,040
8Sep 22, 2021 03:266,375399,526,724156,105,00028,756,00033,636,352
9Sep 22, 2021 03:266,375393,598,655152,069,00032,799,00033,734,656
10Sep 22, 2021 03:266,375396,044,339163,625,00021,250,00034,009,088
11Sep 22, 2021 03:266,385386,999,163158,115,00027,046,00034,164,736
12Sep 22, 2021 03:266,398403,455,398155,125,00030,416,00034,160,640