0000: 23 69 6e 63 6c 75 64 65 20 3c 69 6f 73 74 72 65 #include <iostre
0010: 61 6d 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 73 am>..#include <s
0020: 73 74 72 65 61 6d 3e 0d 0a 23 69 6e 63 6c 75 64 stream>..#includ
0030: 65 20 3c 69 6f 6d 61 6e 69 70 3e 0d 0a 23 69 6e e <iomanip>..#in
0040: 63 6c 75 64 65 20 3c 76 65 63 74 6f 72 3e 0d 0a clude <vector>..
0050: 23 69 6e 63 6c 75 64 65 20 3c 73 74 72 69 6e 67 #include <string
0060: 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 6d 61 70 >..#include <map
0070: 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 73 65 74 >..#include <set
0080: 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 61 6c 67 >..#include <alg
0090: 6f 72 69 74 68 6d 3e 0d 0a 23 69 6e 63 6c 75 64 orithm>..#includ
00a0: 65 20 3c 6e 75 6d 65 72 69 63 3e 0d 0a 23 69 6e e <numeric>..#in
00b0: 63 6c 75 64 65 20 3c 69 74 65 72 61 74 6f 72 3e clude <iterator>
00c0: 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 66 75 6e 63 ..#include <func
00d0: 74 69 6f 6e 61 6c 3e 0d 0a 23 69 6e 63 6c 75 64 tional>..#includ
00e0: 65 20 3c 63 6f 6d 70 6c 65 78 3e 0d 0a 23 69 6e e <complex>..#in
00f0: 63 6c 75 64 65 20 3c 71 75 65 75 65 3e 0d 0a 23 clude <queue>..#
0100: 69 6e 63 6c 75 64 65 20 3c 73 74 61 63 6b 3e 0d include <stack>.
0110: 0a 23 69 6e 63 6c 75 64 65 20 3c 63 6d 61 74 68 .#include <cmath
0120: 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 63 61 73 >..#include <cas
0130: 73 65 72 74 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 sert>..#include
0140: 3c 74 75 70 6c 65 3e 0d 0a 75 73 69 6e 67 20 6e <tuple>..using n
0150: 61 6d 65 73 70 61 63 65 20 73 74 64 3b 0d 0a 74 amespace std;..t
0160: 79 70 65 64 65 66 20 6c 6f 6e 67 20 6c 6f 6e 67 ypedef long long
0170: 20 4c 4c 3b 0d 0a 74 79 70 65 64 65 66 20 63 6f LL;..typedef co
0180: 6d 70 6c 65 78 3c 64 6f 75 62 6c 65 3e 20 43 4d mplex<double> CM
0190: 50 3b 0d 0a 0d 0a 63 6c 61 73 73 20 53 68 6f 70 P;....class Shop
01a0: 70 69 6e 67 53 75 72 76 65 79 44 69 76 31 20 7b pingSurveyDiv1 {
01b0: 20 70 75 62 6c 69 63 3a 0d 0a 09 69 6e 74 20 6d public:...int m
01c0: 69 6e 56 61 6c 75 65 28 69 6e 74 20 4e 2c 20 69 inValue(int N, i
01d0: 6e 74 20 4b 2c 20 76 65 63 74 6f 72 20 3c 69 6e nt K, vector <in
01e0: 74 3e 20 73 29 0d 0a 09 7b 0d 0a 09 09 66 6f 72 t> s)...{....for
01f0: 28 69 6e 74 20 62 69 67 3d 30 3b 20 62 69 67 3c (int big=0; big<
0200: 3d 4e 3b 20 2b 2b 62 69 67 29 0d 0a 09 09 09 69 =N; ++big).....i
0210: 66 28 63 61 6e 28 4e 2c 20 4b 2c 20 73 2c 20 62 f(can(N, K, s, b
0220: 69 67 29 29 0d 0a 09 09 09 09 72 65 74 75 72 6e ig))......return
0230: 20 62 69 67 3b 0d 0a 0d 0a 09 09 61 73 73 65 72 big;......asser
0240: 74 28 66 61 6c 73 65 29 3b 0d 0a 09 09 72 65 74 t(false);....ret
0250: 75 72 6e 20 2d 31 3b 0d 0a 09 7d 0d 0a 0d 0a 09 urn -1;...}.....
0260: 62 6f 6f 6c 20 63 61 6e 28 69 6e 74 20 4e 2c 20 bool can(int N,
0270: 69 6e 74 20 4b 2c 20 76 65 63 74 6f 72 3c 69 6e int K, vector<in
0280: 74 3e 20 73 62 2c 20 69 6e 74 20 42 49 47 29 0d t> sb, int BIG).
0290: 0a 09 7b 0d 0a 09 09 73 6f 72 74 28 73 62 2e 72 ..{....sort(sb.r
02a0: 62 65 67 69 6e 28 29 2c 20 73 62 2e 72 65 6e 64 begin(), sb.rend
02b0: 28 29 29 3b 0d 0a 09 09 61 73 73 65 72 74 28 73 ());....assert(s
02c0: 62 5b 4b 2d 31 5d 20 3e 3d 20 42 49 47 29 3b 0d b[K-1] >= BIG);.
02d0: 0a 0d 0a 09 09 6d 75 6c 74 69 73 65 74 3c 69 6e .....multiset<in
02e0: 74 2c 20 67 72 65 61 74 65 72 3c 69 6e 74 3e 3e t, greater<int>>
02f0: 20 73 3b 0d 0a 09 09 66 6f 72 28 61 75 74 6f 20 s;....for(auto
0300: 70 3a 20 73 62 29 0d 0a 09 09 09 69 66 28 70 2d p: sb).....if(p-
0310: 42 49 47 20 3e 20 30 29 0d 0a 09 09 09 09 73 2e BIG > 0)......s.
0320: 69 6e 73 65 72 74 28 70 2d 42 49 47 29 3b 0d 0a insert(p-BIG);..
0330: 09 09 69 6e 74 20 74 6f 74 61 6c 20 3d 20 61 63 ..int total = ac
0340: 63 75 6d 75 6c 61 74 65 28 73 2e 62 65 67 69 6e cumulate(s.begin
0350: 28 29 2c 20 73 2e 65 6e 64 28 29 2c 20 30 29 3b (), s.end(), 0);
0360: 0d 0a 09 09 69 66 28 74 6f 74 61 6c 20 3e 20 28 ....if(total > (
0370: 4b 2d 31 29 2a 28 4e 2d 42 49 47 29 29 0d 0a 09 K-1)*(N-BIG))...
0380: 09 09 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d ..return false;.
0390: 0a 09 09 69 66 28 21 73 2e 65 6d 70 74 79 28 29 ...if(!s.empty()
03a0: 20 26 26 20 2a 73 2e 62 65 67 69 6e 28 29 20 3e && *s.begin() >
03b0: 20 28 4e 2d 42 49 47 29 29 0d 0a 09 09 09 72 65 (N-BIG)).....re
03c0: 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 09 09 72 turn false;....r
03d0: 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 09 7d 0d eturn true;...}.
03e0: 0a 7d 3b 0d 0a 0d 0a 2f 2f 20 42 45 47 49 4e 20 .};....// BEGIN
03f0: 43 55 54 20 48 45 52 45 0d 0a 23 69 6e 63 6c 75 CUT HERE..#inclu
0400: 64 65 20 3c 63 74 69 6d 65 3e 0d 0a 64 6f 75 62 de <ctime>..doub
0410: 6c 65 20 73 74 61 72 74 5f 74 69 6d 65 3b 20 73 le start_time; s
0420: 74 72 69 6e 67 20 74 69 6d 65 72 28 29 0d 0a 20 tring timer()..
0430: 7b 20 6f 73 74 72 69 6e 67 73 74 72 65 61 6d 20 { ostringstream
0440: 6f 73 3b 20 6f 73 20 3c 3c 20 22 20 28 22 20 3c os; os << " (" <
0450: 3c 20 69 6e 74 28 28 63 6c 6f 63 6b 28 29 2d 73 < int((clock()-s
0460: 74 61 72 74 5f 74 69 6d 65 29 2f 43 4c 4f 43 4b tart_time)/CLOCK
0470: 53 5f 50 45 52 5f 53 45 43 2a 31 30 30 30 29 20 S_PER_SEC*1000)
0480: 3c 3c 20 22 20 6d 73 65 63 29 22 3b 20 72 65 74 << " msec)"; ret
0490: 75 72 6e 20 6f 73 2e 73 74 72 28 29 3b 20 7d 0d urn os.str(); }.
04a0: 0a 74 65 6d 70 6c 61 74 65 3c 74 79 70 65 6e 61 .template<typena
04b0: 6d 65 20 54 3e 20 6f 73 74 72 65 61 6d 26 20 6f me T> ostream& o
04c0: 70 65 72 61 74 6f 72 3c 3c 28 6f 73 74 72 65 61 perator<<(ostrea
04d0: 6d 26 20 6f 73 2c 20 63 6f 6e 73 74 20 76 65 63 m& os, const vec
04e0: 74 6f 72 3c 54 3e 26 20 76 29 0d 0a 20 7b 20 6f tor<T>& v).. { o
04f0: 73 20 3c 3c 20 22 7b 20 22 3b 0d 0a 20 20 20 66 s << "{ ";.. f
0500: 6f 72 28 74 79 70 65 6e 61 6d 65 20 76 65 63 74 or(typename vect
0510: 6f 72 3c 54 3e 3a 3a 63 6f 6e 73 74 5f 69 74 65 or<T>::const_ite
0520: 72 61 74 6f 72 20 69 74 3d 76 2e 62 65 67 69 6e rator it=v.begin
0530: 28 29 3b 20 69 74 21 3d 76 2e 65 6e 64 28 29 3b (); it!=v.end();
0540: 20 2b 2b 69 74 29 0d 0a 20 20 20 6f 73 20 3c 3c ++it).. os <<
0550: 20 27 5c 22 27 20 3c 3c 20 2a 69 74 20 3c 3c 20 '\"' << *it <<
0560: 27 5c 22 27 20 3c 3c 20 28 69 74 2b 31 3d 3d 76 '\"' << (it+1==v
0570: 2e 65 6e 64 28 29 20 3f 20 22 22 20 3a 20 22 2c .end() ? "" : ",
0580: 20 22 29 3b 20 6f 73 20 3c 3c 20 22 20 7d 22 3b "); os << " }";
0590: 20 72 65 74 75 72 6e 20 6f 73 3b 20 7d 0d 0a 76 return os; }..v
05a0: 6f 69 64 20 76 65 72 69 66 79 5f 63 61 73 65 28 oid verify_case(
05b0: 63 6f 6e 73 74 20 69 6e 74 26 20 45 78 70 65 63 const int& Expec
05c0: 74 65 64 2c 20 63 6f 6e 73 74 20 69 6e 74 26 20 ted, const int&
05d0: 52 65 63 65 69 76 65 64 29 20 7b 0d 0a 20 62 6f Received) {.. bo
05e0: 6f 6c 20 6f 6b 20 3d 20 28 45 78 70 65 63 74 65 ol ok = (Expecte
05f0: 64 20 3d 3d 20 52 65 63 65 69 76 65 64 29 3b 0d d == Received);.
0600: 0a 20 69 66 28 6f 6b 29 20 63 65 72 72 20 3c 3c . if(ok) cerr <<
0610: 20 22 50 41 53 53 45 44 22 20 3c 3c 20 74 69 6d "PASSED" << tim
0620: 65 72 28 29 20 3c 3c 20 65 6e 64 6c 3b 20 20 65 er() << endl; e
0630: 6c 73 65 20 7b 20 63 65 72 72 20 3c 3c 20 22 46 lse { cerr << "F
0640: 41 49 4c 45 44 22 20 3c 3c 20 74 69 6d 65 72 28 AILED" << timer(
0650: 29 20 3c 3c 20 65 6e 64 6c 3b 0d 0a 20 63 65 72 ) << endl;.. cer
0660: 72 20 3c 3c 20 22 5c 74 6f 3a 20 5c 22 22 20 3c r << "\to: \"" <
0670: 3c 20 45 78 70 65 63 74 65 64 20 3c 3c 20 27 5c < Expected << '\
0680: 22 27 20 3c 3c 20 65 6e 64 6c 20 3c 3c 20 22 5c "' << endl << "\
0690: 74 78 3a 20 5c 22 22 20 3c 3c 20 52 65 63 65 69 tx: \"" << Recei
06a0: 76 65 64 20 3c 3c 20 27 5c 22 27 20 3c 3c 20 65 ved << '\"' << e
06b0: 6e 64 6c 3b 20 7d 20 7d 0d 0a 23 64 65 66 69 6e ndl; } }..#defin
06c0: 65 20 43 41 53 45 28 4e 29 20 7b 63 65 72 72 20 e CASE(N) {cerr
06d0: 3c 3c 20 22 54 65 73 74 20 43 61 73 65 20 23 22 << "Test Case #"
06e0: 20 3c 3c 20 4e 20 3c 3c 20 22 2e 2e 2e 22 20 3c << N << "..." <
06f0: 3c 20 66 6c 75 73 68 3b 20 73 74 61 72 74 5f 74 < flush; start_t
0700: 69 6d 65 3d 63 6c 6f 63 6b 28 29 3b 0d 0a 23 64 ime=clock();..#d
0710: 65 66 69 6e 65 20 45 4e 44 09 20 76 65 72 69 66 efine END. verif
0720: 79 5f 63 61 73 65 28 5f 2c 20 53 68 6f 70 70 69 y_case(_, Shoppi
0730: 6e 67 53 75 72 76 65 79 44 69 76 31 28 29 2e 6d ngSurveyDiv1().m
0740: 69 6e 56 61 6c 75 65 28 4e 2c 20 4b 2c 20 73 29 inValue(N, K, s)
0750: 29 3b 7d 0d 0a 69 6e 74 20 6d 61 69 6e 28 29 7b );}..int main(){
0760: 0d 0a 0d 0a 43 41 53 45 28 30 29 0d 0a 09 69 6e ....CASE(0)...in
0770: 74 20 4e 20 3d 20 31 30 3b 20 0d 0a 09 69 6e 74 t N = 10; ...int
0780: 20 4b 20 3d 20 32 3b 20 0d 0a 09 69 6e 74 20 73 K = 2; ...int s
0790: 5f 5b 5d 20 3d 20 7b 31 2c 20 32 2c 20 33 7d 3b _[] = {1, 2, 3};
07a0: 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 6e 74 ... vector <int
07b0: 3e 20 73 28 73 5f 2c 20 73 5f 2b 73 69 7a 65 6f > s(s_, s_+sizeo
07c0: 66 28 73 5f 29 2f 73 69 7a 65 6f 66 28 2a 73 5f f(s_)/sizeof(*s_
07d0: 29 29 3b 20 0d 0a 09 69 6e 74 20 5f 20 3d 20 30 )); ...int _ = 0
07e0: 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 45 28 31 29 ; ..END..CASE(1)
07f0: 0d 0a 09 69 6e 74 20 4e 20 3d 20 35 3b 20 0d 0a ...int N = 5; ..
0800: 09 69 6e 74 20 4b 20 3d 20 32 3b 20 0d 0a 09 69 .int K = 2; ...i
0810: 6e 74 20 73 5f 5b 5d 20 3d 20 7b 31 2c 20 32 2c nt s_[] = {1, 2,
0820: 20 33 7d 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3};... vector
0830: 3c 69 6e 74 3e 20 73 28 73 5f 2c 20 73 5f 2b 73 <int> s(s_, s_+s
0840: 69 7a 65 6f 66 28 73 5f 29 2f 73 69 7a 65 6f 66 izeof(s_)/sizeof
0850: 28 2a 73 5f 29 29 3b 20 0d 0a 09 69 6e 74 20 5f (*s_)); ...int _
0860: 20 3d 20 31 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 = 1; ..END..CAS
0870: 45 28 32 29 0d 0a 09 69 6e 74 20 4e 20 3d 20 34 E(2)...int N = 4
0880: 3b 20 0d 0a 09 69 6e 74 20 4b 20 3d 20 34 3b 20 ; ...int K = 4;
0890: 0d 0a 09 69 6e 74 20 73 5f 5b 5d 20 3d 20 7b 34 ...int s_[] = {4
08a0: 2c 20 34 2c 20 34 2c 20 32 7d 3b 0d 0a 09 20 20 , 4, 4, 2};...
08b0: 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 73 28 73 vector <int> s(s
08c0: 5f 2c 20 73 5f 2b 73 69 7a 65 6f 66 28 73 5f 29 _, s_+sizeof(s_)
08d0: 2f 73 69 7a 65 6f 66 28 2a 73 5f 29 29 3b 20 0d /sizeof(*s_)); .
08e0: 0a 09 69 6e 74 20 5f 20 3d 20 32 3b 20 0d 0a 45 ..int _ = 2; ..E
08f0: 4e 44 0d 0a 43 41 53 45 28 33 29 0d 0a 09 69 6e ND..CASE(3)...in
0900: 74 20 4e 20 3d 20 32 30 3b 20 0d 0a 09 69 6e 74 t N = 20; ...int
0910: 20 4b 20 3d 20 33 3b 20 0d 0a 09 69 6e 74 20 73 K = 3; ...int s
0920: 5f 5b 5d 20 3d 20 7b 31 2c 20 31 30 2c 20 33 2c _[] = {1, 10, 3,
0930: 20 34 2c 20 38 2c 20 31 35 2c 20 33 2c 20 31 36 4, 8, 15, 3, 16
0940: 2c 20 31 38 2c 20 32 2c 20 37 2c 20 33 7d 3b 0d , 18, 2, 7, 3};.
0950: 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e .. vector <int>
0960: 20 73 28 73 5f 2c 20 73 5f 2b 73 69 7a 65 6f 66 s(s_, s_+sizeof
0970: 28 73 5f 29 2f 73 69 7a 65 6f 66 28 2a 73 5f 29 (s_)/sizeof(*s_)
0980: 29 3b 20 0d 0a 09 69 6e 74 20 5f 20 3d 20 31 30 ); ...int _ = 10
0990: 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 45 28 34 29 ; ..END..CASE(4)
09a0: 0d 0a 09 69 6e 74 20 4e 20 3d 20 34 3b 20 0d 0a ...int N = 4; ..
09b0: 09 69 6e 74 20 4b 20 3d 20 32 3b 20 0d 0a 09 69 .int K = 2; ...i
09c0: 6e 74 20 73 5f 5b 5d 20 3d 20 7b 31 2c 20 32 2c nt s_[] = {1, 2,
09d0: 20 31 2c 20 31 2c 20 33 2c 20 31 2c 20 32 2c 20 1, 1, 3, 1, 2,
09e0: 32 2c 20 31 2c 20 32 2c 20 31 7d 3b 0d 0a 09 20 2, 1, 2, 1};...
09f0: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 73 28 vector <int> s(
0a00: 73 5f 2c 20 73 5f 2b 73 69 7a 65 6f 66 28 73 5f s_, s_+sizeof(s_
0a10: 29 2f 73 69 7a 65 6f 66 28 2a 73 5f 29 29 3b 20 )/sizeof(*s_));
0a20: 0d 0a 09 69 6e 74 20 5f 20 3d 20 32 3b 20 0d 0a ...int _ = 2; ..
0a30: 45 4e 44 0d 0a 43 41 53 45 28 35 29 0d 0a 09 69 END..CASE(5)...i
0a40: 6e 74 20 4e 20 3d 20 32 3b 20 0d 0a 09 69 6e 74 nt N = 2; ...int
0a50: 20 4b 20 3d 20 33 3b 20 0d 0a 09 69 6e 74 20 73 K = 3; ...int s
0a60: 5f 5b 5d 20 3d 20 7b 31 2c 20 31 2c 20 31 2c 20 _[] = {1, 1, 1,
0a70: 32 7d 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 2};... vector <
0a80: 69 6e 74 3e 20 73 28 73 5f 2c 20 73 5f 2b 73 69 int> s(s_, s_+si
0a90: 7a 65 6f 66 28 73 5f 29 2f 73 69 7a 65 6f 66 28 zeof(s_)/sizeof(
0aa0: 2a 73 5f 29 29 3b 20 0d 0a 09 69 6e 74 20 5f 20 *s_)); ...int _
0ab0: 3d 20 31 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 45 = 1; ..END..CASE
0ac0: 28 36 29 0d 0a 09 69 6e 74 20 4e 20 3d 20 35 30 (6)...int N = 50
0ad0: 30 3b 20 0d 0a 09 69 6e 74 20 4b 20 3d 20 31 3b 0; ...int K = 1;
0ae0: 20 0d 0a 09 69 6e 74 20 73 5f 5b 5d 20 3d 20 7b ...int s_[] = {
0af0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b00: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b10: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b20: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b30: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b40: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b50: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b60: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b70: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b80: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0b90: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ba0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0bb0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0bc0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0bd0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0be0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0bf0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c00: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c10: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c20: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c30: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c40: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c50: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c60: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c70: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c80: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0c90: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ca0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0cb0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0cc0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0cd0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ce0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0cf0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d00: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d10: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d20: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d30: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d40: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d50: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d60: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d70: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d80: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0d90: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0da0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0db0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0dc0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0dd0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0de0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0df0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e00: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e10: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e20: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e30: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e40: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e50: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e60: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e70: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e80: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0e90: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ea0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0eb0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ec0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ed0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ee0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ef0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f00: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f10: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f20: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f30: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f40: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f50: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f60: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f70: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f80: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0f90: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0fa0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0fb0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0fc0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0fd0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0fe0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
0ff0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1000: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1010: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1020: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1030: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1040: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1050: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1060: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1070: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1080: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1090: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
10a0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
10b0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
10c0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
10d0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
10e0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
10f0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1100: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1110: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1120: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1130: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1140: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1150: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1160: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1170: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1180: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1190: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
11a0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
11b0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
11c0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
11d0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
11e0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
11f0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1200: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1210: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1220: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1230: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1240: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1250: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1260: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1270: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1280: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
1290: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
12a0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 500,500,500,500,
12b0: 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 7d 500,500,500,500}
12c0: 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 6e ;... vector <in
12d0: 74 3e 20 73 28 73 5f 2c 20 73 5f 2b 73 69 7a 65 t> s(s_, s_+size
12e0: 6f 66 28 73 5f 29 2f 73 69 7a 65 6f 66 28 2a 73 of(s_)/sizeof(*s
12f0: 5f 29 29 3b 20 0d 0a 09 69 6e 74 20 5f 20 3d 20 _)); ...int _ =
1300: 2d 31 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 45 28 -1; ..END..CASE(
1310: 36 29 0d 0a 09 69 6e 74 20 4e 20 3d 20 35 30 30 6)...int N = 500
1320: 3b 20 0d 0a 09 69 6e 74 20 4b 20 3d 20 35 30 30 ; ...int K = 500
1330: 3b 20 0d 0a 09 69 6e 74 20 73 5f 5b 5d 20 3d 20 ; ...int s_[] =
1340: 7b 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 {500,500,500,500
1350: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1360: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1370: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1380: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1390: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
13a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
13b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
13c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
13d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
13e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
13f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1400: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1410: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1420: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1430: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1440: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1450: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1460: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1470: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1480: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1490: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
14a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
14b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
14c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
14d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
14e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
14f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1500: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1510: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1520: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1530: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1540: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1550: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1560: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1570: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1580: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1590: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
15a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
15b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
15c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
15d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
15e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
15f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1600: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1610: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1620: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1630: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1640: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1650: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1660: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1670: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1680: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1690: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
16a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
16b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
16c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
16d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
16e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
16f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1700: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1710: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1720: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1730: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1740: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1750: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1760: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1770: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1780: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1790: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
17a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
17b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
17c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
17d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
17e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
17f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1800: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1810: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1820: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1830: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1840: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1850: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1860: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1870: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1880: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1890: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
18a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
18b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
18c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
18d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
18e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
18f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1900: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1910: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1920: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1930: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1940: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1950: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1960: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1970: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1980: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1990: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
19a0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
19b0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
19c0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
19d0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
19e0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
19f0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a00: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a10: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a20: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a30: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a40: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a50: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a60: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a70: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a80: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1a90: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1aa0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1ab0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1ac0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1ad0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1ae0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1af0: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1b00: 2c 35 30 30 2c 35 30 30 2c 35 30 30 2c 35 30 30 ,500,500,500,500
1b10: 7d 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 };... vector <i
1b20: 6e 74 3e 20 73 28 73 5f 2c 20 73 5f 2b 73 69 7a nt> s(s_, s_+siz
1b30: 65 6f 66 28 73 5f 29 2f 73 69 7a 65 6f 66 28 2a eof(s_)/sizeof(*
1b40: 73 5f 29 29 3b 20 0d 0a 09 69 6e 74 20 5f 20 3d s_)); ...int _ =
1b50: 20 2d 31 3b 20 0d 0a 45 4e 44 0d 0a 7d 0d 0a 2f -1; ..END..}../
1b60: 2f 20 45 4e 44 20 43 55 54 20 48 45 52 45 0d 0a / END CUT HERE..