Hex Artifact Content
Not logged in

Artifact a69937141079332fb0dd3843dc7b41326497fca3:


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 4d 61 79 54  P;....class MayT
01a0: 68 65 42 65 73 74 50 65 74 57 69 6e 20 7b 20 70  heBestPetWin { p
01b0: 75 62 6c 69 63 3a 0d 0a 09 69 6e 74 20 63 61 6c  ublic:...int cal
01c0: 63 28 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41  c(vector <int> A
01d0: 2c 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 42  , vector <int> B
01e0: 29 0d 0a 09 7b 0d 0a 09 09 63 6f 6e 73 74 20 69  )...{....const i
01f0: 6e 74 20 4e 20 3d 20 41 2e 73 69 7a 65 28 29 3b  nt N = A.size();
0200: 0d 0a 09 09 76 65 63 74 6f 72 3c 69 6e 74 3e 20  ....vector<int> 
0210: 43 28 4e 29 3b 0d 0a 09 09 66 6f 72 28 69 6e 74  C(N);....for(int
0220: 20 69 3d 30 3b 20 69 3c 4e 3b 20 2b 2b 69 29 0d   i=0; i<N; ++i).
0230: 0a 09 09 09 43 5b 69 5d 20 3d 20 41 5b 69 5d 20  ....C[i] = A[i] 
0240: 2b 20 42 5b 69 5d 3b 0d 0a 0d 0a 09 09 63 6f 6e  + B[i];......con
0250: 73 74 20 69 6e 74 20 61 6c 6c 6d 69 6e 20 3d 20  st int allmin = 
0260: 61 63 63 75 6d 75 6c 61 74 65 28 41 2e 62 65 67  accumulate(A.beg
0270: 69 6e 28 29 2c 20 41 2e 65 6e 64 28 29 2c 20 30  in(), A.end(), 0
0280: 29 3b 0d 0a 09 09 63 6f 6e 73 74 20 69 6e 74 20  );....const int 
0290: 61 6c 6c 6d 61 78 20 3d 20 61 63 63 75 6d 75 6c  allmax = accumul
02a0: 61 74 65 28 42 2e 62 65 67 69 6e 28 29 2c 20 42  ate(B.begin(), B
02b0: 2e 65 6e 64 28 29 2c 20 30 29 3b 0d 0a 09 09 63  .end(), 0);....c
02c0: 6f 6e 73 74 20 69 6e 74 20 61 6c 6c 73 75 6d 20  onst int allsum 
02d0: 3d 20 61 63 63 75 6d 75 6c 61 74 65 28 43 2e 62  = accumulate(C.b
02e0: 65 67 69 6e 28 29 2c 20 43 2e 65 6e 64 28 29 2c  egin(), C.end(),
02f0: 20 30 29 3b 0d 0a 0d 0a 09 09 76 65 63 74 6f 72   0);......vector
0300: 3c 62 6f 6f 6c 3e 20 63 61 6e 28 61 6c 6c 73 75  <bool> can(allsu
0310: 6d 2b 31 29 3b 0d 0a 09 09 63 61 6e 5b 30 5d 20  m+1);....can[0] 
0320: 3d 20 74 72 75 65 3b 0d 0a 09 09 66 6f 72 28 69  = true;....for(i
0330: 6e 74 20 69 3d 30 3b 20 69 3c 4e 3b 20 2b 2b 69  nt i=0; i<N; ++i
0340: 29 0d 0a 09 09 09 66 6f 72 28 69 6e 74 20 6b 3d  ).....for(int k=
0350: 61 6c 6c 73 75 6d 3b 20 6b 3e 3d 43 5b 69 5d 3b  allsum; k>=C[i];
0360: 20 2d 2d 6b 29 0d 0a 09 09 09 09 69 66 28 63 61   --k)......if(ca
0370: 6e 5b 6b 2d 43 5b 69 5d 5d 29 0d 0a 09 09 09 09  n[k-C[i]])......
0380: 09 63 61 6e 5b 6b 5d 20 3d 20 74 72 75 65 3b 0d  .can[k] = true;.
0390: 0a 0d 0a 09 09 69 6e 74 20 62 65 73 74 20 3d 20  .....int best = 
03a0: 61 6c 6c 73 75 6d 3b 0d 0a 09 09 66 6f 72 28 69  allsum;....for(i
03b0: 6e 74 20 69 3d 30 3b 20 69 3c 3d 61 6c 6c 73 75  nt i=0; i<=allsu
03c0: 6d 3b 20 2b 2b 69 29 0d 0a 09 09 09 69 66 28 63  m; ++i).....if(c
03d0: 61 6e 5b 69 5d 29 0d 0a 09 09 09 09 62 65 73 74  an[i])......best
03e0: 20 3d 20 6d 69 6e 28 62 65 73 74 2c 20 6d 61 78   = min(best, max
03f0: 28 61 62 73 28 69 2d 61 6c 6c 6d 69 6e 29 2c 20  (abs(i-allmin), 
0400: 61 62 73 28 61 6c 6c 6d 61 78 2d 69 29 29 29 3b  abs(allmax-i)));
0410: 0d 0a 09 09 72 65 74 75 72 6e 20 62 65 73 74 3b  ....return best;
0420: 0d 0a 09 7d 0d 0a 7d 3b 0d 0a 0d 0a 2f 2f 20 42  ...}..};....// B
0430: 45 47 49 4e 20 43 55 54 20 48 45 52 45 0d 0a 23  EGIN CUT HERE..#
0440: 69 6e 63 6c 75 64 65 20 3c 63 74 69 6d 65 3e 0d  include <ctime>.
0450: 0a 64 6f 75 62 6c 65 20 73 74 61 72 74 5f 74 69  .double start_ti
0460: 6d 65 3b 20 73 74 72 69 6e 67 20 74 69 6d 65 72  me; string timer
0470: 28 29 0d 0a 20 7b 20 6f 73 74 72 69 6e 67 73 74  ().. { ostringst
0480: 72 65 61 6d 20 6f 73 3b 20 6f 73 20 3c 3c 20 22  ream os; os << "
0490: 20 28 22 20 3c 3c 20 69 6e 74 28 28 63 6c 6f 63   (" << int((cloc
04a0: 6b 28 29 2d 73 74 61 72 74 5f 74 69 6d 65 29 2f  k()-start_time)/
04b0: 43 4c 4f 43 4b 53 5f 50 45 52 5f 53 45 43 2a 31  CLOCKS_PER_SEC*1
04c0: 30 30 30 29 20 3c 3c 20 22 20 6d 73 65 63 29 22  000) << " msec)"
04d0: 3b 20 72 65 74 75 72 6e 20 6f 73 2e 73 74 72 28  ; return os.str(
04e0: 29 3b 20 7d 0d 0a 74 65 6d 70 6c 61 74 65 3c 74  ); }..template<t
04f0: 79 70 65 6e 61 6d 65 20 54 3e 20 6f 73 74 72 65  ypename T> ostre
0500: 61 6d 26 20 6f 70 65 72 61 74 6f 72 3c 3c 28 6f  am& operator<<(o
0510: 73 74 72 65 61 6d 26 20 6f 73 2c 20 63 6f 6e 73  stream& os, cons
0520: 74 20 76 65 63 74 6f 72 3c 54 3e 26 20 76 29 0d  t vector<T>& v).
0530: 0a 20 7b 20 6f 73 20 3c 3c 20 22 7b 20 22 3b 0d  . { os << "{ ";.
0540: 0a 20 20 20 66 6f 72 28 74 79 70 65 6e 61 6d 65  .   for(typename
0550: 20 76 65 63 74 6f 72 3c 54 3e 3a 3a 63 6f 6e 73   vector<T>::cons
0560: 74 5f 69 74 65 72 61 74 6f 72 20 69 74 3d 76 2e  t_iterator it=v.
0570: 62 65 67 69 6e 28 29 3b 20 69 74 21 3d 76 2e 65  begin(); it!=v.e
0580: 6e 64 28 29 3b 20 2b 2b 69 74 29 0d 0a 20 20 20  nd(); ++it)..   
0590: 6f 73 20 3c 3c 20 27 5c 22 27 20 3c 3c 20 2a 69  os << '\"' << *i
05a0: 74 20 3c 3c 20 27 5c 22 27 20 3c 3c 20 28 69 74  t << '\"' << (it
05b0: 2b 31 3d 3d 76 2e 65 6e 64 28 29 20 3f 20 22 22  +1==v.end() ? ""
05c0: 20 3a 20 22 2c 20 22 29 3b 20 6f 73 20 3c 3c 20   : ", "); os << 
05d0: 22 20 7d 22 3b 20 72 65 74 75 72 6e 20 6f 73 3b  " }"; return os;
05e0: 20 7d 0d 0a 76 6f 69 64 20 76 65 72 69 66 79 5f   }..void verify_
05f0: 63 61 73 65 28 63 6f 6e 73 74 20 69 6e 74 26 20  case(const int& 
0600: 45 78 70 65 63 74 65 64 2c 20 63 6f 6e 73 74 20  Expected, const 
0610: 69 6e 74 26 20 52 65 63 65 69 76 65 64 29 20 7b  int& Received) {
0620: 0d 0a 20 62 6f 6f 6c 20 6f 6b 20 3d 20 28 45 78  .. bool ok = (Ex
0630: 70 65 63 74 65 64 20 3d 3d 20 52 65 63 65 69 76  pected == Receiv
0640: 65 64 29 3b 0d 0a 20 69 66 28 6f 6b 29 20 63 65  ed);.. if(ok) ce
0650: 72 72 20 3c 3c 20 22 50 41 53 53 45 44 22 20 3c  rr << "PASSED" <
0660: 3c 20 74 69 6d 65 72 28 29 20 3c 3c 20 65 6e 64  < timer() << end
0670: 6c 3b 20 20 65 6c 73 65 20 7b 20 63 65 72 72 20  l;  else { cerr 
0680: 3c 3c 20 22 46 41 49 4c 45 44 22 20 3c 3c 20 74  << "FAILED" << t
0690: 69 6d 65 72 28 29 20 3c 3c 20 65 6e 64 6c 3b 0d  imer() << endl;.
06a0: 0a 20 63 65 72 72 20 3c 3c 20 22 5c 74 6f 3a 20  . cerr << "\to: 
06b0: 5c 22 22 20 3c 3c 20 45 78 70 65 63 74 65 64 20  \"" << Expected 
06c0: 3c 3c 20 27 5c 22 27 20 3c 3c 20 65 6e 64 6c 20  << '\"' << endl 
06d0: 3c 3c 20 22 5c 74 78 3a 20 5c 22 22 20 3c 3c 20  << "\tx: \"" << 
06e0: 52 65 63 65 69 76 65 64 20 3c 3c 20 27 5c 22 27  Received << '\"'
06f0: 20 3c 3c 20 65 6e 64 6c 3b 20 7d 20 7d 0d 0a 23   << endl; } }..#
0700: 64 65 66 69 6e 65 20 43 41 53 45 28 4e 29 20 7b  define CASE(N) {
0710: 63 65 72 72 20 3c 3c 20 22 54 65 73 74 20 43 61  cerr << "Test Ca
0720: 73 65 20 23 22 20 3c 3c 20 4e 20 3c 3c 20 22 2e  se #" << N << ".
0730: 2e 2e 22 20 3c 3c 20 66 6c 75 73 68 3b 20 73 74  .." << flush; st
0740: 61 72 74 5f 74 69 6d 65 3d 63 6c 6f 63 6b 28 29  art_time=clock()
0750: 3b 0d 0a 23 64 65 66 69 6e 65 20 45 4e 44 09 20  ;..#define END. 
0760: 76 65 72 69 66 79 5f 63 61 73 65 28 5f 2c 20 4d  verify_case(_, M
0770: 61 79 54 68 65 42 65 73 74 50 65 74 57 69 6e 28  ayTheBestPetWin(
0780: 29 2e 63 61 6c 63 28 41 2c 20 42 29 29 3b 7d 0d  ).calc(A, B));}.
0790: 0a 69 6e 74 20 6d 61 69 6e 28 29 7b 0d 0a 0d 0a  .int main(){....
07a0: 43 41 53 45 28 30 29 0d 0a 09 69 6e 74 20 41 5f  CASE(0)...int A_
07b0: 5b 5d 20 3d 20 7b 33 2c 34 2c 34 2c 37 7d 3b 0d  [] = {3,4,4,7};.
07c0: 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e  ..  vector <int>
07d0: 20 41 28 41 5f 2c 20 41 5f 2b 73 69 7a 65 6f 66   A(A_, A_+sizeof
07e0: 28 41 5f 29 2f 73 69 7a 65 6f 66 28 2a 41 5f 29  (A_)/sizeof(*A_)
07f0: 29 3b 20 0d 0a 09 69 6e 74 20 42 5f 5b 5d 20 3d  ); ...int B_[] =
0800: 20 7b 33 2c 34 2c 34 2c 37 7d 3b 0d 0a 09 20 20   {3,4,4,7};...  
0810: 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 42 28 42  vector <int> B(B
0820: 5f 2c 20 42 5f 2b 73 69 7a 65 6f 66 28 42 5f 29  _, B_+sizeof(B_)
0830: 2f 73 69 7a 65 6f 66 28 2a 42 5f 29 29 3b 20 0d  /sizeof(*B_)); .
0840: 0a 09 69 6e 74 20 5f 20 3d 20 32 3b 20 0d 0a 45  ..int _ = 2; ..E
0850: 4e 44 0d 0a 43 41 53 45 28 31 29 0d 0a 09 69 6e  ND..CASE(1)...in
0860: 74 20 41 5f 5b 5d 20 3d 20 7b 31 2c 33 2c 35 2c  t A_[] = {1,3,5,
0870: 34 2c 35 7d 3b 0d 0a 09 20 20 76 65 63 74 6f 72  4,5};...  vector
0880: 20 3c 69 6e 74 3e 20 41 28 41 5f 2c 20 41 5f 2b   <int> A(A_, A_+
0890: 73 69 7a 65 6f 66 28 41 5f 29 2f 73 69 7a 65 6f  sizeof(A_)/sizeo
08a0: 66 28 2a 41 5f 29 29 3b 20 0d 0a 09 69 6e 74 20  f(*A_)); ...int 
08b0: 42 5f 5b 5d 20 3d 20 7b 32 2c 35 2c 36 2c 38 2c  B_[] = {2,5,6,8,
08c0: 37 7d 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c  7};...  vector <
08d0: 69 6e 74 3e 20 42 28 42 5f 2c 20 42 5f 2b 73 69  int> B(B_, B_+si
08e0: 7a 65 6f 66 28 42 5f 29 2f 73 69 7a 65 6f 66 28  zeof(B_)/sizeof(
08f0: 2a 42 5f 29 29 3b 20 0d 0a 09 69 6e 74 20 5f 20  *B_)); ...int _ 
0900: 3d 20 35 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 45  = 5; ..END..CASE
0910: 28 32 29 0d 0a 09 69 6e 74 20 41 5f 5b 5d 20 3d  (2)...int A_[] =
0920: 20 7b 32 39 30 37 2c 39 34 39 2c 31 36 37 34 2c   {2907,949,1674,
0930: 36 30 39 32 2c 38 36 30 38 2c 35 31 38 36 2c 32  6092,8608,5186,2
0940: 36 33 30 2c 39 37 30 2c 31 30 35 30 2c 32 34 31  630,970,1050,241
0950: 35 2c 31 39 32 33 2c 32 36 39 37 2c 35 35 37 31  5,1923,2697,5571
0960: 2c 36 39 34 31 2c 38 30 36 35 2c 34 37 31 30 2c  ,6941,8065,4710,
0970: 37 31 36 2c 37 35 36 2c 35 31 38 35 2c 31 33 34  716,756,5185,134
0980: 31 2c 39 39 33 2c 35 30 39 32 2c 32 34 38 2c 31  1,993,5092,248,1
0990: 38 39 35 2c 34 32 32 33 2c 31 37 38 33 2c 33 38  895,4223,1783,38
09a0: 34 34 2c 33 35 33 31 2c 32 34 33 31 2c 31 37 35  44,3531,2431,175
09b0: 35 2c 32 38 33 37 2c 34 30 31 35 7d 3b 0d 0a 09  5,2837,4015};...
09c0: 20 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41    vector <int> A
09d0: 28 41 5f 2c 20 41 5f 2b 73 69 7a 65 6f 66 28 41  (A_, A_+sizeof(A
09e0: 5f 29 2f 73 69 7a 65 6f 66 28 2a 41 5f 29 29 3b  _)/sizeof(*A_));
09f0: 20 0d 0a 09 69 6e 74 20 42 5f 5b 5d 20 3d 20 7b   ...int B_[] = {
0a00: 37 32 39 36 2c 36 39 35 34 2c 34 34 30 37 2c 39  7296,6954,4407,9
0a10: 37 32 34 2c 38 36 34 35 2c 38 30 36 35 2c 39 33  724,8645,8065,93
0a20: 32 33 2c 38 34 33 33 2c 31 33 35 32 2c 39 36 31  23,8433,1352,961
0a30: 38 2c 36 34 38 37 2c 37 33 30 39 2c 39 32 39 37  8,6487,7309,9297
0a40: 2c 38 39 39 39 2c 39 39 36 30 2c 35 36 35 33 2c  ,8999,9960,5653,
0a50: 34 37 32 31 2c 37 36 32 33 2c 36 30 31 37 2c 37  4721,7623,6017,7
0a60: 33 32 30 2c 33 35 31 33 2c 36 36 34 32 2c 36 33  320,3513,6642,63
0a70: 35 39 2c 33 31 34 35 2c 37 32 33 33 2c 35 30 37  59,3145,7233,507
0a80: 37 2c 36 34 35 37 2c 33 36 30 35 2c 32 39 31 31  7,6457,3605,2911
0a90: 2c 34 36 37 39 2c 35 33 38 31 2c 36 35 37 34 7d  ,4679,5381,6574}
0aa0: 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 6e  ;...  vector <in
0ab0: 74 3e 20 42 28 42 5f 2c 20 42 5f 2b 73 69 7a 65  t> B(B_, B_+size
0ac0: 6f 66 28 42 5f 29 2f 73 69 7a 65 6f 66 28 2a 42  of(B_)/sizeof(*B
0ad0: 5f 29 29 3b 20 0d 0a 09 69 6e 74 20 5f 20 3d 20  _)); ...int _ = 
0ae0: 35 32 38 37 33 3b 20 0d 0a 45 4e 44 0d 0a 2f 2a  52873; ..END../*
0af0: 0d 0a 43 41 53 45 28 33 29 0d 0a 09 69 6e 74 20  ..CASE(3)...int 
0b00: 41 5f 5b 5d 20 3d 20 3b 0d 0a 09 20 20 76 65 63  A_[] = ;...  vec
0b10: 74 6f 72 20 3c 69 6e 74 3e 20 41 28 41 5f 2c 20  tor <int> A(A_, 
0b20: 41 5f 2b 73 69 7a 65 6f 66 28 41 5f 29 2f 73 69  A_+sizeof(A_)/si
0b30: 7a 65 6f 66 28 2a 41 5f 29 29 3b 20 0d 0a 09 69  zeof(*A_)); ...i
0b40: 6e 74 20 42 5f 5b 5d 20 3d 20 3b 0d 0a 09 20 20  nt B_[] = ;...  
0b50: 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 42 28 42  vector <int> B(B
0b60: 5f 2c 20 42 5f 2b 73 69 7a 65 6f 66 28 42 5f 29  _, B_+sizeof(B_)
0b70: 2f 73 69 7a 65 6f 66 28 2a 42 5f 29 29 3b 20 0d  /sizeof(*B_)); .
0b80: 0a 09 69 6e 74 20 5f 20 3d 20 3b 20 0d 0a 45 4e  ..int _ = ; ..EN
0b90: 44 0d 0a 43 41 53 45 28 34 29 0d 0a 09 69 6e 74  D..CASE(4)...int
0ba0: 20 41 5f 5b 5d 20 3d 20 3b 0d 0a 09 20 20 76 65   A_[] = ;...  ve
0bb0: 63 74 6f 72 20 3c 69 6e 74 3e 20 41 28 41 5f 2c  ctor <int> A(A_,
0bc0: 20 41 5f 2b 73 69 7a 65 6f 66 28 41 5f 29 2f 73   A_+sizeof(A_)/s
0bd0: 69 7a 65 6f 66 28 2a 41 5f 29 29 3b 20 0d 0a 09  izeof(*A_)); ...
0be0: 69 6e 74 20 42 5f 5b 5d 20 3d 20 3b 0d 0a 09 20  int B_[] = ;... 
0bf0: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 42 28   vector <int> B(
0c00: 42 5f 2c 20 42 5f 2b 73 69 7a 65 6f 66 28 42 5f  B_, B_+sizeof(B_
0c10: 29 2f 73 69 7a 65 6f 66 28 2a 42 5f 29 29 3b 20  )/sizeof(*B_)); 
0c20: 0d 0a 09 69 6e 74 20 5f 20 3d 20 3b 20 0d 0a 45  ...int _ = ; ..E
0c30: 4e 44 0d 0a 2a 2f 0d 0a 7d 0d 0a 2f 2f 20 45 4e  ND..*/..}..// EN
0c40: 44 20 43 55 54 20 48 45 52 45 0d 0a              D CUT HERE..