Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- ifstream fin("clasic.in");
- ofstream fout("clasic.out");
- int main()
- {
- int i, j, t, n;
- long long nr, sol;
- fin >> t;
- for(i = 1; i <= t; i++)
- {
- fin >> n;
- sol = 0;
- for(j = 1; j <= n; j++)
- {
- fin >> nr;
- sol ^= nr;
- }
- fout << sol << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment