제출 #886996

#제출 시각아이디문제언어결과실행 시간메모리
886996TurcavidFootball (info1cup20_football)C++14
0 / 100
162 ms444 KiB
#include <bits/stdc++.h> using namespace std; int32_t main() { int t; cin>>t; while(t--) { int n, k; cin>>n>>k; int xsum=0; for(int i=1; i<=n; i++) { int a; cin>>a; /*int c=a/k; int r=a-c*k; if(c%2 == 1) { c=k; } else { c=0; }*/ xsum=(xsum^a); } if(xsum == 0) cout<<0; else cout<<1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...