Computer Science, asked by giridhargiresh, 3 months ago

input
1.first input contains N, yhe total number of stones in the box
2. second input contains N sorted integers separated by newline A1,A2... an , representating the original weights assigned to each stone
violation of input criteria: systen should display message as "wrong input" .
output
the minimum total stone weights alex can set the box for
constraints
1<=N<=10000
1<=A[i]<=100000
example 1:
input 3
2
2
4
output:
9

Answers

Answered by allanbinu2018
0

Answer:

1234567891012131415161718

Similar questions