Submission #483999

# Submission time Handle Problem Language Result Execution time Memory
483999 2021-11-01T19:32:12 Z nickmet2004 COCI17_cezar (COCI17_cezar) C++11
50 / 50
1 ms 256 KB
#include<bits/stdc++.h>
using namespace std;
int a[15];
int main (){
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n;
    cin >> n;
    int s = 0;
    for(int i= 2; i <= 11; ++i) a[i] = 4;
    a[10] = 16;
    for(int i= 0; i< n; ++i){
        int A; cin >> A;
        a[A]--; s += A;
    }
    int x = 21 - s;
    int F = 0 , S = 0;
    for(int i = 2; i <= 11; ++i){
        if(i > x) F += a[i];
        else S += a[i];
    }
    //cout << S << " S" << endl;
    if(F  > S)cout << "DOSTA";
    else cout << "VUCI";
return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct