Submission #491818

#TimeUsernameProblemLanguageResultExecution timeMemory
491818n3rm1nFootball (info1cup20_football)C++17
26 / 100
22 ms1868 KiB
#include<bits/stdc++.h> #define endl '\n' using namespace std; const int MAXN=1e5+10; void speed() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); } int n,k; long long a[MAXN]; long long sum=0; void read() { cin>>n>>k; for(int i=1;i<=n;i++) { cin>>a[i]; sum+=a[i]; } } int main() { speed(); int t; cin>>t; while(t--) { sum=0; read(); if(k==1)cout<<sum%2; } cout<<endl; 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...