Submission #60694

# Submission time Handle Problem Language Result Execution time Memory
60694 2018-07-24T14:28:11 Z mhnd Parrots (IOI11_parrots) C++14
52 / 100
12 ms 2448 KB
#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
const int N = 1e5+50;
const ll oo = 1e18;
const ll mod = 1e9+7;

void encode(int N, int M[]) {
	for(int i=0;i<N;i++){
		for(int k=10;k>=0;k--){
			if((M[i]>>k)&1){
				send(16*k+i);
			}
		}
	}
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
const int N = 1e5+50;
const ll oo = 1e18;
const ll mod = 1e9+7;

int num[65];
void decode(int N, int L, int X[]){
	memset(num,0,sizeof(num));
	for(int i=0;i<L;i++){
		num[X[i]%16] += (1<<(X[i]/16));
	}
	for(int i=0;i<N;i++)output(num[i]);
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 752 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 1592 KB Output is correct
2 Correct 6 ms 1696 KB Output is correct
3 Correct 8 ms 2240 KB Output is correct
4 Correct 9 ms 2240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 2240 KB Output is correct
2 Correct 7 ms 2240 KB Output is correct
3 Correct 7 ms 2240 KB Output is correct
4 Correct 8 ms 2240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 2240 KB Output is correct
2 Correct 8 ms 2240 KB Output is correct
3 Incorrect 7 ms 2240 KB Error : Output is wrong
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 6 ms 2240 KB Output is partially correct - P = 8.000000
2 Incorrect 8 ms 2240 KB Error : Output is wrong
3 Incorrect 9 ms 2240 KB Error : Output is wrong
4 Incorrect 8 ms 2320 KB Error : Output is wrong
5 Incorrect 11 ms 2448 KB Error : Output is wrong
6 Incorrect 10 ms 2448 KB Error : Output is wrong
7 Incorrect 12 ms 2448 KB Error : Output is wrong