Submission #929120

#TimeUsernameProblemLanguageResultExecution timeMemory
929120Zena_HossamCOCI17_cezar (COCI17_cezar)C++14
50 / 50
1 ms604 KiB
#include <bits/stdc++.h> using namespace std; #define fi ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); //#define ll double #define ll long long #define F first #define S second #define sz size() #define all(s) s.begin(),s.end() #define all1(s) s.rbegin(),s.rend() int main() { // freopen("maxcross.in","r",stdin);freopen("maxcross.out","w",stdout); ll T=1; //cin>>T;ll oo=0; while(T--) { ll n; cin>>n; ll arr[n];ll s=0; for(ll i=0;i<n;i++){ cin>>arr[i];s+=arr[i]; }ll p=21-s; ll a,b; a=0,b=0; for(ll i=1;i<=11;i++){ if(i>p){ a+=i*4; }else b+=i*4; } for(ll i=0;i<n;i++){ if(arr[i]>p){ a-=arr[i]; }else b-=arr[i]; }if(a<b){ cout<<"VUCI"<<"\n"; }else cout<<"DOSTA"<<"\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...