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 28, 2021 04:17Yuriy LyfenkoYuriy LyfenkoScore: 5,930Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 04:175,786452,683,880167,799,551027,447,296
2Sep 28, 2021 04:175,809461,294,121168,449,785027,471,872
3Sep 28, 2021 04:175,861466,883,652169,975,570027,447,296
4Sep 28, 2021 04:175,914364,431,019137,216,00034,304,00033,693,696
5Sep 28, 2021 04:175,919355,720,216144,931,00026,724,00034,041,856
6Sep 28, 2021 04:175,927382,612,884146,149,00025,730,00033,902,592
7Sep 28, 2021 04:175,930381,489,223140,979,00030,995,00033,492,992
8Sep 28, 2021 04:175,940376,213,170142,875,00029,385,00033,927,168
9Sep 28, 2021 04:175,941387,431,725146,501,00025,792,00033,746,944
10Sep 28, 2021 04:175,944381,686,600142,977,00029,406,00034,021,376
11Sep 28, 2021 04:175,969385,875,612145,457,00027,657,00034,013,184
12Sep 28, 2021 04:175,981361,113,363143,018,00030,429,00033,828,864