QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#774646 | #9791. Intrusive Donkey | ucup-team896# | WA | 1ms | 10460kb | C++20 | 11.5kb | 2024-11-23 13:36:47 | 2024-11-23 13:36:57 |
Judging History
answer
/* _ _ _ _ __ __ __
/ \ _ _ | |_ | |__ ___ _ __ _ ___ _ __ ___ | | __ / /_ / /_ / /_
/ _ \ | | | | | __| | '_ \ / _ \ | '__| (_) / __| | '_ ` _ \ | |/ / | '_ \ | '_ \ | '_ \
/ ___ \ | |_| | | |_ | | | | | (_) | | | _ | (__ | | | | | | | < | (_) | | (_) | | (_) |
/_/ \_\ \__,_| \__| |_| |_| \___/ |_| (_) \___| |_| |_| |_| |_|\_\ \___/ \___/ \___/
[Created Time: 2024-11-23 13:21:37]
[Last Modified Time: 2024-11-23 13:36:37] */
#ifdef LOCAL
#include<bits/stdc++.h>
#include"debug.h"
#else
#pragma GCC optimize("Ofast", "unroll-loops")
#include<bits/stdc++.h>
#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 USE_FastIO
// ------------------------------
// #define DISABLE_MMAP
// ------------------------------
#if ( defined(LOCAL) || defined(_WIN32) ) && !defined(DISABLE_MMAP)
#define DISABLE_MMAP
#endif
#ifdef LOCAL
inline void _chk_i() {}
inline char _gc_nochk() { return getchar(); }
inline char _gc() { return getchar(); }
inline void _chk_o() {}
inline void _pc_nochk(char c) { putchar(c); }
inline void _pc(char c) { putchar(c); }
template < int n > inline void _pnc_nochk(const char *c) { for ( int i = 0 ; i < n ; i++ ) putchar(c[i]); }
#else
#ifdef DISABLE_MMAP
inline constexpr int _READ_SIZE = 1 << 18; inline static char _read_buffer[_READ_SIZE + 40], *_read_ptr = nullptr, *_read_ptr_end = nullptr; static inline bool _eof = false;
inline void _chk_i() { if ( __builtin_expect(!_eof, true) && __builtin_expect(_read_ptr_end - _read_ptr < 40, false) ) { int sz = _read_ptr_end - _read_ptr; if ( sz ) memcpy(_read_buffer, _read_ptr, sz); char *beg = _read_buffer + sz; _read_ptr = _read_buffer, _read_ptr_end = beg + fread(beg, 1, _READ_SIZE, stdin); if ( __builtin_expect(_read_ptr_end != beg + _READ_SIZE, false) ) _eof = true, *_read_ptr_end = EOF; } }
inline char _gc_nochk() { return __builtin_expect(_eof && _read_ptr == _read_ptr_end, false) ? EOF : *_read_ptr++; }
inline char _gc() { _chk_i(); return _gc_nochk(); }
#else
#include<sys/mman.h>
#include<sys/stat.h>
inline static char *_read_ptr = (char *)mmap(nullptr, [] { struct stat s; return fstat(0, &s), s.st_size; } (), 1, 2, 0, 0);
inline void _chk_i() {}
inline char _gc_nochk() { return *_read_ptr++; }
inline char _gc() { return *_read_ptr++; }
#endif
inline constexpr int _WRITE_SIZE = 1 << 18; inline static char _write_buffer[_WRITE_SIZE + 40], *_write_ptr = _write_buffer;
inline void _chk_o() { if ( __builtin_expect(_write_ptr - _write_buffer > _WRITE_SIZE, false) ) fwrite(_write_buffer, 1, _write_ptr - _write_buffer, stdout), _write_ptr = _write_buffer; }
inline void _pc_nochk(char c) { *_write_ptr++ = c; }
inline void _pc(char c) { *_write_ptr++ = c, _chk_o(); }
template < int n > inline void _pnc_nochk(const char *c) { memcpy(_write_ptr, c, n), _write_ptr += n; }
inline struct _auto_flush { inline ~_auto_flush() { fwrite(_write_buffer, 1, _write_ptr - _write_buffer, stdout); } } _auto_flush;
#endif
#define println println_ // don't use C++23 std::println
template < class T > inline constexpr bool _is_signed = numeric_limits < T >::is_signed;
template < class T > inline constexpr bool _is_unsigned = numeric_limits < T >::is_integer && !_is_signed < T >;
#if __SIZEOF_LONG__ == 64
template <> inline constexpr bool _is_signed < __int128 > = true;
template <> inline constexpr bool _is_unsigned < __uint128_t > = true;
#endif
inline bool _isgraph(char c) { return c >= 33; }
inline bool _isdigit(char c) { return 48 <= c && c <= 57; } // or faster, remove c <= 57
constexpr struct _table {
#ifndef LOCAL
int i[65536];
#endif
char o[40000]; constexpr _table() :
#ifndef LOCAL
i{},
#endif
o{} {
#ifndef LOCAL
for ( int x = 0 ; x < 65536 ; x++ ) i[x] = -1; for ( int x = 0 ; x <= 9 ; x++ ) for ( int y = 0 ; y <= 9 ; y++ ) i[x + y * 256 + 12336] = x * 10 + y;
#endif
for ( int x = 0 ; x < 10000 ; x++ ) for ( int y = 3, z = x ; ~y ; y-- ) o[x * 4 + y] = z % 10 + 48, z /= 10; } } _table;
template < class T, int digit > inline constexpr T _pw10 = 10 * _pw10 < T, digit - 1 >;
template < class T > inline constexpr T _pw10 < T, 0 > = 1;
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(); }
template < class T, bool neg >
#ifndef LOCAL
__attribute__((no_sanitize("undefined")))
#endif
inline void _read_int_suf(T &x) { _chk_i(); char c; while
#ifndef LOCAL
( ~_table.i[*reinterpret_cast < unsigned short *& >(_read_ptr)] ) if constexpr ( neg ) x = x * 100 - _table.i[*reinterpret_cast < unsigned short *& >(_read_ptr)++]; else x = x * 100 + _table.i[*reinterpret_cast < unsigned short *& >(_read_ptr)++]; if
#endif
( _isdigit(c = _gc_nochk()) ) if constexpr ( neg ) x = x * 10 - ( c & 15 ); else x = x * 10 + ( c & 15 ); }
template < class T, enable_if_t < _is_signed < T >, int > = 0 > inline void read(T &x) { char c; while ( !_isdigit(c = _gc()) ) if ( c == 45 ) { _read_int_suf < T, true >(x = -( _gc_nochk() & 15 )); return; } _read_int_suf < T, false >(x = c & 15); }
template < class T, enable_if_t < _is_unsigned < T >, int > = 0 > inline void read(T &x) { char c; while ( !_isdigit(c = _gc()) ); _read_int_suf < T, false >(x = c & 15); }
inline void write(bool x) { _pc(x | 48); }
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); }
template < class T, bool neg, int digit > inline void _write_int_suf(T x) { if constexpr ( digit == 4 ) _pnc_nochk < 4 >(_table.o + ( neg ? -x : x ) * 4); else _write_int_suf < T, neg, digit / 2 >(x / _pw10 < T, digit / 2 >), _write_int_suf < T, neg, digit / 2 >(x % _pw10 < T, digit / 2 >); }
template < class T, bool neg, int digit > inline void _write_int_pre(T x) { if constexpr ( digit <= 4 ) if ( digit >= 3 && ( neg ? x <= -100 : x >= 100 ) ) if ( digit >= 4 && ( neg ? x <= -1000 : x >= 1000 ) ) _pnc_nochk < 4 >(_table.o + ( neg ? -x : x ) * 4); else _pnc_nochk < 3 >(_table.o + ( neg ? -x : x ) * 4 + 1); else if ( digit >= 2 && ( neg ? x <= -10 : x >= 10 ) ) _pnc_nochk < 2 >(_table.o + ( neg ? -x : x ) * 4 + 2); else _pc_nochk(( neg ? -x : x ) | 48); else { constexpr int cur = 1 << __lg(digit - 1); if ( neg ? x <= -_pw10 < T, cur > : x >= _pw10 < T, cur > ) _write_int_pre < T, neg, digit - cur >(x / _pw10 < T, cur >), _write_int_suf < T, neg, cur >(x % _pw10 < T, cur >); else _write_int_pre < T, neg, cur >(x); } }
template < class T, enable_if_t < _is_signed < T >, int > = 0 > inline void write(T x) { if ( x >= 0 ) _write_int_pre < T, false, numeric_limits < T >::digits10 + 1 >(x); else _pc_nochk(45), _write_int_pre < T, true, numeric_limits < T >::digits10 + 1 >(x); _chk_o(); }
template < class T, enable_if_t < _is_unsigned < T >, int > = 0 > inline void write(T x) { _write_int_pre < T, false, numeric_limits < T >::digits10 + 1 >(x), _chk_o(); }
template < size_t N, class ...T > inline void _read_tuple(tuple < T... > &x) { read(get < N >(x)); if constexpr ( N + 1 != sizeof...(T) ) _read_tuple < N + 1, T... >(x); }
template < size_t N, class ...T > inline void _write_tuple(const tuple < T... > &x) { write(get < N >(x)); if constexpr ( N + 1 != sizeof...(T) ) _pc(32), _write_tuple < N + 1, T... >(x); }
template < class ...T > inline void read(tuple < T... > &x) { _read_tuple < 0, T... >(x); }
template < class ...T > inline void write(const tuple < T... > &x) { _write_tuple < 0, T... >(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 T > inline auto read(T &x) -> decltype(x.read(), void()) { x.read(); }
template < class T > inline auto write(const T &x) -> decltype(x.write(), void()) { x.write(); }
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) { write(x), _pc(32), print(y...); }
template < class ...T > inline void print_cstr(const char *x, const T *...y) { write_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 FastIO::read, FastIO::read_cstr, FastIO::write, FastIO::write_cstr, FastIO::println, FastIO::println_cstr;
constexpr ll inf = numeric_limits < ll >::max() >> 1;
inline ll mul(ll x, ll y) { return min((__int128)inf, (__int128)x * y); }
namespace ST
{
struct node
{
ll v, lz;
inline void apply(int x) { v = mul(v, x), lz = mul(lz, x); }
} t[200009 << 2];
inline int lc(int p) { return p << 1; }
inline int rc(int p) { return p << 1 | 1; }
inline int md(int l, int r) { return ( l + r ) >> 1; }
inline void pu(int p) { t[p].v = t[lc(p)].v + t[rc(p)].v; }
inline void pd(int p) { if ( t[p].lz != 1 ) t[lc(p)].apply(t[p].lz), t[rc(p)].apply(t[p].lz), t[p].lz = 1; }
inline void build(int p, int l, int r)
{
if ( l == r ) t[p].v = t[p].lz = 1;
else t[p].lz = 1, build(lc(p), l, md(l, r)), build(rc(p), md(l, r) + 1, r), pu(p);
}
inline void add(int p, int l, int r, int pos, ll v)
{
if ( l == r ) { t[p].v += v; return; }
pd(p), pos <= md(l, r) ? add(lc(p), l, md(l, r), pos, v) : add(rc(p), md(l, r) + 1, r, pos, v), pu(p);
}
inline void mul2(int p, int l, int r, int lp, int rp)
{
if ( l > rp || r < lp ) return;
if ( lp <= l && r <= rp ) { t[p].apply(2); return; }
pd(p), mul2(lc(p), l, md(l, r), lp, rp), mul2(rc(p), md(l, r) + 1, r, lp, rp), pu(p);
}
inline tuple < int, ll, ll > fnd(int p, int l, int r, ll k)
{
if ( l == r ) return tuple(l, k, t[p].v + 1 - k); pd(p);
if ( k <= t[lc(p)].v ) return fnd(lc(p), l, md(l, r), k);
return fnd(rc(p), md(l, r) + 1, r, k - t[lc(p)].v);
}
}
int n, q, op; ll l, r; char s[200009];
int main()
{
read(n, q), read_cstr(s + 1), ST::build(1, 1, n);
while ( q-- )
{
read(op, l);
if ( op == 1 )
{
read(r); auto pl = ST::fnd(1, 1, n, l), pr = ST::fnd(1, 1, n, r);
if ( get<0>(pl) == get<0>(pr) ) { ST::add(1, 1, n, get<0>(pl), r - l + 1); continue; }
ST::add(1, 1, n, get<0>(pl), get<2>(pl)), ST::add(1, 1, n, get<0>(pr), get<1>(pr));
if ( get<0>(pl) + 1 <= get<0>(pr) - 1 ) ST::mul2(1, 1, n, get<0>(pl) + 1, get<0>(pr) - 1);
}
else println(s[get<0>(ST::fnd(1, 1, n, l))]);
}
return 0;
}
// 想上GM捏 想上GM捏 想上GM捏 想上GM捏 想上GM捏
// 伊娜可爱捏 伊娜贴贴捏
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3764kb
input:
4 7 abac 2 2 2 3 1 2 3 2 3 2 4 2 5 2 6
output:
b a b a a c
result:
ok 6 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
5 4 shrek 1 1 2 2 7 1 1 7 2 7
output:
k h
result:
ok 2 lines
Test #3:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
4 7 abac 2 2 2 3 1 2 3 2 3 2 4 2 5 2 6
output:
b a b a a c
result:
ok 6 lines
Test #4:
score: 0
Accepted
time: 1ms
memory: 5764kb
input:
5 4 shrek 1 1 2 2 7 1 1 7 2 7
output:
k h
result:
ok 2 lines
Test #5:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
3 55 vfe 1 2 3 1 2 2 1 3 5 2 4 1 1 2 2 9 2 7 2 5 1 10 10 1 1 1 2 9 1 8 12 2 8 1 7 10 2 1 1 5 6 1 1 4 1 20 24 1 14 32 1 19 38 2 48 1 56 64 2 58 2 19 1 64 72 1 36 86 2 11 1 117 124 2 38 2 108 2 85 1 112 118 2 153 2 40 2 114 2 80 1 11 18 2 27 2 73 1 159 162 2 84 1 130 164 2 163 2 65 1 150 156 1 101 109...
output:
f e f f f f v f e f f f e e e f e e f e e e f e f e v
result:
ok 27 lines
Test #6:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
60 51 ranhfkbjhkxckkcbhgsspsjcbjgpwcfvmqqlvlfualndmqqsihsfdyqviowu 2 53 2 37 2 33 2 60 1 1 32 2 44 1 87 92 1 7 77 1 56 86 2 17 1 128 184 1 26 159 2 323 2 55 1 24 316 1 435 652 2 316 2 444 1 819 868 2 27 2 912 2 313 1 555 576 1 510 942 1 1118 1269 2 365 2 84 1 595 650 2 1468 2 258 1 1557 1607 2 938 1...
output:
d v m u s k q c p j j n p j c u s c b p u p c n p g
result:
ok 26 lines
Test #7:
score: 0
Accepted
time: 0ms
memory: 5828kb
input:
32 58 shdnavermvazdgaqioiqictppwhtoplw 1 28 32 2 17 2 12 1 23 28 2 10 1 16 43 1 25 42 2 85 1 21 46 1 42 73 1 114 144 2 42 2 127 2 111 2 42 2 113 2 38 1 164 174 1 104 180 2 134 2 247 1 122 234 2 34 1 324 354 2 265 1 365 383 2 208 2 405 2 409 2 344 2 376 1 344 401 1 258 453 1 73 267 2 791 2 45 2 133 2...
output:
i z v l c w p c p i p l i t h l l p l l c p l t p l h t o t t p
result:
ok 32 lines
Test #8:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
78 38 gychxprltqtnidbvtrhunqhtrvknfjtnsodvsqrfczassyiofcdmuospwrcmfloplsojdqjexfszhl 2 62 2 48 2 60 1 31 77 2 46 2 46 1 64 110 1 54 99 2 109 2 41 1 86 196 2 225 2 193 1 63 302 1 490 554 2 264 2 288 1 326 406 1 485 502 1 104 310 2 141 2 645 1 699 800 2 627 1 153 974 2 1811 1 1341 1579 1 321 483 1 206...
output:
l o m q q d v r s u o f r r j c o l o
result:
ok 19 lines
Test #9:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
100 100 ogaxzfpqrpanbhrhzbpfdkudvzgswxqsqjxiwbzuhzbzlnmsiudvoimiuiguuaipovaiimzqpckpzdjcgazssksjiwypmwtcvhcq 2 32 1 75 80 1 27 91 1 12 98 1 192 200 2 234 2 45 1 243 252 1 208 212 2 76 2 211 2 5 1 35 36 2 154 1 257 268 2 103 1 157 212 1 61 73 2 123 1 355 359 2 225 2 97 2 16 1 105 266 1 412 505 1 50 3...
output:
s d g x m z i h b a w h s g i p b m i s l z i b m z i i m o i i v i i m i i i i i u i i i i i i i i
result:
ok 50 lines
Test #10:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
100 100 qmooxvmzsmwfjcyctyjicrarwqcbkzgswopuxwmxyfpfxpalqwhbmeskoopekwcgjekswfdipkmdzkpscfaagihgrpbqgnsfkuhs 1 35 65 2 31 2 65 2 11 2 124 1 119 123 1 16 27 2 7 2 34 2 71 2 28 1 76 78 2 106 1 132 138 2 97 1 74 131 2 22 1 214 214 2 200 1 24 189 1 328 334 2 334 1 256 388 2 14 1 266 302 1 213 431 1 212 ...
output:
g w w g m w a r c o j r p c j j h i g c e c e g w g w j g w w j j j k g j j w j w g j w e c g w c g c c c j j g g j c g
result:
ok 60 lines
Test #11:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
100 100 uwnwvbymyokfijvijqnbzuhaallrgzyxsdpfaybnemreyfzqfmkhbxhoagexizrhbgnpymliarhaqgwfkxeblildhkqturevkcei 1 16 19 1 52 84 2 98 2 111 1 130 133 1 26 96 2 45 1 13 96 1 15 43 1 46 95 1 365 373 1 65 251 2 214 2 284 1 551 559 1 61 67 2 319 2 341 1 18 409 1 352 643 1 909 1244 1 887 1195 1 1757 1849 1 1...
output:
l q y r f b m p j b k g y m e p m l k f e n z u m m m h z e k n q m k k h g b k h a h k b h h
result:
ok 47 lines
Test #12:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
100 100 esqkyrydeoctndqmecklzayohrvnfxxqkiksvojrdmdscoosjgjaygenwliocibxhgswwiyvzukxcgltuduvauqdzkizhiydtxcj 1 8 42 1 27 133 1 95 126 1 89 151 2 216 1 34 242 2 260 2 59 1 545 545 1 155 540 2 458 1 752 825 1 540 610 1 878 1006 1 833 1168 1 139 1465 2 537 2 277 1 421 1725 2 1659 2 534 1 2307 3992 1 47...
output:
d v a o s i r s w a r v s x j x h v i c s x o c w o i g b b b w i b x b b c c x b x b b b b
result:
ok 46 lines
Test #13:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
7 50 padvejq 2 5 2 3 1 7 7 2 1 1 6 7 1 10 10 1 10 11 1 12 13 1 10 11 1 6 15 1 6 22 2 6 1 30 35 1 3 5 1 26 52 1 79 80 1 25 49 2 56 2 18 2 44 2 66 1 40 66 1 76 87 2 145 1 39 74 1 180 180 2 81 1 106 147 1 129 134 1 133 161 1 178 178 1 17 90 1 138 180 2 195 1 195 362 1 383 436 2 229 1 91 265 2 681 1 644...
output:
e d p j q q q q q q q q q q q q q q
result:
ok 18 lines
Test #14:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
55 3 ztlgpnoiedxyxqsaxzxoqffyozbkqprfjuutsdhpcbvrqjvcylaxmmk 2 37 1 47 50 2 17
output:
s x
result:
ok 2 lines
Test #15:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
98 33 zhzoaivphsefnoimiurtiyaxzcbbhngpjmkbnqadfzeygwltpvrpnhndqlpohkdjvlvjfgrzascluodrqaokrrmozbxflwqplp 2 73 1 88 88 2 62 2 44 2 73 2 27 2 47 1 73 84 2 88 2 103 2 29 1 43 98 2 4 2 2 2 4 2 26 2 153 2 40 2 38 1 79 157 2 55 1 147 198 2 204 2 44 2 67 2 252 1 34 263 1 334 352 1 325 342 2 351 1 24 550 1 ...
output:
a k y a b l r b h o h o c r d q p d e n a u a
result:
ok 23 lines
Test #16:
score: 0
Accepted
time: 1ms
memory: 5784kb
input:
54 21 rjyiuclnplxpbqudhvycgxugpgwcxfelztyhtpnzjbcxjlqbjxmeav 2 51 2 16 1 39 50 2 60 1 4 39 1 51 94 1 53 109 1 42 123 2 193 1 152 243 1 247 282 1 269 412 1 302 346 2 28 2 460 1 526 559 2 129 2 611 2 253 1 531 630 1 422 671
output:
m d j h d n l q h
result:
ok 9 lines
Test #17:
score: 0
Accepted
time: 1ms
memory: 3752kb
input:
97 75 tzpklhpavuheakijolxdhfgajoozpbrwfzrnbfnlzxjnphqwkakyemnqfiucvhncxixiaowjfksvfnjgageqyblunzuhpriee 1 23 72 2 29 1 114 117 1 117 118 2 51 1 71 110 2 48 2 38 1 76 118 2 23 1 157 218 1 257 283 2 97 2 116 2 37 1 125 158 1 54 343 2 45 2 69 2 126 2 509 1 461 620 2 458 2 7 2 202 2 530 2 107 1 683 735 ...
output:
o b r b g a e b z x a a x p m i w w a c n a i i a i h i i x i o u v n i
result:
ok 36 lines
Test #18:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
16 65 bgmceovwgjsxvolb 1 13 14 2 5 2 16 2 9 1 7 17 1 16 20 2 12 2 12 1 34 34 1 21 35 1 4 30 1 6 13 2 40 2 15 2 77 2 38 1 31 46 2 79 2 75 2 71 2 39 1 82 90 2 32 1 61 80 2 36 2 93 2 26 1 81 128 2 78 2 158 2 136 1 150 154 1 147 165 1 135 135 2 150 2 99 2 78 2 152 2 178 1 102 157 2 4 1 199 230 1 274 276...
output:
e o g g g x v o s v v v s j j v g v o v o v v o o c v v o o v v l v v v
result:
ok 36 lines
Test #19:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
63 21 rwhschtzyizzjldgrkifsjesoxchfvuekdyromzfdzxkxjyrpugmzkbdfspixeo 2 54 1 39 61 1 24 42 2 88 2 12 1 48 62 1 33 89 1 49 104 1 194 207 2 239 1 40 80 2 185 2 21 1 217 237 2 194 1 109 163 1 100 253 1 300 320 2 205 2 208 2 531
output:
k k z s z s z r r s
result:
ok 10 lines
Test #20:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
22 16 hpkhufjykgzhwigldlutfg 1 14 15 2 13 1 12 17 1 11 25 2 38 1 2 29 1 26 34 1 4 5 1 31 57 2 3 2 87 1 85 87 2 24 1 84 103 2 15 1 134 134
output:
w l p i z j
result:
ok 6 lines
Test #21:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
68 37 cqctxalmejoztbwmgfmjxuoptmqzoavhpyiwumhvjzsuclolxwleeoequbukxrjjnjgc 2 38 1 45 67 1 3 88 2 110 1 12 148 2 71 1 62 314 2 405 2 528 1 400 458 1 171 538 1 481 813 1 790 891 1 1426 1429 1 1025 1373 1 146 238 2 942 1 1749 1839 1 1300 1502 2 388 2 1124 1 2017 2132 1 2221 2258 1 1842 1860 1 487 2104 ...
output:
m w u e r e j o o q e
result:
ok 11 lines
Test #22:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
20 80 ajgneaujzddnggsbcwom 2 20 1 5 20 2 9 2 13 2 24 2 18 1 11 27 2 13 2 13 2 17 1 19 50 2 8 2 8 1 81 83 2 12 1 67 76 2 70 2 44 1 41 71 1 66 106 2 66 1 140 147 2 95 2 41 1 156 173 2 76 1 151 174 1 19 109 1 135 178 2 125 1 233 355 2 295 1 153 177 2 296 1 112 156 1 72 548 2 815 2 921 2 622 1 461 486 1...
output:
m u z g d j j z a a j b g g s n g g b s b c b b c d b g g b s g g c s b s s s s c s s g
result:
ok 44 lines
Test #23:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
11 28 gjecjaxeosx 2 3 1 4 6 1 13 14 2 1 2 10 2 10 2 12 1 1 8 2 8 1 7 7 2 10 2 23 2 12 2 10 2 19 2 7 1 19 19 1 17 21 2 12 1 5 18 2 16 2 26 1 4 11 1 52 52 1 18 35 1 28 45 2 79 2 56
output:
e g x x o c c s j c x c j c j x j
result:
ok 17 lines
Test #24:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
71 95 ioujmdnmwigsjkhmywaqupgclgtiihkmrrnwxhwnorqeveqnnlwbqjsuzywadknkuxkdatr 1 41 45 2 7 1 12 68 1 111 125 2 53 1 140 148 1 53 59 2 161 1 8 49 1 93 183 1 38 234 1 234 260 1 128 514 2 500 2 272 1 35 66 2 903 1 569 926 1 1093 1289 1 987 1397 1 465 1449 2 2520 2 2453 2 2803 1 2461 2807 2 2962 1 2554 2...
output:
n m t q n k a a n k a v y a l n e b l z u b w l u u l u u j s j j j j s u s j s z s u s j
result:
ok 45 lines
Test #25:
score: -100
Wrong Answer
time: 0ms
memory: 10460kb
input:
66343 13562 iacwskbysgfuinrclsxrluublrwdxttfwsoebgorohvbsnaivopnivgyzbxepjlghteqivamviwjjrsblkrbvkkhxoptwawnxwvtmecankhkmckptpoxhrmxfemfkdafwktwdfkbizrefgdssqhqzxbcppsotwrwjlrliwgtjagsjcapyvwvevllphvrnmnmbsesfhbvuhpwdpzhwsuufqwlpzskyzstvtafbtvermbbwsizqmnclqyoxnuyzbllrjaiwrifvwjmevzhpnoxmlqalktkftao...
output:
j v x j z v j z v j o s p m t n y g z g d d t a w c g j m d e y q d h g s w u m a i d y z v g f f r r l x z c q k n y b p e p v k e h r y c u p s w f w w y w x f j b y o w p p f w x w p p w f x p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p ...
result:
wrong answer 80th lines differ - expected: 'g', found: 'x'