Submission details
Task:Missing Coin Sum
Sender:Ciphra
Submission time:2025-11-26 21:20:59 +0200
Language:C++ (C++17)
Status:READY
Result:
Test results
testverdicttime
#10.00 sdetails
#20.00 sdetails
#30.00 sdetails
#40.00 sdetails
#50.01 sdetails
#60.00 sdetails
#70.00 sdetails
#80.00 sdetails
#90.00 sdetails
#100.00 sdetails

Code

#include <iostream>
int main(){
  int n;
  std::cin >> n;
  for (int i = 0; i<n; ++i) {
    std::cin >> n;
  }

  std::cout << 0 << "\n"; //Since min coin value is 1 and answer is an integer, any int below 1 should do?
}

Test details

Test 1

Verdict:

input
4
2 1 4 3

correct output
11

user output
0

Feedback: Incorrect character on line 1 col 1: expected "11", got "0"

Test 2

Verdict:

input
4
2 2 2 2

correct output
1

user output
0

Feedback: Incorrect character on line 1 col 1: expected "1", got "0"

Test 3

Verdict:

input
6
1 9 9 1 2 2

correct output
7

user output
0

Feedback: Incorrect character on line 1 col 1: expected "7", got "0"

Test 4

Verdict:

input
200000
38 62 12 96 82 18 48 47 22 3 6...

correct output
10114269

user output
0

Feedback: Incorrect character on line 1 col 1: expected "10114269", got "0"

Test 5

Verdict:

input
200000
321076699 332784673 745614086 ...

correct output
1

user output
0

Feedback: Incorrect character on line 1 col 1: expected "1", got "0"

Test 6

Verdict:

input
200000
1 136292223 60613622 935902310...

correct output
5069547

user output
0

Feedback: Incorrect character on line 1 col 1: expected "5069547", got "0"

Test 7

Verdict:

input
60
1 2 4 8 16 32 64 128 256 512 1...

correct output
31073741824

user output
0

Feedback: Incorrect character on line 1 col 1: expected "31073741824", got "0"

Test 8

Verdict:

input
100000
1 2 4 8 16 32 64 128 256 512 1...

correct output
53672058814464

user output
0

Feedback: Incorrect character on line 1 col 1: expected "53672058814464", got "0"

Test 9

Verdict:

input
10
1 1 1 1 1 1 1 1 2 7

correct output
18

user output
0

Feedback: Incorrect character on line 1 col 1: expected "18", got "0"

Test 10

Verdict:

input
2
1 1

correct output
3

user output
0

Feedback: Incorrect character on line 1 col 1: expected "3", got "0"