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 04:08Yuriy LyfenkoYuriy LyfenkoScore: 6,208Success
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 04:085,688515,071,992164,954,174027,455,488
2Sep 22, 2021 04:085,712475,796,638165,641,844027,463,680
3Sep 22, 2021 04:085,791505,341,038167,946,333027,463,680
4Sep 22, 2021 04:086,200383,831,481153,087,00026,713,00033,378,304
5Sep 22, 2021 04:086,202393,939,711150,547,00029,301,00033,857,536
6Sep 22, 2021 04:086,203377,121,855143,912,00035,978,00033,980,416
7Sep 22, 2021 04:086,208388,593,197156,744,00023,299,00033,951,744
8Sep 22, 2021 04:086,211383,335,596148,932,00031,195,00034,160,640
9Sep 22, 2021 04:086,216361,570,342145,972,00034,288,00033,964,032
10Sep 22, 2021 04:086,228368,609,953151,180,00029,424,00034,164,736
11Sep 22, 2021 04:086,229392,979,468152,937,00027,713,00033,980,416
12Sep 22, 2021 04:086,275399,404,381156,589,00025,392,00035,127,296