Submission #60031

# Submission time Handle Problem Language Result Execution time Memory
60031 2018-07-23T13:22:11 Z theknife2001 Parrots (IOI11_parrots) C++17
17 / 100
7 ms 2168 KB
#include "encoder.h"
#include "encoderlib.h"


void encode(int N, int M[])
{
    int s=0;
    int a,b,c;
    for(int i=0;i<N;i++)
    {
        a=M[i]%10;
        M[i]/=10;
        b=M[i]%10;
        M[i]/=10;
        c=M[i]%10;
        M[i]/=10;
        send(s+c);
        send(s+b);
        send(s+a);
        s+=10;
    }
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>

using namespace std;

void decode(int N, int L, int X[])
{
    sort(X,X+L);
    int x=0;
    for(int i=0;i<L;i+=3)
    {
        x=0;
        for(int j=i;j<i+3;j++)
        {
            x*=10;
            x+=X[j]%10;
        }
        output(x);
    }
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 868 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 1608 KB Error : Output is wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 6 ms 1696 KB Error : Output is wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 6 ms 1840 KB Error : Output is wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 2168 KB Error : Output is wrong
2 Incorrect 5 ms 2168 KB Error : Bad encoded integer
3 Incorrect 4 ms 2168 KB Error : Bad encoded integer
4 Incorrect 4 ms 2168 KB Error : Bad encoded integer
5 Incorrect 5 ms 2168 KB Error : Bad encoded integer
6 Incorrect 7 ms 2168 KB Error : Bad encoded integer
7 Incorrect 4 ms 2168 KB Error : Bad encoded integer