#include <bits/stdc++.h>
using namespace std;
#define type(x) __typeof((x).begin())
#define foreach(it, x) for(type(x) it = (x).begin(); it != (x).end(); it++)
typedef long long ll;
typedef pair < int, int > ii;
const int inf = 1e9 + 333;
const ll linf = 1e18 + inf;
const int N = 100 + 5;
#include "encoder.h"
#include "encoderlib.h"
void encode(int n, int a[]) {
for(int i = 0; i < n; i++) {
send(i * 256 + a[i]);
}
}
#include <bits/stdc++.h>
using namespace std;
#define type(x) __typeof((x).begin())
#define foreach(it, x) for(type(x) it = (x).begin(); it != (x).end(); it++)
typedef long long ll;
typedef pair < int, int > ii;
const int inf = 1e9 + 333;
const ll linf = 1e18 + inf;
const int N = 100 + 5;
////////////////////////////////////////////////////////////////////////////////////////////////
#include "decoder.h"
#include "decoderlib.h"
int ans[N];
void decode(int n, int m, int a[]) {
for(int i = 0; i < m; i++) {
ans[a[i] / 256] = a[i] % 256;
}
for(int i = 0; i < n; i++)
output(ans[i]);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
752 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
2016 KB |
Output is correct |
2 |
Correct |
5 ms |
2016 KB |
Output is correct |
3 |
Correct |
6 ms |
2016 KB |
Output is correct |
4 |
Correct |
4 ms |
2064 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
2 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
3 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
4 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
5 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
6 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |
7 |
Incorrect |
4 ms |
2064 KB |
Error : Bad encoded integer |