QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#124373 | #6666. Graf | bashkort# | 30 | 258ms | 30984kb | C++20 | 2.6kb | 2023-07-14 17:25:27 | 2024-07-04 00:40:07 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
vector<int> powers{1};
while (powers.back() < n) {
powers.push_back(powers.back() * 3);
}
if (powers.back() != n) {
cout << "ne\n";
return 0;
}
vector<vector<pair<int, int>>> adj(n);
vector<pair<int, int>> edges(m);
vector<bool> deleted(m);
vector<int> deg(n), used(n);
for (int i = 0; i < m; ++i) {
int x, y;
cin >> x >> y;
x -= 1, y -= 1;
if (x > y) {
swap(x, y);
}
edges[i] = {x, y};
}
sort(edges.begin(), edges.end());
for (int i = 0; i < m; ++i) {
auto [x, y] = edges[i];
deg[x] += 1, deg[y] += 1;
adj[x].emplace_back(y, i);
adj[y].emplace_back(x, i);
}
auto findEdge = [&](int x, int y) {
if (x > y) {
swap(x, y);
}
auto it = lower_bound(edges.begin(), edges.end(), pair(x, y));
return it == edges.end() || *it != pair(x, y) ? -1 : it - edges.begin();
};
int T = 0;
auto check = [&](auto self, int source, vector<int> nt) -> bool {
vector<int> ord;
T += 1;
auto dfs = [&](auto dfs, int v) -> void {
ord.push_back(v);
used[v] = T;
for (auto [to, i] : adj[v]) {
if (used[to] != T && !deleted[i]) {
dfs(dfs, to);
}
}
};
dfs(dfs, source);
if (size(ord) == 1) {
return true;
}
for (int x : nt) {
if (find(ord.begin(), ord.end(), x) != ord.end()) {
return false;
}
}
if (!binary_search(powers.begin(), powers.end(), size(ord))) {
return false;
}
nth_element(ord.begin(), ord.begin() + 3, ord.end(), [&](int x, int y) { return deg[x] > deg[y]; });
int a = ord[0], b = ord[1], c = ord[2];
int ab = findEdge(a, b), bc = findEdge(b, c), ac = findEdge(a, c);
if (ab == -1 || bc == -1 || ac == -1) {
return false;
}
deleted[ab] = deleted[bc] = deleted[ac] = true;
deg[a] -= 1, deg[b] -= 1, deg[c] -= 1;
return self(self, a, {b, c}) && self(self, b, {a, c}) && self(self, c, {a, b});
};
if (check(check, 0, {})) {
cout << "da\n";
} else {
cout << "ne\n";
}
return 0;
}
详细
Subtask #1:
score: 15
Accepted
Test #1:
score: 15
Accepted
time: 0ms
memory: 3616kb
input:
9 12 7 9 1 5 8 5 4 6 3 4 1 8 6 3 7 5 2 9 4 5 7 4 2 7
output:
da
result:
ok single line: 'da'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
9 12 8 5 3 9 1 7 7 2 3 6 3 7 4 7 1 4 5 2 8 2 6 9 3 2
output:
da
result:
ok single line: 'da'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 13 3 1 9 7 2 4 7 8 8 7 5 6 9 8 3 4 8 2 4 8 2 5 2 6 4 1
output:
ne
result:
ok single line: 'ne'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
9 13 5 4 1 5 8 7 8 5 3 2 5 2 2 6 6 3 7 9 1 4 2 8 9 8 8 9
output:
ne
result:
ok single line: 'ne'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
9 12 4 2 3 5 3 7 2 7 2 1 2 8 1 4 5 4 7 5 8 4 7 1 3 2
output:
ne
result:
ok single line: 'ne'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
9 13 7 5 6 5 4 9 3 2 6 1 5 2 7 9 1 8 7 4 6 7 5 3 8 6 1 8
output:
ne
result:
ok single line: 'ne'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
9 12 2 6 5 1 8 4 6 3 7 2 9 5 9 1 3 4 6 9 3 8 6 7 6 1
output:
ne
result:
ok single line: 'ne'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
9 12 2 6 1 2 2 5 3 8 1 6 2 9 5 9 7 1 3 6 6 8 4 1 7 4
output:
da
result:
ok single line: 'da'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
9 13 2 9 8 7 7 2 6 3 4 2 1 6 1 7 3 1 1 3 7 5 8 5 4 9 2 1
output:
ne
result:
ok single line: 'ne'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
9 13 1 4 8 9 5 3 3 9 2 7 9 6 1 5 4 5 7 3 6 8 9 8 9 5 3 2
output:
ne
result:
ok single line: 'ne'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
9 12 1 8 2 8 7 3 4 7 6 4 1 5 5 6 8 5 6 3 3 4 8 6 4 1
output:
ne
result:
ok single line: 'ne'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
9 12 4 8 2 7 8 2 1 3 1 2 8 7 6 7 3 2 8 5 5 4 7 9 9 6
output:
da
result:
ok single line: 'da'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
9 12 7 8 4 6 5 4 1 4 9 3 8 2 6 5 9 1 2 7 4 2 2 3 3 1
output:
ne
result:
ok single line: 'ne'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
9 12 3 9 8 9 8 4 2 5 7 1 1 6 2 6 1 9 6 7 9 4 3 1 6 5
output:
ne
result:
ok single line: 'ne'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 12 2 8 6 3 1 7 6 2 8 1 2 5 8 6 2 3 4 7 4 1 1 3 9 4
output:
ne
result:
ok single line: 'ne'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
9 12 4 6 5 7 2 1 1 7 2 3 8 1 8 4 1 5 1 6 5 8 1 3 6 2
output:
ne
result:
ok single line: 'ne'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
9 12 6 8 1 7 5 8 5 3 3 4 3 8 8 7 1 4 4 2 4 7 4 6 2 5
output:
ne
result:
ok single line: 'ne'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
9 12 1 7 3 5 2 3 4 7 5 9 4 9 1 4 6 9 8 6 5 2 1 5 9 8
output:
ne
result:
ok single line: 'ne'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 12 2 7 8 7 8 2 4 3 4 9 5 1 8 6 8 4 9 3 1 6 2 1 6 5
output:
ne
result:
ok single line: 'ne'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
9 12 7 3 2 3 7 9 7 4 6 4 3 4 3 5 9 1 5 2 4 8 7 1 8 6
output:
da
result:
ok single line: 'da'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
9 13 3 7 3 8 3 1 8 7 5 1 7 4 5 3 2 6 8 2 9 7 6 8 2 6 4 9
output:
ne
result:
ok single line: 'ne'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
9 12 5 1 9 2 9 5 4 1 9 1 6 2 1 2 6 8 3 7 4 7 3 4 8 2
output:
ne
result:
ok single line: 'ne'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 12 8 6 5 1 2 9 9 4 2 5 1 2 3 1 3 7 7 1 5 6 5 8 4 2
output:
da
result:
ok single line: 'da'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
9 12 5 1 4 9 7 5 4 2 3 7 9 3 8 2 3 5 2 6 7 8 7 4 1 9
output:
ne
result:
ok single line: 'ne'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
9 12 4 2 3 9 3 5 2 6 5 8 8 3 7 4 2 1 7 6 1 9 4 1 5 1
output:
ne
result:
ok single line: 'ne'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
9 13 6 8 9 7 1 3 4 1 9 2 3 9 3 4 6 5 2 7 3 6 9 6 5 6 8 5
output:
ne
result:
ok single line: 'ne'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 12 1 3 8 6 8 7 1 5 8 5 2 5 7 5 6 7 4 3 7 2 4 6 2 3
output:
ne
result:
ok single line: 'ne'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 12 5 9 9 6 5 1 4 1 3 6 4 2 7 5 6 7 5 4 6 2 6 1 3 1
output:
ne
result:
ok single line: 'ne'
Test #29:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
9 12 3 2 1 5 5 7 2 7 6 2 7 4 1 8 4 1 1 6 8 3 6 5 5 2
output:
ne
result:
ok single line: 'ne'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 12 2 5 6 1 3 8 3 2 3 4 7 2 3 7 2 9 8 4 6 7 5 9 1 7
output:
da
result:
ok single line: 'da'
Test #31:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
9 12 4 1 2 4 3 9 9 2 9 5 3 7 7 9 1 2 8 6 5 2 5 8 6 5
output:
da
result:
ok single line: 'da'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
9 12 9 5 6 9 3 2 6 5 7 2 8 1 7 8 2 4 2 5 4 3 1 7 5 7
output:
da
result:
ok single line: 'da'
Test #33:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
9 12 7 9 4 2 9 8 9 4 1 7 8 3 6 7 1 6 3 5 5 8 2 9 8 7
output:
da
result:
ok single line: 'da'
Test #34:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
9 12 5 6 2 3 5 2 9 7 8 5 6 9 6 7 6 2 2 1 3 1 4 8 5 4
output:
da
result:
ok single line: 'da'
Subtask #2:
score: 0
Wrong Answer
Test #35:
score: 20
Accepted
time: 0ms
memory: 3844kb
input:
729 1093 340 310 430 713 576 240 138 297 618 162 328 418 143 713 568 220 252 387 219 400 593 491 330 472 722 643 679 598 356 112 701 213 344 408 500 190 225 72 351 688 283 542 215 449 135 194 306 382 266 83 576 289 563 721 345 656 567 694 580 355 127 487 352 310 687 322 620 520 583 466 678 308 19 10...
output:
ne
result:
ok single line: 'ne'
Test #36:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
729 1092 638 250 254 320 297 589 143 720 686 343 468 25 722 60 190 624 421 63 612 42 270 146 577 541 70 707 363 484 286 178 643 210 112 70 7 455 211 431 209 484 386 45 585 402 184 326 557 382 180 406 30 686 299 634 268 97 342 687 172 377 233 505 86 174 105 372 333 466 491 579 390 465 477 176 348 427...
output:
ne
result:
ok single line: 'ne'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
729 1092 301 205 596 371 190 64 77 258 283 304 306 454 210 177 327 251 20 388 185 482 339 284 313 586 368 338 612 47 613 323 559 114 233 296 271 397 705 714 125 159 49 496 286 174 278 521 456 134 422 123 201 283 314 599 354 328 492 339 49 153 628 334 275 190 505 275 326 15 241 348 42 102 65 717 224 ...
output:
ne
result:
ok single line: 'ne'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
243 363 31 225 187 117 147 160 229 44 168 179 164 107 173 146 78 102 47 50 38 13 222 83 115 24 14 240 185 61 199 111 119 225 98 80 126 102 42 235 43 216 59 129 109 193 179 27 218 142 114 50 46 174 47 99 120 6 103 221 136 187 19 191 65 180 57 160 166 83 185 229 48 139 114 143 150 101 208 80 24 74 7 6...
output:
ne
result:
ok single line: 'ne'
Test #39:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
729 1093 73 12 701 403 473 596 214 290 248 310 317 639 507 457 298 227 185 326 430 27 61 34 547 636 99 685 607 45 6 101 283 377 310 33 42 132 573 647 483 658 112 113 647 324 518 616 302 247 71 465 586 187 81 396 621 606 435 498 667 677 24 333 414 497 111 164 510 628 665 82 325 719 536 556 719 704 24...
output:
ne
result:
ok single line: 'ne'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
729 1092 663 607 327 712 424 22 507 89 138 363 465 228 129 291 389 682 73 477 581 622 582 543 78 487 55 479 186 50 619 167 490 615 677 191 42 574 323 136 283 120 433 325 531 530 144 24 620 239 368 225 12 166 452 686 361 526 248 709 586 606 39 110 229 696 686 647 260 333 403 150 88 462 529 449 513 35...
output:
ne
result:
ok single line: 'ne'
Test #41:
score: -20
Wrong Answer
time: 0ms
memory: 3680kb
input:
729 1092 659 490 150 263 166 478 382 659 135 290 603 656 601 301 64 689 81 160 197 133 438 593 379 482 522 493 238 72 362 664 648 240 471 168 32 153 282 407 648 492 276 218 593 106 193 537 613 369 632 167 235 236 663 319 37 416 577 659 111 601 578 483 645 529 100 636 457 312 200 161 515 344 591 706 ...
output:
ne
result:
wrong answer 1st lines differ - expected: 'da', found: 'ne'
Subtask #3:
score: 15
Accepted
Test #69:
score: 15
Accepted
time: 103ms
memory: 30908kb
input:
177147 265719 79646 110581 42107 166686 174516 92541 11418 84874 89568 79680 101533 167489 143016 26545 83401 102450 122789 91031 140172 64836 143906 82843 45757 98991 164963 130550 33432 152305 80043 16055 49162 39443 59476 89357 146429 111186 99327 115855 166381 89990 91164 139281 121510 124610 16...
output:
ne
result:
ok single line: 'ne'
Test #70:
score: 0
Accepted
time: 98ms
memory: 30908kb
input:
177147 265719 38681 77992 106972 53905 88649 110477 113934 98724 78662 109263 134699 83502 31991 92472 126170 144 119650 132169 84458 92531 24682 66176 131541 177081 97342 131339 103685 102763 130223 36375 142925 66285 105340 117815 111137 162166 43022 15242 120307 54486 78258 164394 52991 104308 65...
output:
ne
result:
ok single line: 'ne'
Test #71:
score: 0
Accepted
time: 88ms
memory: 19404kb
input:
177147 265719 80151 35717 121902 3023 160759 169382 24887 142159 40782 159514 23600 98839 121180 62418 122763 152478 148678 114794 11943 72581 173127 2884 97280 4969 155030 45742 120300 148466 134742 140635 79483 24583 71636 91841 140421 126108 44434 53426 133218 79051 161302 161964 59589 111719 961...
output:
ne
result:
ok single line: 'ne'
Test #72:
score: 0
Accepted
time: 82ms
memory: 19300kb
input:
177147 265719 23535 148931 151961 42693 126734 69633 41675 97286 148290 110970 18165 83792 5192 133074 101128 76523 76671 146056 37165 145496 108304 76746 47477 140906 73419 48220 39470 54859 81251 91381 88943 87801 102113 126514 153800 35348 116125 49494 114248 11690 150336 26095 40669 90388 3210 9...
output:
ne
result:
ok single line: 'ne'
Test #73:
score: 0
Accepted
time: 94ms
memory: 19340kb
input:
177147 265720 170712 62225 99915 128584 115624 72186 110450 90393 65021 158547 110390 161798 28967 132365 78897 47218 68752 69351 40606 17503 79654 32708 98155 146206 156781 52063 126696 159590 11625 167534 29472 10242 143508 43084 154423 175381 150212 141153 5882 3903 142063 39110 158366 31577 2263...
output:
ne
result:
ok single line: 'ne'
Test #74:
score: 0
Accepted
time: 230ms
memory: 19296kb
input:
177147 265719 67351 167238 129901 55608 68480 135374 104799 141169 109735 94431 87690 136110 134896 150128 94005 84319 29006 124099 31988 157247 99008 24808 30090 15310 10480 16443 98191 89543 98109 139907 59896 166679 121226 129438 83139 84515 163834 143237 162513 60464 6858 120706 23808 13193 8871...
output:
da
result:
ok single line: 'da'
Test #75:
score: 0
Accepted
time: 245ms
memory: 19312kb
input:
177147 265719 49934 2662 4741 40448 67461 170301 114015 170475 29730 50264 68050 122226 32934 46690 90751 17076 98396 30965 80939 156357 41062 48631 10820 52202 159087 96204 147395 50541 69056 20363 24768 83369 43803 69997 108223 145055 101444 32506 175180 28314 170131 19771 45887 87296 145299 15886...
output:
da
result:
ok single line: 'da'
Test #76:
score: 0
Accepted
time: 27ms
memory: 12452kb
input:
59049 88572 33869 8684 36201 17099 17541 2283 22981 14616 13513 52213 11139 30893 32266 10485 49891 55945 26913 20143 50392 9421 15476 57152 15736 43277 33385 9946 25015 18529 55080 14954 33327 26172 35820 51055 30847 44944 38120 13412 52800 58631 25426 21209 35031 45606 41421 42424 39099 24213 1037...
output:
ne
result:
ok single line: 'ne'
Test #77:
score: 0
Accepted
time: 92ms
memory: 30848kb
input:
177147 265719 158947 100123 17627 129179 44853 161738 122822 151153 132190 139323 13711 115387 149537 95876 73216 50769 111079 114260 29105 145008 5197 91602 29429 11403 93116 73751 55482 153754 65336 92511 172591 102364 50347 171957 62648 79628 148924 97856 12011 42334 171767 83301 72782 146232 158...
output:
ne
result:
ok single line: 'ne'
Test #78:
score: 0
Accepted
time: 82ms
memory: 19540kb
input:
177147 265719 171239 110019 168800 150959 137754 135546 138941 101591 111198 74346 39235 96191 139091 78917 64951 168092 14407 93331 27229 20828 78062 17839 102826 27663 82598 122184 13082 61075 45842 51795 33517 21445 49128 25881 161851 129929 24544 119115 110445 119608 50878 100809 162479 159749 1...
output:
ne
result:
ok single line: 'ne'
Test #79:
score: 0
Accepted
time: 96ms
memory: 19256kb
input:
177147 265720 112136 5296 55319 37817 97272 170271 49466 152464 103261 10854 46823 69693 166970 54920 161679 159421 84310 170283 75666 54596 21116 130165 137909 107500 44638 152023 120950 30264 17336 172558 157774 25038 119467 172787 63054 26366 109375 173677 85544 47932 47095 114145 145387 40211 15...
output:
ne
result:
ok single line: 'ne'
Test #80:
score: 0
Accepted
time: 98ms
memory: 30868kb
input:
177147 265719 158201 104204 153475 155435 170472 163532 5281 74197 72344 143977 148218 166021 137501 85445 29712 111045 32690 116115 78753 72698 154995 126254 112252 165535 38392 54550 2644 42336 15467 108263 141358 7480 87037 92511 170169 47971 9483 94922 5450 39308 48697 37906 24519 53734 27732 10...
output:
ne
result:
ok single line: 'ne'
Test #81:
score: 0
Accepted
time: 93ms
memory: 19248kb
input:
177147 265719 150339 18471 98755 174170 9435 71068 57051 159252 109302 44474 111562 51689 18411 115056 30948 157870 129179 152162 157794 28973 135036 107166 160101 7490 157394 10543 156122 102082 139410 95942 145312 3593 123419 106130 62661 69879 55977 84502 64157 67589 83864 123000 9445 121057 9846...
output:
ne
result:
ok single line: 'ne'
Test #82:
score: 0
Accepted
time: 256ms
memory: 19288kb
input:
177147 265719 156371 171043 140870 6277 25913 11649 59604 88289 44489 79117 107361 138815 126268 33293 176117 23380 78380 120241 124994 12437 101289 141043 80477 11684 25019 86338 74059 107734 172091 45384 1766 159959 63953 43671 175992 166098 28983 13418 629 80910 74047 74720 11158 106119 55830 301...
output:
da
result:
ok single line: 'da'
Test #83:
score: 0
Accepted
time: 100ms
memory: 30984kb
input:
177147 265719 115888 90457 57604 66788 31132 49501 152035 101310 40053 170985 49608 175647 3961 66375 145852 114684 14922 117895 105797 24381 72801 106492 90261 98083 7685 59343 97580 19984 77098 175327 81477 82976 91410 127090 153635 133070 94276 6930 77287 159967 176019 89047 41054 131357 138385 1...
output:
ne
result:
ok single line: 'ne'
Test #84:
score: 0
Accepted
time: 94ms
memory: 19328kb
input:
177147 265719 18293 161039 106211 83634 161171 68603 109982 167982 29581 73918 38955 60354 40883 26387 110694 50692 65758 37128 163870 111988 30584 155845 97130 72787 141957 32923 136886 116481 99258 20223 142180 14589 11077 119410 159144 10967 99200 140703 20472 41282 8729 101019 143246 158225 1399...
output:
ne
result:
ok single line: 'ne'
Test #85:
score: 0
Accepted
time: 103ms
memory: 30848kb
input:
177147 265719 96386 49715 2048 129660 142358 168052 154221 8329 145506 136803 17367 124771 117995 146152 145911 31868 92144 94046 44939 38654 137541 122837 129572 66811 171216 79550 164756 138965 100491 41073 114045 93089 90007 15021 25831 92501 28388 170981 38379 110036 24362 62580 116507 30998 644...
output:
ne
result:
ok single line: 'ne'
Test #86:
score: 0
Accepted
time: 104ms
memory: 30744kb
input:
177147 265719 81572 130107 1358 11857 72579 10396 39607 168234 110672 169410 31265 19027 51792 139263 48589 118084 106240 101599 155980 5875 119184 107690 145305 87706 68332 38847 24816 145831 52111 17292 73720 12456 7271 45046 52561 13602 31666 72643 117227 133301 81058 3141 24504 123688 139772 309...
output:
ne
result:
ok single line: 'ne'
Test #87:
score: 0
Accepted
time: 95ms
memory: 19308kb
input:
177147 265719 106270 41060 49558 156156 163065 53819 79083 138463 54784 28809 126181 120154 103763 59028 113713 146938 152055 79181 105370 9979 167816 168006 122893 42123 88155 57910 50060 105388 63743 138822 120492 62832 44246 95326 8055 116987 143112 49297 133820 133599 75177 135252 6849 170610 17...
output:
ne
result:
ok single line: 'ne'
Test #88:
score: 0
Accepted
time: 96ms
memory: 30976kb
input:
177147 265719 65395 100900 149947 78947 119081 134449 996 164758 98880 17345 168409 124188 41956 134552 68665 146923 92484 63017 148951 69003 78211 53739 160876 106542 6668 130243 156524 60425 18834 53513 157940 163698 113775 149387 98076 135308 161942 25924 85007 63382 56466 68707 140875 154736 336...
output:
ne
result:
ok single line: 'ne'
Test #89:
score: 0
Accepted
time: 101ms
memory: 19344kb
input:
177147 265720 42851 128160 15034 27954 14982 169274 126038 111351 24413 20109 28252 62888 157458 159998 160745 121990 154598 125643 171148 86230 2470 33481 64623 60211 39102 40008 43820 49535 141286 25945 169479 152880 121212 147322 39173 114599 47110 162141 167545 116467 139207 153514 154224 11757 ...
output:
ne
result:
ok single line: 'ne'
Test #90:
score: 0
Accepted
time: 64ms
memory: 8628kb
input:
59049 88572 11787 45575 22477 57029 24672 38604 16832 31546 28035 4136 28103 51184 31288 5616 45889 1197 27523 36146 33721 26663 1042 48331 36610 46713 58333 56126 11920 13471 28080 10609 38806 918 24301 41030 40656 39146 30722 6287 48538 6658 39055 38427 15114 13977 14587 16462 24042 32301 49433 52...
output:
da
result:
ok single line: 'da'
Test #91:
score: 0
Accepted
time: 102ms
memory: 19276kb
input:
177147 265720 123490 19993 97191 34117 91839 39300 35497 43958 167765 34674 153106 46765 9036 84091 70745 136336 124277 49022 17679 58901 57780 91007 83819 91370 21028 66637 75103 24379 46516 164484 13327 113474 130340 134046 142830 173874 59830 174239 72874 41 87348 45979 113973 54275 148130 76535 ...
output:
ne
result:
ok single line: 'ne'
Test #92:
score: 0
Accepted
time: 88ms
memory: 19624kb
input:
177147 265719 65259 42114 22736 117872 107940 162652 4246 14390 82991 36451 107351 81952 103265 82343 54264 163185 71146 164212 149097 94542 121210 77033 57048 27829 19102 70680 7970 145543 13330 69057 57130 159564 145694 122250 19776 81280 141531 122796 46727 76753 118018 104539 64119 35117 167671 ...
output:
ne
result:
ok single line: 'ne'
Test #93:
score: 0
Accepted
time: 103ms
memory: 19328kb
input:
177147 265719 41020 41069 72181 93608 140658 53746 170501 24876 7771 140383 147286 26854 40741 151101 136306 56626 171640 105792 14324 140269 156233 136173 45778 176394 53337 9386 119924 32705 31483 157350 98215 84334 125898 86709 33942 53801 38136 20232 102583 156629 150246 87060 129449 102905 1204...
output:
ne
result:
ok single line: 'ne'
Test #94:
score: 0
Accepted
time: 103ms
memory: 19260kb
input:
177147 265720 39320 103218 137947 56837 69266 77054 139411 2213 156262 118302 110141 79717 98682 120776 146009 169040 15402 92915 39598 63897 144497 139696 14250 14327 140148 133918 40874 168487 78986 145492 101837 101091 8004 89827 3201 136590 109679 53997 154999 93920 124213 112227 7856 133851 885...
output:
ne
result:
ok single line: 'ne'
Test #95:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
9 12 1 3 8 6 8 7 1 5 8 5 2 5 7 5 6 7 4 3 7 2 4 6 2 3
output:
ne
result:
ok single line: 'ne'
Test #96:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
9 12 5 9 9 6 5 1 4 1 3 6 4 2 7 5 6 7 5 4 6 2 6 1 3 1
output:
ne
result:
ok single line: 'ne'
Test #97:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
9 12 3 2 1 5 5 7 2 7 6 2 7 4 1 8 4 1 1 6 8 3 6 5 5 2
output:
ne
result:
ok single line: 'ne'
Test #98:
score: 0
Accepted
time: 246ms
memory: 19304kb
input:
177147 265719 82124 71994 3039 11109 96459 164575 54394 7220 93152 10184 161064 4529 119979 129432 105807 95640 65750 39651 3060 49550 40007 47245 55320 128996 11888 140159 55603 11825 31287 121014 121899 172175 31640 66724 162301 63767 53682 120520 33037 14336 116130 115698 98872 53105 57563 172379...
output:
da
result:
ok single line: 'da'
Test #99:
score: 0
Accepted
time: 247ms
memory: 19312kb
input:
177147 265719 72259 8129 164367 170014 146440 106429 168198 139349 66280 119341 52023 83026 150090 109779 141048 114145 76956 138400 120211 38074 40050 124263 149868 113610 96832 34708 2247 171425 1529 40309 76517 51168 118796 152489 21794 15443 124602 90773 154834 155993 171314 1638 162733 158487 8...
output:
da
result:
ok single line: 'da'
Test #100:
score: 0
Accepted
time: 63ms
memory: 8596kb
input:
59049 88572 41553 16147 51486 4487 44848 2077 37517 57864 28968 58111 13147 35718 37708 24858 47151 7192 38394 37371 43619 30902 11165 32116 11641 19177 19199 48898 12533 4401 41459 18489 52805 17615 58193 37812 32293 10873 8676 45460 13844 25388 20501 21036 16535 22112 43116 16761 52712 49280 44969...
output:
da
result:
ok single line: 'da'
Test #101:
score: 0
Accepted
time: 239ms
memory: 19408kb
input:
177147 265719 1455 30124 160225 74486 30221 2786 44618 97641 14819 164330 169612 48426 73540 22733 163432 175460 146597 129412 38183 170148 71377 83705 10851 74594 24604 77638 131157 79981 3177 34846 147979 95248 76131 118883 26262 138818 99928 80637 165462 30637 46546 4299 59357 22651 27734 155185 ...
output:
da
result:
ok single line: 'da'
Test #102:
score: 0
Accepted
time: 258ms
memory: 19352kb
input:
177147 265719 102556 120606 122778 7784 35185 52624 157778 111102 129221 65969 89432 9777 89516 73068 14462 143708 70492 78297 5724 117053 46555 12593 83361 158019 102785 22241 43946 68135 125906 118739 126323 52002 29778 102607 3979 35261 13353 37194 142684 84491 139512 41836 103948 67161 118170 32...
output:
da
result:
ok single line: 'da'
Subtask #4:
score: 0
Wrong Answer
Test #103:
score: 50
Accepted
time: 105ms
memory: 30976kb
input:
177147 265719 132920 57252 64370 50983 162323 103641 126430 64347 64421 107962 35533 30427 171597 160614 120187 121996 103235 117200 122594 156637 121481 108177 115386 6337 28269 153079 43775 171594 164425 165290 59340 170257 20858 74213 162837 103195 171976 121082 68853 33317 152714 8959 47095 9036...
output:
ne
result:
ok single line: 'ne'
Test #104:
score: 0
Accepted
time: 95ms
memory: 19332kb
input:
177147 265720 98251 19107 36929 5082 59297 17482 166275 130189 125119 161493 151977 35937 4540 92380 52037 36475 105282 76892 8397 7997 162679 100647 12685 34568 53625 30405 136245 147693 95596 151955 66119 156086 92822 98840 66600 97472 42324 130091 34459 150929 81661 38148 1174 30859 113776 90353 ...
output:
ne
result:
ok single line: 'ne'
Test #105:
score: 0
Accepted
time: 27ms
memory: 12396kb
input:
59049 88572 14041 31673 1168 11350 38714 28802 37877 22048 49987 22707 26786 49980 2818 13974 10003 17358 51907 30794 16816 20935 8685 53622 49148 54509 3371 26238 50806 4657 57731 38759 38131 9810 28974 19191 5485 27763 9140 36793 45914 17712 23433 31979 29334 8721 7313 42734 12130 24011 36906 5164...
output:
ne
result:
ok single line: 'ne'
Test #106:
score: 0
Accepted
time: 101ms
memory: 30964kb
input:
177147 265719 119867 167070 130132 12752 120764 56321 15572 66501 139543 82691 70068 42197 61383 135281 122332 161897 68678 68884 51691 172281 33415 150511 101102 101300 108117 151586 39194 21123 173495 82522 134499 170131 15461 53912 114257 106087 137475 32697 31578 172314 139488 145536 118015 1288...
output:
ne
result:
ok single line: 'ne'
Test #107:
score: 0
Accepted
time: 108ms
memory: 30756kb
input:
177147 265719 32229 30186 75313 76163 111944 168135 43914 37095 22266 44860 166052 93754 169557 55704 108797 163872 45432 112994 80343 100383 110188 66178 135008 105902 155873 72661 44225 151314 2720 88316 66950 133820 20039 85930 91897 17236 40370 91049 112750 27809 48067 13266 126431 53691 127666 ...
output:
ne
result:
ok single line: 'ne'
Test #108:
score: 0
Accepted
time: 28ms
memory: 8560kb
input:
59049 88572 26511 33490 28852 45905 27461 12238 3574 21240 10401 47111 25108 30094 41731 23065 34029 50912 24637 3051 39816 52369 17677 44545 29603 11717 24661 41876 6322 19702 11178 38322 12480 26080 47105 3194 12178 36578 32634 16221 25540 24583 42234 24601 15926 7470 5428 20505 18895 24343 6641 2...
output:
ne
result:
ok single line: 'ne'
Test #109:
score: 0
Accepted
time: 93ms
memory: 19288kb
input:
177147 265719 109974 161035 10257 149062 121470 37587 101821 92037 121099 27132 31616 170660 46299 85346 105465 61610 133310 53913 20419 23471 11021 49161 161237 108062 27418 106411 42549 75808 90998 78111 32550 19003 10562 170797 77403 67800 34756 24189 88268 56154 14749 154026 5889 159314 104655 1...
output:
ne
result:
ok single line: 'ne'
Test #110:
score: 0
Accepted
time: 96ms
memory: 19144kb
input:
177147 265719 108664 58201 64269 6343 120585 157969 151929 136534 168726 15269 25610 60139 11181 158806 139226 97957 107369 141067 135947 160932 162045 50711 105512 5940 172321 5888 7221 99888 120318 20857 24810 151590 135587 8881 143228 24034 6096 39018 73071 58377 173193 124153 97410 69946 74197 7...
output:
ne
result:
ok single line: 'ne'
Test #111:
score: 0
Accepted
time: 110ms
memory: 30900kb
input:
177147 265719 32981 44699 147062 61378 88263 172913 58385 30028 98963 22183 21517 65343 40334 104039 63687 1318 136538 117786 2824 90817 170979 107527 93628 112008 35891 28456 164720 154877 2494 115639 119501 113995 31926 105269 92857 99010 174834 17842 11538 142621 125432 105466 135353 157000 68024...
output:
ne
result:
ok single line: 'ne'
Test #112:
score: 0
Accepted
time: 109ms
memory: 30968kb
input:
177147 265719 167966 17672 92091 174891 69156 176406 144245 124379 124290 42270 59738 92303 86870 83034 79441 52547 15702 45945 164475 43564 132133 61402 27448 122029 45378 131195 35639 152970 550 29347 134069 145338 111946 144913 58629 120345 90261 66787 8482 156139 106048 76828 151397 165340 22520...
output:
ne
result:
ok single line: 'ne'
Test #113:
score: 0
Accepted
time: 99ms
memory: 19284kb
input:
177147 265720 84549 59066 8533 97512 95654 45173 28525 150968 86580 149227 57726 67651 52781 160528 97950 141266 100850 14838 166553 138190 61634 14254 57547 24000 168524 11255 116362 130964 170815 172567 120074 7542 128396 3289 29898 125597 163966 69876 50139 142020 84785 71240 22378 26807 135344 1...
output:
ne
result:
ok single line: 'ne'
Test #114:
score: 0
Accepted
time: 101ms
memory: 19228kb
input:
177147 265719 68898 132920 29665 73506 20531 169214 103475 58989 61733 32239 151574 63398 119411 169525 24793 25207 41292 44383 133706 111802 174419 1600 74876 147063 161499 174674 10278 7799 123599 8481 146302 166032 1313 90856 60646 95512 106779 134984 41603 43637 15001 37449 153582 123699 108004 ...
output:
ne
result:
ok single line: 'ne'
Test #115:
score: 0
Accepted
time: 24ms
memory: 8572kb
input:
59049 88573 48002 20129 7630 33065 13470 58907 56979 49428 24783 51171 35198 55138 26000 13842 56782 34295 54165 5732 52635 46706 40182 1575 48144 56529 25104 1814 30791 45557 24736 48013 51257 51882 26582 54128 26950 47776 18073 51674 24939 54097 24871 44506 23664 28536 3218 34786 44770 14839 46589...
output:
ne
result:
ok single line: 'ne'
Test #116:
score: -50
Wrong Answer
time: 95ms
memory: 19372kb
input:
177147 265719 134788 176770 110415 30012 70814 170685 31716 97968 166427 107186 55319 99947 990 168895 127047 57299 122397 109455 67762 167879 120077 134331 18803 64603 48445 33935 104943 45500 128895 87604 148759 151945 94766 103320 129651 15389 26640 140574 173781 39496 132805 125367 168455 59830 ...
output:
ne
result:
wrong answer 1st lines differ - expected: 'da', found: 'ne'