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:39Yuriy LyfenkoYuriy LyfenkoScore: 6,112Success
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:395,909492,029,996171,362,103027,451,392
2Sep 22, 2021 13:395,923465,352,536171,757,614027,455,488
3Sep 22, 2021 13:395,944556,563,529172,386,548027,463,680
4Sep 22, 2021 13:396,097358,828,215144,846,00031,966,00033,964,032
5Sep 22, 2021 13:396,108387,090,528150,359,00026,776,00033,632,256
6Sep 22, 2021 13:396,111367,235,387146,183,00031,038,00033,587,200
7Sep 22, 2021 13:396,112386,047,404148,549,00028,685,00033,894,400
8Sep 22, 2021 13:396,129385,800,215146,135,00031,596,00033,701,888
9Sep 22, 2021 13:396,132365,347,607140,344,00037,489,00033,832,960
10Sep 22, 2021 13:396,135384,757,722150,136,00027,765,00033,910,784
11Sep 22, 2021 13:396,139383,348,790148,521,00029,500,00033,619,968
12Sep 22, 2021 13:396,157396,226,986143,037,00035,512,00034,205,696