Submission #639066

#TimeUsernameProblemLanguageResultExecution timeMemory
639066inksamuraiCOCI17_cezar (COCI17_cezar)C++17
30 / 50
1 ms320 KiB
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define rng(i,c,n) for(int i=c;i<n;i++) #define per(i,n) for(int i=n-1;i>=0;i--) #define fi first #define se second #define pb push_back #define sz(a) (int)a.size() #define vec(...) vector<__VA_ARGS__> #define _3RhsN1z ios::sync_with_stdio(0),cin.tie(0) typedef long long ll; using pii=pair<int,int>; using vi=vector<int>; void print(){cout<<'\n';} template<class h,class...t> void print(const h&v,const t&...u){cout<<v<<' ',print(u...);} // e signed main(){ _3RhsN1z; vi a; rep(i,4){ rng(j,2,11){ a.pb(j); } rep(j,3){ a.pb(10); } a.pb(11); } int n; cin>>n; int sun=21; rep(i,n){ int x; cin>>x; sun-=x; } int cu=0,cv=0; rep(i,sz(a)){ if(a[i]>=sun){ cu+=1; } if(a[i]<=sun){ cv+=1; } } if(cu>=cv){ cout<<"DOSTA\n"; }else{ cout<<"VUCI\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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...