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 listOct 11, 2021 06:03Yuriy LyfenkoYuriy LyfenkoScore: 5,429Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 06:035,232458,995,950151,741,851027,443,200
2Oct 11, 2021 06:035,273443,536,866152,918,691027,439,104
3Oct 11, 2021 06:035,341444,041,711154,879,335027,443,200
4Oct 11, 2021 06:035,380369,761,750128,674,00027,356,00033,517,568
5Oct 11, 2021 06:035,417358,360,130128,903,00028,197,00033,923,072
6Oct 11, 2021 06:035,427373,210,748133,999,00023,396,00034,013,184
7Oct 11, 2021 06:035,429347,297,561130,005,00027,422,00033,914,880
8Oct 11, 2021 06:035,431365,421,304134,096,00023,413,00033,726,464
9Oct 11, 2021 06:035,445374,612,313129,850,00028,047,00034,058,240
10Oct 11, 2021 06:035,459359,495,507128,685,00029,618,00033,996,800
11Oct 11, 2021 06:035,470362,330,169124,719,00033,923,00033,759,232
12Oct 11, 2021 06:035,480386,150,463126,343,00032,572,00035,328,000