Saleh127

codeforces 519B.cpp

Jun 3rd, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define pi acos(-1)
  6. int main()
  7. {
  8. ll a[200000],c,d=0,e=0,f=0,i,j,k,l;
  9. cin>>c;
  10. for(i=0;i<c;i++)
  11. {
  12. cin>>a[i];
  13. d+=a[i];
  14. }
  15. for(i=0;i<c-1;i++)
  16. {
  17. cin>>a[i];
  18. e+=a[i];
  19. }
  20. for(i=0;i<c-2;i++)
  21. {
  22. cin>>a[i];
  23. f+=a[i];
  24. }
  25. printf("%lld\n%lld",d-e,e-f);
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment