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 29, 2021 16:25Yuriy LyfenkoYuriy LyfenkoScore: 5,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 16:255,481477,226,090158,945,333027,463,680
2Sep 29, 2021 16:255,519444,698,079160,062,664027,455,488
3Sep 29, 2021 16:255,526457,821,437160,259,043027,455,488
4Sep 29, 2021 16:255,526370,424,948126,821,00033,425,00033,488,896
5Sep 29, 2021 16:255,548348,649,787134,083,00026,816,00033,603,584
6Sep 29, 2021 16:255,553358,950,955126,875,00034,158,00034,013,184
7Sep 29, 2021 16:255,556378,061,701136,896,00024,220,00034,111,488
8Sep 29, 2021 16:255,560368,283,173130,185,00031,044,00033,439,744
9Sep 29, 2021 16:255,563367,388,679127,681,00033,652,00034,242,560
10Sep 29, 2021 16:255,571357,203,199130,069,00031,501,00034,242,560
11Sep 29, 2021 16:255,572367,237,061134,494,00027,107,00034,086,912
12Sep 29, 2021 16:255,590372,615,894135,088,00027,017,00033,685,504