답안 #995344

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
995344 2024-06-08T21:25:53 Z Saul0906 앵무새 (IOI11_parrots) C++14
81 / 100
4 ms 1552 KB
#include "encoder.h"
#include "encoderlib.h"
#define rep(a,b,c) for(int a=b; a<c; a++)
#include <iostream>

using namespace std;

void encode(int N, int M[]){
	rep(i,0,N){
		rep(j,0,8){
			if(M[i]&(1<<j)) send(i^(j<<5));
		}
	}
}
#include "decoder.h"
#include "decoderlib.h"
#include <iostream>
#define rep(a,b,c) for(int a=b; a<c; a++)

using namespace std;

void decode(int N, int L, int X[]){
	int a[N]{}, x;
	rep(i,0,L){
		x=X[i]>>5;
		X[i]^=x<<5;
		a[X[i]]^=(1<<x);
	}
	rep(i,0,N) output(a[i]);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 796 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 1552 KB Output is correct
2 Correct 1 ms 1316 KB Output is correct
3 Correct 1 ms 1312 KB Output is correct
4 Correct 1 ms 1312 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 1312 KB Output is correct
2 Correct 1 ms 1300 KB Output is correct
3 Correct 1 ms 1312 KB Output is correct
4 Correct 1 ms 1320 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 1300 KB Output is correct
2 Correct 2 ms 1312 KB Output is correct
3 Correct 1 ms 1316 KB Output is correct
4 Correct 2 ms 1332 KB Output is correct
5 Correct 3 ms 1332 KB Output is correct
6 Correct 4 ms 1408 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Partially correct 1 ms 1312 KB partially correct P=8.000000
2 Partially correct 3 ms 1332 KB partially correct P=8.000000
3 Incorrect 2 ms 1340 KB Error : Output is wrong
4 Halted 0 ms 0 KB -