TOPIC

Wrong answer (5%)

🎈Leandro Rodrigues🎈 asked 1 year ago

Alguém pode me ajudar?? WA(5%)

Question solved. Code removed.

This topic was solved and cannot recieve new replies.

  • feodorv replied 1 year ago

    Seems you mean

            for(int i = 0; i < n; i++) {
                if(i < n-1 && v[i] == v[i+1]) {
                    i++;
                }
                else {
                    cout << v[i];
                    if(flag) cout << " ";
                    flag = 0;
                }
            }
  • 🎈Leandro Rodrigues🎈 replied 1 year ago

    Muito Obrigado!! =D