Advertisement
a53

memory008

a53
Nov 13th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <fstream>
  2. #define ULL unsigned long long int
  3. using namespace std;
  4. ifstream f("memory008.in");
  5. ofstream g("memory008.out");
  6. ULL x,nr;
  7.  
  8. int main()
  9. {
  10. int n;
  11. f>>n;
  12. for(int i=0;i<n;++i)
  13. f>>x,nr^=x;
  14. g<<nr;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement