Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- int pecas[1010];
- int main() {
- int n; scanf("%d", &n);
- int aux;
- for(int i = 0; i < n-1; i++){
- scanf("%d", &aux);
- pecas[aux] = 1;
- }
- for(int i = 1; i <= n; i++){
- if(pecas[i] == 0){
- printf("%d", i);
- break;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement