QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#180004 | #7246. Green Day | xaphoenix# | AC ✓ | 86ms | 13320kb | C++14 | 1.6kb | 2023-09-15 14:31:21 | 2023-09-15 14:31:21 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define pf push_front
#define LC k<<1
#define RC k<<1|1
#define IO cin.sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repn(i, a, n) for (int i = a; i <= n; i++)
#define per(i, a, n) for (int i = (n) - 1; i >= a; i--)
#define pern(i, a, n) for (int i = n; i >= a; i--)
typedef long long LL;
typedef long double LD;
typedef unsigned long long ull;
typedef pair<int, int> PII;
typedef pair<int, LL> PIL;
typedef pair<LL, int> PLI;
typedef pair<double, double> PDD;
typedef pair<ull, ull> PUU;
typedef pair<LL, LL> PLL;
const int N = 110;
const int M = 1100000;
const int mod = 1e9+7;
const int inf = (int)1e9;
const LL INF = 1e18;
const double eps = 1e-9;
mt19937_64 Rand((unsigned long long)new char);
#define rand Rand
int n, k;
set<PII> S;
vector<PII> ans;
int f[N][N], a[N], cnt;
void build() {
rep(i, 1, k) ans.pb(mp(a[i], a[i + 1]));
repn(i, 1, k) rep(j, 1, k) ans.pb(mp(f[i][j], a[i]));
}
void move() {
pern(i, 1, k) a[i + 1] = a[i];
a[1] = a[k + 1];
}
int main() {
IO;
cin >> k;
n = k * k;
repn(i, 1, k) {
a[i] = ++cnt;
rep(j, 1, k) f[i][j] = ++cnt;
}
build();
rep(i, 1, k) {
repn(j, 1, k) swap(a[j], f[j][i]);
repn(j, 1, i) move();
build();
}
cout << n << "\n";
for (auto p: ans) {
// if (p.fi > p.se) swap(p.fi, p.se);
// assert(!S.count(p));
// S.insert(p);
cout << p.fi << " " << p.se << "\n";
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3448kb
input:
2
output:
4 1 3 2 1 4 3 4 2 1 4 3 2
result:
ok Both contestant and jury have nice answers with 6 and 6 edges :)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3396kb
input:
3
output:
9 1 4 4 7 2 1 3 1 5 4 6 4 8 7 9 7 8 2 2 5 1 8 3 8 4 2 6 2 7 5 9 5 6 9 9 3 1 6 8 6 4 9 2 9 7 3 5 3
result:
ok Both contestant and jury have nice answers with 24 and 21 edges :)
Test #3:
score: 0
Accepted
time: 3ms
memory: 3756kb
input:
25
output:
625 1 26 26 51 51 76 76 101 101 126 126 151 151 176 176 201 201 226 226 251 251 276 276 301 301 326 326 351 351 376 376 401 401 426 426 451 451 476 476 501 501 526 526 551 551 576 576 601 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 ...
result:
ok Both contestant and jury have nice answers with 15600 and 8700 edges :)
Test #4:
score: 0
Accepted
time: 61ms
memory: 12668kb
input:
94
output:
8836 1 95 95 189 189 283 283 377 377 471 471 565 565 659 659 753 753 847 847 941 941 1035 1035 1129 1129 1223 1223 1317 1317 1411 1411 1505 1505 1599 1599 1693 1693 1787 1787 1881 1881 1975 1975 2069 2069 2163 2163 2257 2257 2351 2351 2445 2445 2539 2539 2633 2633 2727 2727 2821 2821 2915 2915 3009 ...
result:
ok Both contestant and jury have nice answers with 830490 and 428358 edges :)
Test #5:
score: 0
Accepted
time: 15ms
memory: 5176kb
input:
59
output:
3481 1 60 60 119 119 178 178 237 237 296 296 355 355 414 414 473 473 532 532 591 591 650 650 709 709 768 768 827 827 886 886 945 945 1004 1004 1063 1063 1122 1122 1181 1181 1240 1240 1299 1299 1358 1358 1417 1417 1476 1476 1535 1535 1594 1594 1653 1653 1712 1712 1771 1771 1830 1830 1889 1889 1948 19...
result:
ok Both contestant and jury have nice answers with 205320 and 107793 edges :)
Test #6:
score: 0
Accepted
time: 86ms
memory: 12152kb
input:
98
output:
9604 1 99 99 197 197 295 295 393 393 491 491 589 589 687 687 785 785 883 883 981 981 1079 1079 1177 1177 1275 1275 1373 1373 1471 1471 1569 1569 1667 1667 1765 1765 1863 1863 1961 1961 2059 2059 2157 2157 2255 2255 2353 2353 2451 2451 2549 2549 2647 2647 2745 2745 2843 2843 2941 2941 3039 3039 3137 ...
result:
ok Both contestant and jury have nice answers with 941094 and 484806 edges :)
Test #7:
score: 0
Accepted
time: 76ms
memory: 11864kb
input:
97
output:
9409 1 98 98 195 195 292 292 389 389 486 486 583 583 680 680 777 777 874 874 971 971 1068 1068 1165 1165 1262 1262 1359 1359 1456 1456 1553 1553 1650 1650 1747 1747 1844 1844 1941 1941 2038 2038 2135 2135 2232 2232 2329 2329 2426 2426 2523 2523 2620 2620 2717 2717 2814 2814 2911 2911 3008 3008 3105 ...
result:
ok Both contestant and jury have nice answers with 912576 and 470256 edges :)
Test #8:
score: 0
Accepted
time: 1ms
memory: 3424kb
input:
12
output:
144 1 13 13 25 25 37 37 49 49 61 61 73 73 85 85 97 97 109 109 121 121 133 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 14 13 15 13 16 13 17 13 18 13 19 13 20 13 21 13 22 13 23 13 24 13 26 25 27 25 28 25 29 25 30 25 31 25 32 25 33 25 34 25 35 25 36 25 38 37 39 37 40 37 41 37 42 37 43 37 44 37 45 37...
result:
ok Both contestant and jury have nice answers with 1716 and 1056 edges :)
Test #9:
score: 0
Accepted
time: 3ms
memory: 3764kb
input:
26
output:
676 1 27 27 53 53 79 79 105 105 131 131 157 157 183 183 209 209 235 235 261 261 287 287 313 313 339 339 365 365 391 391 417 417 443 443 469 469 495 495 521 521 547 547 573 573 599 599 625 625 651 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24...
result:
ok Both contestant and jury have nice answers with 17550 and 9750 edges :)
Test #10:
score: 0
Accepted
time: 7ms
memory: 3784kb
input:
39
output:
1521 1 40 40 79 79 118 118 157 157 196 196 235 235 274 274 313 313 352 352 391 391 430 430 469 469 508 508 547 547 586 586 625 625 664 664 703 703 742 742 781 781 820 820 859 859 898 898 937 937 976 976 1015 1015 1054 1054 1093 1093 1132 1132 1171 1171 1210 1210 1249 1249 1288 1288 1327 1327 1366 13...
result:
ok Both contestant and jury have nice answers with 59280 and 31863 edges :)
Test #11:
score: 0
Accepted
time: 7ms
memory: 3712kb
input:
37
output:
1369 1 38 38 75 75 112 112 149 149 186 186 223 223 260 260 297 297 334 334 371 371 408 408 445 445 482 482 519 519 556 556 593 593 630 630 667 667 704 704 741 741 778 778 815 815 852 852 889 889 926 926 963 963 1000 1000 1037 1037 1074 1074 1111 1111 1148 1148 1185 1185 1222 1222 1259 1259 1296 1296...
result:
ok Both contestant and jury have nice answers with 50616 and 27306 edges :)
Test #12:
score: 0
Accepted
time: 6ms
memory: 5256kb
input:
52
output:
2704 1 53 53 105 105 157 157 209 209 261 261 313 313 365 365 417 417 469 469 521 521 573 573 625 625 677 677 729 729 781 781 833 833 885 885 937 937 989 989 1041 1041 1093 1093 1145 1145 1197 1197 1249 1249 1301 1301 1353 1353 1405 1405 1457 1457 1509 1509 1561 1561 1613 1613 1665 1665 1717 1717 176...
result:
ok Both contestant and jury have nice answers with 140556 and 74256 edges :)
Test #13:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
10
output:
100 1 11 11 21 21 31 31 41 41 51 51 61 61 71 71 81 81 91 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 12 11 13 11 14 11 15 11 16 11 17 11 18 11 19 11 20 11 22 21 23 21 24 21 25 21 26 21 27 21 28 21 29 21 30 21 32 31 33 31 34 31 35 31 36 31 37 31 38 31 39 31 40 31 42 41 43 41 44 41 45 41 46 41 47 41 48 41 49...
result:
ok Both contestant and jury have nice answers with 990 and 630 edges :)
Test #14:
score: 0
Accepted
time: 15ms
memory: 5160kb
input:
51
output:
2601 1 52 52 103 103 154 154 205 205 256 256 307 307 358 358 409 409 460 460 511 511 562 562 613 613 664 664 715 715 766 766 817 817 868 868 919 919 970 970 1021 1021 1072 1072 1123 1123 1174 1174 1225 1225 1276 1276 1327 1327 1378 1378 1429 1429 1480 1480 1531 1531 1582 1582 1633 1633 1684 1684 173...
result:
ok Both contestant and jury have nice answers with 132600 and 70125 edges :)
Test #15:
score: 0
Accepted
time: 3ms
memory: 3640kb
input:
40
output:
1600 1 41 41 81 81 121 121 161 161 201 201 241 241 281 281 321 321 361 361 401 401 441 441 481 481 521 521 561 561 601 601 641 641 681 681 721 721 761 761 801 801 841 841 881 881 921 921 961 961 1001 1001 1041 1041 1081 1081 1121 1121 1161 1161 1201 1201 1241 1241 1281 1281 1321 1321 1361 1361 1401 ...
result:
ok Both contestant and jury have nice answers with 63960 and 34320 edges :)
Test #16:
score: 0
Accepted
time: 69ms
memory: 12032kb
input:
93
output:
8649 1 94 94 187 187 280 280 373 373 466 466 559 559 652 652 745 745 838 838 931 931 1024 1024 1117 1117 1210 1210 1303 1303 1396 1396 1489 1489 1582 1582 1675 1675 1768 1768 1861 1861 1954 1954 2047 2047 2140 2140 2233 2233 2326 2326 2419 2419 2512 2512 2605 2605 2698 2698 2791 2791 2884 2884 2977 ...
result:
ok Both contestant and jury have nice answers with 804264 and 414966 edges :)
Test #17:
score: 0
Accepted
time: 84ms
memory: 11892kb
input:
100
output:
10000 1 101 101 201 201 301 301 401 401 501 501 601 601 701 701 801 801 901 901 1001 1001 1101 1101 1201 1201 1301 1301 1401 1401 1501 1501 1601 1601 1701 1701 1801 1801 1901 1901 2001 2001 2101 2101 2201 2201 2301 2301 2401 2401 2501 2501 2601 2601 2701 2701 2801 2801 2901 2901 3001 3001 3101 3101 ...
result:
ok Both contestant and jury have nice answers with 999900 and 514800 edges :)
Test #18:
score: 0
Accepted
time: 55ms
memory: 12612kb
input:
85
output:
7225 1 86 86 171 171 256 256 341 341 426 426 511 511 596 596 681 681 766 766 851 851 936 936 1021 1021 1106 1106 1191 1191 1276 1276 1361 1361 1446 1446 1531 1531 1616 1616 1701 1701 1786 1786 1871 1871 1956 1956 2041 2041 2126 2126 2211 2211 2296 2296 2381 2381 2466 2466 2551 2551 2636 2636 2721 27...
result:
ok Both contestant and jury have nice answers with 614040 and 317730 edges :)
Test #19:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
19
output:
361 1 20 20 39 39 58 58 77 77 96 96 115 115 134 134 153 153 172 172 191 191 210 210 229 229 248 248 267 267 286 286 305 305 324 324 343 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 21 20 22 20 23 20 24 20 25 20 26 20 27 20 28 20 29 20 30 20 31 20 32 20 33 20 34 2...
result:
ok Both contestant and jury have nice answers with 6840 and 3933 edges :)
Test #20:
score: 0
Accepted
time: 36ms
memory: 7712kb
input:
75
output:
5625 1 76 76 151 151 226 226 301 301 376 376 451 451 526 526 601 601 676 676 751 751 826 826 901 901 976 976 1051 1051 1126 1126 1201 1201 1276 1276 1351 1351 1426 1426 1501 1501 1576 1576 1651 1651 1726 1726 1801 1801 1876 1876 1951 1951 2026 2026 2101 2101 2176 2176 2251 2251 2326 2326 2401 2401 2...
result:
ok Both contestant and jury have nice answers with 421800 and 219225 edges :)
Test #21:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
24
output:
576 1 25 25 49 49 73 73 97 97 121 121 145 145 169 169 193 193 217 217 241 241 265 265 289 289 313 313 337 337 361 361 385 385 409 409 433 433 457 457 481 481 505 505 529 529 553 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 26 25 27 25 28 ...
result:
ok Both contestant and jury have nice answers with 13800 and 7728 edges :)
Test #22:
score: 0
Accepted
time: 9ms
memory: 4128kb
input:
43
output:
1849 1 44 44 87 87 130 130 173 173 216 216 259 259 302 302 345 345 388 388 431 431 474 474 517 517 560 560 603 603 646 646 689 689 732 732 775 775 818 818 861 861 904 904 947 947 990 990 1033 1033 1076 1076 1119 1119 1162 1162 1205 1205 1248 1248 1291 1291 1334 1334 1377 1377 1420 1420 1463 1463 150...
result:
ok Both contestant and jury have nice answers with 79464 and 42441 edges :)
Test #23:
score: 0
Accepted
time: 3ms
memory: 3636kb
input:
29
output:
841 1 30 30 59 59 88 88 117 117 146 146 175 175 204 204 233 233 262 262 291 291 320 320 349 349 378 378 407 407 436 436 465 465 494 494 523 523 552 552 581 581 610 610 639 639 668 668 697 697 726 726 755 755 784 784 813 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 ...
result:
ok Both contestant and jury have nice answers with 24360 and 13398 edges :)
Test #24:
score: 0
Accepted
time: 0ms
memory: 3472kb
input:
4
output:
16 1 5 5 9 9 13 2 1 3 1 4 1 6 5 7 5 8 5 10 9 11 9 12 9 14 13 15 13 16 13 14 2 2 6 6 10 1 14 3 14 4 14 5 2 7 2 8 2 9 6 11 6 12 6 13 10 15 10 16 10 11 15 15 3 3 7 1 11 14 11 4 11 5 15 2 15 8 15 9 3 6 3 12 3 13 7 10 7 16 7 8 12 12 16 16 4 1 8 14 8 11 8 5 12 2 12 15 12 9 16 6 16 3 16 13 4 10 4 7 4
result:
ok Both contestant and jury have nice answers with 60 and 48 edges :)
Test #25:
score: 0
Accepted
time: 23ms
memory: 5176kb
input:
60
output:
3600 1 61 61 121 121 181 181 241 241 301 301 361 361 421 421 481 481 541 541 601 601 661 661 721 721 781 781 841 841 901 901 961 961 1021 1021 1081 1081 1141 1141 1201 1201 1261 1261 1321 1321 1381 1381 1441 1441 1501 1501 1561 1561 1621 1621 1681 1681 1741 1741 1801 1801 1861 1861 1921 1921 1981 19...
result:
ok Both contestant and jury have nice answers with 215940 and 113280 edges :)
Test #26:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
23
output:
529 1 24 24 47 47 70 70 93 93 116 116 139 139 162 162 185 185 208 208 231 231 254 254 277 277 300 300 323 323 346 346 369 369 392 392 415 415 438 438 461 461 484 484 507 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 25 24 26 24 27 24 28 24 29 2...
result:
ok Both contestant and jury have nice answers with 12144 and 6831 edges :)
Test #27:
score: 0
Accepted
time: 34ms
memory: 8132kb
input:
74
output:
5476 1 75 75 149 149 223 223 297 297 371 371 445 445 519 519 593 593 667 667 741 741 815 815 889 889 963 963 1037 1037 1111 1111 1185 1185 1259 1259 1333 1333 1407 1407 1481 1481 1555 1555 1629 1629 1703 1703 1777 1777 1851 1851 1925 1925 1999 1999 2073 2073 2147 2147 2221 2221 2295 2295 2369 2369 2...
result:
ok Both contestant and jury have nice answers with 405150 and 210678 edges :)
Test #28:
score: 0
Accepted
time: 14ms
memory: 4252kb
input:
50
output:
2500 1 51 51 101 101 151 151 201 201 251 251 301 301 351 351 401 401 451 451 501 501 551 551 601 601 651 651 701 701 751 751 801 801 851 851 901 901 951 951 1001 1001 1051 1051 1101 1101 1151 1151 1201 1201 1251 1251 1301 1301 1351 1351 1401 1401 1451 1451 1501 1501 1551 1551 1601 1601 1651 1651 170...
result:
ok Both contestant and jury have nice answers with 124950 and 66150 edges :)
Test #29:
score: 0
Accepted
time: 35ms
memory: 7724kb
input:
76
output:
5776 1 77 77 153 153 229 229 305 305 381 381 457 457 533 533 609 609 685 685 761 761 837 837 913 913 989 989 1065 1065 1141 1141 1217 1217 1293 1293 1369 1369 1445 1445 1521 1521 1597 1597 1673 1673 1749 1749 1825 1825 1901 1901 1977 1977 2053 2053 2129 2129 2205 2205 2281 2281 2357 2357 2433 2433 2...
result:
ok Both contestant and jury have nice answers with 438900 and 228000 edges :)
Test #30:
score: 0
Accepted
time: 17ms
memory: 8260kb
input:
67
output:
4489 1 68 68 135 135 202 202 269 269 336 336 403 403 470 470 537 537 604 604 671 671 738 738 805 805 872 872 939 939 1006 1006 1073 1073 1140 1140 1207 1207 1274 1274 1341 1341 1408 1408 1475 1475 1542 1542 1609 1609 1676 1676 1743 1743 1810 1810 1877 1877 1944 1944 2011 2011 2078 2078 2145 2145 221...
result:
ok Both contestant and jury have nice answers with 300696 and 156981 edges :)
Test #31:
score: 0
Accepted
time: 7ms
memory: 3696kb
input:
38
output:
1444 1 39 39 77 77 115 115 153 153 191 191 229 229 267 267 305 305 343 343 381 381 419 419 457 457 495 495 533 533 571 571 609 609 647 647 685 685 723 723 761 761 799 799 837 837 875 875 913 913 951 951 989 989 1027 1027 1065 1065 1103 1103 1141 1141 1179 1179 1217 1217 1255 1255 1293 1293 1331 1331...
result:
ok Both contestant and jury have nice answers with 54834 and 29526 edges :)
Test #32:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
22
output:
484 1 23 23 45 45 67 67 89 89 111 111 133 133 155 155 177 177 199 199 221 221 243 243 265 265 287 287 309 309 331 331 353 353 375 375 397 397 419 419 441 441 463 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 24 23 25 23 26 23 27 23 28 23 29 23 30 23...
result:
ok Both contestant and jury have nice answers with 10626 and 6006 edges :)
Test #33:
score: 0
Accepted
time: 24ms
memory: 9176kb
input:
66
output:
4356 1 67 67 133 133 199 199 265 265 331 331 397 397 463 463 529 529 595 595 661 661 727 727 793 793 859 859 925 925 991 991 1057 1057 1123 1123 1189 1189 1255 1255 1321 1321 1387 1387 1453 1453 1519 1519 1585 1585 1651 1651 1717 1717 1783 1783 1849 1849 1915 1915 1981 1981 2047 2047 2113 2113 2179 ...
result:
ok Both contestant and jury have nice answers with 287430 and 150150 edges :)
Test #34:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
34
output:
1156 1 35 35 69 69 103 103 137 137 171 171 205 205 239 239 273 273 307 307 341 341 375 375 409 409 443 443 477 477 511 511 545 545 579 579 613 613 647 647 681 681 715 715 749 749 783 783 817 817 851 851 885 885 919 919 953 953 987 987 1021 1021 1055 1055 1089 1089 1123 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 ...
result:
ok Both contestant and jury have nice answers with 39270 and 21318 edges :)
Test #35:
score: 0
Accepted
time: 18ms
memory: 5116kb
input:
56
output:
3136 1 57 57 113 113 169 169 225 225 281 281 337 337 393 393 449 449 505 505 561 561 617 617 673 673 729 729 785 785 841 841 897 897 953 953 1009 1009 1065 1065 1121 1121 1177 1177 1233 1233 1289 1289 1345 1345 1401 1401 1457 1457 1513 1513 1569 1569 1625 1625 1681 1681 1737 1737 1793 1793 1849 1849...
result:
ok Both contestant and jury have nice answers with 175560 and 92400 edges :)
Test #36:
score: 0
Accepted
time: 45ms
memory: 12176kb
input:
84
output:
7056 1 85 85 169 169 253 253 337 337 421 421 505 505 589 589 673 673 757 757 841 841 925 925 1009 1009 1093 1093 1177 1177 1261 1261 1345 1345 1429 1429 1513 1513 1597 1597 1681 1681 1765 1765 1849 1849 1933 1933 2017 2017 2101 2101 2185 2185 2269 2269 2353 2353 2437 2437 2521 2521 2605 2605 2689 26...
result:
ok Both contestant and jury have nice answers with 592620 and 306768 edges :)
Test #37:
score: 0
Accepted
time: 38ms
memory: 9020kb
input:
78
output:
6084 1 79 79 157 157 235 235 313 313 391 391 469 469 547 547 625 625 703 703 781 781 859 859 937 937 1015 1015 1093 1093 1171 1171 1249 1249 1327 1327 1405 1405 1483 1483 1561 1561 1639 1639 1717 1717 1795 1795 1873 1873 1951 1951 2029 2029 2107 2107 2185 2185 2263 2263 2341 2341 2419 2419 2497 2497...
result:
ok Both contestant and jury have nice answers with 474474 and 246246 edges :)
Test #38:
score: 0
Accepted
time: 21ms
memory: 5176kb
input:
64
output:
4096 1 65 65 129 129 193 193 257 257 321 321 385 385 449 449 513 513 577 577 641 641 705 705 769 769 833 833 897 897 961 961 1025 1025 1089 1089 1153 1153 1217 1217 1281 1281 1345 1345 1409 1409 1473 1473 1537 1537 1601 1601 1665 1665 1729 1729 1793 1793 1857 1857 1921 1921 1985 1985 2049 2049 2113 ...
result:
ok Both contestant and jury have nice answers with 262080 and 137088 edges :)
Test #39:
score: 0
Accepted
time: 31ms
memory: 7708kb
input:
73
output:
5329 1 74 74 147 147 220 220 293 293 366 366 439 439 512 512 585 585 658 658 731 731 804 804 877 877 950 950 1023 1023 1096 1096 1169 1169 1242 1242 1315 1315 1388 1388 1461 1461 1534 1534 1607 1607 1680 1680 1753 1753 1826 1826 1899 1899 1972 1972 2045 2045 2118 2118 2191 2191 2264 2264 2337 2337 2...
result:
ok Both contestant and jury have nice answers with 388944 and 202356 edges :)
Test #40:
score: 0
Accepted
time: 1ms
memory: 3520kb
input:
15
output:
225 1 16 16 31 31 46 46 61 61 76 76 91 91 106 106 121 121 136 136 151 151 166 166 181 181 196 196 211 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 17 16 18 16 19 16 20 16 21 16 22 16 23 16 24 16 25 16 26 16 27 16 28 16 29 16 30 16 32 31 33 31 34 31 35 31 36 31 37 31 38 31 39 31 40 3...
result:
ok Both contestant and jury have nice answers with 3360 and 1995 edges :)
Test #41:
score: 0
Accepted
time: 24ms
memory: 5156kb
input:
61
output:
3721 1 62 62 123 123 184 184 245 245 306 306 367 367 428 428 489 489 550 550 611 611 672 672 733 733 794 794 855 855 916 916 977 977 1038 1038 1099 1099 1160 1160 1221 1221 1282 1282 1343 1343 1404 1404 1465 1465 1526 1526 1587 1587 1648 1648 1709 1709 1770 1770 1831 1831 1892 1892 1953 1953 2014 20...
result:
ok Both contestant and jury have nice answers with 226920 and 118950 edges :)
Test #42:
score: 0
Accepted
time: 0ms
memory: 3472kb
input:
8
output:
64 1 9 9 17 17 25 25 33 33 41 41 49 49 57 2 1 3 1 4 1 5 1 6 1 7 1 8 1 10 9 11 9 12 9 13 9 14 9 15 9 16 9 18 17 19 17 20 17 21 17 22 17 23 17 24 17 26 25 27 25 28 25 29 25 30 25 31 25 32 25 34 33 35 33 36 33 37 33 38 33 39 33 40 33 42 41 43 41 44 41 45 41 46 41 47 41 48 41 50 49 51 49 52 49 53 49 54 ...
result:
ok Both contestant and jury have nice answers with 504 and 336 edges :)
Test #43:
score: 0
Accepted
time: 5ms
memory: 3704kb
input:
33
output:
1089 1 34 34 67 67 100 100 133 133 166 166 199 199 232 232 265 265 298 298 331 331 364 364 397 397 430 430 463 463 496 496 529 529 562 562 595 595 628 628 661 661 694 694 727 727 760 760 793 793 826 826 859 859 892 892 925 925 958 958 991 991 1024 1024 1057 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 ...
result:
ok Both contestant and jury have nice answers with 35904 and 19536 edges :)
Test #44:
score: 0
Accepted
time: 3ms
memory: 3584kb
input:
27
output:
729 1 28 28 55 55 82 82 109 109 136 136 163 163 190 190 217 217 244 244 271 271 298 298 325 325 352 352 379 379 406 406 433 433 460 460 487 487 514 514 541 541 568 568 595 595 622 622 649 649 676 676 703 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1...
result:
ok Both contestant and jury have nice answers with 19656 and 10881 edges :)
Test #45:
score: 0
Accepted
time: 12ms
memory: 4204kb
input:
48
output:
2304 1 49 49 97 97 145 145 193 193 241 241 289 289 337 337 385 385 433 433 481 481 529 529 577 577 625 625 673 673 721 721 769 769 817 817 865 865 913 913 961 961 1009 1009 1057 1057 1105 1105 1153 1153 1201 1201 1249 1249 1297 1297 1345 1345 1393 1393 1441 1441 1489 1489 1537 1537 1585 1585 1633 16...
result:
ok Both contestant and jury have nice answers with 110544 and 58656 edges :)
Test #46:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
18
output:
324 1 19 19 37 37 55 55 73 73 91 91 109 109 127 127 145 145 163 163 181 181 199 199 217 217 235 235 253 253 271 271 289 289 307 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 20 19 21 19 22 19 23 19 24 19 25 19 26 19 27 19 28 19 29 19 30 19 31 19 32 19 33 19 34 19 35 19...
result:
ok Both contestant and jury have nice answers with 5814 and 3366 edges :)
Test #47:
score: 0
Accepted
time: 22ms
memory: 5216kb
input:
63
output:
3969 1 64 64 127 127 190 190 253 253 316 316 379 379 442 442 505 505 568 568 631 631 694 694 757 757 820 820 883 883 946 946 1009 1009 1072 1072 1135 1135 1198 1198 1261 1261 1324 1324 1387 1387 1450 1450 1513 1513 1576 1576 1639 1639 1702 1702 1765 1765 1828 1828 1891 1891 1954 1954 2017 2017 2080 ...
result:
ok Both contestant and jury have nice answers with 249984 and 130851 edges :)
Test #48:
score: 0
Accepted
time: 13ms
memory: 4088kb
input:
47
output:
2209 1 48 48 95 95 142 142 189 189 236 236 283 283 330 330 377 377 424 424 471 471 518 518 565 565 612 612 659 659 706 706 753 753 800 800 847 847 894 894 941 941 988 988 1035 1035 1082 1082 1129 1129 1176 1176 1223 1223 1270 1270 1317 1317 1364 1364 1411 1411 1458 1458 1505 1505 1552 1552 1599 1599...
result:
ok Both contestant and jury have nice answers with 103776 and 55131 edges :)
Test #49:
score: 0
Accepted
time: 5ms
memory: 3796kb
input:
35
output:
1225 1 36 36 71 71 106 106 141 141 176 176 211 211 246 246 281 281 316 316 351 351 386 386 421 421 456 456 491 491 526 526 561 561 596 596 631 631 666 666 701 701 736 736 771 771 806 806 841 841 876 876 911 911 946 946 981 981 1016 1016 1051 1051 1086 1086 1121 1121 1156 1156 1191 2 1 3 1 4 1 5 1 6 ...
result:
ok Both contestant and jury have nice answers with 42840 and 23205 edges :)
Test #50:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
21
output:
441 1 22 22 43 43 64 64 85 85 106 106 127 127 148 148 169 169 190 190 211 211 232 232 253 253 274 274 295 295 316 316 337 337 358 358 379 379 400 400 421 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 23 22 24 22 25 22 26 22 27 22 28 22 29 22 30 22 31 22 ...
result:
ok Both contestant and jury have nice answers with 9240 and 5250 edges :)
Test #51:
score: 0
Accepted
time: 64ms
memory: 12880kb
input:
91
output:
8281 1 92 92 183 183 274 274 365 365 456 456 547 547 638 638 729 729 820 820 911 911 1002 1002 1093 1093 1184 1184 1275 1275 1366 1366 1457 1457 1548 1548 1639 1639 1730 1730 1821 1821 1912 1912 2003 2003 2094 2094 2185 2185 2276 2276 2367 2367 2458 2458 2549 2549 2640 2640 2731 2731 2822 2822 2913 ...
result:
ok Both contestant and jury have nice answers with 753480 and 389025 edges :)
Test #52:
score: 0
Accepted
time: 59ms
memory: 11748kb
input:
92
output:
8464 1 93 93 185 185 277 277 369 369 461 461 553 553 645 645 737 737 829 829 921 921 1013 1013 1105 1105 1197 1197 1289 1289 1381 1381 1473 1473 1565 1565 1657 1657 1749 1749 1841 1841 1933 1933 2025 2025 2117 2117 2209 2209 2301 2301 2393 2393 2485 2485 2577 2577 2669 2669 2761 2761 2853 2853 2945 ...
result:
ok Both contestant and jury have nice answers with 778596 and 401856 edges :)
Test #53:
score: 0
Accepted
time: 40ms
memory: 12424kb
input:
86
output:
7396 1 87 87 173 173 259 259 345 345 431 431 517 517 603 603 689 689 775 775 861 861 947 947 1033 1033 1119 1119 1205 1205 1291 1291 1377 1377 1463 1463 1549 1549 1635 1635 1721 1721 1807 1807 1893 1893 1979 1979 2065 2065 2151 2151 2237 2237 2323 2323 2409 2409 2495 2495 2581 2581 2667 2667 2753 27...
result:
ok Both contestant and jury have nice answers with 635970 and 328950 edges :)
Test #54:
score: 0
Accepted
time: 6ms
memory: 4132kb
input:
46
output:
2116 1 47 47 93 93 139 139 185 185 231 231 277 277 323 323 369 369 415 415 461 461 507 507 553 553 599 599 645 645 691 691 737 737 783 783 829 829 875 875 921 921 967 967 1013 1013 1059 1059 1105 1105 1151 1151 1197 1197 1243 1243 1289 1289 1335 1335 1381 1381 1427 1427 1473 1473 1519 1519 1565 1565...
result:
ok Both contestant and jury have nice answers with 97290 and 51750 edges :)
Test #55:
score: 0
Accepted
time: 3ms
memory: 3612kb
input:
28
output:
784 1 29 29 57 57 85 85 113 113 141 141 169 169 197 197 225 225 253 253 281 281 309 309 337 337 365 365 393 393 421 421 449 449 477 477 505 505 533 533 561 561 589 589 617 617 645 645 673 673 701 701 729 729 757 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 2...
result:
ok Both contestant and jury have nice answers with 21924 and 12096 edges :)
Test #56:
score: 0
Accepted
time: 4ms
memory: 4064kb
input:
44
output:
1936 1 45 45 89 89 133 133 177 177 221 221 265 265 309 309 353 353 397 397 441 441 485 485 529 529 573 573 617 617 661 661 705 705 749 749 793 793 837 837 881 881 925 925 969 969 1013 1013 1057 1057 1101 1101 1145 1145 1189 1189 1233 1233 1277 1277 1321 1321 1365 1365 1409 1409 1453 1453 1497 1497 1...
result:
ok Both contestant and jury have nice answers with 85140 and 45408 edges :)
Test #57:
score: 0
Accepted
time: 14ms
memory: 5064kb
input:
58
output:
3364 1 59 59 117 117 175 175 233 233 291 291 349 349 407 407 465 465 523 523 581 581 639 639 697 697 755 755 813 813 871 871 929 929 987 987 1045 1045 1103 1103 1161 1161 1219 1219 1277 1277 1335 1335 1393 1393 1451 1451 1509 1509 1567 1567 1625 1625 1683 1683 1741 1741 1799 1799 1857 1857 1915 1915...
result:
ok Both contestant and jury have nice answers with 195054 and 102486 edges :)
Test #58:
score: 0
Accepted
time: 41ms
memory: 9128kb
input:
68
output:
4624 1 69 69 137 137 205 205 273 273 341 341 409 409 477 477 545 545 613 613 681 681 749 749 817 817 885 885 953 953 1021 1021 1089 1089 1157 1157 1225 1225 1293 1293 1361 1361 1429 1429 1497 1497 1565 1565 1633 1633 1701 1701 1769 1769 1837 1837 1905 1905 1973 1973 2041 2041 2109 2109 2177 2177 224...
result:
ok Both contestant and jury have nice answers with 314364 and 164016 edges :)
Test #59:
score: 0
Accepted
time: 28ms
memory: 7956kb
input:
71
output:
5041 1 72 72 143 143 214 214 285 285 356 356 427 427 498 498 569 569 640 640 711 711 782 782 853 853 924 924 995 995 1066 1066 1137 1137 1208 1208 1279 1279 1350 1350 1421 1421 1492 1492 1563 1563 1634 1634 1705 1705 1776 1776 1847 1847 1918 1918 1989 1989 2060 2060 2131 2131 2202 2202 2273 2273 234...
result:
ok Both contestant and jury have nice answers with 357840 and 186375 edges :)
Test #60:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
5
output:
25 1 6 6 11 11 16 16 21 2 1 3 1 4 1 5 1 7 6 8 6 9 6 10 6 12 11 13 11 14 11 15 11 17 16 18 16 19 16 20 16 22 21 23 21 24 21 25 21 22 2 2 7 7 12 12 17 1 22 3 22 4 22 5 22 6 2 8 2 9 2 10 2 11 7 13 7 14 7 15 7 16 12 18 12 19 12 20 12 21 17 23 17 24 17 25 17 18 23 23 3 3 8 8 13 1 18 22 18 4 18 5 18 6 23 ...
result:
ok Both contestant and jury have nice answers with 120 and 90 edges :)
Test #61:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
14
output:
196 1 15 15 29 29 43 43 57 57 71 71 85 85 99 99 113 113 127 127 141 141 155 155 169 169 183 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 16 15 17 15 18 15 19 15 20 15 21 15 22 15 23 15 24 15 25 15 26 15 27 15 28 15 30 29 31 29 32 29 33 29 34 29 35 29 36 29 37 29 38 29 39 29 40 29 41 29 4...
result:
ok Both contestant and jury have nice answers with 2730 and 1638 edges :)
Test #62:
score: 0
Accepted
time: 58ms
memory: 12328kb
input:
87
output:
7569 1 88 88 175 175 262 262 349 349 436 436 523 523 610 610 697 697 784 784 871 871 958 958 1045 1045 1132 1132 1219 1219 1306 1306 1393 1393 1480 1480 1567 1567 1654 1654 1741 1741 1828 1828 1915 1915 2002 2002 2089 2089 2176 2176 2263 2263 2350 2350 2437 2437 2524 2524 2611 2611 2698 2698 2785 27...
result:
ok Both contestant and jury have nice answers with 658416 and 340431 edges :)
Test #63:
score: 0
Accepted
time: 10ms
memory: 4132kb
input:
45
output:
2025 1 46 46 91 91 136 136 181 181 226 226 271 271 316 316 361 361 406 406 451 451 496 496 541 541 586 586 631 631 676 676 721 721 766 766 811 811 856 856 901 901 946 946 991 991 1036 1036 1081 1081 1126 1126 1171 1171 1216 1216 1261 1261 1306 1306 1351 1351 1396 1396 1441 1441 1486 1486 1531 1531 1...
result:
ok Both contestant and jury have nice answers with 91080 and 48510 edges :)
Test #64:
score: 0
Accepted
time: 14ms
memory: 5300kb
input:
55
output:
3025 1 56 56 111 111 166 166 221 221 276 276 331 331 386 386 441 441 496 496 551 551 606 606 661 661 716 716 771 771 826 826 881 881 936 936 991 991 1046 1046 1101 1101 1156 1156 1211 1211 1266 1266 1321 1321 1376 1376 1431 1431 1486 1486 1541 1541 1596 1596 1651 1651 1706 1706 1761 1761 1816 1816 1...
result:
ok Both contestant and jury have nice answers with 166320 and 87615 edges :)
Test #65:
score: 0
Accepted
time: 61ms
memory: 12280kb
input:
88
output:
7744 1 89 89 177 177 265 265 353 353 441 441 529 529 617 617 705 705 793 793 881 881 969 969 1057 1057 1145 1145 1233 1233 1321 1321 1409 1409 1497 1497 1585 1585 1673 1673 1761 1761 1849 1849 1937 1937 2025 2025 2113 2113 2201 2201 2289 2289 2377 2377 2465 2465 2553 2553 2641 2641 2729 2729 2817 28...
result:
ok Both contestant and jury have nice answers with 681384 and 352176 edges :)
Test #66:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
7
output:
49 1 8 8 15 15 22 22 29 29 36 36 43 2 1 3 1 4 1 5 1 6 1 7 1 9 8 10 8 11 8 12 8 13 8 14 8 16 15 17 15 18 15 19 15 20 15 21 15 23 22 24 22 25 22 26 22 27 22 28 22 30 29 31 29 32 29 33 29 34 29 35 29 37 36 38 36 39 36 40 36 41 36 42 36 44 43 45 43 46 43 47 43 48 43 49 43 44 2 2 9 9 16 16 23 23 30 30 37...
result:
ok Both contestant and jury have nice answers with 336 and 231 edges :)
Test #67:
score: 0
Accepted
time: 44ms
memory: 7548kb
input:
80
output:
6400 1 81 81 161 161 241 241 321 321 401 401 481 481 561 561 641 641 721 721 801 801 881 881 961 961 1041 1041 1121 1121 1201 1201 1281 1281 1361 1361 1441 1441 1521 1521 1601 1601 1681 1681 1761 1761 1841 1841 1921 1921 2001 2001 2081 2081 2161 2161 2241 2241 2321 2321 2401 2401 2481 2481 2561 2561...
result:
ok Both contestant and jury have nice answers with 511920 and 265440 edges :)
Test #68:
score: 0
Accepted
time: 57ms
memory: 11780kb
input:
81
output:
6561 1 82 82 163 163 244 244 325 325 406 406 487 487 568 568 649 649 730 730 811 811 892 892 973 973 1054 1054 1135 1135 1216 1216 1297 1297 1378 1378 1459 1459 1540 1540 1621 1621 1702 1702 1783 1783 1864 1864 1945 1945 2026 2026 2107 2107 2188 2188 2269 2269 2350 2350 2431 2431 2512 2512 2593 2593...
result:
ok Both contestant and jury have nice answers with 531360 and 275400 edges :)
Test #69:
score: 0
Accepted
time: 33ms
memory: 7864kb
input:
79
output:
6241 1 80 80 159 159 238 238 317 317 396 396 475 475 554 554 633 633 712 712 791 791 870 870 949 949 1028 1028 1107 1107 1186 1186 1265 1265 1344 1344 1423 1423 1502 1502 1581 1581 1660 1660 1739 1739 1818 1818 1897 1897 1976 1976 2055 2055 2134 2134 2213 2213 2292 2292 2371 2371 2450 2450 2529 2529...
result:
ok Both contestant and jury have nice answers with 492960 and 255723 edges :)
Test #70:
score: 0
Accepted
time: 85ms
memory: 12272kb
input:
99
output:
9801 1 100 100 199 199 298 298 397 397 496 496 595 595 694 694 793 793 892 892 991 991 1090 1090 1189 1189 1288 1288 1387 1387 1486 1486 1585 1585 1684 1684 1783 1783 1882 1882 1981 1981 2080 2080 2179 2179 2278 2278 2377 2377 2476 2476 2575 2575 2674 2674 2773 2773 2872 2872 2971 2971 3070 3070 316...
result:
ok Both contestant and jury have nice answers with 970200 and 499653 edges :)
Test #71:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
32
output:
1024 1 33 33 65 65 97 97 129 129 161 161 193 193 225 225 257 257 289 289 321 321 353 353 385 385 417 417 449 449 481 481 513 513 545 545 577 577 609 609 641 641 673 673 705 705 737 737 769 769 801 801 833 833 865 865 897 897 929 929 961 961 993 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 ...
result:
ok Both contestant and jury have nice answers with 32736 and 17856 edges :)
Test #72:
score: 0
Accepted
time: 38ms
memory: 8540kb
input:
72
output:
5184 1 73 73 145 145 217 217 289 289 361 361 433 433 505 505 577 577 649 649 721 721 793 793 865 865 937 937 1009 1009 1081 1081 1153 1153 1225 1225 1297 1297 1369 1369 1441 1441 1513 1513 1585 1585 1657 1657 1729 1729 1801 1801 1873 1873 1945 1945 2017 2017 2089 2089 2161 2161 2233 2233 2305 2305 2...
result:
ok Both contestant and jury have nice answers with 373176 and 194256 edges :)
Test #73:
score: 0
Accepted
time: 66ms
memory: 13320kb
input:
89
output:
7921 1 90 90 179 179 268 268 357 357 446 446 535 535 624 624 713 713 802 802 891 891 980 980 1069 1069 1158 1158 1247 1247 1336 1336 1425 1425 1514 1514 1603 1603 1692 1692 1781 1781 1870 1870 1959 1959 2048 2048 2137 2137 2226 2226 2315 2315 2404 2404 2493 2493 2582 2582 2671 2671 2760 2760 2849 28...
result:
ok Both contestant and jury have nice answers with 704880 and 364188 edges :)
Test #74:
score: 0
Accepted
time: 36ms
memory: 7228kb
input:
77
output:
5929 1 78 78 155 155 232 232 309 309 386 386 463 463 540 540 617 617 694 694 771 771 848 848 925 925 1002 1002 1079 1079 1156 1156 1233 1233 1310 1310 1387 1387 1464 1464 1541 1541 1618 1618 1695 1695 1772 1772 1849 1849 1926 1926 2003 2003 2080 2080 2157 2157 2234 2234 2311 2311 2388 2388 2465 2465...
result:
ok Both contestant and jury have nice answers with 456456 and 237006 edges :)
Test #75:
score: 0
Accepted
time: 54ms
memory: 12932kb
input:
83
output:
6889 1 84 84 167 167 250 250 333 333 416 416 499 499 582 582 665 665 748 748 831 831 914 914 997 997 1080 1080 1163 1163 1246 1246 1329 1329 1412 1412 1495 1495 1578 1578 1661 1661 1744 1744 1827 1827 1910 1910 1993 1993 2076 2076 2159 2159 2242 2242 2325 2325 2408 2408 2491 2491 2574 2574 2657 2657...
result:
ok Both contestant and jury have nice answers with 571704 and 296061 edges :)
Test #76:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
20
output:
400 1 21 21 41 41 61 61 81 81 101 101 121 121 141 141 161 161 181 181 201 201 221 221 241 241 261 261 281 281 301 301 321 321 341 341 361 361 381 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 22 21 23 21 24 21 25 21 26 21 27 21 28 21 29 21 30 21 31 21 32 21 3...
result:
ok Both contestant and jury have nice answers with 7980 and 4560 edges :)
Test #77:
score: 0
Accepted
time: 37ms
memory: 8204kb
input:
69
output:
4761 1 70 70 139 139 208 208 277 277 346 346 415 415 484 484 553 553 622 622 691 691 760 760 829 829 898 898 967 967 1036 1036 1105 1105 1174 1174 1243 1243 1312 1312 1381 1381 1450 1450 1519 1519 1588 1588 1657 1657 1726 1726 1795 1795 1864 1864 1933 1933 2002 2002 2071 2071 2140 2140 2209 2209 227...
result:
ok Both contestant and jury have nice answers with 328440 and 171258 edges :)
Test #78:
score: 0
Accepted
time: 80ms
memory: 12500kb
input:
90
output:
8100 1 91 91 181 181 271 271 361 361 451 451 541 541 631 631 721 721 811 811 901 901 991 991 1081 1081 1171 1171 1261 1261 1351 1351 1441 1441 1531 1531 1621 1621 1711 1711 1801 1801 1891 1891 1981 1981 2071 2071 2161 2161 2251 2251 2341 2341 2431 2431 2521 2521 2611 2611 2701 2701 2791 2791 2881 28...
result:
ok Both contestant and jury have nice answers with 728910 and 376470 edges :)
Test #79:
score: 0
Accepted
time: 21ms
memory: 7744kb
input:
65
output:
4225 1 66 66 131 131 196 196 261 261 326 326 391 391 456 456 521 521 586 586 651 651 716 716 781 781 846 846 911 911 976 976 1041 1041 1106 1106 1171 1171 1236 1236 1301 1301 1366 1366 1431 1431 1496 1496 1561 1561 1626 1626 1691 1691 1756 1756 1821 1821 1886 1886 1951 1951 2016 2016 2081 2081 2146 ...
result:
ok Both contestant and jury have nice answers with 274560 and 143520 edges :)
Test #80:
score: 0
Accepted
time: 2ms
memory: 3688kb
input:
16
output:
256 1 17 17 33 33 49 49 65 65 81 81 97 97 113 113 129 129 145 145 161 161 177 177 193 193 209 209 225 225 241 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 18 17 19 17 20 17 21 17 22 17 23 17 24 17 25 17 26 17 27 17 28 17 29 17 30 17 31 17 32 17 34 33 35 33 36 33 37 33 38 33 39 ...
result:
ok Both contestant and jury have nice answers with 4080 and 2400 edges :)
Test #81:
score: 0
Accepted
time: 8ms
memory: 4100kb
input:
42
output:
1764 1 43 43 85 85 127 127 169 169 211 211 253 253 295 295 337 337 379 379 421 421 463 463 505 505 547 547 589 589 631 631 673 673 715 715 757 757 799 799 841 841 883 883 925 925 967 967 1009 1009 1051 1051 1093 1093 1135 1135 1177 1177 1219 1219 1261 1261 1303 1303 1345 1345 1387 1387 1429 1429 147...
result:
ok Both contestant and jury have nice answers with 74046 and 39606 edges :)
Test #82:
score: 0
Accepted
time: 4ms
memory: 4096kb
input:
49
output:
2401 1 50 50 99 99 148 148 197 197 246 246 295 295 344 344 393 393 442 442 491 491 540 540 589 589 638 638 687 687 736 736 785 785 834 834 883 883 932 932 981 981 1030 1030 1079 1079 1128 1128 1177 1177 1226 1226 1275 1275 1324 1324 1373 1373 1422 1422 1471 1471 1520 1520 1569 1569 1618 1618 1667 16...
result:
ok Both contestant and jury have nice answers with 117600 and 62328 edges :)
Test #83:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
13
output:
169 1 14 14 27 27 40 40 53 53 66 66 79 79 92 92 105 105 118 118 131 131 144 144 157 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 15 14 16 14 17 14 18 14 19 14 20 14 21 14 22 14 23 14 24 14 25 14 26 14 28 27 29 27 30 27 31 27 32 27 33 27 34 27 35 27 36 27 37 27 38 27 39 27 41 40 42 40 43 40 44...
result:
ok Both contestant and jury have nice answers with 2184 and 1326 edges :)
Test #84:
score: 0
Accepted
time: 17ms
memory: 5260kb
input:
54
output:
2916 1 55 55 109 109 163 163 217 217 271 271 325 325 379 379 433 433 487 487 541 541 595 595 649 649 703 703 757 757 811 811 865 865 919 919 973 973 1027 1027 1081 1081 1135 1135 1189 1189 1243 1243 1297 1297 1351 1351 1405 1405 1459 1459 1513 1513 1567 1567 1621 1621 1675 1675 1729 1729 1783 1783 1...
result:
ok Both contestant and jury have nice answers with 157410 and 82998 edges :)
Test #85:
score: 0
Accepted
time: 25ms
memory: 5296kb
input:
62
output:
3844 1 63 63 125 125 187 187 249 249 311 311 373 373 435 435 497 497 559 559 621 621 683 683 745 745 807 807 869 869 931 931 993 993 1055 1055 1117 1117 1179 1179 1241 1241 1303 1303 1365 1365 1427 1427 1489 1489 1551 1551 1613 1613 1675 1675 1737 1737 1799 1799 1861 1861 1923 1923 1985 1985 2047 20...
result:
ok Both contestant and jury have nice answers with 238266 and 124806 edges :)
Test #86:
score: 0
Accepted
time: 14ms
memory: 5176kb
input:
57
output:
3249 1 58 58 115 115 172 172 229 229 286 286 343 343 400 400 457 457 514 514 571 571 628 628 685 685 742 742 799 799 856 856 913 913 970 970 1027 1027 1084 1084 1141 1141 1198 1198 1255 1255 1312 1312 1369 1369 1426 1426 1483 1483 1540 1540 1597 1597 1654 1654 1711 1711 1768 1768 1825 1825 1882 1882...
result:
ok Both contestant and jury have nice answers with 185136 and 97356 edges :)
Test #87:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
17
output:
289 1 18 18 35 35 52 52 69 69 86 86 103 103 120 120 137 137 154 154 171 171 188 188 205 205 222 222 239 239 256 256 273 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 19 18 20 18 21 18 22 18 23 18 24 18 25 18 26 18 27 18 28 18 29 18 30 18 31 18 32 18 33 18 34 18 36 35 37 35 ...
result:
ok Both contestant and jury have nice answers with 4896 and 2856 edges :)
Test #88:
score: 0
Accepted
time: 61ms
memory: 12976kb
input:
95
output:
9025 1 96 96 191 191 286 286 381 381 476 476 571 571 666 666 761 761 856 856 951 951 1046 1046 1141 1141 1236 1236 1331 1331 1426 1426 1521 1521 1616 1616 1711 1711 1806 1806 1901 1901 1996 1996 2091 2091 2186 2186 2281 2281 2376 2376 2471 2471 2566 2566 2661 2661 2756 2756 2851 2851 2946 2946 3041 ...
result:
ok Both contestant and jury have nice answers with 857280 and 442035 edges :)
Test #89:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
9
output:
81 1 10 10 19 19 28 28 37 37 46 46 55 55 64 64 73 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 11 10 12 10 13 10 14 10 15 10 16 10 17 10 18 10 20 19 21 19 22 19 23 19 24 19 25 19 26 19 27 19 29 28 30 28 31 28 32 28 33 28 34 28 35 28 36 28 38 37 39 37 40 37 41 37 42 37 43 37 44 37 45 37 47 46 48 46 49 46 50 46 51...
result:
ok Both contestant and jury have nice answers with 720 and 468 edges :)
Test #90:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
31
output:
961 1 32 32 63 63 94 94 125 125 156 156 187 187 218 218 249 249 280 280 311 311 342 342 373 373 404 404 435 435 466 466 497 497 528 528 559 559 590 590 621 621 652 652 683 683 714 714 745 745 776 776 807 807 838 838 869 869 900 900 931 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16...
result:
ok Both contestant and jury have nice answers with 29760 and 16275 edges :)
Test #91:
score: 0
Accepted
time: 0ms
memory: 3444kb
input:
6
output:
36 1 7 7 13 13 19 19 25 25 31 2 1 3 1 4 1 5 1 6 1 8 7 9 7 10 7 11 7 12 7 14 13 15 13 16 13 17 13 18 13 20 19 21 19 22 19 23 19 24 19 26 25 27 25 28 25 29 25 30 25 32 31 33 31 34 31 35 31 36 31 32 2 2 8 8 14 14 20 20 26 1 32 3 32 4 32 5 32 6 32 7 2 9 2 10 2 11 2 12 2 13 8 15 8 16 8 17 8 18 8 19 14 21...
result:
ok Both contestant and jury have nice answers with 210 and 150 edges :)
Test #92:
score: 0
Accepted
time: 80ms
memory: 12436kb
input:
96
output:
9216 1 97 97 193 193 289 289 385 385 481 481 577 577 673 673 769 769 865 865 961 961 1057 1057 1153 1153 1249 1249 1345 1345 1441 1441 1537 1537 1633 1633 1729 1729 1825 1825 1921 1921 2017 2017 2113 2113 2209 2209 2305 2305 2401 2401 2497 2497 2593 2593 2689 2689 2785 2785 2881 2881 2977 2977 3073 ...
result:
ok Both contestant and jury have nice answers with 884640 and 456000 edges :)
Test #93:
score: 0
Accepted
time: 44ms
memory: 11692kb
input:
82
output:
6724 1 83 83 165 165 247 247 329 329 411 411 493 493 575 575 657 657 739 739 821 821 903 903 985 985 1067 1067 1149 1149 1231 1231 1313 1313 1395 1395 1477 1477 1559 1559 1641 1641 1723 1723 1805 1805 1887 1887 1969 1969 2051 2051 2133 2133 2215 2215 2297 2297 2379 2379 2461 2461 2543 2543 2625 2625...
result:
ok Both contestant and jury have nice answers with 551286 and 285606 edges :)
Test #94:
score: 0
Accepted
time: 4ms
memory: 4104kb
input:
41
output:
1681 1 42 42 83 83 124 124 165 165 206 206 247 247 288 288 329 329 370 370 411 411 452 452 493 493 534 534 575 575 616 616 657 657 698 698 739 739 780 780 821 821 862 862 903 903 944 944 985 985 1026 1026 1067 1067 1108 1108 1149 1149 1190 1190 1231 1231 1272 1272 1313 1313 1354 1354 1395 1395 1436 ...
result:
ok Both contestant and jury have nice answers with 68880 and 36900 edges :)
Test #95:
score: 0
Accepted
time: 6ms
memory: 3796kb
input:
36
output:
1296 1 37 37 73 73 109 109 145 145 181 181 217 217 253 253 289 289 325 325 361 361 397 397 433 433 469 469 505 505 541 541 577 577 613 613 649 649 685 685 721 721 757 757 793 793 829 829 865 865 901 901 937 937 973 973 1009 1009 1045 1045 1081 1081 1117 1117 1153 1153 1189 1189 1225 1225 1261 2 1 3 ...
result:
ok Both contestant and jury have nice answers with 46620 and 25200 edges :)
Test #96:
score: 0
Accepted
time: 4ms
memory: 3720kb
input:
30
output:
900 1 31 31 61 61 91 91 121 121 151 151 181 181 211 211 241 241 271 271 301 301 331 331 361 361 391 391 421 421 451 451 481 481 511 511 541 541 571 571 601 601 631 631 661 661 691 691 721 721 751 751 781 781 811 811 841 841 871 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 ...
result:
ok Both contestant and jury have nice answers with 26970 and 14790 edges :)
Test #97:
score: 0
Accepted
time: 1ms
memory: 3488kb
input:
11
output:
121 1 12 12 23 23 34 34 45 45 56 56 67 67 78 78 89 89 100 100 111 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 13 12 14 12 15 12 16 12 17 12 18 12 19 12 20 12 21 12 22 12 24 23 25 23 26 23 27 23 28 23 29 23 30 23 31 23 32 23 33 23 35 34 36 34 37 34 38 34 39 34 40 34 41 34 42 34 43 34 44 34 46 45 47 45 ...
result:
ok Both contestant and jury have nice answers with 1320 and 825 edges :)
Test #98:
score: 0
Accepted
time: 4ms
memory: 5112kb
input:
53
output:
2809 1 54 54 107 107 160 160 213 213 266 266 319 319 372 372 425 425 478 478 531 531 584 584 637 637 690 690 743 743 796 796 849 849 902 902 955 955 1008 1008 1061 1061 1114 1114 1167 1167 1220 1220 1273 1273 1326 1326 1379 1379 1432 1432 1485 1485 1538 1538 1591 1591 1644 1644 1697 1697 1750 1750 1...
result:
ok Both contestant and jury have nice answers with 148824 and 78546 edges :)
Test #99:
score: 0
Accepted
time: 24ms
memory: 8800kb
input:
70
output:
4900 1 71 71 141 141 211 211 281 281 351 351 421 421 491 491 561 561 631 631 701 701 771 771 841 841 911 911 981 981 1051 1051 1121 1121 1191 1191 1261 1261 1331 1331 1401 1401 1471 1471 1541 1541 1611 1611 1681 1681 1751 1751 1821 1821 1891 1891 1961 1961 2031 2031 2101 2101 2171 2171 2241 2241 231...
result:
ok Both contestant and jury have nice answers with 342930 and 178710 edges :)
Extra Test:
score: 0
Extra Test Passed