QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#405228 | #2760. Simurgh | 5ab | 100 ✓ | 54ms | 6548kb | C++20 | 3.9kb | 2024-05-05 14:27:47 | 2024-05-05 14:27:48 |
Judging History
answer
/* name: simurgh
* author: 5ab
* created at: 2024-05-04
*/
#include <numeric>
#include <cstring>
#include <cassert>
#include <iostream>
#include <vector>
#include <queue>
#include "simurgh.h"
using namespace std;
#define all(x) (x).begin(), (x).end()
#define ssz(x) (int((x).size()))
auto chmax = [](auto& x, auto y) { if (x < y) x = y; };
auto chmin = [](auto& x, auto y) { if (y < x) x = y; };
using ll = long long;
const int N = 500;
bool vis[N], cov[N], gd[N], isa[N * N];
int n, dfn[N], ps[N], g[N][N], par[N], dsu[N], deg[N], ind = 0;
vector<int> tr[N];
void dfs(int id)
{
vis[id] = 1;
ps[dfn[id] = ind++] = id;
for (int x = 0; x < n; x++)
if (g[id][x] != -1 && !vis[x])
{
tr[id].push_back(x);
par[x] = id;
dfs(x);
}
}
int fnd(int x) { return dsu[x] == x ? x : (dsu[x] = fnd(dsu[x])); }
vector<int> find_roads(int _n, vector<int> u, vector<int> v)
{
n = _n;
memset(g, -1, sizeof g);
for (int i = 0; i < ssz(u); i++)
{
int x = u[i], y = v[i];
g[x][y] = g[y][x] = i;
}
par[0] = -1, dfs(0);
vector<int> rs(n - 1);
for (int i = 1; i < n; i++)
rs[i - 1] = g[par[i]][i];
int bs = count_common_roads(rs);
for (int i = n - 1; i >= 0; i--)
{
int x = ps[i], y = ps[i];
for (int j = 0; j < i; j++)
if (g[x][ps[j]] != -1)
{
y = ps[j];
break;
}
if (x == y || y == par[x])
continue;
int rcx = -1, ev = g[x][y], mn = bs, mx = bs;
vector<pair<int, int>> res;
for (int z = x; z != y; z = par[z])
{
if (cov[z])
{
rcx = z;
continue;
}
swap(ev, rs[z - 1]);
int cv = count_common_roads(rs);
res.emplace_back(z, cv);
chmin(mn, cv), chmax(mx, cv);
swap(ev, rs[z - 1]);
cov[z] = 1;
}
// cerr << x << " " << y << " " << mn << " " << mx << endl;
if (mn == mx && rcx != -1)
{
swap(ev, rs[rcx - 1]);
chmax(mx, gd[rcx] + count_common_roads(rs));
swap(ev, rs[rcx - 1]);
}
for (auto [z, vv] : res)
{
gd[z] = mx - vv;
// cerr << z << " " << mx - vv << endl;
}
}
vector<int> ans;
for (int i = 1; i < n; i++)
if (!cov[i])
{
gd[i] = 1, isa[g[i][par[i]]] = 1;
ans.push_back(g[i][par[i]]);
}
// for (int i = 1; i < n; i++)
// cerr << i << " " << par[i] << " " << g[i][par[i]] << " " << gd[i] << endl;
// cerr << "ok" << endl;
vector<pair<int, int>> edges;
auto doq = [&]()
{
iota(dsu, dsu + n, 0);
int rd = 0;
rs.clear();
for (auto [x, y] : edges)
{
rd += isa[g[x][y]];
dsu[fnd(x)] = fnd(y);
rs.push_back(g[x][y]);
}
for (int j = 1; j < n; j++)
{
int x = fnd(j), y = fnd(par[j]);
if (x != y)
{
dsu[x] = y;
rd += gd[j];
rs.push_back(g[j][par[j]]);
}
}
assert(ssz(rs) == n - 1);
// cerr << ssz(rs) << endl;
return count_common_roads(rs) - rd;
};
queue<int> q;
for (int i = 0; i < n; i++)
{
edges.clear();
for (int j = 0; j < n; j++)
if (g[i][j] != -1)
edges.emplace_back(i, j);
deg[i] = doq();
if (deg[i] == 1)
q.push(i);
// cerr << deg[i] << endl;
}
// for (int x : ans)
// cerr << x << " ";
// cerr << endl;
while (!q.empty())
{
int id = q.front(); q.pop();
if (deg[id] == 0)
continue;
edges.clear();
for (int j = 0; j < n; j++)
if (g[id][j] != -1 && !isa[g[id][j]])
edges.emplace_back(id, j);
// cerr << id << " " << deg[id] << " " << ssz(edges) << " ";
vector<pair<int, int>> rest;
while (ssz(edges) > 1)
{
int ms = ssz(edges) / 2;
rest.assign(edges.begin() + ms, edges.end());
edges.resize(ms);
if (!doq())
rest.swap(edges);
}
int ac = edges[0].second;
isa[g[id][ac]] = 1;
ans.push_back(g[id][ac]);
if (--deg[ac] == 1)
q.push(ac);
// cerr << ac << " " << deg[ac] << endl;
}
// for (int x : ans)
// cerr << x << " ";
// cerr << endl;
return ans;
}
// started coding at: 05-04 22:12:33
详细
Subtask #1:
score: 13
Accepted
Test #1:
score: 13
Accepted
time: 1ms
memory: 4728kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 21 30000 2 0 0 1 5 2 2 6 1 3 3 0 6 0 4 5 3 2 4 0 1 4 0 5 4 3 4 6 6 1 2 1 5 3 2 4 5 6 5 1 6 3 7 10 9 13 12 17
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 9 10 17 12 7 13
result:
ok correct
Test #2:
score: 13
Accepted
time: 1ms
memory: 4804kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 21 30000 4 6 1 6 2 3 0 3 2 1 2 6 5 6 6 3 0 2 1 0 4 2 1 3 5 2 5 0 0 6 5 3 4 5 5 1 3 4 1 4 4 0 4 16 10 0 20 18
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 20 4 18 16 0 10
result:
ok correct
Test #3:
score: 13
Accepted
time: 1ms
memory: 4860kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 21 30000 2 5 0 4 4 5 4 3 5 3 1 3 3 6 4 1 6 0 5 6 6 2 6 1 6 4 3 2 2 1 1 0 0 2 5 0 5 1 4 2 0 3 20 17 15 9 2 19
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 15 19 20 9 2 17
result:
ok correct
Test #4:
score: 13
Accepted
time: 1ms
memory: 4748kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 13 30000 2 4 4 3 3 2 0 3 0 4 6 3 6 1 4 5 6 2 1 3 5 6 6 0 6 4 3 9 12 7 0 4
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 9 0 7 12 3 4
result:
ok correct
Test #5:
score: 13
Accepted
time: 1ms
memory: 4768kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 6 10 30000 5 2 0 1 1 2 0 3 3 2 1 4 0 5 3 5 4 3 1 3 5 0 7 2 1
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 1 7 5 0 2
result:
ok correct
Test #6:
score: 13
Accepted
time: 0ms
memory: 4860kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 16 30000 3 4 2 5 2 1 0 5 1 5 0 2 2 6 6 1 4 6 0 1 2 3 6 3 3 1 1 4 4 5 3 5 0 9 5 15 3 11
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 9 5 0 11 3 15
result:
ok correct
Test #7:
score: 13
Accepted
time: 1ms
memory: 4748kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 2 1 30000 0 1 0
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 0
result:
ok correct
Test #8:
score: 13
Accepted
time: 0ms
memory: 4976kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 3 3 30000 0 1 2 0 1 2 2 0
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 0 2
result:
ok correct
Test #9:
score: 13
Accepted
time: 1ms
memory: 4696kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 6 5 30000 2 4 5 4 4 0 4 1 3 4 3 1 4 0 2
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 3 0 4 2 1
result:
ok correct
Test #10:
score: 13
Accepted
time: 0ms
memory: 4736kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 6 14 30000 4 2 1 3 4 5 4 1 0 4 0 1 2 3 2 1 0 3 5 3 0 5 0 2 5 2 1 5 13 8 10 7 3
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 7 8 3 10 13
result:
ok correct
Test #11:
score: 13
Accepted
time: 0ms
memory: 4776kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 6 30000 3 0 3 5 4 0 5 6 0 2 1 3 3 4 1 5 0 2
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 5 4 0 2 1 3
result:
ok correct
Test #12:
score: 13
Accepted
time: 1ms
memory: 4744kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 6 15 30000 4 3 2 3 3 5 2 0 5 2 1 3 1 4 0 5 3 0 4 0 1 0 2 1 4 5 4 2 5 1 9 13 12 6 0
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 9 6 13 0 12
result:
ok correct
Test #13:
score: 13
Accepted
time: 1ms
memory: 4744kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 7 21 30000 0 2 2 5 3 4 0 3 5 4 4 2 2 1 4 6 5 3 0 1 4 0 1 6 3 6 1 3 1 5 5 0 0 6 4 1 6 5 3 2 2 6 16 3 18 17 4 6
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 6 3 17 16 4 18
result:
ok correct
Subtask #2:
score: 17
Accepted
Dependency #1:
100%
Accepted
Test #14:
score: 17
Accepted
time: 1ms
memory: 5020kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 1225 30000 47 4 24 48 42 13 5 42 19 17 29 31 23 48 37 25 37 43 27 22 43 30 19 44 49 37 39 14 26 46 46 35 49 15 40 19 6 31 37 1 21 0 26 45 6 4 38 36 6 8 20 4 18 24 20 35 5 29 1 19 35 49 29 20 25 10 10 36 2 22 26 11 7 9 24 3 35 38 48 41 22...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 638 1033 746 440 119 1006 552 1071 923 509 706 584 770 860 1205 333 754 322 880 1042 127 397 1199 1058 221 355 212 24 166 848 679 866 591 299 497 377 478 851 760 1107 257 503 458 61 768 195 62 277 795
result:
ok correct
Test #15:
score: 17
Accepted
time: 1ms
memory: 4716kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 1225 30000 44 29 11 44 39 16 20 31 6 3 9 27 49 27 12 0 27 1 48 49 46 12 35 36 35 11 49 13 23 20 28 26 12 1 42 37 5 15 28 32 6 10 16 7 4 43 4 31 49 34 9 14 2 46 44 30 40 17 14 29 41 18 27 44 13 3 23 40 47 24 16 3 6 26 45 18 24 42 11 10 23...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 501 181 354 95 577 275 48 649 456 297 600 849 67 182 701 21 88 228 89 1173 607 1055 1051 151 178 562 256 97 1185 769 279 472 496 315 280 230 497 913 294 776 552 678 633 723 204 1037 933 420 196
result:
ok correct
Test #16:
score: 17
Accepted
time: 2ms
memory: 5036kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 1225 30000 12 30 6 44 33 47 7 33 0 2 10 30 30 46 14 11 43 42 13 27 49 24 6 17 21 2 12 21 24 38 5 21 17 0 16 4 26 5 27 32 20 45 6 20 19 0 20 35 47 39 17 39 0 23 26 33 1 17 3 20 4 46 48 21 21 35 24 40 9 29 28 23 9 1 43 34 4 44 18 37 40 13 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 795 790 95 859 841 847 470 261 56 874 1075 948 997 198 524 273 882 25 166 907 834 213 204 917 290 1048 438 150 885 93 1068 160 67 1064 1082 466 894 513 610 535 222 784 966 374 1141 24 326 382 482
result:
ok correct
Test #17:
score: 17
Accepted
time: 1ms
memory: 5000kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 1002 30000 35 6 20 23 17 3 16 48 49 29 31 32 38 3 10 39 16 4 47 13 0 19 24 25 42 39 48 44 39 32 1 42 18 8 17 15 19 32 33 23 21 18 7 13 6 0 26 35 34 22 39 13 48 47 6 21 44 7 21 13 43 16 41 43 36 6 25 14 3 49 3 33 47 29 25 45 45 13 12 13 3...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 614 237 313 28 941 116 559 135 20 808 213 801 841 90 712 96 401 357 403 221 304 875 685 372 402 591 670 348 636 370 560 436 823 308 963 266 858 440 4 828 112 783 229 351 420 668 837 898 174
result:
ok correct
Test #18:
score: 17
Accepted
time: 1ms
memory: 4728kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 371 30000 20 0 5 9 13 38 4 3 12 23 20 42 43 12 27 28 1 42 23 42 14 41 39 9 2 9 10 13 14 32 18 30 6 7 32 3 39 38 12 34 33 0 10 41 32 30 15 43 13 6 2 30 20 14 36 21 17 2 0 28 24 29 19 7 25 15 10 48 21 49 31 7 2 44 7 44 28 40 38 17 33 48 18...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 364 314 89 238 24 14 277 0 233 93 224 38 82 234 27 257 18 21 101 46 102 309 344 129 152 105 140 131 156 349 216 210 121 212 139 300 239 279 237 45 35 274 193 16 294 135 74 290 62
result:
ok correct
Test #19:
score: 17
Accepted
time: 2ms
memory: 4800kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 1027 30000 46 5 15 29 43 39 16 32 38 5 4 22 13 4 41 5 0 41 39 6 6 8 3 13 25 6 40 25 17 40 47 0 26 15 30 11 27 31 43 45 30 17 35 37 8 27 2 38 35 19 7 12 36 31 41 21 14 25 14 35 15 17 37 2 27 46 24 39 24 29 19 10 28 1 22 35 24 41 16 46 13 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 986 645 230 140 839 1001 196 639 487 198 85 158 1007 5 670 660 112 406 170 13 417 220 238 571 994 988 674 521 583 607 148 398 77 83 928 1021 173 497 142 488 506 983 313 974 885 31 585 1005 816
result:
ok correct
Test #20:
score: 17
Accepted
time: 1ms
memory: 4756kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 965 30000 28 25 38 23 12 44 1 35 45 46 39 4 19 22 40 23 25 49 20 29 30 9 17 2 15 32 32 14 45 7 19 12 40 22 12 35 10 5 49 37 29 31 19 40 22 6 28 46 23 11 2 1 40 24 14 44 44 40 16 47 7 14 38 47 43 34 4 18 17 22 32 30 33 13 36 21 47 37 37 3...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 820 837 138 335 93 161 508 74 114 127 182 952 505 125 257 6 259 346 901 352 273 79 541 251 846 50 546 146 841 157 570 109 698 332 48 16 371 911 353 551 544 796 45 679 213 907 766 799 673
result:
ok correct
Test #21:
score: 17
Accepted
time: 2ms
memory: 4876kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 900 30000 25 47 5 46 35 22 46 22 15 35 37 46 27 46 29 20 0 7 7 14 8 19 28 38 11 7 9 16 28 0 38 29 30 47 23 11 26 10 3 38 30 49 28 13 45 3 7 17 42 0 30 1 48 2 47 22 18 49 26 34 12 20 40 9 12 38 46 16 24 16 40 30 31 33 45 34 16 25 14 31 4 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 78 404 288 575 40 897 291 300 805 745 763 816 524 605 704 877 566 65 751 27 430 360 699 433 557 703 727 252 428 502 256 32 498 196 351 533 487 211 323 870 298 590 423 561 551 46 645 530 653
result:
ok correct
Test #22:
score: 17
Accepted
time: 1ms
memory: 5008kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 701 30000 1 47 37 0 2 41 32 33 15 40 38 42 5 27 0 9 0 8 10 36 26 42 5 25 41 35 27 2 21 15 40 28 0 15 43 29 37 3 28 18 9 3 47 27 32 38 48 47 28 13 34 32 27 23 40 8 38 15 46 7 24 14 12 46 47 28 20 43 2 48 2 28 22 45 14 27 23 42 30 35 26 18...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 477 18 46 51 8 7 60 24 84 61 19 76 33 14 36 26 30 10 39 70 3 25 9 57 56 62 1 0 17 86 37 5 12 22 42 29 11 16 55 31 2 28 23 6 13 4 21 15 32
result:
ok correct
Test #23:
score: 17
Accepted
time: 1ms
memory: 4728kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 626 30000 49 25 30 31 0 3 6 11 25 10 19 13 10 49 43 31 7 19 24 28 39 31 15 7 32 30 27 41 18 23 31 13 26 40 19 41 42 30 47 28 5 4 41 24 42 27 15 45 29 14 29 37 42 6 2 42 45 13 27 32 32 20 4 29 4 21 20 24 16 44 14 12 28 6 25 37 10 22 8 48 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 66 56 27 20 39 77 35 30 32 13 97 61 47 52 10 34 51 19 16 41 2 24 12 31 91 14 49 9 44 3 46 0 43 38 21 54 26 7 25 4 17 23 18 37 11 1 8 15 5
result:
ok correct
Test #24:
score: 17
Accepted
time: 1ms
memory: 4740kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 601 30000 28 10 43 16 22 35 42 20 8 39 34 33 47 44 47 49 3 9 10 32 34 5 4 14 9 18 19 33 29 38 31 25 8 2 5 4 5 8 40 23 27 21 36 23 10 6 14 26 39 27 44 36 29 47 6 1 2 46 21 15 43 13 28 38 1 23 41 45 3 49 26 15 39 2 11 17 22 0 45 47 48 46 4...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 130 38 27 60 37 65 1 12 13 70 23 50 15 9 59 19 40 2 22 3 56 30 8 5 11 29 47 21 28 49 0 52 34 10 17 20 25 16 44 31 33 7 18 24 6 14 39 4 26
result:
ok correct
Test #25:
score: 17
Accepted
time: 1ms
memory: 4744kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 85 30000 33 16 22 4 21 25 32 42 13 46 7 38 18 16 38 33 44 27 19 2 3 2 30 24 0 47 49 12 20 47 17 32 23 26 45 28 35 8 31 20 40 34 25 36 25 43 5 40 11 46 24 1 49 35 30 9 17 41 33 29 11 13 28 19 9 32 6 48 11 39 15 23 16 29 31 0 6 38 27 4 3 0...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 40 46 41 70 82 1 32 7 61 84 69 17 52 12 25 10 39 5 18 27 13 4 47 35 6 2 44 16 31 29 19 20 21 45 34 28 3 22 8 33 14 11 9 38 26 24 23 0 15
result:
ok correct
Test #26:
score: 17
Accepted
time: 0ms
memory: 4748kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 602 30000 23 30 14 19 2 28 37 21 18 35 1 24 35 1 2 7 11 14 41 11 15 30 6 47 16 25 27 21 14 31 26 30 36 14 43 8 47 7 1 15 18 14 38 31 16 10 19 45 49 27 40 4 25 13 31 3 43 26 19 39 47 27 30 1 2 27 34 33 43 36 45 18 4 37 39 23 11 17 37 44 2...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 27 75 17 51 38 40 45 0 96 16 21 25 9 71 39 44 93 24 33 28 56 29 67 14 36 8 41 47 15 23 2 3 10 1 7 13 19 20 18 30 4 11 6 42 5 22 218 12 26
result:
ok correct
Test #27:
score: 17
Accepted
time: 1ms
memory: 4984kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 627 30000 2 46 48 6 42 10 35 38 19 24 47 39 37 7 12 39 12 31 6 43 9 5 25 28 12 26 30 16 41 48 45 11 44 31 47 15 31 32 36 37 32 43 36 15 7 48 27 28 26 20 0 6 31 18 45 35 37 3 9 20 5 20 40 2 7 43 35 33 39 15 40 27 0 39 28 42 0 38 17 46 6 7...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 84 28 45 10 6 2 15 49 26 74 104 89 4 13 33 48 14 16 56 29 19 37 27 42 53 72 1 24 21 3 11 76 12 17 38 23 5 25 35 7 9 31 8 0 18 39 20 93 59
result:
ok correct
Test #28:
score: 17
Accepted
time: 0ms
memory: 4980kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 270 30000 20 36 24 11 20 31 45 48 12 16 11 10 36 8 19 31 3 49 6 45 31 33 37 20 41 46 19 33 45 13 44 26 23 20 49 16 40 27 46 45 19 26 33 28 15 25 28 26 43 16 1 31 9 16 19 36 30 9 13 41 0 48 15 49 13 21 28 35 25 49 35 1 47 14 21 41 16 25 1...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 30 25 8 9 43 6 4 87 135 16 75 28 76 51 33 11 55 12 24 3 36 0 26 1 21 62 86 2 17 5 19 77 31 57 14 22 18 72 65 56 173 44 10 32 7 217 20 159 15
result:
ok correct
Test #29:
score: 17
Accepted
time: 1ms
memory: 5004kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 130 30000 26 14 28 25 10 31 20 12 12 39 12 28 41 19 48 5 20 24 27 4 21 43 21 45 11 29 14 46 29 13 36 27 40 11 0 30 32 34 22 30 27 46 6 22 34 40 46 4 13 15 6 49 22 8 49 22 46 36 42 5 45 43 16 32 30 9 26 27 21 37 27 14 2 30 34 23 18 42 21 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 17 51 36 9 83 26 32 37 1 0 2 48 45 15 118 4 6 10 46 39 25 5 13 64 20 123 53 65 7 3 29 8 38 47 70 49 11 24 34 14 54 12 21 16 19 22 43 18 31
result:
ok correct
Test #30:
score: 17
Accepted
time: 1ms
memory: 4772kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 625 30000 34 44 19 12 6 24 31 33 30 11 10 40 7 43 46 39 47 4 36 15 8 27 42 21 35 16 26 48 17 29 2 1 0 25 23 14 20 3 32 18 49 13 41 37 22 9 28 38 5 45 17 7 32 0 26 19 19 43 34 45 48 37 48 3 23 37 39 12 22 37 32 49 17 38 19 11 46 26 24 27 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 8 24 22 20 17 9 19 18 16 23 14 4 3 5 21 11 7 45 29 35 32 41 42 55 75 33 2 0 26 34 31 15 1 39 30 58 10 13 12 54 27 64 40 46 36 37 25 28 6
result:
ok correct
Test #31:
score: 17
Accepted
time: 1ms
memory: 4748kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 625 30000 37 43 38 19 3 37 27 46 35 26 15 7 47 34 25 49 2 45 5 20 28 44 11 22 33 1 36 31 16 42 40 32 43 24 6 8 12 14 18 4 9 21 23 48 41 30 13 29 10 0 42 27 20 26 20 9 24 0 32 39 11 10 14 21 11 28 20 46 24 14 18 34 13 18 42 30 43 41 16 9 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 12 8 19 9 17 5 72 1 11 23 13 29 22 10 21 43 61 40 49 48 42 37 52 7 15 14 6 2 51 50 25 35 0 18 4 3 36 16 26 33 45 27 32 20 30 31 24 34 28
result:
ok correct
Test #32:
score: 17
Accepted
time: 0ms
memory: 4984kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 625 30000 25 29 39 24 9 31 10 34 16 41 7 30 46 36 11 27 42 22 18 8 14 20 35 13 5 21 4 26 1 29 0 44 33 43 37 15 38 6 19 32 2 48 23 17 45 40 49 28 47 25 8 35 1 38 4 49 5 14 41 28 16 34 8 41 22 4 44 21 8 37 45 44 14 24 13 32 1 27 31 11 40 0...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 15 20 45 18 2 67 17 21 9 10 13 5 16 22 8 6 96 26 39 34 62 58 46 35 32 43 1 3 19 33 30 37 12 4 11 28 25 36 31 42 29 7 23 38 27 14 41 0 24
result:
ok correct
Test #33:
score: 17
Accepted
time: 1ms
memory: 4984kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 50 625 30000 43 10 21 5 12 24 8 3 16 18 32 28 41 39 26 40 1 7 47 48 42 43 44 29 6 35 9 22 37 33 27 23 10 19 25 45 46 2 17 15 38 34 0 31 20 49 13 11 36 4 6 36 8 48 36 16 15 49 22 17 7 32 34 29 19 13 30 18 7 0 26 29 15 8 43 6 22 25 12 10 6 8 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 8 3 1 13 23 75 22 15 21 12 14 7 6 11 17 18 9 47 32 28 57 34 59 35 46 38 43 26 16 20 30 31 10 29 2 5 41 19 39 42 33 36 0 24 4 40 37 27 25
result:
ok correct
Subtask #3:
score: 21
Accepted
Dependency #2:
100%
Accepted
Test #34:
score: 21
Accepted
time: 13ms
memory: 5512kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 28680 30000 77 105 206 25 9 149 62 63 186 223 157 69 181 222 103 184 97 50 227 3 60 109 51 3 188 65 213 224 33 209 133 213 84 23 189 158 138 141 191 195 221 106 44 49 195 86 90 231 202 204 83 43 192 37 46 21 76 34 126 234 59 213 197 41 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 4586 8947 19637 1853 20517 11542 8831 4656 15583 4510 13587 27789 2980 25324 12960 3758 3493 27534 21356 14004 10468 28537 27130 2642 21950 1365 10450 22044 18941 6805 12225 24854 4042 25299 28468 14507 24586 9381 28378 21027 3185 18456 ...
result:
ok correct
Test #35:
score: 21
Accepted
time: 10ms
memory: 5280kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 27680 30000 200 15 124 32 165 159 220 160 218 108 124 92 144 70 107 93 63 84 18 154 3 94 100 133 214 205 58 89 206 16 17 141 122 155 140 199 37 195 165 236 162 136 142 124 3 168 205 149 99 61 210 89 81 100 185 15 131 179 106 5 11 215 16...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 11349 27502 8632 15775 2874 6133 25982 16273 15091 22690 4390 4114 8189 15921 14943 23368 951 17077 17008 18631 7026 7160 23636 21249 21768 19250 10451 24402 16789 17785 6779 5525 10443 16702 17192 10164 21744 6810 608 20725 23371 5336 1...
result:
ok correct
Test #36:
score: 21
Accepted
time: 12ms
memory: 5104kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 19000 30000 202 130 117 5 108 72 44 63 37 77 174 221 63 193 228 218 176 98 37 131 174 32 212 211 70 131 238 213 186 170 78 17 214 46 132 50 224 48 182 84 117 187 219 25 26 7 64 117 57 213 32 193 223 205 92 110 238 142 125 98 26 126 156 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 765 3835 17273 633 11549 11201 15124 12972 4712 14306 5898 5684 2368 14508 5180 11147 5634 6948 11669 8083 11151 9508 13749 12422 16373 1612 10536 10894 7089 15791 7984 10289 9514 6400 5364 16971 10093 10913 73 10509 12314 14683 15373 33...
result:
ok correct
Test #37:
score: 21
Accepted
time: 6ms
memory: 4768kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 1200 30000 69 37 167 58 236 35 109 163 146 70 157 29 171 159 21 97 160 87 0 175 66 39 67 105 44 23 28 19 68 239 191 21 206 176 16 4 147 217 5 213 162 9 235 23 29 24 88 37 154 79 120 30 37 113 40 136 188 83 62 65 83 115 186 228 89 177 84...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 1081 879 933 1026 189 548 696 293 300 1049 534 810 21 308 821 871 26 487 633 384 750 1024 867 60 1184 92 185 1162 86 350 235 154 117 716 379 983 241 733 187 115 891 158 1198 1057 63 473 390 225 71 1062 1193 376 233 177 330 1083 47 281 53...
result:
ok correct
Test #38:
score: 21
Accepted
time: 13ms
memory: 5260kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 28500 30000 39 121 47 231 20 137 46 76 236 198 129 155 195 39 68 232 68 213 149 87 10 87 27 191 39 58 124 116 174 14 24 41 52 42 221 180 103 193 197 28 170 84 152 166 51 145 123 120 1 5 75 67 61 207 80 160 62 118 62 191 153 72 230 51 13...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 18122 4421 569 23094 5955 4853 3746 12033 10662 6247 6031 13999 8414 26480 27219 14826 4834 21095 13521 15424 17019 22536 119 23861 4746 100 19976 16254 1818 13765 498 2234 18920 26698 18037 19737 23078 16620 28263 5535 11667 2313 5911 2...
result:
ok correct
Test #39:
score: 21
Accepted
time: 12ms
memory: 5184kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 24300 30000 224 91 45 219 129 54 171 116 139 153 2 122 62 154 136 43 138 86 228 85 88 18 146 135 116 0 230 107 165 42 142 137 152 10 191 238 76 196 196 90 181 187 150 232 166 24 32 213 59 89 87 52 102 79 167 119 89 202 111 19 142 20 142...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 21650 23536 6356 12370 23453 13735 2310 4459 16850 3312 19846 10902 2284 21989 6628 15709 8263 10773 19853 18670 22179 19105 17267 9162 11627 2220 4924 1368 8059 12101 16282 818 17811 20421 20375 17372 9197 19757 24129 10932 21110 23956 ...
result:
ok correct
Test #40:
score: 21
Accepted
time: 12ms
memory: 5128kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 19000 30000 213 152 122 131 131 30 199 167 218 66 136 31 35 118 209 45 87 214 160 210 204 179 99 199 92 36 208 161 101 237 169 231 96 229 220 184 36 169 126 198 167 113 95 188 117 142 41 139 4 191 7 214 0 41 123 73 90 1 228 115 206 106 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 17870 7066 7049 12421 11297 18863 6298 9243 15357 6397 6719 17558 17715 16915 1836 12193 10948 7712 10421 6979 7174 6699 14527 15338 6715 11879 6942 7437 12390 8453 4560 13541 698 885 927 18329 15971 9970 9747 13821 15305 1456 12679 7078...
result:
ok correct
Test #41:
score: 21
Accepted
time: 12ms
memory: 5312kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 28680 30000 152 222 33 34 198 107 131 148 28 9 147 195 21 176 229 96 33 199 123 227 88 224 228 154 150 4 105 49 37 54 19 127 103 55 132 157 87 167 223 129 223 47 121 21 16 83 80 112 94 21 219 161 233 23 15 4 143 104 163 107 54 77 25 32 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 20229 12771 11864 25073 17530 10061 3126 1786 16415 953 19861 24262 23528 19747 26416 11599 8333 3903 19479 20752 25733 4553 18292 12172 5655 2488 4659 25969 12249 24159 1621 20846 14216 26010 16356 26720 8938 26627 18348 22997 15589 220...
result:
ok correct
Test #42:
score: 21
Accepted
time: 12ms
memory: 5240kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 28580 30000 94 118 196 100 226 142 45 93 169 133 226 104 28 139 183 27 83 150 109 15 163 94 15 81 19 127 77 131 163 19 140 123 210 183 77 186 137 217 209 34 213 10 105 10 237 62 215 21 117 165 98 226 39 155 137 91 80 122 109 36 179 192 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 2737 15211 11735 14422 7699 21828 28090 27867 19313 5022 2354 7713 16423 22695 22164 3055 12345 22054 5967 18693 28523 4952 12921 3854 26573 13342 16810 13666 6324 11514 14839 154 23739 2083 27546 11390 28102 20380 17598 8860 23826 15797...
result:
ok correct
Test #43:
score: 21
Accepted
time: 5ms
memory: 5136kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 15181 30000 85 75 184 0 175 129 194 123 142 28 187 46 144 198 122 72 30 184 93 92 24 173 123 104 26 49 27 41 12 210 160 151 112 138 229 205 43 200 81 85 0 97 74 161 110 185 164 186 122 127 219 181 32 213 192 49 4 211 19 115 180 227 52 1...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 12402 139 33 28 182 183 79 136 35 158 233 280 191 140 129 154 380 13 8 38 304 98 78 93 463 91 155 5 32 134 97 58 126 62 346 131 170 45 120 0 125 114 19 411 202 174 195 112 142 272 57 11 22 259 63 149 151 2 364 207 167 77 48 137 256 150 2...
result:
ok correct
Test #44:
score: 21
Accepted
time: 9ms
memory: 5248kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 12182 30000 65 20 13 163 23 228 96 62 37 143 6 29 129 121 108 162 51 34 21 199 227 25 227 208 72 80 121 17 139 227 146 193 169 89 6 50 76 137 2 232 196 125 182 64 10 178 90 19 142 6 24 100 80 57 27 185 202 225 42 125 66 23 7 5 18 49 12 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 6855 8217 378 84 101 129 31 370 175 0 10 55 54 97 141 130 132 209 191 126 17 71 672 21 34 127 12 227 538 122 103 152 320 137 157 196 296 35 121 3 205 247 37 39 57 334 95 225 226 128 118 107 369 63 133 197 48 283 56 96 231 90 79 179 379 5...
result:
ok correct
Test #45:
score: 21
Accepted
time: 10ms
memory: 4992kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 14281 30000 185 117 86 83 197 227 78 60 119 134 10 88 216 206 9 74 89 237 21 57 99 6 47 53 214 100 140 237 141 131 210 234 183 206 196 235 37 91 161 144 63 112 227 72 0 3 59 10 231 1 223 67 94 56 86 57 155 133 120 134 232 160 168 180 78...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 2079 22 246 146 64 128 136 441 41 220 199 135 38 305 137 323 235 304 163 47 309 56 11 347 3 542 450 150 195 99 133 167 192 208 102 98 35 37 116 26 10 229 88 262 66 227 4 104 172 44 181 210 266 178 14 68 175 303 142 469 225 490 28 180 143...
result:
ok correct
Test #46:
score: 21
Accepted
time: 10ms
memory: 4972kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 10682 30000 158 52 46 225 215 8 82 232 96 15 138 127 62 153 87 88 61 215 129 49 172 28 224 171 87 53 195 215 47 224 91 209 55 227 83 130 59 107 18 238 210 23 225 60 104 51 130 113 72 160 236 65 87 174 111 30 96 175 226 139 99 227 35 5 2...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 2128 754 63 31 42 2 132 103 446 164 183 548 196 127 120 216 219 471 276 263 41 168 167 47 297 22 12 158 339 18 21 8 166 68 38 210 59 203 240 280 357 162 161 379 30 198 1094 86 282 48 645 144 152 224 244 314 709 256 146 151 116 260 29 60 ...
result:
ok correct
Test #47:
score: 21
Accepted
time: 7ms
memory: 4900kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 4685 30000 47 83 235 230 162 108 46 147 229 72 72 173 114 71 121 113 143 162 51 214 121 51 239 118 197 48 158 150 21 64 0 236 160 67 218 188 29 79 8 85 142 4 26 153 73 114 78 137 91 87 224 116 211 87 22 62 106 85 19 125 26 162 14 210 12...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 547 231 185 3884 650 94 245 269 312 146 305 29 164 85 170 119 129 179 42 296 133 48 274 3 238 106 149 253 168 43 27 169 206 287 199 18 273 208 0 186 58 123 191 55 319 189 384 34 516 69 178 152 68 7 107 321 11 634 75 32 203 368 212 159 29...
result:
ok correct
Test #48:
score: 21
Accepted
time: 3ms
memory: 4768kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 419 30000 117 72 112 209 19 107 171 168 236 144 123 226 96 126 67 51 63 121 234 169 154 97 222 37 52 211 160 36 179 177 234 36 182 59 93 218 64 8 207 215 27 16 208 73 214 157 218 199 154 28 68 239 41 150 184 59 63 147 37 210 134 148 132...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 97 268 164 244 302 408 177 252 173 171 188 206 207 337 28 372 318 256 21 166 79 121 357 197 105 219 137 2 86 311 404 8 142 315 286 52 264 89 120 395 370 346 303 138 290 9 288 340 72 353 109 282 193 45 88 55 47 325 160 71 130 84 129 198 1...
result:
ok correct
Test #49:
score: 21
Accepted
time: 5ms
memory: 4896kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 1340 30000 100 43 227 35 6 89 210 126 155 31 166 168 19 80 210 107 5 209 79 33 122 24 171 39 84 94 163 42 78 84 38 51 34 121 85 95 90 178 152 59 82 26 7 118 206 163 229 124 184 19 179 176 159 189 203 11 1 43 18 203 15 21 205 220 40 26 2...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 96 117 132 169 30 99 128 170 121 281 9 16 13 165 86 182 72 15 320 56 164 366 146 180 123 221 216 112 14 20 147 45 250 2 466 362 12 51 172 206 127 75 544 279 69 398 171 54 339 82 52 134 155 92 26 224 137 44 203 5 105 103 122 183 477 131 2...
result:
ok correct
Test #50:
score: 21
Accepted
time: 4ms
memory: 5120kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 4686 30000 109 222 129 207 41 85 155 232 104 110 7 9 15 182 92 132 160 23 167 223 130 191 7 170 183 20 97 154 55 130 199 143 125 112 225 196 70 182 48 178 204 64 51 86 210 7 175 98 71 70 29 185 205 105 227 79 196 191 138 114 161 146 56 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 142 105 182 320 344 67 49 8 76 281 179 417 86 75 294 292 222 92 88 492 66 257 71 256 118 102 84 47 20 421 279 150 46 129 27 174 93 863 215 158 7 246 132 343 4 32 171 0 94 29 220 230 159 100 125 212 141 798 187 175 119 225 272 122 98 323 ...
result:
ok correct
Test #51:
score: 21
Accepted
time: 9ms
memory: 5032kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 14282 30000 196 64 31 209 73 50 28 224 168 66 104 116 85 67 125 143 226 195 211 55 58 22 113 45 89 51 214 152 38 110 25 83 156 192 162 233 217 203 94 234 59 139 109 107 144 223 104 73 102 196 175 192 61 238 118 46 152 40 16 149 148 155 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 47 321 132 216 161 214 373 624 501 148 258 96 72 245 98 53 117 301 210 151 409 294 49 102 2 856 188 284 401 456 87 80 93 319 127 15 6 12 86 42 262 91 295 434 672 57 163 356 168 460 110 5 94 27 204 77 106 153 35 265 195 144 112 288 237 61...
result:
ok correct
Test #52:
score: 21
Accepted
time: 6ms
memory: 4984kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 12183 30000 142 57 209 190 111 176 210 233 189 107 185 47 168 179 156 83 91 35 176 84 68 78 169 103 212 93 222 81 112 170 14 238 113 215 159 122 116 173 132 27 137 139 203 212 137 238 129 2 108 70 35 106 20 128 221 198 170 106 52 66 128...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 240 101 396 372 76 164 131 73 2886 341 177 180 19 349 90 1060 235 288 264 186 311 262 127 133 279 29 303 196 147 287 10 111 680 188 226 140 9 116 51 351 47 281 179 110 224 94 159 178 124 328 126 2 16 40 246 122 151 55 17 88 45 1699 158 8...
result:
ok correct
Test #53:
score: 21
Accepted
time: 9ms
memory: 5224kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 10683 30000 169 36 164 166 236 70 211 50 140 122 204 14 97 30 153 145 55 238 163 214 185 130 36 74 127 139 218 48 184 214 157 238 180 37 86 145 135 6 30 129 159 200 48 118 114 61 193 12 66 128 79 82 24 102 25 77 56 59 118 38 128 153 181...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 289 400 599 167 56 550 195 336 288 190 52 390 304 81 126 192 145 175 459 457 29 224 223 198 83 121 323 186 65 180 49 239 153 214 33 250 225 191 934 109 116 235 117 917 158 34 203 143 237 285 22 156 131 122 89 35 372 19 215 213 92 59 110 ...
result:
ok correct
Test #54:
score: 21
Accepted
time: 6ms
memory: 5048kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 15182 30000 173 21 231 223 56 97 175 160 1 181 205 59 177 0 158 194 220 0 90 31 104 239 181 204 29 221 9 169 106 38 196 48 119 141 213 48 25 104 35 175 126 160 149 70 110 131 14 172 37 35 162 110 149 121 13 231 40 191 79 102 64 2 98 156...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 74 57 120 152 27 347 367 39 18 55 14 28 133 238 484 148 70 187 92 196 114 234 285 358 216 173 29 515 90 873 68 274 450 9 520 81 209 186 2 112 269 116 98 218 113 169 239 378 213 96 131 20 101 66 42 426 139 140 432 159 51 336 359 88 52 339...
result:
ok correct
Test #55:
score: 21
Accepted
time: 10ms
memory: 5240kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 14400 30000 219 122 167 73 229 205 178 62 203 85 11 210 179 124 188 23 80 98 180 156 217 0 135 7 2 104 61 138 47 108 237 77 224 126 164 75 84 34 92 212 83 233 68 128 102 78 94 140 27 155 4 107 225 111 132 87 195 37 142 13 117 90 129 28 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 10 79 25 39 60 105 29 112 62 98 35 55 86 71 82 61 41 87 58 70 14 57 32 88 97 3 45 67 17 15 20 113 118 19 23 52 77 84 44 48 99 117 116 33 6 21 75 49 85 53 78 63 42 94 102 92 103 37 68 73 111 81 106 72 119 65 89 47 96 108 0 90 26 83 107 2 ...
result:
ok correct
Test #56:
score: 21
Accepted
time: 10ms
memory: 5000kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 14400 30000 175 171 220 96 214 27 48 205 75 200 8 166 76 10 213 67 62 168 31 69 39 4 128 36 6 79 178 107 224 104 20 185 49 45 60 160 119 72 148 159 141 226 24 35 194 54 2 15 209 232 44 228 149 50 234 66 57 172 25 196 195 239 144 115 100...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 89 100 10 113 5 23 47 97 65 94 38 55 25 66 110 3 117 22 70 75 8 81 6 35 50 105 68 73 32 42 58 31 201 18 72 91 69 101 60 56 67 83 33 54 45 26 63 52 17 78 36 28 37 119 96 98 107 85 92 4 116 44 7 266 62 43 20 95 61 112 27 59 121 126 291 168...
result:
ok correct
Test #57:
score: 21
Accepted
time: 10ms
memory: 5024kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 240 14400 30000 233 129 228 221 18 89 77 107 168 125 238 219 32 150 132 46 34 193 222 27 83 167 206 177 15 146 210 218 187 128 25 75 195 39 105 56 156 233 79 124 220 215 164 183 194 68 211 52 62 142 207 1 14 189 8 61 95 33 144 154 136 160 4...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 55 85 26 2 61 88 58 6 8 16 56 39 43 35 23 17 38 27 24 114 92 101 19 106 76 117 57 64 33 45 93 3 78 52 84 67 94 14 7 111 41 104 12 102 40 36 18 48 116 59 107 77 10 73 21 70 86 112 51 47 79 25 83 5 1 60 95 99 100 80 62 323 134 161 163 216 ...
result:
ok correct
Subtask #4:
score: 19
Accepted
Test #58:
score: 19
Accepted
time: 1ms
memory: 4996kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 2 1 12000 1 0 0
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 0
result:
ok correct
Test #59:
score: 19
Accepted
time: 0ms
memory: 4744kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 10 45 12000 4 8 0 5 2 0 5 8 8 0 3 8 6 4 4 1 2 3 2 1 6 2 1 7 3 7 8 1 7 0 8 6 0 6 9 5 9 6 7 4 7 6 7 9 1 6 3 5 2 5 7 5 3 9 0 3 3 6 2 9 1 5 0 4 7 8 5 4 9 4 5 6 3 1 2 8 7 2 2 4 1 0 9 8 4 3 1 9 9 0 22 41 3 16 7 25 28 11 39
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 16 39 28 41 7 22 3 11 25
result:
ok correct
Test #60:
score: 19
Accepted
time: 30ms
memory: 5708kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 400 79800 12000 32 64 96 254 115 203 7 171 112 81 124 143 336 175 217 328 152 133 124 331 19 91 92 232 152 43 215 169 4 341 363 18 83 99 52 46 248 66 242 187 150 319 335 158 172 150 3 49 126 256 60 153 165 230 265 68 119 380 171 22 35 169 3...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 76239 11706 26447 39140 71860 5562 58728 75263 73826 20602 32188 61064 37257 40510 26399 41554 30802 44658 74680 13453 48824 68069 77664 4574 19404 37157 14618 26660 26442 42206 65687 191 45819 25942 10437 26321 52878 39613 25296 19001 2...
result:
ok correct
Test #61:
score: 19
Accepted
time: 50ms
memory: 6460kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 81 373 318 76 428 363 341 147 361 355 210 392 305 286 311 54 101 386 387 55 233 144 275 414 328 304 360 389 471 417 152 385 65 468 53 127 376 100 498 472 241 462 259 452 62 224 139 280 42 454 353 455 289 191 5 376 479 277 2...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 119857 21901 124254 4332 120214 7377 92607 82661 108438 4061 106465 109285 68505 66518 35341 59027 123115 103006 113517 73231 84498 31499 24614 20675 35257 30416 54503 14105 15397 92232 38676 33214 54235 4470 9281 109173 51234 23119 2669...
result:
ok correct
Test #62:
score: 19
Accepted
time: 53ms
memory: 6348kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 46 114 300 154 29 338 393 146 238 239 371 22 27 445 366 429 28 425 441 111 67 216 468 477 398 199 487 185 192 234 357 110 211 177 219 292 45 496 237 416 122 116 109 293 402 45 395 409 432 178 42 252 100 372 422 92 25 18 208...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 40773 23148 119041 30007 10684 76271 22461 114487 56794 79734 63801 76780 34367 27577 26814 106823 57117 122457 36169 66455 17145 118541 87548 55396 6944 81772 20747 106431 117264 46418 95073 40132 121887 67013 112020 86557 116476 82560 ...
result:
ok correct
Test #63:
score: 19
Accepted
time: 53ms
memory: 6548kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 404 346 493 279 394 299 249 306 24 180 417 182 364 271 410 73 228 494 51 38 405 400 485 130 356 167 221 77 358 274 308 338 497 16 345 14 247 53 146 212 312 362 350 202 8 128 311 328 78 265 422 38 463 36 340 378 333 151 270 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 9736 101170 45926 53474 51788 12587 115774 108408 30231 117568 113238 84437 10344 22817 11202 69753 19491 99551 117006 80676 99842 82 118363 62652 119593 2850 43368 41739 106973 116235 4886 13281 118757 47586 50986 43774 99557 43469 7534...
result:
ok correct
Test #64:
score: 19
Accepted
time: 45ms
memory: 6400kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 12 99 447 205 312 178 469 8 28 268 348 87 211 422 458 494 193 363 447 246 82 18 438 459 345 263 128 467 439 44 140 225 453 5 260 9 12 323 407 387 113 130 376 413 109 398 65 99 407 254 150 427 132 256 425 432 40 368 172 375 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 31194 105532 8236 20963 20511 10283 31134 24613 112754 17525 110197 24995 112986 30654 98148 29939 13425 85146 59083 58459 107391 42843 65954 13523 30779 33766 95471 83981 124606 45809 109786 100834 39121 65009 68791 121172 17764 22230 8...
result:
ok correct
Test #65:
score: 19
Accepted
time: 54ms
memory: 6460kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 128 41 159 483 111 238 13 123 279 81 65 219 169 137 446 493 488 259 481 383 181 158 210 237 139 330 16 161 96 494 385 323 222 14 19 426 63 194 18 84 11 364 28 297 129 321 20 420 232 28 139 478 103 3 473 457 38 310 181 171 4...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 30867 3321 38167 43051 67145 104158 27794 54255 66894 2735 41294 69186 30517 5161 121863 83953 36770 78559 77665 75859 45118 35771 31635 83810 52317 52809 17575 11374 40398 110450 26717 18016 59948 18071 19277 67866 60456 116792 17772 10...
result:
ok correct
Test #66:
score: 19
Accepted
time: 50ms
memory: 6380kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 120 418 278 467 158 189 488 359 239 281 320 463 340 248 292 409 79 351 430 43 103 233 18 57 308 404 124 289 204 469 23 192 388 139 136 360 169 303 205 68 96 440 473 188 283 355 495 480 144 183 434 490 200 229 33 352 79 107 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 28883 81569 95555 7464 2304 119774 35312 105107 114659 109684 74669 106654 32248 13010 4917 116263 78419 105195 30450 1269 101817 100175 117103 85152 21046 64310 116264 84819 60051 20913 27148 31208 63237 58150 60397 83606 84168 97065 31...
result:
ok correct
Test #67:
score: 19
Accepted
time: 46ms
memory: 6504kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 65 32 62 261 436 43 345 82 407 452 322 309 132 296 272 140 63 267 165 194 0 183 401 446 71 87 303 253 265 230 82 250 193 60 234 381 67 164 476 92 10 487 207 25 421 359 421 374 84 292 430 318 151 440 76 420 129 23 127 24 106...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 101470 116352 1915 78801 114310 102681 121703 18417 74376 45843 111806 91801 36487 108410 54634 37295 73035 20648 24970 65946 63940 107639 105366 75805 44696 35739 54278 118290 112719 100026 72447 57957 44806 110542 66056 104117 31851 70...
result:
ok correct
Test #68:
score: 19
Accepted
time: 54ms
memory: 6452kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 156 245 217 282 199 269 211 86 49 16 165 487 134 118 396 47 382 176 76 191 6 362 50 281 433 72 73 217 253 304 335 55 35 449 496 6 43 7 494 452 74 143 259 133 84 1 147 153 143 47 415 414 212 319 437 82 238 312 195 346 279 53...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 75304 89049 114652 100683 71417 114650 28564 112303 6036 60024 54859 37099 24860 114381 54183 41545 118328 81896 57544 106419 41809 19597 43893 70591 117683 46397 99761 107081 83173 79296 104773 63988 121397 88241 32362 1303 41788 7581 3...
result:
ok correct
Test #69:
score: 19
Accepted
time: 50ms
memory: 6412kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 319 475 103 47 229 199 134 18 469 488 319 373 30 301 61 313 297 366 358 129 129 450 92 290 386 301 173 91 388 118 438 334 359 144 358 464 211 73 39 68 455 307 129 152 489 239 409 170 163 414 264 455 142 495 87 459 116 225 3...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 108380 83918 63742 88630 49026 63572 42202 93585 89401 123360 53715 87468 28566 33023 44633 17510 947 76713 101104 100139 16676 73353 116767 75622 50204 44445 75574 22597 9982 45032 83132 119785 13981 53645 34421 85511 14681 88999 94232 ...
result:
ok correct
Test #70:
score: 19
Accepted
time: 1ms
memory: 4856kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 3 3 12000 0 2 1 0 2 1 1 0
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 1 0
result:
ok correct
Test #71:
score: 19
Accepted
time: 54ms
memory: 6388kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 71 12 119 201 196 158 243 3 186 287 136 328 274 343 444 398 487 247 84 38 368 203 411 463 260 148 289 59 261 32 87 169 308 57 428 435 97 347 302 247 257 373 362 241 496 440 305 307 486 182 395 371 223 77 1 148 234 36 241 12...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 106707 38155 49846 37799 123434 78882 123389 115696 26327 47079 15126 41697 12660 82027 17547 32572 32153 13549 24508 14798 56457 88058 181 56180 69589 40693 13178 22415 70572 119998 32418 83936 106279 92627 121235 111578 4753 26750 2175...
result:
ok correct
Test #72:
score: 19
Accepted
time: 54ms
memory: 6396kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 12000 196 332 346 305 336 251 18 480 12 478 494 343 499 274 419 262 336 360 410 33 469 495 374 109 224 313 397 120 162 96 207 286 450 451 119 283 65 159 142 17 216 420 486 75 90 455 107 110 297 261 232 370 408 124 54 59 126 88 24...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 38512 15605 7123 97737 21727 50959 94836 63021 10932 96912 114210 11718 66714 14847 97649 55367 6557 119325 98712 35466 46972 28989 30123 44958 40044 38101 105505 9924 79306 83731 62980 46286 53520 34182 89814 29004 34547 27249 50655 108...
result:
ok correct
Subtask #5:
score: 30
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Test #73:
score: 30
Accepted
time: 1ms
memory: 4744kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 2 1 8000 1 0 0
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 0
result:
ok correct
Test #74:
score: 30
Accepted
time: 46ms
memory: 6464kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124750 8000 440 282 38 495 406 273 493 66 42 410 85 0 321 406 267 99 205 246 102 312 268 329 445 321 311 304 34 384 292 291 158 460 375 358 171 304 314 383 150 141 410 94 98 76 496 468 191 309 452 188 170 176 5 354 333 156 254 82 336 34...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 12418 124065 93044 52503 124322 52396 111512 107806 59858 45447 23872 62253 52656 85167 58359 28843 85435 82549 101100 74342 76711 91950 47131 32840 16645 21917 17004 49992 23791 94397 82231 48689 41419 77344 1029 69413 34214 15907 66018...
result:
ok correct
Test #75:
score: 30
Accepted
time: 54ms
memory: 6184kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 120312 8000 440 133 220 243 325 253 333 69 77 213 372 132 357 140 427 415 389 23 257 179 109 376 263 481 265 217 424 299 101 375 164 423 68 193 456 53 417 491 366 1 157 100 439 55 85 253 72 94 374 367 480 266 151 98 32 373 306 160 282 6...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 26107 90381 97749 106376 95320 75851 66906 111500 108003 75854 69739 34417 61414 79245 57461 31676 19468 97884 22655 19193 14060 104428 87728 52347 85475 67320 28791 94494 58767 59150 2727 109764 27962 100395 101049 67048 74298 119740 23...
result:
ok correct
Test #76:
score: 30
Accepted
time: 35ms
memory: 5120kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 412 43101 8000 179 137 121 140 310 92 18 316 38 392 230 58 34 279 123 267 383 362 11 20 370 214 5 312 293 359 330 46 81 244 319 31 119 73 195 94 102 190 394 285 366 21 5 342 168 245 110 285 155 91 218 33 287 293 108 301 60 124 249 83 38 119...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 8318 30306 4191 28746 4979 22272 28658 6566 27823 2658 5729 2780 33069 10184 15088 234 40336 2034 11651 6337 16907 4380 15529 4786 37060 37675 26076 42951 38089 4239 30467 26417 26086 19426 7124 11965 8204 12853 11639 2337 1754 1247 1229...
result:
ok correct
Test #77:
score: 30
Accepted
time: 46ms
memory: 6384kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124631 8000 131 154 184 149 304 149 26 110 384 334 215 181 195 334 120 288 245 367 175 278 100 378 353 71 492 405 486 21 162 22 5 152 10 473 478 98 235 17 311 443 369 75 115 278 174 204 116 141 179 355 126 304 191 412 474 152 190 98 18 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 55217 65770 60743 51603 30145 28079 72463 76839 21119 75055 14571 23504 88371 75427 91078 83917 86275 33810 17174 64355 17271 2135 26069 75366 96942 38186 32097 4341 40706 41346 26824 52466 75596 81609 16280 11996 20829 58360 64065 80336...
result:
ok correct
Test #78:
score: 30
Accepted
time: 54ms
memory: 6508kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124531 8000 134 151 217 258 8 127 163 205 26 417 36 313 119 390 136 248 319 70 420 313 30 334 389 320 338 419 73 197 310 268 266 473 16 106 185 249 104 393 64 27 105 54 272 26 9 355 97 89 64 367 477 81 117 54 474 188 289 432 160 388 62 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 97864 84161 10925 24332 28788 78744 103538 76588 14560 119459 99682 70732 67247 120709 31664 34231 83335 109609 72510 36548 42130 27100 75878 110531 54140 111194 111913 58638 66738 123359 10930 4567 30464 117104 15468 27637 99253 40675 1...
result:
ok correct
Test #79:
score: 30
Accepted
time: 50ms
memory: 6340kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 124331 8000 358 383 392 123 156 229 465 422 216 21 321 366 126 341 218 39 160 321 6 386 33 366 358 78 394 464 415 256 30 458 427 63 122 324 391 429 122 37 450 334 138 396 75 171 305 270 82 173 4 10 226 464 307 42 133 322 466 326 440 226...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 92132 122181 55390 112071 47306 54778 73688 86925 978 20325 105439 10121 20346 83131 42028 81984 76057 46281 68148 78391 90515 60643 19349 118137 3521 72966 38098 94378 117586 61582 109487 101824 13709 50379 5658 76543 54673 38830 96032 ...
result:
ok correct
Test #80:
score: 30
Accepted
time: 50ms
memory: 6232kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 120631 8000 259 399 446 26 292 451 68 448 277 241 194 262 306 245 420 45 488 442 386 391 363 96 450 224 383 292 191 9 51 320 285 94 184 308 443 4 140 42 13 60 35 450 181 239 129 43 313 367 434 307 162 404 166 4 257 181 230 2 118 497 304...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 117733 40238 106260 78623 58472 106136 20668 70751 65049 55631 1273 43604 17844 27162 113379 30282 37663 100324 8619 77996 53093 16853 44295 8080 13729 95352 21794 2160 35307 28243 66930 59909 59033 119757 55165 18813 118532 25012 61231 ...
result:
ok correct
Test #81:
score: 30
Accepted
time: 53ms
memory: 6076kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 102341 8000 436 63 184 476 285 324 80 109 10 352 273 234 67 166 22 29 348 481 485 177 32 88 107 115 97 225 400 331 53 301 153 47 381 71 53 25 28 171 465 72 342 35 304 359 119 459 216 461 66 1 178 37 174 379 331 380 120 464 118 347 215 2...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 34332 66813 77999 42948 17423 72076 96536 82300 62612 24912 5782 70544 56181 83753 22671 69855 99929 15228 80521 5585 98190 64544 32660 91401 96142 48508 100891 3035 68018 72432 9184 56554 56304 21368 2164 28155 99469 90444 22548 93937 6...
result:
ok correct
Test #82:
score: 30
Accepted
time: 54ms
memory: 6324kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 119867 8000 0 66 390 232 492 215 145 81 468 230 276 414 135 449 8 81 292 453 391 350 490 242 494 219 353 324 397 193 214 39 220 252 333 376 199 331 179 211 225 357 452 481 19 97 31 418 90 244 376 190 42 246 91 57 44 338 276 393 341 469 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 41645 68430 73074 86155 79699 76634 95687 54896 66364 112998 56420 100242 20012 8930 30454 5722 87892 16810 56803 57148 37927 4760 108343 103761 117174 52602 29866 3392 69275 62120 96842 37395 8494 30843 1506 37734 90047 20595 67938 1112...
result:
ok correct
Test #83:
score: 30
Accepted
time: 51ms
memory: 5216kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 61677 8000 124 6 468 216 77 214 217 467 98 41 11 146 436 70 89 57 339 334 449 475 184 282 50 215 483 277 60 91 210 158 479 141 49 1 397 484 483 405 405 114 418 117 169 313 462 138 184 209 289 17 286 66 208 307 297 455 250 134 441 225 39...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 13465 57522 33147 25262 14967 36973 9621 21480 39868 52983 41483 38452 45462 20949 7522 27684 28625 545 4645 2649 17037 15048 56630 61134 25150 20561 58353 45393 23532 12005 5898 45811 44875 39920 4284 25491 35533 830 9690 22812 57583 16...
result:
ok correct
Test #84:
score: 30
Accepted
time: 43ms
memory: 5528kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 72251 8000 459 63 327 443 131 111 153 317 339 354 21 355 450 84 285 308 157 39 132 295 389 179 244 106 420 313 356 439 418 335 476 312 308 214 225 203 301 189 278 448 397 287 323 112 386 402 17 437 390 50 225 199 33 444 298 424 137 125 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 53600 2066 433 268 688 409 1020 139 155 350 183 212 727 34 2186 1863 549 76 1295 558 81 417 855 578 2263 782 97 599 594 189 1928 292 331 597 402 140 111 342 835 141 747 427 831 138 168 459 1130 345 51 587 466 355 784 2188 36 366 287 573 ...
result:
ok correct
Test #85:
score: 30
Accepted
time: 37ms
memory: 5272kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 64751 8000 308 400 255 172 71 232 446 185 144 484 345 78 497 190 92 351 147 491 271 176 145 130 331 347 428 498 303 485 96 53 102 358 76 306 205 41 198 137 43 361 491 242 379 325 12 232 204 263 307 369 342 5 454 264 182 412 96 397 185 4...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 57456 348 782 100 25 1489 801 738 433 430 727 142 84 382 397 478 861 118 570 1002 351 584 99 160 595 223 467 78 837 677 641 491 121 16 625 1149 540 650 786 204 384 501 550 454 572 107 285 292 95 263 150 46 274 74 18 203 137 10 331 112 43...
result:
ok correct
Test #86:
score: 30
Accepted
time: 36ms
memory: 4896kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 44752 8000 175 256 430 412 95 410 418 112 355 283 355 213 178 419 28 420 277 50 497 343 77 88 154 22 346 340 165 286 104 225 437 259 191 476 100 14 42 218 339 443 255 63 269 15 317 417 439 271 365 132 44 284 453 356 219 159 373 119 486 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 15696 29523 146 83 1271 234 21 531 49 587 1171 152 196 189 950 1201 1089 397 289 662 60 187 246 265 8 252 200 496 1031 20 1358 329 100 33 1128 1099 540 168 142 217 254 357 279 1148 17 1110 79 333 3 1912 148 467 28 202 175 376 294 241 264...
result:
ok correct
Test #87:
score: 30
Accepted
time: 34ms
memory: 5420kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 31153 8000 191 48 242 277 98 166 451 261 201 436 335 154 184 336 355 217 420 6 111 353 393 349 290 357 121 425 295 385 381 272 250 213 418 77 420 159 466 244 284 87 448 348 302 475 187 344 148 276 285 222 215 394 476 323 351 466 498 319...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 12218 12846 22746 722 229 295 135 123 739 664 183 200 352 728 631 455 60 530 211 787 322 668 507 703 178 33 471 198 141 336 666 807 209 513 918 801 611 227 255 377 879 83 544 438 51 794 245 767 208 48 868 219 97 341 37 317 493 89 318 551...
result:
ok correct
Test #88:
score: 30
Accepted
time: 29ms
memory: 5148kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 24754 8000 242 449 303 377 174 46 292 29 246 289 171 489 199 389 395 244 288 425 444 364 377 120 321 430 228 210 240 356 396 18 439 466 195 345 392 199 254 2 214 380 290 384 369 260 455 397 60 123 134 117 130 273 412 488 350 332 159 244...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 17276 17789 16322 11283 197 492 396 42 122 335 633 101 50 912 508 95 1432 3 259 557 223 984 695 304 2 112 524 384 898 207 522 105 254 329 571 350 219 332 272 497 611 865 354 206 172 475 173 52 149 113 1246 361 80 359 328 257 651 609 347 ...
result:
ok correct
Test #89:
score: 30
Accepted
time: 32ms
memory: 5232kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 496 23340 8000 123 175 125 195 216 240 171 297 13 186 491 407 491 28 105 90 337 360 106 236 135 64 349 217 269 350 490 309 305 97 214 93 191 409 46 458 181 309 353 168 351 430 323 470 238 231 224 434 175 38 236 220 212 198 367 248 278 410 1...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 13550 15182 2080 14400 10488 524 140 475 1203 4 587 290 600 59 71 100 347 414 296 166 34 1516 746 569 42 361 89 512 448 452 557 70 318 222 641 174 77 273 93 466 341 285 583 388 55 771 668 136 185 420 114 508 162 248 1 783 229 238 560 397...
result:
ok correct
Test #90:
score: 30
Accepted
time: 28ms
memory: 5088kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 19156 8000 465 244 146 280 423 206 393 269 33 198 272 64 124 477 221 85 19 360 477 498 324 226 297 237 347 211 131 117 212 133 158 40 63 102 88 493 277 303 258 288 49 202 111 149 274 368 339 487 102 77 152 335 176 436 273 208 448 374 44...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 11834 12211 3613 18588 18365 12695 68 380 443 423 761 477 162 455 33 1059 66 397 357 56 1168 379 505 741 39 592 244 1069 1156 332 930 220 232 148 317 408 665 786 791 53 850 24 261 241 180 734 208 285 360 200 231 151 63 50 690 13 704 1128...
result:
ok correct
Test #91:
score: 30
Accepted
time: 15ms
memory: 4808kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 2299 8000 402 134 94 162 249 240 477 327 184 5 309 473 499 145 169 182 353 205 406 22 447 0 425 83 286 97 15 131 50 231 134 201 181 351 289 159 199 59 324 466 167 139 402 260 309 464 424 448 329 475 436 228 128 139 382 440 91 363 141 39...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 2222 1942 522 1537 1323 2281 1657 892 846 2049 1459 1133 1651 1733 1339 1951 4 1231 272 997 1523 2 2103 110 850 60 774 1552 643 1956 1136 1894 1400 1996 218 269 2165 2010 1637 483 181 467 339 989 1813 775 1855 1660 1531 347 74 420 562 86...
result:
ok correct
Test #92:
score: 30
Accepted
time: 9ms
memory: 4844kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 874 8000 441 361 41 379 445 488 212 319 53 309 481 414 213 494 102 454 183 488 249 419 314 203 429 89 35 473 3 357 445 124 107 397 246 134 381 296 51 300 350 306 220 5 312 125 99 74 434 341 123 391 291 280 281 209 136 48 157 376 366 94 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 739 467 191 190 689 552 482 425 1 663 260 206 751 750 839 427 652 165 408 541 822 302 324 322 257 480 437 820 42 593 855 330 517 814 528 697 692 96 122 650 745 656 117 391 547 626 357 570 10 405 160 771 98 550 67 140 737 353 718 139 354 ...
result:
ok correct
Test #93:
score: 30
Accepted
time: 44ms
memory: 5360kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 64752 8000 54 217 73 489 437 13 77 332 312 436 431 181 343 470 18 108 426 391 238 475 207 269 84 253 279 75 99 400 372 329 170 11 223 304 182 407 353 190 220 230 115 422 383 93 402 99 114 96 141 144 253 50 444 392 105 348 346 11 85 194 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 722 243 615 345 752 1001 102 639 269 485 323 395 295 45 420 691 99 727 375 315 1281 91 445 212 65 44 200 207 447 47 459 238 564 512 247 619 253 340 399 3 221 278 305 232 317 236 522 422 536 178 308 34 407 766 515 69 226 807 373 633 218 2...
result:
ok correct
Test #94:
score: 30
Accepted
time: 32ms
memory: 4932kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 44753 8000 408 106 172 17 103 126 81 493 301 347 366 166 220 275 490 445 263 267 355 337 373 379 481 109 161 330 260 161 385 295 221 347 77 393 258 373 153 140 119 62 445 350 373 444 167 137 138 284 53 251 14 479 470 288 148 85 28 32 23...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 664 354 124 322 376 236 315 53 154 420 52 798 181 828 118 555 486 166 48 710 1060 197 390 247 1153 19 92 1088 282 125 231 264 383 86 367 353 230 243 397 350 266 238 167 79 1141 1106 676 299 169 131 248 221 30 119 380 438 18 458 61 352 27...
result:
ok correct
Test #95:
score: 30
Accepted
time: 36ms
memory: 5004kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 41953 8000 7 230 75 444 394 169 421 0 125 115 379 394 87 344 0 499 236 353 453 421 195 99 337 494 210 494 123 51 251 67 437 343 12 65 353 28 138 498 66 89 67 165 82 173 302 491 111 260 19 267 285 250 55 213 26 188 370 499 139 245 67 486...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 237 265 420 400 176 809 1265 151 2016 484 186 181 721 446 765 193 94 267 545 412 230 272 16 77 150 218 63 111 1423 112 46 375 1149 1700 37 808 686 465 291 424 464 488 202 379 290 209 471 856 13 235 281 360 384 700 602 1170 169 738 630 43...
result:
ok correct
Test #96:
score: 30
Accepted
time: 30ms
memory: 5248kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 20631 8000 326 381 447 5 423 1 358 173 391 301 188 100 240 347 473 204 264 118 396 273 453 490 369 162 338 355 354 464 39 467 354 338 337 316 148 64 235 451 190 318 86 181 287 370 465 290 109 338 458 387 252 495 396 2 152 108 436 104 26...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 117 2 26 475 574 598 758 281 138 554 1020 525 203 392 151 640 473 483 541 463 215 158 380 583 375 311 347 327 722 230 415 237 391 331 233 93 313 873 394 493 517 65 244 108 436 255 77 367 113 551 36 905 827 120 213 356 272 515 620 88 308 ...
result:
ok correct
Test #97:
score: 30
Accepted
time: 32ms
memory: 5236kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 24755 8000 326 65 44 140 358 50 208 67 148 40 94 468 198 433 59 157 479 265 19 199 172 249 217 229 426 476 130 410 218 101 289 128 323 79 263 317 58 235 139 182 454 460 366 106 138 31 190 102 211 498 155 167 112 199 222 462 273 252 182 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 174 292 799 905 208 186 159 358 360 210 363 194 405 242 135 407 22 241 94 395 857 161 224 1836 337 217 1096 592 291 434 183 3 398 30 233 686 119 366 574 644 96 14 854 479 665 123 725 784 884 318 1243 15 982 112 329 352 506 117 39 7 590 4...
result:
ok correct
Test #98:
score: 30
Accepted
time: 30ms
memory: 5592kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 499 31195 8000 31 174 144 191 229 137 231 370 105 46 316 360 245 333 235 188 392 174 224 489 23 342 33 407 137 36 369 299 342 336 38 13 154 487 204 67 487 151 282 193 6 22 63 483 37 255 173 126 267 76 326 380 356 383 451 233 259 26 461 191 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 212 444 179 361 307 528 28 485 228 11 279 999 554 341 219 487 137 171 685 397 125 329 364 405 24 122 313 268 81 886 154 4 570 430 305 522 208 408 1266 583 362 421 118 534 108 79 98 190 231 230 594 30 213 1 287 276 359 732 124 16 115 330 ...
result:
ok correct
Test #99:
score: 30
Accepted
time: 32ms
memory: 5488kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 498 25856 8000 448 125 341 360 231 492 71 230 186 370 8 286 308 314 247 179 415 36 374 251 159 413 279 490 251 157 425 381 129 247 209 260 75 348 365 370 411 19 25 28 140 150 25 455 78 317 493 147 157 353 435 374 114 85 167 178 377 102 129 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 447 219 529 191 733 398 163 399 530 1950 403 808 1029 244 223 274 1048 480 35 664 321 95 58 128 415 83 182 428 89 1391 246 272 628 829 142 484 515 518 719 152 408 206 770 1579 326 1500 540 435 333 1158 666 533 84 20 572 1645 417 23 36 32...
result:
ok correct
Test #100:
score: 30
Accepted
time: 23ms
memory: 4876kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 6020 8000 288 369 399 287 372 352 368 476 316 32 43 221 232 374 362 460 411 110 391 239 20 356 221 326 272 280 46 152 59 11 232 47 174 343 96 89 314 462 221 112 287 200 469 377 132 43 435 248 104 116 398 444 244 263 433 398 56 44 97 475...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 635 628 594 372 63 10 828 520 578 573 254 369 218 349 614 1142 246 415 28 87 657 14 429 1106 35 354 205 531 462 456 31 340 1166 318 17 697 427 57 8 52 19 608 297 22 353 216 746 436 398 37 158 421 326 763 420 358 129 126 131 75 177 72 310...
result:
ok correct
Test #101:
score: 30
Accepted
time: 10ms
memory: 5068kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 875 8000 496 36 219 349 322 455 21 377 438 387 492 235 232 359 276 11 174 293 308 312 95 254 195 329 146 393 467 271 70 8 466 90 454 15 127 447 315 416 51 103 169 356 437 429 253 327 228 406 178 215 41 458 391 168 179 360 148 457 305 35...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 65 64 452 126 363 36 249 460 205 528 149 84 420 623 125 332 250 375 81 241 196 578 576 269 155 349 51 56 55 333 340 19 235 90 244 179 492 558 141 58 368 342 12 220 209 63 76 277 338 396 83 212 172 224 139 101 207 86 57 376 168 533 299 16...
result:
ok correct
Test #102:
score: 30
Accepted
time: 41ms
memory: 5272kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 62500 8000 27 69 79 434 158 495 62 9 371 326 346 161 385 327 211 464 358 445 442 461 155 342 31 147 36 430 64 82 438 305 81 315 400 459 227 204 407 368 52 169 343 366 258 339 184 22 15 221 113 273 12 39 29 214 58 274 170 350 253 212 190...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 170 226 146 25 23 61 245 238 11 138 239 242 244 86 217 27 119 3 128 95 0 31 98 130 81 123 13 92 201 141 147 88 65 68 213 179 232 50 54 223 199 109 207 163 173 93 118 131 112 111 104 195 241 74 185 2 91 197 76 175 19 28 150 225 99 193 70 ...
result:
ok correct
Test #103:
score: 30
Accepted
time: 37ms
memory: 5184kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 500 62500 8000 277 389 338 22 312 357 110 85 261 348 237 301 20 188 125 172 400 372 319 204 492 190 77 199 0 151 497 470 223 373 482 389 16 300 302 145 219 239 26 289 420 136 465 297 14 305 374 283 427 17 441 402 179 90 336 489 195 309 430 ...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 12 222 45 73 49 179 19 58 190 165 202 125 109 214 947 43 40 106 60 51 235 92 200 707 41 3 245 115 210 108 57 211 141 243 229 129 53 171 199 175 113 30 204 160 20 241 38 88 124 164 84 17 36 201 220 156 246 61 142 47 180 11 196 95 188 139 ...
result:
ok correct
Test #104:
score: 30
Accepted
time: 41ms
memory: 5228kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 498 62001 8000 36 65 406 66 48 54 229 377 178 79 1 118 356 437 235 385 334 238 404 486 11 206 252 96 320 167 130 52 124 81 469 47 128 298 4 87 9 227 401 162 470 419 186 449 405 72 242 142 433 131 16 355 24 203 423 175 255 451 318 369 294 14...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 197 228 18 223 90 26 167 174 101 35 136 15 51 99 13 219 205 86 32 164 244 217 213 92 43 84 42 95 240 11 142 215 48 94 103 69 245 229 14 159 53 16 225 153 140 41 33 107 121 128 19 143 241 55 230 12 117 82 226 70 4 133 180 126 21 202 134 2...
result:
ok correct
Test #105:
score: 30
Accepted
time: 41ms
memory: 5264kb
input:
wrslcnopzlckvxbnair_input_simurgh_lmncvpisadngpiqdfngslcnvd 498 62001 8000 390 290 298 467 85 212 343 332 257 395 181 362 233 262 54 188 272 381 149 89 35 434 437 68 321 132 425 250 410 253 24 349 222 122 400 482 187 56 160 416 297 388 204 284 459 360 248 379 263 18 98 109 270 127 6 423 71 353 179 5...
output:
lxndanfdiadsfnslkj_output_simurgh_faifnbsidjvnsidjbgsidjgbs OK 139 211 243 230 24 163 15 207 37 10 100 66 111 176 187 227 78 218 219 152 34 174 55 158 32 167 126 65 235 118 200 48 25 214 61 83 173 147 144 213 180 42 202 189 233 198 59 19 88 149 87 216 33 46 29 248 123 148 67 62 69 182 2 179 208 94 1...
result:
ok correct
Extra Test:
score: 0
Extra Test Passed