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 21, 2021 05:41Yuriy LyfenkoYuriy LyfenkoScore: 6,235Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 05:416,197381,784,556145,539,00034,187,00033,644,544
2Sep 21, 2021 05:416,214388,763,895145,736,00034,464,00033,652,736
3Sep 21, 2021 05:416,217369,238,472156,039,00024,249,00033,898,496
4Sep 21, 2021 05:416,222371,111,816145,333,00035,114,00034,246,656
5Sep 21, 2021 05:416,223385,464,253146,149,00034,330,00033,865,728
6Sep 21, 2021 05:416,230375,230,609147,108,00033,568,00033,849,344
7Sep 21, 2021 05:416,235395,566,597151,515,00029,293,00034,480,128
8Sep 21, 2021 05:416,277398,493,508162,291,00019,738,00034,754,560
9Sep 21, 2021 05:416,301399,846,902151,088,00031,646,00034,689,024
10Sep 21, 2021 05:416,506481,308,791188,685,635027,447,296
11Sep 21, 2021 05:416,535461,620,820189,509,837027,451,392
12Sep 21, 2021 05:416,561525,551,914190,278,171027,439,104