답안 #17083

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
17083 2015-11-04T19:47:00 Z erdemkiraz 앵무새 (IOI11_parrots) C++
0 / 100
6 ms 2216 KB
#include <bits/stdc++.h>

using namespace std;

#define type(x) __typeof((x).begin())
#define foreach(it, x) for(type(x) it = (x).begin(); it != (x).end(); it++)

typedef long long ll;
typedef pair < int, int > ii;

const int inf = 1e9 + 333;
const ll linf = 1e18 + inf;

////////////////////////////////////////////////////////////////////////////////////////////////

#include "encoder.h"
#include "encoderlib.h"

void encode(int N, int M[])
{
  int i;
  for(i= 0; i + 1 < N; i += 2) {
	  swap(M[i], M[i + 1]);
}
  for(i=0; i<N; i++)
    send(M[i]);
}
#include <bits/stdc++.h>

using namespace std;

#define type(x) __typeof((x).begin())
#define foreach(it, x) for(type(x) it = (x).begin(); it != (x).end(); it++)

typedef long long ll;
typedef pair < int, int > ii;

const int inf = 1e9 + 333;
const ll linf = 1e18 + inf;

////////////////////////////////////////////////////////////////////////////////////////////////

#include "decoder.h"
#include "decoderlib.h"

void decode(int N, int L, int X[])
{
  int i, b;
  for(i=0; i<L; i++) {
    b = X[i];
    output(b);
  }
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 756 KB Error : Output is wrong
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 1632 KB Error : Output is wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 1736 KB Error : Output is wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 1744 KB Error : Output is wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 2096 KB Error : Output is wrong
2 Incorrect 6 ms 2096 KB Error : Output is wrong
3 Incorrect 5 ms 2096 KB Error : Output is wrong
4 Incorrect 5 ms 2096 KB Error : Output is wrong
5 Incorrect 5 ms 2112 KB Error : Output is wrong
6 Incorrect 5 ms 2112 KB Error : Output is wrong
7 Incorrect 6 ms 2216 KB Error : Output is wrong