제출 #387594

#제출 시각아이디문제언어결과실행 시간메모리
387594casperwangFootball (info1cup20_football)C++14
24 / 100
28 ms620 KiB
#include <bits/stdc++.h> using namespace std; #define debug(args) kout("[ " + string(#args) + " ]", args) void kout() { cerr << endl; } template <class T, class ...U> void kout(T a, U ...b) { cerr << a << ' ',kout(b...); } template <class T> void pary(T L, T R) { while (L != R) cerr << *L << " \n"[++L==R]; } int T, N, K; int a; string ans; inline int lb(int a) { return a &- a; } signed main() { ios_base::sync_with_stdio(0), cin.tie(0); cin >> T; while (T--) { cin >> N >> K; for (int i = 0; i < N; i++) { cin >> a; } if (lb(a) <= K) ans += '1'; else ans += '0'; } cout << ans << '\n'; }
#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...