답안 #639065

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
639065 2022-09-08T12:22:32 Z inksamurai Tetris (COCI17_tetris) C++17
0 / 80
1 ms 212 KB
#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";
	}
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Incorrect 0 ms 212 KB Output isn't correct
4 Incorrect 1 ms 212 KB Output isn't correct
5 Incorrect 0 ms 212 KB Output isn't correct
6 Incorrect 0 ms 212 KB Output isn't correct
7 Incorrect 1 ms 212 KB Output isn't correct
8 Incorrect 0 ms 212 KB Output isn't correct
9 Incorrect 0 ms 212 KB Output isn't correct
10 Incorrect 0 ms 212 KB Output isn't correct