Submission #141687

# Submission time Handle Problem Language Result Execution time Memory
141687 2019-08-08T21:56:24 Z denmircea COCI17_cezar (COCI17_cezar) C++14
0 / 50
2 ms 428 KB
#include <iostream>

using namespace std;
int f[12], n, i, x, X, s1, s2, sum;
int main () {

    for (i=2;i<=11;i++)
        f[i] = 4;
    f[10] *= 4;

    cin>>n;
    for (i=1;i<=n;i++) {
        cin>>x;
        sum += x;
        f[x] --;
    }
    X = 21-sum;
    for (i=2;i<=X;i++)
        s1 += f[i];
    for (i=X+1;i<=11;i++)
        s2 += f[i];
    if (s1 < s2)
     cout<<"VUCI\n";
    else
     cout<<"DOSTA\n";
       

}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 280 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 428 KB Output isn't correct
2 Halted 0 ms 0 KB -