QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#267536 | #7629. Make SYSU Great Again II | cmk666 | AC ✓ | 58ms | 19776kb | C++23 | 7.7kb | 2023-11-27 14:05:23 | 2023-11-27 14:05:24 |
Judging History
answer
/*
* @Author: cmk666
* @Created time: 2023-11-27 13:48:09
* @Last Modified time: 2023-11-27 14:04:40
*/
#pragma GCC optimize("Ofast", "unroll-loops")
#include<bits/stdc++.h>
#ifdef LOCAL
#include"debug.h"
#else
#define D(...) ((void)0)
#endif
using namespace std; using ll = long long;
#define For(i, j, k) for ( int i = (j) ; i <= (k) ; i++ )
#define Fol(i, j, k) for ( int i = (j) ; i >= (k) ; i-- )
namespace FastIO
{
// ------------------------------
// #define IN_HAS_NEG
// #define OUT_HAS_NEG
// #define CHK_EOF
// #define DISABLE_MMAP
// ------------------------------
#if __cplusplus < 201400
#error Please use C++14 or higher.
#endif
#if __cplusplus > 201700
#define INLINE_V inline
#else
#define INLINE_V
#endif
#if ( defined(LOCAL) || defined(_WIN32) ) && !defined(DISABLE_MMAP)
#define DISABLE_MMAP
#endif
#ifndef DISABLE_MMAP
#include<sys/mman.h>
#endif
#ifdef LOCAL
inline char gc() { return getchar(); }
inline void pc(char c) { putchar(c); }
#else
#ifdef DISABLE_MMAP
INLINE_V constexpr int _READ_SIZE = 1 << 18;
INLINE_V static char _read_buffer[_READ_SIZE], *_read_ptr = nullptr, *_read_ptr_end = nullptr;
inline char gc()
{
if ( __builtin_expect(_read_ptr == _read_ptr_end, false) )
{
_read_ptr = _read_buffer;
_read_ptr_end = _read_buffer + fread(_read_buffer, 1, _READ_SIZE, stdin);
#ifdef CHK_EOF
if ( __builtin_expect(_read_ptr == _read_ptr_end, false) ) return EOF;
#endif
}
return *_read_ptr++;
}
#else
INLINE_V static const char *_read_ptr = (const char *)mmap(nullptr, INT_MAX, 1, 2, 0, 0);
inline char gc() { return *_read_ptr++; }
#endif
INLINE_V constexpr int _WRITE_SIZE = 1 << 18;
INLINE_V static char _write_buffer[_WRITE_SIZE], *_write_ptr = _write_buffer;
inline void pc(char c)
{
*_write_ptr++ = c;
if ( __builtin_expect(_write_buffer + _WRITE_SIZE == _write_ptr, false) )
{
fwrite(_write_buffer, 1, _write_ptr - _write_buffer, stdout);
_write_ptr = _write_buffer;
}
}
INLINE_V struct _auto_flush
{
inline ~_auto_flush() { fwrite(_write_buffer, 1, _write_ptr - _write_buffer, stdout); }
} _auto_flush;
#endif
#ifdef CHK_EOF
inline constexpr bool _isdigit(char c) { return ( c & 16 ) && c != EOF; }
inline constexpr bool _isgraph(char c) { return c > 32 && c != EOF; }
#else
inline constexpr bool _isdigit(char c) { return c & 16; }
inline constexpr bool _isgraph(char c) { return c > 32; }
#endif
template < class T >
INLINE_V constexpr bool _is_integer = numeric_limits < T >::is_integer;
template < class T >
INLINE_V constexpr bool _is_signed = numeric_limits < T >::is_signed;
template < class T >
INLINE_V constexpr bool _is_unsigned = _is_integer < T > && !_is_signed < T >;
template <> INLINE_V constexpr bool _is_integer < __int128 > = true;
template <> INLINE_V constexpr bool _is_integer < __uint128_t > = true;
template <> INLINE_V constexpr bool _is_signed < __int128 > = true;
template <> INLINE_V constexpr bool _is_unsigned < __uint128_t > = true;
#undef INLINE_V
inline void read(char &c) { do c = gc(); while ( !_isgraph(c) ); }
inline void read_cstr(char *s)
{
char c = gc(); while ( !_isgraph(c) ) c = gc();
while ( _isgraph(c) ) *s++ = c, c = gc();
*s = 0;
}
inline void read(string &s)
{
char c = gc(); s.clear(); while ( !_isgraph(c) ) c = gc();
while ( _isgraph(c) ) s.push_back(c), c = gc();
}
#ifdef IN_HAS_NEG
template < class T, enable_if_t < _is_signed < T >, int > = 0 >
inline void read(T &x)
{
char c = gc(); bool f = true; x = 0;
while ( !_isdigit(c) ) { if ( c == 45 ) f = false; c = gc(); }
if ( f ) while ( _isdigit(c) ) x = x * 10 + ( c & 15 ), c = gc();
else while ( _isdigit(c) ) x = x * 10 - ( c & 15 ), c = gc();
}
template < class T, enable_if_t < _is_unsigned < T >, int > = 0 >
#else
template < class T, enable_if_t < _is_integer < T >, int > = 0 >
#endif
inline void read(T &x)
{
char c = gc(); while ( !_isdigit(c) ) c = gc();
x = 0; while ( _isdigit(c) ) x = x * 10 + ( c & 15 ), c = gc();
}
inline void write(char c) { pc(c); }
inline void write_cstr(const char *s) { while ( *s ) pc(*s++); }
inline void write(const string &s) { for ( char c : s ) pc(c); }
#ifdef OUT_HAS_NEG
template < class T, enable_if_t < _is_signed < T >, int > = 0 >
inline void write(T x)
{
char buffer[numeric_limits < T >::digits10 + 1]; int digits = 0;
if ( x >= 0 ) do buffer[digits++] = ( x % 10 ) | 48, x /= 10; while ( x );
else { pc(45); do buffer[digits++] = -( x % 10 ) | 48, x /= 10; while ( x ); }
while ( digits ) pc(buffer[--digits]);
}
template < class T, enable_if_t < _is_unsigned < T >, int > = 0 >
#else
template < class T, enable_if_t < _is_integer < T >, int > = 0 >
#endif
inline void write(T x)
{
char buffer[numeric_limits < T >::digits10 + 1]; int digits = 0;
do buffer[digits++] = ( x % 10 ) | 48, x /= 10; while ( x );
while ( digits ) pc(buffer[--digits]);
}
template < int N > struct _tuple_io_helper
{
template < class ...T >
static inline void _read(tuple < T... > &x)
{ _tuple_io_helper < N - 1 >::_read(x), read(get < N - 1 > (x)); }
template < class ...T >
static inline void _write(const tuple < T... > &x)
{ _tuple_io_helper < N - 1 >::_write(x), pc(32), write(get < N - 1 > (x)); }
};
template <> struct _tuple_io_helper < 1 >
{
template < class ...T >
static inline void _read(tuple < T... > &x) { read(get < 0 > (x)); }
template < class ...T >
static inline void _write(const tuple < T... > &x) { write(get < 0 > (x)); }
};
template < class ...T >
inline void read(tuple < T... > &x) { _tuple_io_helper < sizeof...(T) >::_read(x); }
template < class ...T >
inline void write(const tuple < T... > &x) { _tuple_io_helper < sizeof...(T) >::_write(x); }
template < class T1, class T2 >
inline void read(pair < T1, T2 > &x) { read(x.first), read(x.second); }
template < class T1, class T2 >
inline void write(const pair < T1, T2 > &x) { write(x.first), pc(32), write(x.second); }
template < class T1, class ...T2 >
inline void read(T1 &x, T2 &...y) { read(x), read(y...); }
template < class ...T >
inline void read_cstr(char *x, T *...y) { read_cstr(x), read_cstr(y...); }
template < class T1, class ...T2 >
inline void write(const T1 &x, const T2 &...y) { write(x), write(y...); }
template < class ...T >
inline void write_cstr(const char *x, const T *...y) { write_cstr(x), write_cstr(y...); }
template < class T >
inline void print(const T &x) { write(x); }
inline void print_cstr(const char *x) { write_cstr(x); }
template < class T1, class ...T2 >
inline void print(const T1 &x, const T2 &...y) { print(x), pc(32), print(y...); }
template < class ...T >
inline void print_cstr(const char *x, const T *...y) { print_cstr(x), pc(32), print_cstr(y...); }
inline void println() { pc(10); }
inline void println_cstr() { pc(10); }
template < class ...T >
inline void println(const T &...x) { print(x...), pc(10); }
template < class ...T >
inline void println_cstr(const T *...x) { print_cstr(x...), pc(10); }
}
using namespace FastIO;
int n, k, a[2109], len, msk, ans[2009][2009];
int main()
{
read(n), println("Yes"s);
while ( ( 1 << k ) < n ) k++;
a[len = 1] = 0, msk = ( 1 << ( k + k ) ) - 1;
For(i, 1, k) Fol(j, len, 1) a[++len] = a[j] | ( 1 << ( i - 1 ) );
For(i, 1, n) For(j, 1, n) if ( ~( i + j ) & 1 )
ans[i][j] = ( a[( ( i - j ) >> 1 ) + ( ( n + 1 ) >> 1 )] << k ) | a[( i + j ) >> 1];
For(i, 1, n) For(j, 1, n) if ( ( i + j ) & 1 )
ans[i][j] = ~( ans[i - 1][j] | ans[i + 1][j] | ans[i][j - 1] | ans[i][j + 1] ) & msk;
For(i, 1, n) For(j, 1, n) write(ans[i][j], j == n ? '\n' : ' ');
return 0;
}
// 想上GM捏 想上GM捏 想上GM捏 想上GM捏 想上GM捏
// 伊娜可爱捏 伊娜贴贴捏
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3604kb
input:
4
output:
Yes 4 10 1 12 2 5 8 3 13 0 7 8 0 15 0 6
result:
ok 1
Test #2:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1
output:
Yes 0
result:
ok 1
Test #3:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
2
output:
Yes 0 2 2 1
result:
ok 1
Test #4:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
3
output:
Yes 4 10 1 2 5 8 13 0 7
result:
ok 1
Test #5:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
5
output:
Yes 24 38 9 52 3 38 25 36 11 52 17 36 27 36 10 12 19 36 26 33 51 12 18 33 30
result:
ok 1
Test #6:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
8
output:
Yes 16 38 25 36 11 52 2 57 14 17 36 27 36 10 49 6 49 12 19 36 26 33 14 48 4 51 12 18 33 30 32 15 59 4 50 9 22 32 31 32 4 58 1 54 8 23 32 29 42 1 62 0 55 8 21 34 17 46 0 63 0 53 10 20
result:
ok 1
Test #7:
score: 0
Accepted
time: 1ms
memory: 5688kb
input:
13
output:
Yes 80 142 113 140 99 156 34 201 54 200 23 232 5 174 81 140 115 140 98 153 38 200 55 200 21 234 65 172 83 140 114 137 102 152 39 200 53 202 20 60 67 172 82 137 118 136 103 152 37 202 52 195 195 60 66 169 86 136 119 136 101 154 36 195 60 44 194 57 70 168 87 136 117 138 100 147 44 194 210 41 198 56 71...
result:
ok 1
Test #8:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
21
output:
Yes 480 542 417 604 387 636 130 857 166 792 231 792 197 826 68 915 108 914 45 976 15 542 481 540 419 604 386 633 134 856 167 792 229 794 196 819 76 914 109 912 47 976 449 540 483 540 418 601 390 632 135 856 165 794 228 787 204 818 77 912 111 912 46 572 451 540 482 537 422 600 391 632 133 858 164 787...
result:
ok 1
Test #9:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
34
output:
Yes 1536 2558 513 3516 579 3388 706 3385 646 3192 903 3128 965 3130 836 3251 780 3314 269 3760 335 3632 462 3633 394 3700 139 3892 201 3894 72 4007 24 4070 2494 1537 2556 515 3516 578 3385 710 3384 647 3192 901 3130 964 3123 844 3250 781 3312 271 3760 334 3633 458 3636 395 3700 137 3894 200 3879 88 ...
result:
ok 1
Test #10:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
55
output:
Yes 1408 2622 1473 2620 1347 2748 1282 2297 1798 2232 1863 2104 1989 2106 1924 2163 1676 2354 1741 2352 1615 2480 1550 2545 522 3508 587 3380 713 3382 648 3175 920 3110 985 3108 859 3236 794 3297 286 3744 351 3616 477 3618 412 3683 148 3882 213 3880 87 4008 22 2686 1409 2620 1475 2620 1346 2745 1286...
result:
ok 1
Test #11:
score: 0
Accepted
time: 1ms
memory: 5736kb
input:
89
output:
Yes 7424 8446 7937 8316 8067 8316 7810 8569 7686 8696 6663 9592 6789 9338 7044 9331 6924 9458 6413 9840 6543 9840 6286 10097 6154 10228 2059 14196 2185 13942 2440 13927 2328 13542 2841 13412 2971 13412 2714 13665 2590 12768 3615 12640 3741 12386 3996 12387 3860 12522 3349 12904 3479 12904 3222 13161...
result:
ok 1
Test #12:
score: 0
Accepted
time: 1ms
memory: 6116kb
input:
100
output:
Yes 5248 11134 5121 9212 7171 9084 7298 8825 7558 8824 7431 8440 7941 8314 8068 8307 7820 8562 7693 8688 6671 9584 6798 9329 7050 9332 6923 9460 6409 9846 6536 9831 6296 10086 6169 10212 2075 14180 2202 13921 2462 13920 2335 13536 2845 13410 2972 13411 2708 13674 2581 12776 3607 12648 3734 12393 398...
result:
ok 1
Test #13:
score: 0
Accepted
time: 2ms
memory: 6228kb
input:
200
output:
Yes 20992 44286 21249 44284 20739 44796 20482 36857 28678 36600 28935 36088 29445 36090 29188 35315 30220 35058 30477 35056 29967 35568 29710 33777 31754 33524 32011 33012 32521 33014 32264 33255 31256 34022 31513 34020 31003 34532 30746 34785 26654 38624 26911 38112 27421 38114 27164 37347 28180 37...
result:
ok 1
Test #14:
score: 0
Accepted
time: 3ms
memory: 6668kb
input:
300
output:
Yes 114176 147966 113665 148476 111619 150012 112130 150009 111110 151032 110599 151544 102405 159226 102916 158195 103948 158194 103437 156656 105487 156144 105998 156145 104970 157172 104459 157684 100361 161270 100872 160231 101912 160230 101401 160740 99355 162276 99866 162273 98846 163296 98335...
result:
ok 1
Test #15:
score: 0
Accepted
time: 3ms
memory: 8284kb
input:
400
output:
Yes 83968 177662 84481 176636 85507 176636 84994 177145 82950 178680 83463 178680 82437 179706 81924 147443 114700 146930 115213 145904 116239 145904 115726 144369 117770 143860 118283 143860 117257 144886 116744 141287 120856 140774 121369 139748 122395 139748 121882 140257 119838 141792 120351 141...
result:
ok 1
Test #16:
score: 0
Accepted
time: 5ms
memory: 9000kb
input:
500
output:
Yes 68096 194046 67585 190460 71683 189948 72194 188921 73222 188920 72711 189432 70661 190970 71172 190963 70156 191986 69645 184304 77839 183792 78350 182769 79370 182772 78859 181236 80905 180726 81416 180711 80408 181734 79897 182244 75803 185828 76314 184801 77342 184800 76831 185312 74781 1868...
result:
ok 1
Test #17:
score: 0
Accepted
time: 7ms
memory: 10508kb
input:
600
output:
Yes 456704 590846 457729 590844 455683 592892 454658 593913 446470 601080 447495 599032 449541 599034 448516 600051 444428 603122 445453 603120 443407 605168 442382 606193 409610 637940 410635 635892 412681 635894 411656 632807 415768 631782 416793 631780 414747 633828 413722 626657 421918 625632 42...
result:
ok 1
Test #18:
score: 0
Accepted
time: 9ms
memory: 11112kb
input:
700
output:
Yes 510976 537598 509953 534524 514051 533500 515074 533497 513030 535544 512007 528376 520197 527354 521220 525299 523276 525298 522253 526320 518159 529392 519182 529393 517130 531444 516107 532468 499721 547830 500744 545767 502808 545766 501785 542692 505883 541668 506906 541665 504862 543712 50...
result:
ok 1
Test #19:
score: 0
Accepted
time: 3ms
memory: 12308kb
input:
800
output:
Yes 335872 711678 336897 709628 338947 709628 337922 706553 342022 705528 343047 705528 340997 707578 339972 708595 331788 715762 332813 713712 334863 713712 333838 714737 329738 717812 330763 717812 328713 719862 327688 589799 458776 588774 459801 586724 461851 586724 460826 583649 464926 582624 46...
result:
ok 1
Test #20:
score: 0
Accepted
time: 13ms
memory: 12032kb
input:
900
output:
Yes 295936 752638 294913 688124 360451 687100 361474 685049 363526 685048 362503 681976 366597 680954 367620 680947 365580 682994 364557 675824 372751 674800 373774 672753 375818 672756 374795 673780 370697 676854 371720 676839 369688 678886 368665 663524 385051 662500 386074 660449 388126 660448 38...
result:
ok 1
Test #21:
score: 0
Accepted
time: 8ms
memory: 13056kb
input:
1000
output:
Yes 272384 775166 273409 775164 271363 777212 270338 761849 286726 760824 287751 758776 289797 758778 288772 755699 292876 754674 293901 754672 291855 756720 290830 757745 282634 764916 283659 762868 285705 762870 284680 763879 280600 766950 281625 766948 279579 768996 278554 737249 311326 736224 31...
result:
ok 1
Test #22:
score: 0
Accepted
time: 12ms
memory: 15528kb
input:
1200
output:
Yes 1826816 2365438 1828865 2361340 1832963 2361340 1830914 2363385 1822726 2369528 1824775 2369528 1820677 2373626 1818628 2375667 1785868 2406386 1787917 2402288 1792015 2402288 1789966 2396145 1798154 2394100 1800203 2394100 1796105 2398198 1794056 2400231 1777688 2414566 1779737 2410468 1783835 ...
result:
ok 1
Test #23:
score: 0
Accepted
time: 26ms
memory: 15860kb
input:
1400
output:
Yes 2043904 2148350 2045953 2148348 2041859 2152444 2039810 2138105 2056198 2136056 2058247 2131960 2062341 2131962 2060292 2134003 2052108 2140146 2054157 2140144 2050063 2144240 2048014 2113521 2080778 2111476 2082827 2107380 2086921 2107382 2084872 2101223 2093080 2099174 2095129 2099172 2091035 ...
result:
ok 1
Test #24:
score: 0
Accepted
time: 35ms
memory: 17916kb
input:
1600
output:
Yes 1343488 2848766 1345537 2844668 1349635 2844668 1347586 2838521 1355782 2836472 1357831 2836472 1353733 2840570 1351684 2826227 1368076 2824178 1370125 2820080 1374223 2820080 1372174 2822129 1363978 2828276 1366027 2828276 1361929 2832374 1359880 2834407 1327128 2865126 1329177 2861028 1333275 ...
result:
ok 1
Test #25:
score: 0
Accepted
time: 37ms
memory: 19540kb
input:
1800
output:
Yes 1183744 3008510 1185793 3008508 1181699 3012604 1179650 2752505 1441798 2750456 1443847 2746360 1447941 2746362 1445892 2740211 1454092 2738162 1456141 2738160 1452047 2742256 1449998 2727921 1466378 2725876 1468427 2721780 1472521 2721782 1470472 2723815 1462296 2729958 1464345 2729956 1460251 ...
result:
ok 1
Test #26:
score: 0
Accepted
time: 47ms
memory: 19128kb
input:
1900
output:
Yes 1275904 2918398 1273857 2920444 1265667 2926588 1267714 2926585 1263622 2930680 1261575 2899960 1294341 2897914 1296388 2893811 1300492 2893810 1298445 2887664 1306639 2885616 1308686 2885617 1304586 2889716 1302539 2891764 1286153 2906102 1288200 2901991 1292312 2901990 1290265 2904036 1282075 ...
result:
ok 1
Test #27:
score: 0
Accepted
time: 48ms
memory: 19144kb
input:
1920
output:
Yes 1245184 2947070 1247233 2942972 1251331 2942972 1249282 2936825 1257478 2934776 1259527 2934776 1255429 2938874 1253380 2924531 1269772 2922482 1271821 2918384 1275919 2918384 1273870 2920433 1265674 2926580 1267723 2926580 1263625 2930678 1261576 2899943 1294360 2897894 1296409 2893796 1300507 ...
result:
ok 1
Test #28:
score: 0
Accepted
time: 58ms
memory: 19776kb
input:
2000
output:
Yes 1089536 3102718 1091585 3098620 1095683 3098620 1093634 3100665 1085446 3106808 1087495 3106808 1083397 3110906 1081348 3047411 1146892 3045362 1148941 3041264 1153039 3041264 1150990 3035121 1159178 3033076 1161227 3033076 1157129 3037174 1155080 3022823 1171480 3020774 1173529 3016676 1177627 ...
result:
ok 1
Test #29:
score: 0
Accepted
time: 1ms
memory: 5984kb
input:
62
output:
Yes 1088 2878 1217 2876 1155 2684 1410 2617 1478 2616 1351 2744 1285 2298 1796 2227 1868 2098 1997 2096 1935 2160 1678 2353 1738 2356 1611 2484 1545 2550 520 3495 600 3366 729 3364 667 3172 922 3105 990 3104 863 3232 797 3298 284 3747 340 3626 469 3624 407 3688 150 3881 210 3884 83 4012 17 4078 3006...
result:
ok 1
Test #30:
score: 0
Accepted
time: 1ms
memory: 5764kb
input:
130
output:
Yes 24576 40958 8193 57084 8451 56572 8962 56569 8710 55800 9735 55544 9989 55546 9476 56051 9228 54258 11277 54000 11535 53488 12046 53489 11786 53748 10763 54516 11017 54518 10504 55015 10264 51174 14361 50916 14619 50404 15130 50401 14878 49632 15903 49376 16157 49378 15644 49891 15380 50154 1333...
result:
ok 1
Test #31:
score: 0
Accepted
time: 1ms
memory: 5760kb
input:
126
output:
Yes 4224 11902 4481 11900 4355 11516 4866 11385 4998 11384 4743 11640 4613 10746 5636 10611 5772 10354 6029 10352 5903 10480 5390 10865 5514 10868 5259 11124 5129 9206 7176 9063 7320 8806 7577 8804 7451 8420 7962 8289 8094 8288 7839 8544 7709 8674 6684 9571 6804 9322 7061 9320 6935 9448 6422 9833 65...
result:
ok 1
Test #32:
score: 0
Accepted
time: 1ms
memory: 3896kb
input:
66
output:
Yes 6144 10238 2049 14204 2179 13948 2434 13945 2310 13560 2823 13432 2949 13434 2692 13683 2572 12786 3597 12656 3727 12400 3982 12401 3850 12532 3339 12916 3465 12918 3208 13159 3096 13286 1049 15204 1179 14948 1434 14945 1310 14560 1823 14432 1949 14434 1692 14691 1556 14826 533 15720 663 15464 9...
result:
ok 1
Test #33:
score: 0
Accepted
time: 12ms
memory: 12512kb
input:
1021
output:
Yes 263168 783358 265217 783356 264195 780284 268290 779257 269318 779256 267271 781304 266245 774138 274436 773107 275468 771058 277517 771056 276495 772080 272398 775153 273418 775156 271371 777204 270345 761846 286728 760807 287768 758758 289817 758756 288795 755684 292890 754657 293918 754656 29...
result:
ok 1
Test #34:
score: 0
Accepted
time: 8ms
memory: 12320kb
input:
1022
output:
Yes 263168 783358 265217 783356 264195 780284 268290 779257 269318 779256 267271 781304 266245 774138 274436 773107 275468 771058 277517 771056 276495 772080 272398 775153 273418 775156 271371 777204 270345 761846 286728 760807 287768 758758 289817 758756 288795 755684 292890 754657 293918 754656 29...
result:
ok 1
Test #35:
score: 0
Accepted
time: 12ms
memory: 13200kb
input:
1023
output:
Yes 262144 785406 263169 783356 265219 783356 264194 780281 268294 779256 269319 779256 267269 781306 266244 774131 274444 773106 275469 771056 277519 771056 276494 772081 272394 775156 273419 775156 271369 777206 270344 761831 286744 760806 287769 758756 289819 758756 288794 755681 292894 754656 29...
result:
ok 1
Test #36:
score: 0
Accepted
time: 13ms
memory: 12772kb
input:
1024
output:
Yes 262144 785406 263169 783356 265219 783356 264194 780281 268294 779256 269319 779256 267269 781306 266244 774131 274444 773106 275469 771056 277519 771056 276494 772081 272394 775156 273419 775156 271369 777206 270344 761831 286744 760806 287769 758756 289819 758756 288794 755681 292894 754656 29...
result:
ok 1
Test #37:
score: 0
Accepted
time: 15ms
memory: 13892kb
input:
1025
output:
Yes 1572864 2621438 524289 3667964 526339 3663868 530434 3663865 528390 3657720 536583 3655672 538629 3655674 534532 3659763 532492 3645426 548877 3643376 550927 3639280 555022 3639281 552970 3641332 544779 3647476 546825 3647478 542728 3651559 540696 3620838 573465 3618788 575515 3614692 579610 361...
result:
ok 1
Test #38:
score: 0
Accepted
time: 19ms
memory: 15728kb
input:
1026
output:
Yes 1572864 2621438 524289 3667964 526339 3663868 530434 3663865 528390 3657720 536583 3655672 538629 3655674 534532 3659763 532492 3645426 548877 3643376 550927 3639280 555022 3639281 552970 3641332 544779 3647476 546825 3647478 542728 3651559 540696 3620838 573465 3618788 575515 3614692 579610 361...
result:
ok 1
Test #39:
score: 0
Accepted
time: 11ms
memory: 12184kb
input:
1027
output:
Yes 1574912 2619390 1572865 2621436 524291 3667964 526338 3663865 530438 3663864 528391 3657720 536581 3655674 538628 3655667 534540 3659762 532493 3645424 548879 3643376 550926 3639281 555018 3639284 552971 3641332 544777 3647478 546824 3647463 542744 3651558 540697 3620836 573467 3618788 575514 36...
result:
ok 1
Extra Test:
score: 0
Extra Test Passed