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:34Yuriy LyfenkoYuriy LyfenkoScore: 6,273Success
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:345,693504,071,171165,097,239027,467,776
2Sep 22, 2021 13:345,773504,628,845167,426,364027,455,488
3Sep 22, 2021 13:345,789508,516,399167,880,573027,451,392
4Sep 22, 2021 13:346,250383,191,936148,559,00032,683,00033,734,656
5Sep 22, 2021 13:346,254372,805,817151,129,00030,225,00033,902,592
6Sep 22, 2021 13:346,270395,514,850155,120,00026,709,00033,996,800
7Sep 22, 2021 13:346,273390,445,679153,305,00028,616,00034,025,472
8Sep 22, 2021 13:346,274386,063,643152,634,00029,313,00033,644,544
9Sep 22, 2021 13:346,278369,743,392146,227,00035,830,00033,906,688
10Sep 22, 2021 13:346,284394,151,627156,203,00026,033,00033,947,648
11Sep 22, 2021 13:346,286373,697,488153,087,00029,207,00033,550,336
12Sep 22, 2021 13:346,323396,318,011148,071,00035,301,00033,878,016