답안 #83959

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
83959 2018-11-12T00:03:56 Z josiftepe Cezar (COCI17_cezar) C++14
30 / 50
3 ms 840 KB
#include <iostream>
#include <cstring>
#include <vector>
#include <set>
#include <map>
#include <sstream>
#include <cstdio>
#include <algorithm>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
#include <fstream>
//#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = (1 << 30);
const ll inf = (1LL << 60LL);
const int maxn = 1e5 + 10;
int n;
int arr[55];
int cnt[20];
int main(int argc, const char * argv[]) {
    ios_base::sync_with_stdio(false);
//    ifstream cin("in.txt");
    cin >> n;
    int sum = 0;
    for(int i = 0; i < n; i ++){
        cin >> arr[i];
        sum += arr[i];
    }
    for(int i = 2; i <= 9; i ++){
        cnt[i] = 4;
    }
    cnt[10] = 12;
    cnt[11] = 4;
    for(int i = 0; i< n; i ++){
        cnt[arr[i]] --;
    }
    int X = 21 - sum;
    int ret =0 ;
    for(int i = 2; i <= 11; i ++){
        if(i > X){
            ret += cnt[i];
        }
    }
    if(ret > X){
        cout << "DOSTA\n";
    }
    else{
        cout << "VUCI\n";
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 380 KB Output is correct
2 Correct 2 ms 512 KB Output is correct
3 Correct 2 ms 512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 512 KB Output is correct
2 Correct 2 ms 520 KB Output is correct
3 Incorrect 2 ms 656 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 656 KB Output is correct
2 Correct 2 ms 656 KB Output is correct
3 Correct 2 ms 688 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 712 KB Output is correct
2 Correct 2 ms 716 KB Output is correct
3 Correct 2 ms 720 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 724 KB Output is correct
2 Correct 2 ms 728 KB Output is correct
3 Incorrect 3 ms 776 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 780 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 784 KB Output is correct
2 Correct 2 ms 788 KB Output is correct
3 Correct 2 ms 808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 812 KB Output is correct
2 Correct 2 ms 816 KB Output is correct
3 Correct 2 ms 820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 824 KB Output is correct
2 Incorrect 2 ms 828 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 832 KB Output is correct
2 Correct 2 ms 836 KB Output is correct
3 Correct 2 ms 840 KB Output is correct