Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- long a[1201],b[1201],i;
- int main()
- {
- int n,m,i,j,ok,p=0;
- cin>>n>>m;
- for (i=0;i<n;i++)
- cin>>a[i];
- for (i=0;i<n-m;i++)
- cin>>b[i];
- for (i=0;i<n;i++)
- {
- ok=1;
- for (j=0;j<n-m&&ok;j++)
- if (a[i]==b[j])
- ok=0;
- if (ok)
- {
- p=1;
- cout<<a[i]<<' ';
- }
- }
- if (!p)
- cout<<"Nu s-au pierdut date";
- return 0;
- }
- //*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement