#include<iostream> using namespace std; int main() { long long fl,sl,tl; long long tc,n1,n2,n3,i; long long r1,r2; while(cin>>tc) { fl=0,sl=0,tl=0; for(i=0; i<tc; i++) { cin>>n1; fl=fl+n1; } for(i=0; i<tc-1; i++) { cin>>n2; sl=sl+n2; } for(i=0; i<tc-2; i++) { cin>>n3; tl=tl+n3; } r1=fl-sl; r2=sl-tl; cout<<r1<<endl<<r2<<endl; } return 0; }
Friday, April 8, 2016
CF - A and B and Compilation Errors
Labels:
Codeforces
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)