제출 #1108088

#제출 시각아이디문제언어결과실행 시간메모리
1108088HasanV11010238Football (info1cup20_football)C++17
26 / 100
2069 ms1484 KiB
#include <bits/stdc++.h> #define ll long long #define INF 10000000000 using namespace std; int main(){ int t; cin>>t; while (t--){ ll n, k; cin>>n>>k; vector<ll> v(n); for (int i = 0; i < n; i++){ cin>>v[i]; } ll d = 1, ans = 0; while (d <= k){ ll cnt = 0; for (int i = 0; i < n; i++){ cnt += v[i] / d; } if (cnt % 2 == 1){ ans = 1; break; } d = 2; } cout<<ans; } }
#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...