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 21, 2021 22:59Yuriy LyfenkoYuriy LyfenkoScore: 6,219Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 22:595,967474,471,293173,028,849027,344,896
2Sep 21, 2021 22:596,020497,880,092174,574,894027,455,488
3Sep 21, 2021 22:596,031497,443,755174,912,675027,402,240
4Sep 21, 2021 22:596,190377,929,645157,461,00022,044,00034,271,232
5Sep 21, 2021 22:596,204389,322,778152,148,00027,756,00033,898,496
6Sep 21, 2021 22:596,205393,274,192151,474,00028,465,00033,894,400
7Sep 21, 2021 22:596,219393,149,154151,661,00028,692,00033,898,496
8Sep 21, 2021 22:596,226378,729,197151,146,00029,417,00034,242,560
9Sep 21, 2021 22:596,241378,719,542149,828,00031,172,00033,816,576
10Sep 21, 2021 22:596,244394,364,318150,891,00030,178,00034,205,696
11Sep 21, 2021 22:596,253395,185,694150,103,00031,229,00033,927,168
12Sep 21, 2021 22:596,285394,868,559161,765,00020,490,00034,390,016