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 19:11Ilya AniskovetsIlya AniskovetsScore: 5,955Success
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 19:115,659697,836,441164,123,939027,451,392
2Sep 20, 2021 19:115,708458,075,660165,542,509027,451,392
3Sep 20, 2021 19:115,725506,691,207166,027,441027,455,488
4Sep 20, 2021 19:115,941372,527,723146,187,00026,104,00033,849,344
5Sep 20, 2021 19:115,943361,136,528141,093,00031,242,00034,222,080
6Sep 20, 2021 19:115,954381,621,165145,794,00026,884,00033,980,416
7Sep 20, 2021 19:115,955383,556,731138,353,00034,343,00033,587,200
8Sep 20, 2021 19:115,958385,875,448145,877,00026,899,00033,714,176
9Sep 20, 2021 19:115,958376,715,619139,828,00032,959,00034,504,704
10Sep 20, 2021 19:115,972365,105,839141,801,00031,398,00033,906,688
11Sep 20, 2021 19:115,979387,715,438141,322,00032,073,00034,172,928
12Sep 20, 2021 19:115,984380,187,248140,625,00032,912,00034,111,488