Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- using namespace std;
- ifstream fin("date.in");
- int main()
- {
- int Nant,n,m;
- fin>>m;
- fin>>Nant;
- while(fin>>n)
- {
- if(Nant!=n) cout<<Nant<<" ";
- Nant=n;
- }
- cout<<n<<" ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement