QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294270#4826. Find the Partsucup-team896#0 33ms6356kbC++239.2kb2023-12-30 11:08:182023-12-30 11:08:18

Judging History

你现在查看的是最新测评结果

  • [2023-12-30 11:08:18]
  • 评测
  • 测评结果:0
  • 用时:33ms
  • 内存:6356kb
  • [2023-12-30 11:08:18]
  • 提交

answer

/*
 * @Author:             cmk666
 * @Created time:       2023-12-30 09:52:11
 * @Last Modified time: 2023-12-30 11:07:58
 */
#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;
string _;
constexpr int B = 1145, D = 29, M = ( 1 << D ) - 1;
int r, c, q, h, rr, cc, len, resx, resy, a[2009][2009];
deque < int > que; vector < int > ans; map < int, pair < int, int > > mp;
inline int in()
{
	char c1, c2; read(c1, c2);
	return ( ( c1 & 32 ? c1 - 48 : c1 - 55 ) << 4 ) | ( c2 & 32 ? c2 - 48 : c2 - 55 );
}
inline void out(int x) { write("0123456789ABCDEF"[x >> 4], "0123456789ABCDEF"[x & 15]); }
int main()
{
	read(_);
	if ( _ == "message" )
	{
		read(r, c);
		For(i, 1, r) For(j, 1, c) a[i][j] = in();
		ans.push_back(r >> 8), ans.push_back(r & 255);
		ans.push_back(c >> 8), ans.push_back(c & 255);
		for ( int i = 6 ; i + 4 <= r ; i += 6 ) for ( int j = 6 ; j + 4 <= c ; j += 6 )
		{
			h = 0;
			For(ii, 0, 4) For(jj, 0, 4) h = ( (ll)h * B + a[i + ii][j + jj] ) & M;
			Fol(ii, D - 1, 0) que.push_back(( h >> ii ) & 1);
			while ( (int)que.size() > 7 )
			{
				ans.push_back(0);
				For(ii, 0, 7) ans.back() = ( ans.back() << 1 ) | que.front(), que.pop_front();
			}
		}
		if ( que.size() )
		{
			while ( (int)que.size() < 8 ) que.push_back(0);
			ans.push_back(0);
			For(ii, 0, 7) ans.back() = ( ans.back() << 1 ) | que.front(), que.pop_front();
		}
		len = (int)ans.size(), assert(len <= 409600), println(len);
		for ( int i : ans ) out(i), write(--len ? ' ' : '\n');
	}
	else if ( _ == "parts" )
	{
		read(len);
		r = in() << 8, r |= in(), c = in() << 8, c |= in();
		For(i, 5, len) { h = in(); Fol(j, 7, 0) que.push_back(( h >> j ) & 1); }
		for ( int i = 6 ; i + 4 <= r ; i += 6 ) for ( int j = 6 ; j + 4 <= c ; j += 6 )
		{
			h = 0;
			For(ii, 0, D - 1) h = ( h << 1 ) | que.front(), que.pop_front();
			mp[h] = pair(i, j);
		}
		read(q);
		For(_, 1, q)
		{
			read(rr, cc), resx = resy = 0;
			For(i, 1, rr) For(j, 1, cc) a[i][j] = in();
			For(i, 1, rr - 4) For(j, 1, cc - 4)
			{
				h = 0;
				For(ii, 0, 4) For(jj, 0, 4) h = ( (ll)h * B + a[i + ii][j + jj] ) & M;
				if ( mp.count(h) ) { resx = mp[h].first - i + 1, resy = mp[h].second - j + 1; break; }
			}
			assert(resx && resy), println(resx, resy);
		}
	}
	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: 3564kb

input:

message
20 24
33 39 73 4A 5A AA E0 86 96 4B 0B 83 A0 FA 82 9B B0 6E DC 03 1C B9 5B 81
86 3E 23 7B C9 38 77 82 7D 62 EA CE A8 DE 85 6C 36 B3 10 EE 85 6A D5 92
14 BD 58 74 20 7B 36 E1 89 B8 6F 4A F4 8F 17 2E 2F 0F 79 DD AA 9F 6F AD
85 21 B6 2F 58 37 87 7B 3F EE D9 7D 9A E6 AA 12 E0 B6 BB 3D 72 BD 34 A...

output:

26
00 14 00 18 3A 4B 49 E7 9B FF EC 7D 92 B1 3D FD 07 B1 FD 0D 61 5F 2C 02 91 68

input:

parts
26
00 14 00 18 3A 4B 49 E7 9B FF EC 7D 92 B1 3D FD 07 B1 FD 0D 61 5F 2C 02 91 68
2
10 10
39 73 4A 5A AA E0 86 96 4B 0B
3E 23 7B C9 38 77 82 7D 62 EA
BD 58 74 20 7B 36 E1 89 B8 6F
21 B6 2F 58 37 87 7B 3F EE D9
8A 73 EE 69 BF E0 0D 5C 57 EF
F7 4F A7 18 4D 76 EB EB 3E AA
2B 79 C3 27 A6 C6 DB D3 1...

output:

1 2
6 5

result:

ok correct answer

Test #2:

score: 100
Accepted
time: 0ms
memory: 3524kb

input:

message
20 20
85 C4 91 58 77 23 A9 E5 44 8E 28 DC A2 51 13 AE 4E 3C 21 62
37 5A 41 45 8F CA C3 89 01 68 11 72 D8 75 72 ED EE 64 FA B0
05 45 6E F2 FD CE 9A AC 31 CA 88 83 34 D6 23 1F 8C 6D 9E 8C
42 40 7E 18 4C D1 D3 F2 02 20 51 20 14 0F 3D 27 0E 03 73 D7
C0 1F C3 1D D3 55 D9 AF 6E 76 77 28 24 1A 97 E...

output:

19
00 14 00 14 05 BD 1F 71 FA 3A 94 73 D2 D3 03 52 98 85 E0

input:

parts
19
00 14 00 14 05 BD 1F 71 FA 3A 94 73 D2 D3 03 52 98 85 E0
1
10 10
D0 0A D3 6D B9 31 31 76 54 15
CE 14 02 1A A2 8C 77 EB 8E 02
06 44 E4 F4 22 DB 66 F8 7E 38
C6 6A B7 5F E1 A0 0D F0 F5 8A
AC DB B0 FB 26 E6 12 36 37 F1
6C AB B1 4C C0 11 B6 DE 71 C2
09 54 23 45 56 1E 4E C2 DA 1C
0E B5 D0 DC C8 1...

output:

6 6

result:

ok correct answer

Test #3:

score: 100
Accepted
time: 1ms
memory: 3596kb

input:

message
20 20
12 4F 58 0D 8B AB 72 D1 55 0F FC 74 28 E3 B0 02 9E FA 18 C0
82 72 32 EB 29 EF 9D 70 E6 2D AC 15 37 31 40 A4 36 B6 58 2C
4E C2 4D AC C5 0F D1 A8 B2 2D 43 ED 00 63 7C 3B 3E C5 94 49
92 7D 2C 69 2B 6A 15 95 7C FD 67 E4 AC EE 01 F8 78 5F 46 57
54 7D 03 92 36 85 D0 C0 B1 14 22 70 9D 06 4E C...

output:

19
00 14 00 14 5A 2B 21 30 1A B8 95 97 0F 9C DB C0 C0 E9 40

input:

parts
19
00 14 00 14 5A 2B 21 30 1A B8 95 97 0F 9C DB C0 C0 E9 40
9
10 10
12 4F 58 0D 8B AB 72 D1 55 0F
82 72 32 EB 29 EF 9D 70 E6 2D
4E C2 4D AC C5 0F D1 A8 B2 2D
92 7D 2C 69 2B 6A 15 95 7C FD
54 7D 03 92 36 85 D0 C0 B1 14
A7 42 36 1E F1 E2 B4 20 D7 FE
8D 5E 4F 0C 4E BF 46 32 0C 57
3C 09 56 B5 77 0...

output:

1 1
11 11
1 11
11 1
1 1
11 1
1 1
1 11
1 1

result:

ok correct answer

Test #4:

score: 100
Accepted
time: 1ms
memory: 3668kb

input:

message
43 37
EA A3 A3 FC CB 58 F5 40 43 D7 44 FA 09 74 25 84 25 7B 87 E4 98 7A 7F 9D 8D 73 46 AA F4 BF 73 DB EF 46 7D DA B5
7B C6 A2 A3 EF 7C 14 EE 10 1C DE 08 ED E8 2C BD F6 F7 2B 7D 82 B6 0D 0C 06 17 56 84 DD 96 29 77 C0 EE 70 EB 9F
16 A6 27 3A 32 52 AE 0E 31 A7 D2 1D B9 EC D2 20 3D 7D 84 12 4B 5...

output:

113
00 2B 00 25 C5 C2 F5 30 46 7F 52 65 51 41 4A 83 0F 06 AB F0 28 1D 26 23 F2 D7 AD 2E 63 87 1C 4F C1 17 8F 12 5B AA 7F B9 AA 96 84 A8 22 A1 60 0F 20 34 17 35 18 42 E5 CC 9E F9 85 2B 76 E7 99 8A 35 1B 51 10 45 A9 F9 47 86 94 46 2D 63 CD A2 0A 84 79 98 89 3A 47 D6 91 20 95 F1 4C 93 16 AE 58 C5 70 30...

input:

parts
113
00 2B 00 25 C5 C2 F5 30 46 7F 52 65 51 41 4A 83 0F 06 AB F0 28 1D 26 23 F2 D7 AD 2E 63 87 1C 4F C1 17 8F 12 5B AA 7F B9 AA 96 84 A8 22 A1 60 0F 20 34 17 35 18 42 E5 CC 9E F9 85 2B 76 E7 99 8A 35 1B 51 10 45 A9 F9 47 86 94 46 2D 63 CD A2 0A 84 79 98 89 3A 47 D6 91 20 95 F1 4C 93 16 AE 58 C5...

output:

10 9
25 16
17 16
9 16
26 9
24 17
7 19
3 16
17 2
15 23
13 26
24 20
13 3
21 8
16 17
7 8
6 21
3 6
6 15
27 6
9 12
16 18
12 11
32 14
6 12
1 16
19 24
31 12
5 2
18 25
7 9
1 6
10 17
16 8
3 16
3 7
13 21
18 1
14 10
8 7
21 1
26 5
4 13
22 16
6 15
29 12
15 12
31 10
5 16
4 15
26 3
3 11
17 27
9 3
12 16
6 10
12 8
1...

result:

ok correct answer

Test #5:

score: 100
Accepted
time: 2ms
memory: 3760kb

input:

message
47 36
BA 36 BC AF 3D 33 4E AA A4 CC 95 72 48 7F 1C 93 1B 8A CE A7 64 75 99 BF 62 8C A7 82 2E D3 52 D5 F6 E7 43 74
BD 8F BA CA 14 5D 79 4F 24 85 18 02 27 12 F2 CA 8F EF CF 8D 9A F4 09 F3 81 70 A7 0E 6F 9E CB 55 03 CC DA D6
18 0D A5 2F 61 D1 CB B9 99 DF B9 34 46 F3 0A E3 7E 09 E1 A1 26 AD E4 5...

output:

131
00 2F 00 24 99 73 F2 EC 5F 6C 9B C7 D2 A9 10 FF E1 FC 8F B4 D8 CB A5 DB 26 7E FE CC E0 94 D6 04 49 80 F9 CA 9A 73 B2 F7 66 B5 34 69 33 54 4C FE A1 D1 FF 9F 3C 6F 6B CC 09 E0 BE 92 9D 7B A3 62 01 64 8F 05 B5 14 94 26 55 7C 91 1E C5 81 2C E3 E6 AE 20 41 09 BC AF 7C B4 F9 76 24 90 08 0F B0 78 6F 57...

input:

parts
131
00 2F 00 24 99 73 F2 EC 5F 6C 9B C7 D2 A9 10 FF E1 FC 8F B4 D8 CB A5 DB 26 7E FE CC E0 94 D6 04 49 80 F9 CA 9A 73 B2 F7 66 B5 34 69 33 54 4C FE A1 D1 FF 9F 3C 6F 6B CC 09 E0 BE 92 9D 7B A3 62 01 64 8F 05 B5 14 94 26 55 7C 91 1E C5 81 2C E3 E6 AE 20 41 09 BC AF 7C B4 F9 76 24 90 08 0F B0 78...

output:

18 23
1 14
21 5
21 4
15 4
3 1
1 20
11 25
29 9
1 14
9 6
12 17
32 16
11 17
25 4
26 16
15 7
25 7
26 17
14 1
10 13
6 14
7 17
2 11
14 3
17 14
4 22
15 5
23 10
27 5
37 6
2 16
19 15
25 15
4 13
30 7
1 18
3 9
19 13
6 9
15 10
16 23
14 9
3 7
10 8
13 10
1 17
11 20
15 9
8 14
36 10
15 2
21 13
10 20
11 8
19 18
10 1...

result:

ok correct answer

Test #6:

score: 100
Accepted
time: 1ms
memory: 3668kb

input:

message
34 26
F1 5C 28 AA CD DD 16 8A 7A A8 43 A9 1C 60 EF 93 98 6F 20 51 DF 93 3E B3 EE 6B
9B 47 31 79 2B 73 92 68 9B 1F 63 11 DF 06 2E 27 26 73 40 39 5C 2E E1 61 07 5B
1B 48 7B 82 77 21 7C B1 F7 36 4E 7D 49 20 B2 B0 56 B4 58 64 FA A2 23 ED 7A 99
24 B8 66 65 F9 5C CD 9C 9A 5A 2F 6F 1B 39 8A 08 EB 9...

output:

59
00 22 00 1A 19 13 C7 3E 70 EA A6 14 0A 54 E1 70 35 13 31 3A A9 84 FF 2E DA E6 83 8F FE A2 A1 31 06 18 89 F0 F9 E5 89 AB 9A 04 B6 76 59 0C 84 89 97 1D FE 72 3E 8B 38 7A A4 9C 40

input:

parts
59
00 22 00 1A 19 13 C7 3E 70 EA A6 14 0A 54 E1 70 35 13 31 3A A9 84 FF 2E DA E6 83 8F FE A2 A1 31 06 18 89 F0 F9 E5 89 AB 9A 04 B6 76 59 0C 84 89 97 1D FE 72 3E 8B 38 7A A4 9C 40
155
14 20
CB 4A 01 69 6D 69 B9 C3 37 D0 65 95 A7 0C F6 1C 8B 19 1D B1
47 EE A9 9D 8E 90 7C ED 40 4D 48 6A 7F 18 8C...

output:

11 4
6 7
2 6
12 1
8 6
1 1
17 5
4 3
19 12
23 10
9 13
2 12
7 9
12 2
18 4
7 13
20 1
3 7
11 4
16 10
16 3
10 8
23 4
5 3
1 4
21 12
13 6
19 6
8 1
3 1
14 4
21 7
17 9
12 15
23 2
2 5
6 12
6 4
5 10
13 4
12 12
12 3
13 11
14 8
14 13
13 1
25 3
18 7
8 9
20 5
6 7
14 5
3 9
8 11
1 1
11 9
2 1
2 9
16 2
9 3
6 5
13 5
11 ...

result:

ok correct answer

Test #7:

score: 100
Accepted
time: 2ms
memory: 3748kb

input:

message
39 48
FA 52 6B 11 B6 25 3B 2E B6 B4 EB A6 DB E3 FB 7B A1 09 6A F2 ED 32 61 E1 3C 2F 71 51 72 0C FB 83 0A AE F9 00 10 21 13 75 7B 0A 0E F1 55 15 81 9E
08 9D 47 72 A1 1D 8A 85 EE E5 66 A1 11 12 6C 76 7C CB 16 29 10 0B 99 46 CC 42 ED 78 A8 86 96 AB BE E3 C6 6C 87 19 14 E5 EC 88 E2 1E 16 85 CD 7...

output:

131
00 27 00 30 EF AE 0C 59 70 FF FE CB D0 A1 E8 65 CA D5 6D 77 E4 5B 74 8C B8 6D 5F F8 04 67 7D 84 BD 3D 58 B7 D0 14 89 A5 58 8D A6 68 12 3D 70 80 CD 9A BE FD 2B 48 E4 E5 E0 59 D2 D8 1F 93 46 56 4E 7B 37 9C 45 E6 BD 60 EE 9A F3 2A C4 58 43 21 96 60 98 86 05 54 DB D7 FE D7 2A 33 B8 0F B3 D4 0A 6D 9B...

input:

parts
131
00 27 00 30 EF AE 0C 59 70 FF FE CB D0 A1 E8 65 CA D5 6D 77 E4 5B 74 8C B8 6D 5F F8 04 67 7D 84 BD 3D 58 B7 D0 14 89 A5 58 8D A6 68 12 3D 70 80 CD 9A BE FD 2B 48 E4 E5 E0 59 D2 D8 1F 93 46 56 4E 7B 37 9C 45 E6 BD 60 EE 9A F3 2A C4 58 43 21 96 60 98 86 05 54 DB D7 FE D7 2A 33 B8 0F B3 D4 0A...

output:

5 32
10 7
17 3
27 7
1 16
15 28
11 13
27 3
25 7
7 26
26 33
3 22
12 4
12 19
16 25
18 30
16 16
1 8
11 22
28 29
12 32
5 9
18 31
25 29
6 9
29 6
2 8
6 20
4 19
5 12
9 15
22 10
23 7
3 20
11 24
4 18
1 13
8 14
26 26
19 1
20 15
8 27
11 1
23 34
14 30
11 29
10 34
18 31
18 17
13 24
3 29
19 9
5 17
25 33
4 33
1 33
...

result:

ok correct answer

Test #8:

score: 100
Accepted
time: 2ms
memory: 3716kb

input:

message
32 50
41 FF 8F EF A9 94 AD FA 5B 46 BA 3F 4E B6 83 48 0B 72 5C 8F 15 16 BF 37 A4 F9 DC 1F 8A 51 CB 01 B1 16 C3 DD BD 40 FC 93 AD A9 BC 94 92 09 2E B8 DF 13
8E 47 46 27 52 B8 E7 32 AA E1 03 E8 02 54 9F A0 C5 B0 16 52 67 03 1E A2 0A 8A 77 7F 0E 90 D5 10 D8 E7 A9 11 E2 97 B3 D2 38 1B 89 29 9C 9...

output:

106
00 20 00 32 E3 9E B1 27 A8 ED 96 C2 30 FA 48 CB 6F 6D 81 27 76 4C 2F 7F 4A 7D A3 A0 C2 08 8B 07 B0 A8 46 59 8C 69 90 54 F5 1A 52 8C 2B C6 67 90 3E 68 6B 96 BE 2F 0F 52 3A A8 58 0F B8 CB 41 2B 57 FB F6 95 C4 83 2D CA A8 03 C7 30 E9 37 AB CC 14 4C E1 42 8D 55 25 C2 BD 95 F9 2F 28 88 47 EE 7C 14 D3...

input:

parts
106
00 20 00 32 E3 9E B1 27 A8 ED 96 C2 30 FA 48 CB 6F 6D 81 27 76 4C 2F 7F 4A 7D A3 A0 C2 08 8B 07 B0 A8 46 59 8C 69 90 54 F5 1A 52 8C 2B C6 67 90 3E 68 6B 96 BE 2F 0F 52 3A A8 58 0F B8 CB 41 2B 57 FB F6 95 C4 83 2D CA A8 03 C7 30 E9 37 AB CC 14 4C E1 42 8D 55 25 C2 BD 95 F9 2F 28 88 47 EE 7C...

output:

6 8
10 19
12 27
1 15
10 32
10 11
15 27
1 24
6 15
10 14
8 25
16 3
13 30
5 14
15 27
9 10
15 2
11 18
21 33
7 16
1 2
15 12
20 33
9 36
2 16
13 6
1 14
12 17
10 17
12 9
10 35
10 19
14 21
11 8
1 32
7 16
1 29
5 25
1 7
6 6
5 25
4 33
2 30
10 17
12 5
7 24
1 17
6 2
7 33
4 18
13 8
2 24
12 1
12 40
11 28
14 3
7 2
1...

result:

ok correct answer

Test #9:

score: 100
Accepted
time: 2ms
memory: 3904kb

input:

message
81 52
45 3F B7 46 A6 0E 60 6A 4E FE 79 CC 6D 53 46 21 B2 AC 71 9D 34 3E 90 7C FE F2 F3 3C 12 C8 6B 00 2F AE 77 03 07 BC 13 32 CC B9 25 73 52 2A 65 AF 15 F1 C9 F3
DF C4 92 30 F2 B0 86 D6 6F 03 4C 8C 01 62 F7 54 AA 99 C0 69 58 F8 2A DD CA BB 86 62 66 84 8E CE EA 4F 7F 46 25 C2 A9 C4 A6 2C FE 5...

output:

352
00 51 00 34 37 6A D1 ED E6 7E A9 DE 94 A8 08 0D 87 69 EC 8A 9E C8 65 F8 DE 06 31 65 7D 5A F0 B5 9A 23 FF A7 BC E8 4C BE FB AA AC 53 E1 03 22 AF 3F B2 3F EF E9 B8 51 C6 49 0C EA AC 8D E7 75 32 25 4A FA 4C C3 D5 EC E6 A1 91 37 09 74 26 69 FA BA 65 B3 67 BD FB 12 E6 89 1C 09 21 DC 7C 04 3E BC 19 74...

input:

parts
352
00 51 00 34 37 6A D1 ED E6 7E A9 DE 94 A8 08 0D 87 69 EC 8A 9E C8 65 F8 DE 06 31 65 7D 5A F0 B5 9A 23 FF A7 BC E8 4C BE FB AA AC 53 E1 03 22 AF 3F B2 3F EF E9 B8 51 C6 49 0C EA AC 8D E7 75 32 25 4A FA 4C C3 D5 EC E6 A1 91 37 09 74 26 69 FA BA 65 B3 67 BD FB 12 E6 89 1C 09 21 DC 7C 04 3E BC...

output:

6 27
13 26
56 37
29 31
52 6
23 27
7 20
47 3
27 3
26 25
34 28
17 22
32 5
43 15
16 23
5 4
51 18
44 5
6 32
15 6
27 32
26 39
19 41
53 33
32 26
7 40
61 2
63 41
65 17
32 32
18 29
52 19
2 11
9 33
3 9
36 25
13 20
42 12
60 28
36 32
32 6
24 42
14 12
53 33
21 21
66 23
60 19
60 27
4 34
5 3
19 36
55 13
35 29
14 ...

result:

ok correct answer

Test #10:

score: 100
Accepted
time: 3ms
memory: 3824kb

input:

message
73 75
7C DD DD 94 21 1F 7B 6C 1B FE 78 9F 93 A8 73 00 0F 63 45 10 32 1B 2B 2C 2B 07 04 A8 07 22 49 3C 0E A9 DE C9 C5 DD E5 A8 76 30 6D 05 5B 48 70 9A 43 1F B2 CD 8D DA A1 AA 26 FC 19 95 4C D8 D6 2A A0 B4 C3 97 59 AE 1A 9B 8F A1 69
54 A5 76 F1 F0 13 01 C0 CF FE 54 46 A8 89 66 7A F1 AD 3B 59 7...

output:

443
00 49 00 4B C0 53 6A BC D8 AC F0 2A CA E4 24 28 30 8A 24 6C 2D 1B D5 FD 69 95 DA 42 17 C0 F1 66 66 4D 27 61 10 CF 3C A5 11 C3 9E A3 D8 0E AC A5 20 A2 86 5A 96 2C 8F 73 90 C9 7C F9 15 D5 9D 00 CB CF E1 54 3C E0 35 0D 3A 33 28 D4 B7 C2 FC D8 49 9B 3F 95 05 00 C6 55 0A A1 A9 44 F9 2B 35 9B 1A B1 D3...

input:

parts
443
00 49 00 4B C0 53 6A BC D8 AC F0 2A CA E4 24 28 30 8A 24 6C 2D 1B D5 FD 69 95 DA 42 17 C0 F1 66 66 4D 27 61 10 CF 3C A5 11 C3 9E A3 D8 0E AC A5 20 A2 86 5A 96 2C 8F 73 90 C9 7C F9 15 D5 9D 00 CB CF E1 54 3C E0 35 0D 3A 33 28 D4 B7 C2 FC D8 49 9B 3F 95 05 00 C6 55 0A A1 A9 44 F9 2B 35 9B 1A...

output:

49 47
11 62
43 13
22 53
58 48
28 1
40 52
31 13
33 16
17 22
19 6
3 35
54 4
12 1
9 13
42 12
27 29
17 30
10 7
53 41
8 27
13 12
13 12
17 10
20 32
6 1
56 9
50 55
21 11
55 13
15 58
37 16
47 32
46 17
6 1
56 36
23 46
12 7
6 35
4 53
56 4
2 33
38 12
3 52
52 63
27 19
24 44
21 13
51 29
52 8
46 25
37 26
11 30
7 ...

result:

ok correct answer

Test #11:

score: 100
Accepted
time: 4ms
memory: 3928kb

input:

message
90 52
33 81 6E 5B BF E5 B2 96 FB D5 79 AA 6C D3 27 EA 88 E6 63 C0 06 8A 09 2A F2 80 BA 2A 83 FC 6A 26 19 71 A5 D6 5F C8 E7 DB 5A 31 45 EB 62 95 E7 D6 79 69 CC 94
86 3D E0 83 F2 E3 A6 09 4B 2E DA DD 7D 33 CE 01 41 A0 BB 5E 47 09 0B 61 44 E8 8D F8 20 2E 55 B7 6F F6 D3 7D 16 3F 7C 89 76 7E 42 B...

output:

410
00 5A 00 34 50 12 1A 59 3C 0C 1E 7B 89 66 F0 CB 9D FC 8A F3 99 B6 BC C6 50 99 CC C6 A1 99 F9 2F FD 13 03 E6 13 44 B4 20 B8 B0 49 4A 2A 15 12 C6 B6 7C 0F 32 15 5B 3F 98 1A 8C 75 6A EE DF 98 F4 AB B0 2C 38 F5 B4 CA D0 8F 2B BC 80 86 29 3D D8 82 F9 8D F0 DF 74 73 35 30 50 B0 8B B0 F0 B6 63 89 5E BB...

input:

parts
410
00 5A 00 34 50 12 1A 59 3C 0C 1E 7B 89 66 F0 CB 9D FC 8A F3 99 B6 BC C6 50 99 CC C6 A1 99 F9 2F FD 13 03 E6 13 44 B4 20 B8 B0 49 4A 2A 15 12 C6 B6 7C 0F 32 15 5B 3F 98 1A 8C 75 6A EE DF 98 F4 AB B0 2C 38 F5 B4 CA D0 8F 2B BC 80 86 29 3D D8 82 F9 8D F0 DF 74 73 35 30 50 B0 8B B0 F0 B6 63 89...

output:

43 23
39 3
60 6
47 16
49 27
19 39
14 14
73 20
6 7
44 18
55 3
52 24
45 15
54 14
1 6
2 19
43 24
58 34
26 39
12 34
12 16
70 24
69 19
72 40
70 14
59 5
60 15
32 24
3 37
67 15
44 14
72 4
7 17
25 32
78 8
69 37
71 8
5 30
2 36
20 36
21 20
41 15
19 28
79 24
53 9
80 3
49 13
8 29
4 21
61 25
47 42
53 12
36 20
60...

result:

ok correct answer

Test #12:

score: 100
Accepted
time: 4ms
memory: 3992kb

input:

message
94 89
12 55 C9 F2 D7 8F 1D EF 99 09 04 8A 26 00 57 BF BB C6 CD EC 44 C9 ED 47 67 F4 EC A2 BC 8F 49 0C A0 A8 80 A5 BA 13 D9 65 4D E1 CD A1 54 CC 52 97 72 30 77 17 67 31 73 73 4A 19 48 85 B2 B8 BB 68 37 D0 7A DD BC 54 A6 A6 00 DD 73 29 2B 0A F4 FF F2 9F 9E 46 FF A9 8E 3E DB
36 D0 03 FC B1 0B B...

output:

766
00 5E 00 59 63 99 63 B1 F1 24 3B 82 1F 7A ED 5B 7A 99 9D 11 50 3F 11 7B 47 BC C7 D8 A0 81 EE 9D 6C C6 B8 BB 7B AB D0 28 69 D7 C8 3C 30 A7 B0 12 BF 0E 3F 98 93 3A BD 67 8B E0 33 6F C0 E0 0C 84 23 16 04 DB 53 46 3B B6 DE 68 45 45 4A E7 AD 2A DC 9E AF 21 9F F7 76 C0 08 98 4B EE 0E CA A4 18 99 D8 09...

input:

parts
766
00 5E 00 59 63 99 63 B1 F1 24 3B 82 1F 7A ED 5B 7A 99 9D 11 50 3F 11 7B 47 BC C7 D8 A0 81 EE 9D 6C C6 B8 BB 7B AB D0 28 69 D7 C8 3C 30 A7 B0 12 BF 0E 3F 98 93 3A BD 67 8B E0 33 6F C0 E0 0C 84 23 16 04 DB 53 46 3B B6 DE 68 45 45 4A E7 AD 2A DC 9E AF 21 9F F7 76 C0 08 98 4B EE 0E CA A4 18 99...

output:

9 22
38 62
2 36
64 4
15 43
31 64
30 54
24 14
37 21
3 14
69 45
66 6
49 42
37 12
63 66
72 52
22 75
26 49
68 65
1 58
56 50
26 48
5 66
66 62
33 42
19 71
47 77
23 33
36 20
18 32
55 26
17 32
34 71
56 18
34 2
25 78
28 60
15 35
44 52
55 65
4 8
40 48
61 58
44 47
39 29
48 17
64 17
66 2
18 12
26 32
21 13
31 64...

result:

ok correct answer

Test #13:

score: 100
Accepted
time: 4ms
memory: 3808kb

input:

message
75 66
C1 98 36 A7 3A D9 55 DA 00 6A 1D DC AF 7D 05 A8 3F 55 C0 AF 74 26 F4 BB 40 B3 07 5A 6F 56 A5 9F 2A 13 DA 04 AF BD 91 D4 C8 AE 29 CD C2 EC 31 01 D8 F1 E4 DC 48 1E EA AC 70 B6 2E B6 C2 1D 3A 37 09 74
C7 E8 4F DD 4A B5 7D 0E 1C 8D A9 74 2A 1A 5D 7B 0A 7F 57 1B 7A 5F EB ED 11 2E 48 57 59 8...

output:

403
00 4B 00 42 01 E4 DF 7D A4 02 29 1C 59 6B E7 3C DA E4 01 59 AC 0F 7E 8F 2E 08 43 EA C0 B8 01 40 7C 49 0E B1 CF 4E 50 69 B0 EE A2 A0 5A D5 C4 D2 46 C2 2E 3B 4E DF 71 03 09 EC 53 FD E6 51 DF 6D BD 94 5E 33 D1 D8 76 F9 E5 18 DA 7E 22 82 BE 92 C8 6D BB CD A2 F8 3A 88 4C A9 2A BA 1F 6D 0B 22 44 8E F0...

input:

parts
403
00 4B 00 42 01 E4 DF 7D A4 02 29 1C 59 6B E7 3C DA E4 01 59 AC 0F 7E 8F 2E 08 43 EA C0 B8 01 40 7C 49 0E B1 CF 4E 50 69 B0 EE A2 A0 5A D5 C4 D2 46 C2 2E 3B 4E DF 71 03 09 EC 53 FD E6 51 DF 6D BD 94 5E 33 D1 D8 76 F9 E5 18 DA 7E 22 82 BE 92 C8 6D BB CD A2 F8 3A 88 4C A9 2A BA 1F 6D 0B 22 44...

output:

51 2
47 26
44 30
9 39
32 23
57 6
50 5
4 36
37 45
4 8
32 43
36 26
2 52
37 40
1 4
43 6
25 21
15 42
54 36
46 10
21 47
57 17
4 28
33 46
32 35
56 42
60 47
7 31
38 38
41 26
29 6
47 40
22 13
4 10
56 14
37 12
19 21
43 47
2 13
32 7
41 16
18 9
32 29
14 3
56 22
14 5
1 14
30 52
45 35
30 31
38 22
38 49
17 15
38 ...

result:

ok correct answer

Test #14:

score: 100
Accepted
time: 7ms
memory: 4548kb

input:

message
197 150
77 0D 23 D2 82 3D 32 D1 6E 6E D6 87 2D 05 9A 1C 95 75 FF DE A8 1F 6E 34 DA 33 5D 57 DE F0 33 44 4F EF 97 24 9F C6 D0 5A 08 50 2E FD C3 9D 77 06 3E EA B5 FC 20 C8 9A D0 EA 17 45 11 B9 83 BF 36 5D 2A 44 87 75 58 19 E5 09 3A 2F 27 B3 86 0F 24 6F 01 9D FF 42 CA 7C 4E 60 40 B4 EC 30 49 97...

output:

2788
00 C5 00 96 6A 3E 41 A6 ED 4D 58 CB 1F C4 31 1D 7D DC 7F 14 32 CA 53 82 8B CA C3 6E 67 D5 BF 16 57 D0 98 DA 29 5F 18 AA C4 1F 7C F8 6E DD F3 CA 71 05 13 64 6E E4 AD 8C 5C 22 63 C6 72 AD 2A 67 18 98 D7 A4 32 2F 1E 48 BB 83 5C 71 55 DA 88 9F 21 BE 77 1B 20 44 4A 10 F9 C4 CF 8D 5C 6E F0 11 23 50 B...

input:

parts
2788
00 C5 00 96 6A 3E 41 A6 ED 4D 58 CB 1F C4 31 1D 7D DC 7F 14 32 CA 53 82 8B CA C3 6E 67 D5 BF 16 57 D0 98 DA 29 5F 18 AA C4 1F 7C F8 6E DD F3 CA 71 05 13 64 6E E4 AD 8C 5C 22 63 C6 72 AD 2A 67 18 98 D7 A4 32 2F 1E 48 BB 83 5C 71 55 DA 88 9F 21 BE 77 1B 20 44 4A 10 F9 C4 CF 8D 5C 6E F0 11 2...

output:

69 55
12 110
147 120
50 23
73 68
118 74
26 18
60 43
126 104
127 11
32 109
174 73
8 109
25 131
32 12
150 16
118 58
144 111
130 136
148 11
118 108
46 72
77 14
127 119
103 54
162 37
63 124
94 123
157 30
126 113
133 62
183 95
103 60
123 17
95 50
153 87
113 31
165 70
16 93
10 54
45 83
160 34
78 8
63 104
...

result:

ok correct answer

Test #15:

score: 100
Accepted
time: 9ms
memory: 4316kb

input:

message
159 157
0F 3D 82 40 C9 A8 98 10 70 15 94 66 42 7E F9 1D 4D 8F 86 4E 77 F6 ED 01 51 BE 8C BD 7C DC 90 B7 F4 1A 08 0F 95 C4 7A F0 66 D2 3E 08 FE 25 52 BC D2 D9 85 BD 14 D0 6F 94 AE 5F E9 14 1F D2 6A 00 C0 17 10 6D 26 A7 51 87 14 F2 01 F2 4F DF 3B 49 D4 26 9C 41 28 B3 7A DE F4 10 E2 C1 81 B7 68...

output:

2270
00 9F 00 9D 1B 60 9E 22 41 41 D0 59 AD F4 DD 34 F4 F7 EC 4C 24 CF 6B B2 E8 9F D1 7A F0 6D 75 81 9D 5C 7D A8 A3 8E B2 47 65 C6 B2 D2 C9 EF 6F 1E EE B4 38 28 F0 B4 48 CF 29 9D C0 20 AA E8 AE C6 5C 96 35 C1 30 87 77 19 35 0B AB 25 BF 23 E6 DE 77 8D E6 5C 5E D0 C5 10 F3 04 A1 3A 97 1E A6 37 89 79 9...

input:

parts
2270
00 9F 00 9D 1B 60 9E 22 41 41 D0 59 AD F4 DD 34 F4 F7 EC 4C 24 CF 6B B2 E8 9F D1 7A F0 6D 75 81 9D 5C 7D A8 A3 8E B2 47 65 C6 B2 D2 C9 EF 6F 1E EE B4 38 28 F0 B4 48 CF 29 9D C0 20 AA E8 AE C6 5C 96 35 C1 30 87 77 19 35 0B AB 25 BF 23 E6 DE 77 8D E6 5C 5E D0 C5 10 F3 04 A1 3A 97 1E A6 37 8...

output:

64 36
38 128
34 72
39 64
87 126
48 136
126 29
22 2
84 11
6 97
20 30
114 18
114 39
83 114
129 104
119 25
49 72
91 69
65 30
37 39
136 53
120 137
116 36
68 7
99 120
23 46
28 56
47 78
78 104
41 130
33 68
51 27
90 86
81 132
2 18
83 10
29 30
41 5
118 37
3 128
97 126
48 65
48 95
113 66
98 122
69 100
38 20
...

result:

ok correct answer

Test #16:

score: 100
Accepted
time: 10ms
memory: 4212kb

input:

message
147 145
43 6C D3 3C 62 9B 33 BA 3F 78 5D 9F D8 E9 10 C0 69 A7 27 B5 FE 2B 83 81 73 22 81 46 1F C7 9E EB 1C 60 30 C6 22 E8 C8 88 3F 24 FE BD A6 59 8D F1 1C 0D 93 C1 53 DB 47 54 67 1B C2 4B 3A A3 F3 EC D0 29 1E 41 CF 6D C9 06 2E 5C F0 11 63 37 D6 D3 45 75 15 56 11 BD 97 FC 5E 1E 08 F9 F1 6A 4D...

output:

1922
00 93 00 91 91 2D B2 11 D9 FB 7E B8 FC 95 DE 7E B1 77 BF A1 13 44 1E D8 CC 19 3E 66 36 EB D9 87 E1 D8 46 82 C2 A7 92 B2 68 9C 21 D6 A4 B6 5F 25 B9 70 A0 F7 DD 9F 09 20 3B F9 00 94 E8 0C 76 62 A0 FD 33 BB 96 67 6C 2A B9 42 E1 45 CF C3 46 31 8C C0 16 EB 55 A6 7E 14 FC F5 D0 C5 BA 1C 0E 07 6D 82 D...

input:

parts
1922
00 93 00 91 91 2D B2 11 D9 FB 7E B8 FC 95 DE 7E B1 77 BF A1 13 44 1E D8 CC 19 3E 66 36 EB D9 87 E1 D8 46 82 C2 A7 92 B2 68 9C 21 D6 A4 B6 5F 25 B9 70 A0 F7 DD 9F 09 20 3B F9 00 94 E8 0C 76 62 A0 FD 33 BB 96 67 6C 2A B9 42 E1 45 CF C3 46 31 8C C0 16 EB 55 A6 7E 14 FC F5 D0 C5 BA 1C 0E 07 6...

output:

17 104
83 124
66 19
37 7
39 92
46 96
67 94
3 119
74 126
37 88
19 16
124 59
3 103
29 45
128 32
50 91
48 93
96 76
82 58
100 37
58 21
95 14
104 5
45 81
85 1
60 24
51 97
42 98
54 105
105 97
130 4
72 22
12 133
82 116
4 53
10 9
86 68
86 30
2 5
35 96
20 77
131 18
46 38
44 46
57 79
58 71
25 60
39 64
2 45
93...

result:

ok correct answer

Test #17:

score: 100
Accepted
time: 9ms
memory: 4372kb

input:

message
181 140
65 8D DB 98 3F A7 07 38 4F 6A 29 25 2C 66 B0 5F C4 5C FA FB C6 34 8A 34 27 7F 77 2D 3E 93 A4 F2 64 9B 73 B3 C3 C3 9D 79 0C 3E 7F 36 94 65 EF 43 29 75 EF EF F5 BB 36 5B CB 6A 60 0A 84 B2 A0 8D D8 B4 AE 2C 19 7F 64 71 B8 E1 97 A1 B4 92 C4 A2 82 79 35 5A C7 FB 19 55 6A 33 64 22 99 57 C5...

output:

2317
00 B5 00 8C F1 C5 72 42 B6 E5 8A 70 B7 36 C9 4D 14 3D CF 56 8C 54 2B 56 2E 09 D7 40 E4 DD 7E 58 61 AF 46 BD C3 27 57 F1 F9 D5 D7 89 BE AB F4 D9 57 7F B3 60 71 6A 3F FE E2 A3 E4 E3 CA 0C EF A4 90 76 5B 5D F9 2D 02 4A CC 4E 02 BE C0 E8 1D A4 12 FB D1 C8 47 7B BE FE E9 FF 5E 98 13 0A 03 D8 BD 4D 9...

input:

parts
2317
00 B5 00 8C F1 C5 72 42 B6 E5 8A 70 B7 36 C9 4D 14 3D CF 56 8C 54 2B 56 2E 09 D7 40 E4 DD 7E 58 61 AF 46 BD C3 27 57 F1 F9 D5 D7 89 BE AB F4 D9 57 7F B3 60 71 6A 3F FE E2 A3 E4 E3 CA 0C EF A4 90 76 5B 5D F9 2D 02 4A CC 4E 02 BE C0 E8 1D A4 12 FB D1 C8 47 7B BE FE E9 FF 5E 98 13 0A 03 D8 B...

output:

158 28
122 7
38 18
74 26
158 38
137 103
2 121
83 10
25 26
9 120
21 14
153 37
166 43
55 111
121 2
92 127
7 75
160 99
107 122
125 125
148 102
112 15
162 30
154 126
13 52
44 70
70 49
60 97
97 4
39 87
153 53
144 56
18 103
40 13
95 27
86 18
119 27
90 51
5 103
162 116
66 68
150 59
1 111
71 59
6 78
43 119
...

result:

ok correct answer

Test #18:

score: 100
Accepted
time: 10ms
memory: 4416kb

input:

message
178 184
8B F7 04 CA B3 C4 12 8A 2D E0 0E 64 58 D5 42 33 B9 11 66 05 29 59 B1 15 69 AD 08 7E 3B F8 22 E2 1B 8F 71 AF 9E 65 18 96 39 28 51 CB 79 A9 34 E9 11 0E 73 D3 6D 43 8E 99 99 F6 15 99 89 DC 72 D3 50 82 29 3E 55 1A 3B 90 2F EB 1D 1D D8 36 F8 E3 12 7F 73 19 79 21 D5 85 AE 1A 8D EC D8 4F 1B...

output:

3158
00 B2 00 B8 AB 9B AB 27 4D 3C A0 A2 AB 32 9F 04 3B 34 7B 81 C2 E1 4A 59 30 26 44 30 B9 D1 C1 0E 85 1F E5 4B 93 15 8B F1 A9 5E 58 30 4F 63 F3 65 7D 50 51 7B 8E D7 21 3D 4B 91 CF 07 A4 A8 B3 D9 18 B5 AE 9E A0 9D 0D D5 E3 CD 98 AA 2A 80 FB 7B 47 9E F7 E4 B2 30 CC F2 ED 97 59 99 48 78 16 CD 15 05 8...

input:

parts
3158
00 B2 00 B8 AB 9B AB 27 4D 3C A0 A2 AB 32 9F 04 3B 34 7B 81 C2 E1 4A 59 30 26 44 30 B9 D1 C1 0E 85 1F E5 4B 93 15 8B F1 A9 5E 58 30 4F 63 F3 65 7D 50 51 7B 8E D7 21 3D 4B 91 CF 07 A4 A8 B3 D9 18 B5 AE 9E A0 9D 0D D5 E3 CD 98 AA 2A 80 FB 7B 47 9E F7 E4 B2 30 CC F2 ED 97 59 99 48 78 16 CD 1...

output:

137 18
136 95
55 87
55 70
109 28
22 159
3 55
137 72
84 52
56 129
66 39
126 48
47 166
7 34
134 153
4 29
135 167
130 67
142 39
8 55
19 93
46 152
91 33
70 5
92 86
74 5
64 140
50 59
58 37
99 38
110 111
55 115
106 36
48 138
83 141
126 143
87 32
168 91
38 94
156 136
140 9
128 1
80 9
86 75
53 104
75 21
99 ...

result:

ok correct answer

Test #19:

score: 0
Wrong Answer
time: 33ms
memory: 6356kb

input:

message
422 370
70 7F 00 BC 5D 79 A6 07 3C 86 2E 76 EA A1 95 6C AF DF 05 62 E7 A6 2C 9B C5 33 4C EC 73 47 BC B4 1F E1 5C 74 26 FF 5C B7 FE E2 31 CF 34 B5 88 9B 6E 40 56 2F 17 28 74 8C F2 63 91 35 6E 64 10 76 6E 1E AB 39 08 63 8E 18 09 FF E8 EF 7D F8 1E 6D 50 91 3A A8 E7 BF 51 81 BD D7 FA F7 A9 8E A6...

output:

15262
01 A6 01 72 59 A6 3F 83 E6 7A 48 E4 A4 98 C7 74 6B 81 A4 56 F5 11 BF 85 AA 69 01 BC 72 9E DC 58 EE 80 DD 33 84 CF 3F FD 99 6F 2B E4 F9 3D 98 36 0F AD 74 63 05 46 09 0E D2 04 B6 30 B2 BE E8 4D D9 D6 B4 A2 DB DA B9 7E 3C 6A AD 86 50 48 BC 90 44 7C 5E 45 68 A3 D0 D2 57 A0 31 D4 58 65 80 9D 94 17 ...

input:

parts
15262
01 A6 01 72 59 A6 3F 83 E6 7A 48 E4 A4 98 C7 74 6B 81 A4 56 F5 11 BF 85 AA 69 01 BC 72 9E DC 58 EE 80 DD 33 84 CF 3F FD 99 6F 2B E4 F9 3D 98 36 0F AD 74 63 05 46 09 0E D2 04 B6 30 B2 BE E8 4D D9 D6 B4 A2 DB DA B9 7E 3C 6A AD 86 50 48 BC 90 44 7C 5E 45 68 A3 D0 D2 57 A0 31 D4 58 65 80 9D ...

output:

196 138
365 80
202 297
150 183
242 8
303 2
158 35
9 262
344 119
275 342
339 258
39 333
268 48
26 5
253 92
7 140
135 17
191 257
8 168
101 129
134 355
81 306
21 278
364 190
26 137
154 77
335 299
60 127
322 199
235 175
96 261
364 193
25 319
285 276
21 277
129 239
387 273
133 51
201 94
228 135
221 54
14...

result:

wrong answer wrong answer on query 973: read (413, 246) but expected (11, 213)