QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#535831 | #2006. Parrots | user10086 | 100 ✓ | 707ms | 16856kb | C++14 | 5.0kb | 2024-08-28 15:28:44 | 2024-08-28 15:28:44 |
Judging History
encoder
#include <bits/stdc++.h>
#include "encoder.h"
#include "encoderlib.h"
using namespace std;
namespace First
{
using i128 = unsigned long long; // not int128
const i128 LIM = (i128)-1;
const int SZ = 16;
struct longint
{
i128 c[SZ]{};
};
longint add(longint a, longint b)
{
int c = 0;
longint res;
for (int i = 0; i < SZ; i++)
{
if (!c)
{
i128 t = ~a.c[i];
if (b.c[i] > t) c = 1;
else c = 0;
res.c[i] = a.c[i] + b.c[i];
}
else if (a.c[i] == LIM && b.c[i] == LIM) c = 1, res.c[i] = LIM;
else
{
if (a.c[i] != LIM) a.c[i]++;
else b.c[i]++;
i128 t = ~a.c[i];
if (b.c[i] > t) c = 1;
else c = 0;
res.c[i] = a.c[i] + b.c[i];
}
}
return res;
}
longint make(i128 b)
{
longint a;
a.c[0] = b;
return a;
}
longint sub(longint a, longint b)
{
for (int i = 0; i < SZ; i++) b.c[i] = ~b.c[i];
return add(a, add(b, make(1)));
}
bool cmp(longint a, longint b)
{
// a < b
for (int i = SZ - 1; i >= 0; i--)
{
if (a.c[i] < b.c[i]) return true;
if (a.c[i] > b.c[i]) return false;
}
return false;
}
void output(i128 x)
{
if (x > 9) output(x / 10);
cout << int(x % 10);
}
void output(longint x)
{
for (int i = SZ - 1; i >= 0; i--) output(x.c[i]), cout << ' ';
}
const int N = 320;
longint f[N][N];
void pre()
{
if (f[0][0].c[0]) return;
f[0][0] = make(1);
for (int i = 1; i < N; i++)
for (int j = 0; j < N; j++)
for (int k = 0; k <= j; k++)
f[i][j] = add(f[i][j], f[i - 1][j - k]);
}
}
void encode(int n, int *p)
{
using namespace First;
pre();
vector<int> msg;
for (int i = 0; i < n; i++) msg.push_back(p[i]);
longint x;
while (msg.size() < 64) msg.push_back(0);
for (int i = 0; i < 8; i++)
{
i128 cur = 0;
for (int j = 7; j >= 0; j--) cur = (cur << 8) | msg[i * 8 + j];
x.c[i] = cur;
}
int i = 1;
while (cmp(f[256][i], x)) i++;
vector<int> sol;
for (int k = 256; k >= 1; k--)
{
int j = 0;
longint sum;
// cout << k << ' ' << i << ':'; output(x); cout << endl;
while (!cmp(x, add(sum, f[k - 1][i - j]))) assert(j <= i), sum = add(sum, f[k - 1][i - j]), j++;
i -= j, x = sub(x, sum);
while (j--) sol.push_back(k - 1);
}
assert(sol.size() <= 5 * n);
for (int x : sol) send(x);
}
decoder
#include <bits/stdc++.h>
#include "decoder.h"
#include "decoderlib.h"
using namespace std;
namespace Second
{
using i128 = unsigned long long; // not int128
const i128 LIM = (i128)-1;
const int SZ = 16;
struct longint
{
i128 c[SZ]{};
};
longint add(longint a, longint b)
{
int c = 0;
longint res;
for (int i = 0; i < SZ; i++)
{
if (!c)
{
i128 t = ~a.c[i];
if (b.c[i] > t) c = 1;
else c = 0;
res.c[i] = a.c[i] + b.c[i];
}
else if (a.c[i] == LIM && b.c[i] == LIM) c = 1, res.c[i] = LIM;
else
{
if (a.c[i] != LIM) a.c[i]++;
else b.c[i]++;
i128 t = ~a.c[i];
if (b.c[i] > t) c = 1;
else c = 0;
res.c[i] = a.c[i] + b.c[i];
}
}
return res;
}
longint make(i128 b)
{
longint a;
a.c[0] = b;
return a;
}
longint sub(longint a, longint b)
{
for (int i = 0; i < SZ; i++) b.c[i] = ~b.c[i];
return add(a, add(b, make(1)));
}
bool cmp(longint a, longint b)
{
// a < b
for (int i = SZ - 1; i >= 0; i--)
{
if (a.c[i] < b.c[i]) return true;
if (a.c[i] > b.c[i]) return false;
}
return false;
}
void output(i128 x)
{
if (x > 9) output(x / 10);
cout << int(x % 10);
}
void output(longint x)
{
for (int i = SZ - 1; i >= 0; i--) output(x.c[i]), cout << ' ';
}
const int N = 320;
longint f[N][N];
void pre()
{
if (f[0][0].c[0]) return;
f[0][0] = make(1);
for (int i = 1; i < N; i++)
for (int j = 0; j < N; j++)
for (int k = 0; k <= j; k++)
f[i][j] = add(f[i][j], f[i - 1][j - k]);
}
}
void decode(int n, int l, int *p)
{
using namespace Second;
pre();
vector<int> msg;
for (int i = 0; i < l; i++) msg.push_back(p[i]);
longint x;
int c[256]{};
for (int x : msg) c[x]++;
int i = l;
for (int k = 256; k >= 1; k--)
{
for (int j = 0; j < c[k - 1]; j++) x = add(x, f[k - 1][i - j]);
i -= c[k - 1];
}
vector<int> sol;
for (int i = 0; i < 8; i++)
{
i128 cur = x.c[i];
for (int j = 0; j < 8; j++)
sol.push_back(cur & 0xff), cur >>= 8;
}
while (sol.size() > n) assert(sol.back() == 0), sol.pop_back();
for (int x : sol) output(x);
}
详细
Subtask #1:
score: 17
Accepted
Test #1:
score: 17
Accepted
time: 688ms
memory: 16572kb
input:
10 8 1 0 8 10 215 185 152 133 115 111 101 51 48 10 8 8 58 74 81 147 157 213 217 237 8 8 237 217 213 157 147 81 74 58 8 8 237 81 217 213 157 74 147 58 8 8 147 157 71 213 217 81 237 22 8 8 237 217 214 169 156 127 122 27 8 8 169 237 156 127 122 217 27 214 8 4 10 72 75 140 8 4 75 10 72 140
output:
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 1 0 1 0 0 0 0 1 1 0 1 0 0 0 0
input:
output:
1.250000
result:
ok
Subtask #2:
score: 17
Accepted
Test #2:
score: 17
Accepted
time: 686ms
memory: 16572kb
input:
50 8 1 0 8 12 207 202 194 178 176 170 166 124 103 63 57 31 8 12 31 57 63 103 124 166 170 176 178 194 202 207 8 1 0 8 12 22 38 40 46 92 93 101 109 175 185 187 201 8 12 206 190 152 110 101 75 75 54 41 41 23 21 8 12 200 197 188 161 156 133 123 93 77 77 58 29 8 11 74 74 87 111 159 170 182 203 211...
output:
0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 243 109 222 210 112 222 171 178 228 158 233 59 205 124 41 237 155 180 90 45 173 60 66 172 164 37 205 149 192 176 235 103 95 7 200 68 93 112 112 236 232 187 132 122 197 218 57 94 245 69 229 217 2...
input:
output:
1.500000
result:
ok
Test #3:
score: 17
Accepted
time: 707ms
memory: 16800kb
input:
50 11 1 0 11 17 251 243 232 224 223 222 214 200 194 88 87 74 60 53 34 6 4 11 17 4 6 34 53 60 74 87 88 194 200 214 222 223 224 232 243 251 11 1 0 11 17 130 64 239 64 91 42 116 241 126 210 154 148 69 30 7 210 248 11 17 216 99 214 125 148 127 226 60 181 96 234 168 17 171 171 132 126 11 17 28 32 5...
output:
0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 223 48 201 197 29 95 155 229 169 194 210 82 128 14 63 9 120 170 54 242 202 80 185 205 138 0 95 1 39 84 220 84 151 181 154 208 54 30 17 25 13 215 50 209 92 134 8...
input:
output:
1.545455
result:
ok
Test #4:
score: 17
Accepted
time: 697ms
memory: 16492kb
input:
50 15 1 0 15 26 246 231 229 227 202 194 182 180 170 160 155 149 142 129 120 118 113 97 74 70 37 22 17 17 12 4 15 26 4 12 17 17 22 37 70 74 97 113 118 120 129 142 149 155 160 170 180 182 194 202 227 229 231 246 15 1 0 15 25 233 232 220 210 183 180 177 171 151 141 140 135 132 126 123 118 113 88 86...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 224 32 223 221 238 25 224 254 248 66 164 36 102 46 7 33 26 6 162 138 31 204 225 175 131 134 45 51 142 6 178 231 12...
input:
output:
1.733333
result:
ok
Test #5:
score: 17
Accepted
time: 693ms
memory: 16636kb
input:
50 16 1 0 16 28 255 241 241 234 218 218 215 214 205 201 186 184 169 167 166 147 134 129 103 74 72 68 58 54 51 21 18 14 16 28 14 18 21 51 54 58 68 72 74 103 129 134 147 166 167 169 184 186 201 205 214 215 218 218 234 241 241 255 16 1 0 16 28 31 95 31 207 114 127 239 107 54 27 30 37 141 158 241 25...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 26 106 184 90 58 147 93 85 1 116 9 221 62 228 113 188 51 58 213 192 113 132 214 231 184 129 103 227 111...
input:
output:
1.750000
result:
ok
Subtask #3:
score: 18
Accepted
Test #6:
score: 18
Accepted
time: 697ms
memory: 16568kb
input:
50 8 1 0 8 12 207 202 194 178 176 170 166 124 103 63 57 31 8 12 31 57 63 103 124 166 170 176 178 194 202 207 8 1 0 8 12 22 38 40 46 92 93 101 109 175 185 187 201 8 12 206 190 152 110 101 75 75 54 41 41 23 21 8 12 200 197 188 161 156 133 123 93 77 77 58 29 8 11 74 74 87 111 159 170 182 203 211...
output:
0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 243 109 222 210 112 222 171 178 228 158 233 59 205 124 41 237 155 180 90 45 173 60 66 172 164 37 205 149 192 176 235 103 95 7 200 68 93 112 112 236 232 187 132 122 197 218 57 94 245 69 229 217 2...
input:
output:
1.500000
result:
ok
Test #7:
score: 18
Accepted
time: 698ms
memory: 16500kb
input:
50 11 1 0 11 17 251 243 232 224 223 222 214 200 194 88 87 74 60 53 34 6 4 11 17 4 6 34 53 60 74 87 88 194 200 214 222 223 224 232 243 251 11 1 0 11 17 130 64 239 64 91 42 116 241 126 210 154 148 69 30 7 210 248 11 17 216 99 214 125 148 127 226 60 181 96 234 168 17 171 171 132 126 11 17 28 32 5...
output:
0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 223 48 201 197 29 95 155 229 169 194 210 82 128 14 63 9 120 170 54 242 202 80 185 205 138 0 95 1 39 84 220 84 151 181 154 208 54 30 17 25 13 215 50 209 92 134 8...
input:
output:
1.545455
result:
ok
Test #8:
score: 18
Accepted
time: 702ms
memory: 16540kb
input:
50 15 1 0 15 26 246 231 229 227 202 194 182 180 170 160 155 149 142 129 120 118 113 97 74 70 37 22 17 17 12 4 15 26 4 12 17 17 22 37 70 74 97 113 118 120 129 142 149 155 160 170 180 182 194 202 227 229 231 246 15 1 0 15 25 233 232 220 210 183 180 177 171 151 141 140 135 132 126 123 118 113 88 86...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 224 32 223 221 238 25 224 254 248 66 164 36 102 46 7 33 26 6 162 138 31 204 225 175 131 134 45 51 142 6 178 231 12...
input:
output:
1.733333
result:
ok
Test #9:
score: 18
Accepted
time: 695ms
memory: 16548kb
input:
50 16 1 0 16 28 255 241 241 234 218 218 215 214 205 201 186 184 169 167 166 147 134 129 103 74 72 68 58 54 51 21 18 14 16 28 14 18 21 51 54 58 68 72 74 103 129 134 147 166 167 169 184 186 201 205 214 215 218 218 234 241 241 255 16 1 0 16 28 31 95 31 207 114 127 239 107 54 27 30 37 141 158 241 25...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 26 106 184 90 58 147 93 85 1 116 9 221 62 228 113 188 51 58 213 192 113 132 214 231 184 129 103 227 111...
input:
output:
1.750000
result:
ok
Subtask #4:
score: 29
Accepted
Test #10:
score: 29
Accepted
time: 695ms
memory: 16840kb
input:
50 8 1 0 8 12 207 202 194 178 176 170 166 124 103 63 57 31 8 12 31 57 63 103 124 166 170 176 178 194 202 207 8 12 57 166 194 178 31 207 170 124 63 103 176 202 8 1 0 8 1 0 8 12 142 197 92 93 23 149 29 130 128 16 10 78 8 12 96 39 200 174 33 65 23 58 23 205 18 155 8 12 14 18 68 90 111 111 114 1...
output:
0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 105 171 236 216 29 23 237 137 133 238 133 208 208 161 99 228 114 68 124 64 83 0 156 229 107 234 136 136 175 106 239 229 132 178 196 164 41 224 188...
input:
output:
1.500000
result:
ok
Test #11:
score: 29
Accepted
time: 689ms
memory: 16828kb
input:
50 16 1 0 16 28 255 241 241 234 218 218 215 214 205 201 186 184 169 167 166 147 134 129 103 74 72 68 58 54 51 21 18 14 16 28 14 18 21 51 54 58 68 72 74 103 129 134 147 166 167 169 184 186 201 205 214 215 218 218 234 241 241 255 16 28 58 167 72 234 184 205 241 169 129 51 54 74 215 218 241 255 214 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 188 66...
input:
output:
1.750000
result:
ok
Test #12:
score: 29
Accepted
time: 699ms
memory: 16564kb
input:
50 20 1 0 20 39 245 243 241 240 234 218 217 215 206 205 201 183 173 166 155 153 138 127 121 115 112 110 104 100 99 98 96 94 92 92 91 80 68 63 56 44 12 12 5 20 39 5 12 12 44 56 63 68 80 91 92 92 94 96 98 99 100 104 110 112 115 121 127 138 153 155 166 173 183 201 205 206 215 217 218 234 240 241 243 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 ...
input:
output:
1.950000
result:
ok
Test #13:
score: 29
Accepted
time: 695ms
memory: 16548kb
input:
50 30 1 0 30 70 255 254 254 254 251 251 243 239 238 236 227 219 218 209 208 203 202 198 197 196 196 189 185 183 183 178 178 169 168 167 161 160 156 156 145 142 132 123 115 111 111 109 109 107 104 101 95 93 92 88 81 80 66 66 63 58 55 50 48 44 41 25 21 21 19 18 18 16 5 2 30 70 2 5 16 18 18 19 21 21 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 25...
input:
output:
2.333333
result:
ok
Test #14:
score: 29
Accepted
time: 696ms
memory: 16540kb
input:
50 31 1 0 31 74 253 253 251 248 246 243 240 237 235 235 234 231 230 224 214 201 187 180 179 175 174 174 171 171 169 169 162 161 160 159 159 150 150 148 147 145 141 141 139 139 139 135 135 132 125 125 123 121 107 105 105 105 102 97 90 87 83 77 69 64 50 50 47 44 42 34 27 27 27 21 21 19 19 4 31 74 4 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 ...
input:
output:
2.387097
result:
ok
Test #15:
score: 29
Accepted
time: 695ms
memory: 16544kb
input:
50 32 1 0 32 78 252 252 243 243 238 235 222 222 220 214 210 210 206 206 206 201 201 194 193 189 189 188 188 187 184 177 166 165 160 158 158 158 154 151 146 146 139 139 136 135 134 131 126 121 119 104 104 101 96 91 88 86 86 84 83 76 71 65 63 54 54 51 49 48 38 28 27 25 24 23 21 19 13 13 13 8 6 5 32 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 25...
input:
output:
2.437500
result:
ok
Subtask #5:
score: 19
Accepted
Test #16:
score: 19
Accepted
time: 703ms
memory: 16572kb
input:
50 16 1 0 16 28 255 241 241 234 218 218 215 214 205 201 186 184 169 167 166 147 134 129 103 74 72 68 58 54 51 21 18 14 16 28 14 18 21 51 54 58 68 72 74 103 129 134 147 166 167 169 184 186 201 205 214 215 218 218 234 241 241 255 16 28 72 241 74 215 54 201 169 241 134 205 186 147 167 166 58 14 218 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 214 69...
input:
output:
1.750000
result:
points 1.0
Test #17:
score: 19
Accepted
time: 695ms
memory: 16844kb
input:
50 32 1 0 32 78 252 252 243 243 238 235 222 222 220 214 210 210 206 206 206 201 201 194 193 189 189 188 188 187 184 177 166 165 160 158 158 158 154 151 146 146 139 139 136 135 134 131 126 121 119 104 104 101 96 91 88 86 86 84 83 76 71 65 63 54 54 51 49 48 38 28 27 25 24 23 21 19 13 13 13 8 6 5 32 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 25...
input:
output:
2.437500
result:
points 1.0
Test #18:
score: 19
Accepted
time: 695ms
memory: 16544kb
input:
50 33 1 0 33 82 252 249 233 232 226 225 224 224 223 221 221 221 215 213 213 211 209 208 207 207 207 207 203 194 193 175 154 150 148 148 145 144 144 137 134 133 115 113 112 103 103 97 93 93 92 92 91 91 91 90 90 90 88 87 86 84 79 78 68 66 66 62 61 61 60 55 54 53 51 48 44 43 39 36 25 24 24 21 17 14 13...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 ...
input:
output:
2.484848
result:
points 1.0
Test #19:
score: 19
Accepted
time: 705ms
memory: 16496kb
input:
50 50 1 0 50 165 254 250 250 249 248 248 243 241 241 241 239 234 234 233 232 231 231 225 225 225 223 223 222 221 221 217 217 214 214 214 214 214 212 207 205 205 205 204 203 201 196 196 194 194 189 186 185 183 182 174 174 171 171 169 169 168 168 163 162 160 156 154 154 149 149 148 148 147 141 140 14...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255...
input:
output:
3.300000
result:
points 1.0
Test #20:
score: 19
Accepted
time: 692ms
memory: 16544kb
input:
50 60 1 0 60 231 255 255 250 249 243 242 242 233 232 231 231 231 231 230 227 226 226 225 225 225 224 224 223 223 222 219 218 212 211 211 211 210 208 207 207 207 206 206 206 206 205 205 204 204 197 196 196 196 195 195 194 194 194 194 190 190 189 189 189 188 186 185 185 185 181 181 181 181 180 180 17...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255...
input:
output:
3.850000
result:
points 1.0
Test #21:
score: 19
Accepted
time: 702ms
memory: 16856kb
input:
50 63 1 0 63 254 255 255 255 252 249 247 246 246 246 245 240 240 237 231 231 231 231 230 228 228 226 226 226 226 225 222 221 217 216 215 215 214 213 213 213 212 211 211 211 211 211 208 208 205 204 202 202 200 199 199 196 196 195 193 193 193 193 193 191 191 190 189 188 184 181 181 176 176 176 174 17...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 2...
input:
output:
4.031746
result:
points 1.0
Test #22:
score: 19
Accepted
time: 695ms
memory: 16572kb
input:
50 64 1 0 64 262 255 255 255 254 254 254 254 254 254 253 252 252 251 251 251 245 245 244 244 243 241 241 241 241 240 236 236 236 235 235 235 232 231 231 230 230 227 227 227 226 225 219 216 215 215 214 213 213 213 213 213 212 211 211 211 211 211 210 210 209 209 209 208 208 208 208 206 206 206 204 20...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255...
input:
output:
4.093750
result:
points 1.0