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 16:34Yuriy LyfenkoYuriy LyfenkoScore: 5,780Success
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 16:345,550514,461,749160,946,197027,447,296
2Sep 22, 2021 16:345,590486,070,213162,108,228027,447,296
3Sep 22, 2021 16:345,593454,969,590162,201,448027,447,296
4Sep 22, 2021 16:345,753373,662,321139,372,00027,467,00034,062,336
5Sep 22, 2021 16:345,759346,548,954137,020,00030,004,00033,742,848
6Sep 22, 2021 16:345,767378,822,977134,769,00032,462,00033,796,096
7Sep 22, 2021 16:345,780382,858,855140,029,00027,597,00034,054,144
8Sep 22, 2021 16:345,781376,729,585137,534,00030,117,00033,955,840
9Sep 22, 2021 16:345,782356,709,133135,121,00032,547,00033,808,384
10Sep 22, 2021 16:345,783381,051,714134,554,00033,151,00033,599,488
11Sep 22, 2021 16:345,789366,834,676143,002,00024,869,00033,943,552
12Sep 22, 2021 16:345,833377,462,962147,615,00021,549,00033,792,000