Submission #139195

# Submission time Handle Problem Language Result Execution time Memory
139195 2019-07-31T11:20:05 Z AlexPascu007 Cezar (COCI16_cezar) C++
0 / 100
3 ms 508 KB
#include <iostream>
using namespace std;
int n,s,st,dr,v[60],c[20],i,dif;
int main() {
    for (i=2;i<=9;i++)
        c[i]=4;
    c[10]=16;
    c[11]=4;
    cin>>n;
    for (i=1;i<=n;i++) {
        cin>>v[i];
        s+=v[i];
    }
    dif=21-s;
    for (i=1;i<=n;i++)
        c[v[i]]--;
    for (i=2;i<dif;i++)
        st+=c[i];
    for (i=dif;i<=11;i++)
        dr+=c[i];
    if (st>dr)
        cout<<"VUCI";
    else
        cout<<"DOSTA";
    return 0;
}
# 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 Runtime error 3 ms 508 KB Execution killed with signal 11 (could be triggered by violating memory limits)
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 Runtime error 2 ms 380 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
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 Runtime error 2 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
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 256 KB Output isn't correct
2 Halted 0 ms 0 KB -