#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int T;
cin >> T;
for(test_case = 1; test_case <= T; ++test_case) {
int n=0;
cin >> n;
int a[n],j=0;
for(j=0;j<n;j++)
cin >> a[j];
int result=a[0];
for(j=1;j<n;j++)
result^=a[j];
cout << "Case #" << test_case << endl;
cout << result << endl;
}
return 0;
}
처음에 씨언어 할때 그거 지우지마라 그거때매 안된듯 c++ 로 하니까 되네
읽어들인 값을 배열에 저장은 왜함? 할필요 없는데
초기화 하는김에
int a[n] 이거 자바에서나 되는거 아니냐