# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
331882 | achibasadzishvili | Parrots (IOI11_parrots) | C++17 | 3 ms | 1340 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "encoder.h"
#include "encoderlib.h"
#include<bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pb push_back
using namespace std;
void encode(int n, int m[]){
for(int i=0; i<n; i++){
for(int j=0; j<=9; j++)
if(m[i] & (1 << j))
send(10 * i + j);
}
}
#include "decoder.h"
#include "decoderlib.h"
#include<bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pb push_back
using namespace std;
void decode(int n, int l, int x[]){
vector<ll>m;
for(int i=0; i<n; i++)
m.pb(0);
for(int i=0; i<l; i++){
ll k = x[i];
ll ind = x[i] / 10;
ll t = x[i] % 10;
m[ind] |= 1 << t;
}
for(int i=0; i<n; i++)
output(m[i]);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |