# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
771300 | iulia13 | Parrots (IOI11_parrots) | C++14 | 5 ms | 1228 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 <bits/stdc++.h>
#include "encoder.h"
#include "encoderlib.h"
using namespace std;
const int N = 513;
void encode(int n, int a[])
{
int cnt = 0, i = 0, ok = 0, tot = 3 * 128;
while (cnt <= 248 && i < n)
{
int nr = 128;
while(nr)
{
if (a[i] & nr)
ok++;
nr /= 2;
cnt++;
}
i++;
}
while (cnt <= 504 && i < n)
{
int nr = 128;
while (nr)
{
if (a[i] & nr)
{
ok += 2;
//send(cnt - 256);
//send(cnt - 256);
# | 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... |