# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
906174 |
2024-01-13T15:09:48 Z |
Macker |
Parrots (IOI11_parrots) |
C++14 |
|
2 ms |
1320 KB |
#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define all(v) v.begin(), v.end()
//#pragma GCC optimize("Ofast")
//#pragma GCC target("avx2")
void encode(int N, int M[])
{
int len = (1 << 4);
for (int i = 0; i < N; i++) {
int a = (2 * i) * len;
int x = M[i] / len;
send(x + a);
a = (2 * i + 1) * len;
x = M[i] % len;
send(x + a);
}
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define all(v) v.begin(), v.end()
//#pragma GCC optimize("Ofast")
//#pragma GCC target("avx2")
void decode(int N, int L, int X[])
{
int len = (1 << 4);
sort(X, X + L);
for (int i = 0; i < N; i++) {
int x = (X[i * 2] % len) * len;
int y = (X[i * 2 + 1] % len);
output(x + y);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
800 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
1300 KB |
Output is correct |
2 |
Correct |
2 ms |
1316 KB |
Output is correct |
3 |
Correct |
2 ms |
1312 KB |
Output is correct |
4 |
Correct |
2 ms |
1320 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
1304 KB |
Output is correct |
2 |
Incorrect |
1 ms |
800 KB |
Error : Bad encoded integer |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
1308 KB |
Output is correct |
2 |
Incorrect |
1 ms |
792 KB |
Error : Bad encoded integer |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
792 KB |
Error : Bad encoded integer |
2 |
Incorrect |
2 ms |
788 KB |
Error : Bad encoded integer |
3 |
Incorrect |
1 ms |
792 KB |
Error : Bad encoded integer |
4 |
Incorrect |
1 ms |
808 KB |
Error : Bad encoded integer |
5 |
Incorrect |
1 ms |
808 KB |
Error : Bad encoded integer |
6 |
Incorrect |
1 ms |
804 KB |
Error : Bad encoded integer |
7 |
Incorrect |
1 ms |
792 KB |
Error : Bad encoded integer |