Submission #788851

#TimeUsernameProblemLanguageResultExecution timeMemory
788851LeaRouseFootball (info1cup20_football)C++14
0 / 100
67 ms1128 KiB
#include<bits/stdc++.h> #define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(); #define ll long long using namespace std; int A[20]; void go(){ int n,k; cin>>n; for(int i=0;i<n;i++) cin>>A[i]; int a=1; while(A[0]%2==0){ A[0]/=2; a*=2; } if(k>=a) cout<<1; else cout<<0; } int main(){ fastio; int t; cin>>t; while(t--){ go(); } return 0; }

Compilation message (stderr)

football.cpp: In function 'void go()':
football.cpp:15:5: warning: 'k' is used uninitialized in this function [-Wuninitialized]
   15 |     if(k>=a)    cout<<1;
      |     ^~
#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...