Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. ifstream fin ("interclasare1.in");
  5. ofstream fout ("interclasare1.out");
  6. int v[100];
  7. int main()
  8. {
  9. int i,j,x,a,b,y,CONT=-2,INT1,INT2;
  10. fin>>INT1;
  11. while(fin>>x);{
  12. v[x]++;
  13. if(CONT==INT1)
  14. INT2=x;
  15. CONT++;
  16. }
  17. v[INT1]=0;
  18. v[INT2]=0;
  19. for(i=1;i<=999;i++)
  20. if(v[i]!=0)
  21. fout<<i;
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement