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 20, 2021 18:52Ilya AniskovetsIlya AniskovetsScore: 6,295Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:526,220380,318,900150,993,00029,388,00033,488,896
2Sep 20, 2021 18:526,229397,312,760144,703,00035,933,00033,845,248
3Sep 20, 2021 18:526,274396,634,055149,960,00031,991,00033,910,784
4Sep 20, 2021 18:526,286406,167,727154,498,00027,809,00033,959,936
5Sep 20, 2021 18:526,287370,398,976159,943,00022,392,00033,701,888
6Sep 20, 2021 18:526,291378,955,174154,604,00027,828,00034,111,488
7Sep 20, 2021 18:526,295369,381,812150,634,00031,922,00033,910,784
8Sep 20, 2021 18:526,295390,406,483154,717,00027,849,00034,013,184
9Sep 20, 2021 18:526,301392,254,331149,773,00032,950,00033,816,576
10Sep 20, 2021 18:526,344489,976,582183,966,865027,443,200
11Sep 20, 2021 18:526,395522,195,593185,443,295027,455,488
12Sep 20, 2021 18:526,426490,755,093186,340,008027,459,584