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 20:42Yuriy LyfenkoYuriy LyfenkoScore: 5,856Success
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 20:425,637597,914,936163,480,316027,426,816
2Sep 22, 2021 20:425,690458,707,345165,012,304027,443,200
3Sep 22, 2021 20:425,700461,532,056165,309,346027,443,200
4Sep 22, 2021 20:425,829356,591,588137,227,00031,820,00033,763,328
5Sep 22, 2021 20:425,838376,493,485138,237,00031,053,00033,796,096
6Sep 22, 2021 20:425,843380,498,581133,620,00035,825,00033,832,960
7Sep 22, 2021 20:425,856357,500,553142,201,00027,621,00033,816,576
8Sep 22, 2021 20:425,859373,173,443139,742,00030,160,00034,127,872
9Sep 22, 2021 20:425,859361,896,547144,019,00025,902,00033,742,848
10Sep 22, 2021 20:425,862364,111,115144,081,00025,913,00033,501,184
11Sep 22, 2021 20:425,870371,541,290143,969,00026,271,00034,111,488
12Sep 22, 2021 20:425,891386,412,459141,163,00029,664,00034,058,240