Submission #1272530

#TimeUsernameProblemLanguageResultExecution timeMemory
1272530pvpwarriorParrots (IOI11_parrots)C++20
17 / 100
2 ms840 KiB
#include <bits/stdc++.h>
#include "encoder.h"
#include "encoderlib.h"
using namespace std;
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL)
#define ll long long
#define ld long double
#define vi vector<ll>
#define si set<ll>
#define pqi priority_queue<ll>
#define pb push_back
#define watch(x) cerr << "\n" << (#x) << " is " << (x) << "\n"
#define pbds tree<ll, null_type,less_equal<ll>, rb_tree_tag,tree_order_statistics_node_update>
#define ht cc_hash_table<ll, ll, hash<ll>>;

void encode(int N, int M[]){
    for (int i = 0; i < N; ++i)
    {
        if (M[i]==1)
        {
            send(2*i + 1);
        }
        else{
            send(2*i);
        }
    }
    return;
}
#include <bits/stdc++.h>
#include "decoder.h"
#include "decoderlib.h"
using namespace std;
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL)
#define ll long long
#define ld long double
#define vi vector<ll>
#define si set<ll>
#define pqi priority_queue<ll>
#define pb push_back
#define watch(x) cerr << "\n" << (#x) << " is " << (x) << "\n"
#define pbds tree<ll, null_type,less_equal<ll>, rb_tree_tag,tree_order_statistics_node_update>
#define ht cc_hash_table<ll, ll, hash<ll>>;

void decode(int N, int L, int X[]){
    sort(X, X+L);
    for (int i = 0; i < L; ++i)
    {
        if (X[i]%2==1)
        {
            output(1);
        }
        else{
            output(0);
        }
    }
    return;
}
#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...