제출 #1140426

#제출 시각아이디문제언어결과실행 시간메모리
1140426Alex0x0앵무새 (IOI11_parrots)C++20
81 / 100
2 ms840 KiB
#include "encoder.h"
#include "encoderlib.h"

#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define fore(i,a,b) for (lli i = (a), abcdxd = (b); i < abcdxd; i++)
#define f first
#define s second
#define sz(v) lli((v).size())
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define ENDL '\n'
using namespace std;
typedef int lli;
// typedef long long LLI;
typedef vector<lli> vi;
typedef pair<lli,lli> ii;
typedef vector<ii> vii;
typedef long double ld;
#define deb(x) cout << #x << ": " << x << endl;

void encode(int N, int M[])
{
  fore(id,0,N){
    lli xx = M[id];
    for(lli i = 0; (1<<i) < 256; i++){
      lli w = (1<<i);
      if (xx&w) send((id<<3) + i);
    }
  }
}
#include "decoder.h"
#include "decoderlib.h"

#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define fore(i,a,b) for (lli i = (a), abcdxd = (b); i < abcdxd; i++)
#define f first
#define s second
#define sz(v) lli((v).size())
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define ENDL '\n'
using namespace std;
typedef int lli;
// typedef long long LLI;
typedef vector<lli> vi;
typedef pair<lli,lli> ii;
typedef vector<ii> vii;
typedef long double ld;
#define deb(x) cout << #x << ": " << x << endl;

void decode(int N, int L, int X[])
{
  vi ans(N, 0);
  fore(id,0,L){
    lli p = (1<<(X[id] % 8));
    ans[((X[id]) >> 3)] += p;
  }
  fore(id,0,N) output(ans[id]);
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...