Hex Artifact Content
Not logged in

Artifact 0e4f7f13c5c792cd07a5bc8ed529dc5b0d3b5914:


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 63 6f 6d 70  ..#include <comp
00d0: 6c 65 78 3e 0d 0a 23 69 6e 63 6c 75 64 65 20 3c  lex>..#include <
00e0: 71 75 65 75 65 3e 0d 0a 23 69 6e 63 6c 75 64 65  queue>..#include
00f0: 20 3c 73 74 61 63 6b 3e 0d 0a 23 69 6e 63 6c 75   <stack>..#inclu
0100: 64 65 20 3c 63 6d 61 74 68 3e 0d 0a 75 73 69 6e  de <cmath>..usin
0110: 67 20 6e 61 6d 65 73 70 61 63 65 20 73 74 64 3b  g namespace std;
0120: 0d 0a 74 79 70 65 64 65 66 20 6c 6f 6e 67 20 6c  ..typedef long l
0130: 6f 6e 67 20 4c 4c 3b 0d 0a 0d 0a 63 6c 61 73 73  ong LL;....class
0140: 20 43 61 74 63 68 54 68 65 4d 69 63 65 0d 0a 7b   CatchTheMice..{
0150: 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 64 6f 75 62  ..public:...doub
0160: 6c 65 20 69 6e 74 65 72 73 65 63 74 28 64 6f 75  le intersect(dou
0170: 62 6c 65 20 62 31 2c 20 64 6f 75 62 6c 65 20 61  ble b1, double a
0180: 31 2c 20 64 6f 75 62 6c 65 20 62 32 2c 20 64 6f  1, double b2, do
0190: 75 62 6c 65 20 61 32 29 0d 0a 09 7b 0d 0a 09 09  uble a2)...{....
01a0: 2f 2f 20 61 31 78 20 2b 20 62 31 20 3d 3d 20 61  // a1x + b1 == a
01b0: 32 78 20 2b 20 62 32 0d 0a 09 09 69 66 28 20 61  2x + b2....if( a
01c0: 31 20 3d 3d 20 61 32 20 29 20 72 65 74 75 72 6e  1 == a2 ) return
01d0: 20 2d 31 3b 0d 0a 09 09 72 65 74 75 72 6e 20 28   -1;....return (
01e0: 62 32 2d 62 31 29 20 2f 20 28 61 31 2d 61 32 29  b2-b1) / (a1-a2)
01f0: 3b 0d 0a 09 7d 0d 0a 0d 0a 09 64 6f 75 62 6c 65  ;...}.....double
0200: 20 6c 61 72 67 65 73 74 43 61 67 65 28 76 65 63   largestCage(vec
0210: 74 6f 72 20 3c 69 6e 74 3e 20 78 70 2c 20 76 65  tor <int> xp, ve
0220: 63 74 6f 72 20 3c 69 6e 74 3e 20 79 70 2c 20 76  ctor <int> yp, v
0230: 65 63 74 6f 72 20 3c 69 6e 74 3e 20 78 76 2c 20  ector <int> xv, 
0240: 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 79 76 29  vector <int> yv)
0250: 20 0d 0a 09 7b 0d 0a 09 09 76 65 63 74 6f 72 3c   ...{....vector<
0260: 64 6f 75 62 6c 65 3e 20 74 3b 20 2f 2f 20 63 6f  double> t; // co
0270: 6c 6c 69 73 69 6f 6e 20 74 69 6d 65 0d 0a 09 09  llision time....
0280: 74 2e 70 75 73 68 5f 62 61 63 6b 28 30 29 3b 0d  t.push_back(0);.
0290: 0a 0d 0a 09 09 69 6e 74 20 6e 20 3d 20 78 70 2e  .....int n = xp.
02a0: 73 69 7a 65 28 29 3b 0d 0a 09 09 66 6f 72 28 69  size();....for(i
02b0: 6e 74 20 69 3d 30 3b 20 69 3c 6e 3b 20 2b 2b 69  nt i=0; i<n; ++i
02c0: 29 0d 0a 09 09 09 66 6f 72 28 69 6e 74 20 6a 3d  ).....for(int j=
02d0: 69 2b 31 3b 20 6a 3c 6e 3b 20 2b 2b 6a 29 0d 0a  i+1; j<n; ++j)..
02e0: 09 09 09 7b 0d 0a 09 09 09 09 64 6f 75 62 6c 65  ...{......double
02f0: 20 63 74 20 3d 20 69 6e 74 65 72 73 65 63 74 28   ct = intersect(
0300: 78 70 5b 69 5d 2c 20 78 76 5b 69 5d 2c 20 78 70  xp[i], xv[i], xp
0310: 5b 6a 5d 2c 20 78 76 5b 6a 5d 29 3b 0d 0a 09 09  [j], xv[j]);....
0320: 09 09 69 66 28 63 74 3e 30 29 20 74 2e 70 75 73  ..if(ct>0) t.pus
0330: 68 5f 62 61 63 6b 28 63 74 29 3b 0d 0a 09 09 09  h_back(ct);.....
0340: 09 63 74 20 3d 20 69 6e 74 65 72 73 65 63 74 28  .ct = intersect(
0350: 79 70 5b 69 5d 2c 20 79 76 5b 69 5d 2c 20 79 70  yp[i], yv[i], yp
0360: 5b 6a 5d 2c 20 79 76 5b 6a 5d 29 3b 0d 0a 09 09  [j], yv[j]);....
0370: 09 09 69 66 28 63 74 3e 30 29 20 74 2e 70 75 73  ..if(ct>0) t.pus
0380: 68 5f 62 61 63 6b 28 63 74 29 3b 0d 0a 09 09 09  h_back(ct);.....
0390: 7d 0d 0a 0d 0a 09 09 73 6f 72 74 28 74 2e 62 65  }......sort(t.be
03a0: 67 69 6e 28 29 2c 20 74 2e 65 6e 64 28 29 29 3b  gin(), t.end());
03b0: 0d 0a 09 09 74 2e 65 72 61 73 65 28 75 6e 69 71  ....t.erase(uniq
03c0: 75 65 28 74 2e 62 65 67 69 6e 28 29 2c 20 74 2e  ue(t.begin(), t.
03d0: 65 6e 64 28 29 29 2c 20 74 2e 65 6e 64 28 29 29  end()), t.end())
03e0: 3b 0d 0a 09 09 74 2e 70 75 73 68 5f 62 61 63 6b  ;....t.push_back
03f0: 28 20 74 2e 62 61 63 6b 28 29 2b 31 2e 30 20 29  ( t.back()+1.0 )
0400: 3b 0d 0a 0d 0a 09 09 64 6f 75 62 6c 65 20 4c 6d  ;......double Lm
0410: 69 6e 20 3d 20 31 65 2b 33 30 30 3b 0d 0a 09 09  in = 1e+300;....
0420: 66 6f 72 28 69 6e 74 20 69 3d 30 3b 20 69 2b 31  for(int i=0; i+1
0430: 3c 74 2e 73 69 7a 65 28 29 3b 20 2b 2b 69 29 0d  <t.size(); ++i).
0440: 0a 09 09 7b 0d 0a 09 09 09 64 6f 75 62 6c 65 20  ...{.....double 
0450: 74 69 20 3d 20 28 74 5b 69 5d 2b 74 5b 69 2b 31  ti = (t[i]+t[i+1
0460: 5d 29 2f 32 3b 0d 0a 0d 0a 09 09 09 69 6e 74 20  ])/2;.......int 
0470: 6a 5f 78 6d 3d 30 3b 20 64 6f 75 62 6c 65 20 78  j_xm=0; double x
0480: 6d 20 3d 20 20 31 65 2b 33 30 30 3b 0d 0a 09 09  m =  1e+300;....
0490: 09 69 6e 74 20 6a 5f 78 4d 3d 30 3b 20 64 6f 75  .int j_xM=0; dou
04a0: 62 6c 65 20 78 4d 20 3d 20 2d 31 65 2b 33 30 30  ble xM = -1e+300
04b0: 3b 0d 0a 09 09 09 69 6e 74 20 6a 5f 79 6d 3d 30  ;.....int j_ym=0
04c0: 3b 20 64 6f 75 62 6c 65 20 79 6d 20 3d 20 20 31  ; double ym =  1
04d0: 65 2b 33 30 30 3b 0d 0a 09 09 09 69 6e 74 20 6a  e+300;.....int j
04e0: 5f 79 4d 3d 30 3b 20 64 6f 75 62 6c 65 20 79 4d  _yM=0; double yM
04f0: 20 3d 20 2d 31 65 2b 33 30 30 3b 0d 0a 09 09 09   = -1e+300;.....
0500: 66 6f 72 28 69 6e 74 20 6a 3d 30 3b 20 6a 3c 6e  for(int j=0; j<n
0510: 3b 20 2b 2b 6a 29 20 7b 0d 0a 09 09 09 09 69 66  ; ++j) {......if
0520: 28 20 78 6d 20 3e 20 78 70 5b 6a 5d 2b 78 76 5b  ( xm > xp[j]+xv[
0530: 6a 5d 2a 74 69 20 29 20 6a 5f 78 6d 3d 6a 2c 20  j]*ti ) j_xm=j, 
0540: 78 6d 3d 78 70 5b 6a 5d 2b 78 76 5b 6a 5d 2a 74  xm=xp[j]+xv[j]*t
0550: 69 3b 0d 0a 09 09 09 09 69 66 28 20 78 4d 20 3c  i;......if( xM <
0560: 20 78 70 5b 6a 5d 2b 78 76 5b 6a 5d 2a 74 69 20   xp[j]+xv[j]*ti 
0570: 29 20 6a 5f 78 4d 3d 6a 2c 20 78 4d 3d 78 70 5b  ) j_xM=j, xM=xp[
0580: 6a 5d 2b 78 76 5b 6a 5d 2a 74 69 3b 0d 0a 09 09  j]+xv[j]*ti;....
0590: 09 09 69 66 28 20 79 6d 20 3e 20 79 70 5b 6a 5d  ..if( ym > yp[j]
05a0: 2b 79 76 5b 6a 5d 2a 74 69 20 29 20 6a 5f 79 6d  +yv[j]*ti ) j_ym
05b0: 3d 6a 2c 20 79 6d 3d 79 70 5b 6a 5d 2b 79 76 5b  =j, ym=yp[j]+yv[
05c0: 6a 5d 2a 74 69 3b 0d 0a 09 09 09 09 69 66 28 20  j]*ti;......if( 
05d0: 79 4d 20 3c 20 79 70 5b 6a 5d 2b 79 76 5b 6a 5d  yM < yp[j]+yv[j]
05e0: 2a 74 69 20 29 20 6a 5f 79 4d 3d 6a 2c 20 79 4d  *ti ) j_yM=j, yM
05f0: 3d 79 70 5b 6a 5d 2b 79 76 5b 6a 5d 2a 74 69 3b  =yp[j]+yv[j]*ti;
0600: 0d 0a 09 09 09 7d 0d 0a 0d 0a 09 09 09 69 6e 74  .....}.......int
0610: 20 58 70 20 3d 20 78 70 5b 6a 5f 78 4d 5d 2d 78   Xp = xp[j_xM]-x
0620: 70 5b 6a 5f 78 6d 5d 3b 0d 0a 09 09 09 69 6e 74  p[j_xm];.....int
0630: 20 58 76 20 3d 20 78 76 5b 6a 5f 78 4d 5d 2d 78   Xv = xv[j_xM]-x
0640: 76 5b 6a 5f 78 6d 5d 3b 0d 0a 09 09 09 69 6e 74  v[j_xm];.....int
0650: 20 59 70 20 3d 20 79 70 5b 6a 5f 79 4d 5d 2d 79   Yp = yp[j_yM]-y
0660: 70 5b 6a 5f 79 6d 5d 3b 0d 0a 09 09 09 69 6e 74  p[j_ym];.....int
0670: 20 59 76 20 3d 20 79 76 5b 6a 5f 79 4d 5d 2d 79   Yv = yv[j_yM]-y
0680: 76 5b 6a 5f 79 6d 5d 3b 0d 0a 0d 0a 09 09 09 2f  v[j_ym];......./
0690: 2f 20 6d 69 6e 20 6f 66 20 6d 61 78 28 78 2c 79  / min of max(x,y
06a0: 29 0d 0a 09 09 09 64 6f 75 62 6c 65 20 63 74 20  ).....double ct 
06b0: 3d 20 69 6e 74 65 72 73 65 63 74 28 58 70 2c 58  = intersect(Xp,X
06c0: 76 2c 59 70 2c 59 76 29 3b 0d 0a 09 09 09 69 66  v,Yp,Yv);.....if
06d0: 28 20 74 5b 69 5d 20 3c 3d 20 63 74 20 26 26 20  ( t[i] <= ct && 
06e0: 63 74 20 3c 3d 20 74 5b 69 2b 31 5d 20 29 0d 0a  ct <= t[i+1] )..
06f0: 09 09 09 09 4c 6d 69 6e 20 3d 20 6d 69 6e 28 4c  ....Lmin = min(L
0700: 6d 69 6e 2c 20 58 70 20 2b 20 58 76 2a 63 74 29  min, Xp + Xv*ct)
0710: 3b 0d 0a 09 09 09 65 6c 73 65 20 7b 0d 0a 09 09  ;.....else {....
0720: 09 09 4c 6d 69 6e 20 3d 20 6d 69 6e 28 4c 6d 69  ..Lmin = min(Lmi
0730: 6e 2c 20 6d 61 78 28 58 70 2b 58 76 2a 74 5b 69  n, max(Xp+Xv*t[i
0740: 2b 30 5d 2c 20 59 70 2b 59 76 2a 74 5b 69 2b 30  +0], Yp+Yv*t[i+0
0750: 5d 29 29 3b 0d 0a 09 09 09 09 4c 6d 69 6e 20 3d  ]));......Lmin =
0760: 20 6d 69 6e 28 4c 6d 69 6e 2c 20 6d 61 78 28 58   min(Lmin, max(X
0770: 70 2b 58 76 2a 74 5b 69 2b 31 5d 2c 20 59 70 2b  p+Xv*t[i+1], Yp+
0780: 59 76 2a 74 5b 69 2b 31 5d 29 29 3b 0d 0a 09 09  Yv*t[i+1]));....
0790: 09 7d 0d 0a 09 09 7d 0d 0a 09 09 72 65 74 75 72  .}....}....retur
07a0: 6e 20 4c 6d 69 6e 3b 0d 0a 09 7d 0d 0a 0d 0a 2f  n Lmin;...}..../
07b0: 2f 20 42 45 47 49 4e 20 43 55 54 20 48 45 52 45  / BEGIN CUT HERE
07c0: 0d 0a 09 70 75 62 6c 69 63 3a 0d 0a 09 76 6f 69  ...public:...voi
07d0: 64 20 72 75 6e 5f 74 65 73 74 28 69 6e 74 20 43  d run_test(int C
07e0: 61 73 65 29 20 7b 20 69 66 20 28 28 43 61 73 65  ase) { if ((Case
07f0: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
0800: 20 3d 3d 20 30 29 29 20 74 65 73 74 5f 63 61 73   == 0)) test_cas
0810: 65 5f 30 28 29 3b 20 69 66 20 28 28 43 61 73 65  e_0(); if ((Case
0820: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
0830: 20 3d 3d 20 31 29 29 20 74 65 73 74 5f 63 61 73   == 1)) test_cas
0840: 65 5f 31 28 29 3b 20 69 66 20 28 28 43 61 73 65  e_1(); if ((Case
0850: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
0860: 20 3d 3d 20 32 29 29 20 74 65 73 74 5f 63 61 73   == 2)) test_cas
0870: 65 5f 32 28 29 3b 20 69 66 20 28 28 43 61 73 65  e_2(); if ((Case
0880: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
0890: 20 3d 3d 20 33 29 29 20 74 65 73 74 5f 63 61 73   == 3)) test_cas
08a0: 65 5f 33 28 29 3b 20 69 66 20 28 28 43 61 73 65  e_3(); if ((Case
08b0: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
08c0: 20 3d 3d 20 34 29 29 20 74 65 73 74 5f 63 61 73   == 4)) test_cas
08d0: 65 5f 34 28 29 3b 20 69 66 20 28 28 43 61 73 65  e_4(); if ((Case
08e0: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
08f0: 20 3d 3d 20 35 29 29 20 74 65 73 74 5f 63 61 73   == 5)) test_cas
0900: 65 5f 35 28 29 3b 20 69 66 20 28 28 43 61 73 65  e_5(); if ((Case
0910: 20 3d 3d 20 2d 31 29 20 7c 7c 20 28 43 61 73 65   == -1) || (Case
0920: 20 3d 3d 20 36 29 29 20 74 65 73 74 5f 63 61 73   == 6)) test_cas
0930: 65 5f 36 28 29 3b 20 7d 0d 0a 09 70 72 69 76 61  e_6(); }...priva
0940: 74 65 3a 0d 0a 09 74 65 6d 70 6c 61 74 65 20 3c  te:...template <
0950: 74 79 70 65 6e 61 6d 65 20 54 3e 20 73 74 72 69  typename T> stri
0960: 6e 67 20 70 72 69 6e 74 5f 61 72 72 61 79 28 63  ng print_array(c
0970: 6f 6e 73 74 20 76 65 63 74 6f 72 3c 54 3e 20 26  onst vector<T> &
0980: 56 29 20 7b 20 6f 73 74 72 69 6e 67 73 74 72 65  V) { ostringstre
0990: 61 6d 20 6f 73 3b 20 6f 73 20 3c 3c 20 22 7b 20  am os; os << "{ 
09a0: 22 3b 20 66 6f 72 20 28 74 79 70 65 6e 61 6d 65  "; for (typename
09b0: 20 76 65 63 74 6f 72 3c 54 3e 3a 3a 63 6f 6e 73   vector<T>::cons
09c0: 74 5f 69 74 65 72 61 74 6f 72 20 69 74 65 72 20  t_iterator iter 
09d0: 3d 20 56 2e 62 65 67 69 6e 28 29 3b 20 69 74 65  = V.begin(); ite
09e0: 72 20 21 3d 20 56 2e 65 6e 64 28 29 3b 20 2b 2b  r != V.end(); ++
09f0: 69 74 65 72 29 20 6f 73 20 3c 3c 20 27 5c 22 27  iter) os << '\"'
0a00: 20 3c 3c 20 2a 69 74 65 72 20 3c 3c 20 22 5c 22   << *iter << "\"
0a10: 2c 22 3b 20 6f 73 20 3c 3c 20 22 20 7d 22 3b 20  ,"; os << " }"; 
0a20: 72 65 74 75 72 6e 20 6f 73 2e 73 74 72 28 29 3b  return os.str();
0a30: 20 7d 0d 0a 09 76 6f 69 64 20 76 65 72 69 66 79   }...void verify
0a40: 5f 63 61 73 65 28 69 6e 74 20 43 61 73 65 2c 20  _case(int Case, 
0a50: 63 6f 6e 73 74 20 64 6f 75 62 6c 65 20 26 45 78  const double &Ex
0a60: 70 65 63 74 65 64 2c 20 63 6f 6e 73 74 20 64 6f  pected, const do
0a70: 75 62 6c 65 20 26 52 65 63 65 69 76 65 64 29 20  uble &Received) 
0a80: 7b 20 63 65 72 72 20 3c 3c 20 22 54 65 73 74 20  { cerr << "Test 
0a90: 43 61 73 65 20 23 22 20 3c 3c 20 43 61 73 65 20  Case #" << Case 
0aa0: 3c 3c 20 22 2e 2e 2e 22 3b 20 69 66 20 28 45 78  << "..."; if (Ex
0ab0: 70 65 63 74 65 64 20 3d 3d 20 52 65 63 65 69 76  pected == Receiv
0ac0: 65 64 29 20 63 65 72 72 20 3c 3c 20 22 50 41 53  ed) cerr << "PAS
0ad0: 53 45 44 22 20 3c 3c 20 65 6e 64 6c 3b 20 65 6c  SED" << endl; el
0ae0: 73 65 20 7b 20 63 65 72 72 20 3c 3c 20 22 46 41  se { cerr << "FA
0af0: 49 4c 45 44 22 20 3c 3c 20 65 6e 64 6c 3b 20 63  ILED" << endl; c
0b00: 65 72 72 20 3c 3c 20 22 5c 74 45 78 70 65 63 74  err << "\tExpect
0b10: 65 64 3a 20 5c 22 22 20 3c 3c 20 45 78 70 65 63  ed: \"" << Expec
0b20: 74 65 64 20 3c 3c 20 27 5c 22 27 20 3c 3c 20 65  ted << '\"' << e
0b30: 6e 64 6c 3b 20 63 65 72 72 20 3c 3c 20 22 5c 74  ndl; cerr << "\t
0b40: 52 65 63 65 69 76 65 64 3a 20 5c 22 22 20 3c 3c  Received: \"" <<
0b50: 20 52 65 63 65 69 76 65 64 20 3c 3c 20 27 5c 22   Received << '\"
0b60: 27 20 3c 3c 20 65 6e 64 6c 3b 20 7d 20 7d 0d 0a  ' << endl; } }..
0b70: 09 76 6f 69 64 20 74 65 73 74 5f 63 61 73 65 5f  .void test_case_
0b80: 30 28 29 20 7b 20 69 6e 74 20 41 72 72 30 5b 5d  0() { int Arr0[]
0b90: 20 3d 20 7b 30 2c 31 30 7d 3b 20 76 65 63 74 6f   = {0,10}; vecto
0ba0: 72 20 3c 69 6e 74 3e 20 41 72 67 30 28 41 72 72  r <int> Arg0(Arr
0bb0: 30 2c 20 41 72 72 30 20 2b 20 28 73 69 7a 65 6f  0, Arr0 + (sizeo
0bc0: 66 28 41 72 72 30 29 20 2f 20 73 69 7a 65 6f 66  f(Arr0) / sizeof
0bd0: 28 41 72 72 30 5b 30 5d 29 29 29 3b 20 69 6e 74  (Arr0[0]))); int
0be0: 20 41 72 72 31 5b 5d 20 3d 20 7b 30 2c 31 30 7d   Arr1[] = {0,10}
0bf0: 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41  ; vector <int> A
0c00: 72 67 31 28 41 72 72 31 2c 20 41 72 72 31 20 2b  rg1(Arr1, Arr1 +
0c10: 20 28 73 69 7a 65 6f 66 28 41 72 72 31 29 20 2f   (sizeof(Arr1) /
0c20: 20 73 69 7a 65 6f 66 28 41 72 72 31 5b 30 5d 29   sizeof(Arr1[0])
0c30: 29 29 3b 20 69 6e 74 20 41 72 72 32 5b 5d 20 3d  )); int Arr2[] =
0c40: 20 7b 31 30 2c 2d 31 30 7d 3b 20 76 65 63 74 6f   {10,-10}; vecto
0c50: 72 20 3c 69 6e 74 3e 20 41 72 67 32 28 41 72 72  r <int> Arg2(Arr
0c60: 32 2c 20 41 72 72 32 20 2b 20 28 73 69 7a 65 6f  2, Arr2 + (sizeo
0c70: 66 28 41 72 72 32 29 20 2f 20 73 69 7a 65 6f 66  f(Arr2) / sizeof
0c80: 28 41 72 72 32 5b 30 5d 29 29 29 3b 20 69 6e 74  (Arr2[0]))); int
0c90: 20 41 72 72 33 5b 5d 20 3d 20 7b 30 2c 30 7d 3b   Arr3[] = {0,0};
0ca0: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72   vector <int> Ar
0cb0: 67 33 28 41 72 72 33 2c 20 41 72 72 33 20 2b 20  g3(Arr3, Arr3 + 
0cc0: 28 73 69 7a 65 6f 66 28 41 72 72 33 29 20 2f 20  (sizeof(Arr3) / 
0cd0: 73 69 7a 65 6f 66 28 41 72 72 33 5b 30 5d 29 29  sizeof(Arr3[0]))
0ce0: 29 3b 20 64 6f 75 62 6c 65 20 41 72 67 34 20 3d  ); double Arg4 =
0cf0: 20 31 30 2e 30 3b 20 76 65 72 69 66 79 5f 63 61   10.0; verify_ca
0d00: 73 65 28 30 2c 20 41 72 67 34 2c 20 6c 61 72 67  se(0, Arg4, larg
0d10: 65 73 74 43 61 67 65 28 41 72 67 30 2c 20 41 72  estCage(Arg0, Ar
0d20: 67 31 2c 20 41 72 67 32 2c 20 41 72 67 33 29 29  g1, Arg2, Arg3))
0d30: 3b 20 7d 0d 0a 09 76 6f 69 64 20 74 65 73 74 5f  ; }...void test_
0d40: 63 61 73 65 5f 31 28 29 20 7b 20 69 6e 74 20 41  case_1() { int A
0d50: 72 72 30 5b 5d 20 3d 20 7b 30 2c 31 30 2c 30 7d  rr0[] = {0,10,0}
0d60: 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41  ; vector <int> A
0d70: 72 67 30 28 41 72 72 30 2c 20 41 72 72 30 20 2b  rg0(Arr0, Arr0 +
0d80: 20 28 73 69 7a 65 6f 66 28 41 72 72 30 29 20 2f   (sizeof(Arr0) /
0d90: 20 73 69 7a 65 6f 66 28 41 72 72 30 5b 30 5d 29   sizeof(Arr0[0])
0da0: 29 29 3b 20 69 6e 74 20 41 72 72 31 5b 5d 20 3d  )); int Arr1[] =
0db0: 20 7b 30 2c 30 2c 31 30 7d 3b 20 76 65 63 74 6f   {0,0,10}; vecto
0dc0: 72 20 3c 69 6e 74 3e 20 41 72 67 31 28 41 72 72  r <int> Arg1(Arr
0dd0: 31 2c 20 41 72 72 31 20 2b 20 28 73 69 7a 65 6f  1, Arr1 + (sizeo
0de0: 66 28 41 72 72 31 29 20 2f 20 73 69 7a 65 6f 66  f(Arr1) / sizeof
0df0: 28 41 72 72 31 5b 30 5d 29 29 29 3b 20 69 6e 74  (Arr1[0]))); int
0e00: 20 41 72 72 32 5b 5d 20 3d 20 7b 31 2c 2d 36 2c   Arr2[] = {1,-6,
0e10: 34 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e  4}; vector <int>
0e20: 20 41 72 67 32 28 41 72 72 32 2c 20 41 72 72 32   Arg2(Arr2, Arr2
0e30: 20 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 32 29   + (sizeof(Arr2)
0e40: 20 2f 20 73 69 7a 65 6f 66 28 41 72 72 32 5b 30   / sizeof(Arr2[0
0e50: 5d 29 29 29 3b 20 69 6e 74 20 41 72 72 33 5b 5d  ]))); int Arr3[]
0e60: 20 3d 20 7b 34 2c 35 2c 2d 34 7d 3b 20 76 65 63   = {4,5,-4}; vec
0e70: 74 6f 72 20 3c 69 6e 74 3e 20 41 72 67 33 28 41  tor <int> Arg3(A
0e80: 72 72 33 2c 20 41 72 72 33 20 2b 20 28 73 69 7a  rr3, Arr3 + (siz
0e90: 65 6f 66 28 41 72 72 33 29 20 2f 20 73 69 7a 65  eof(Arr3) / size
0ea0: 6f 66 28 41 72 72 33 5b 30 5d 29 29 29 3b 20 64  of(Arr3[0]))); d
0eb0: 6f 75 62 6c 65 20 41 72 67 34 20 3d 20 33 2e 30  ouble Arg4 = 3.0
0ec0: 3b 20 76 65 72 69 66 79 5f 63 61 73 65 28 31 2c  ; verify_case(1,
0ed0: 20 41 72 67 34 2c 20 6c 61 72 67 65 73 74 43 61   Arg4, largestCa
0ee0: 67 65 28 41 72 67 30 2c 20 41 72 67 31 2c 20 41  ge(Arg0, Arg1, A
0ef0: 72 67 32 2c 20 41 72 67 33 29 29 3b 20 7d 0d 0a  rg2, Arg3)); }..
0f00: 09 76 6f 69 64 20 74 65 73 74 5f 63 61 73 65 5f  .void test_case_
0f10: 32 28 29 20 7b 20 69 6e 74 20 41 72 72 30 5b 5d  2() { int Arr0[]
0f20: 20 3d 20 7b 35 30 2c 31 30 2c 33 30 2c 31 35 7d   = {50,10,30,15}
0f30: 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41  ; vector <int> A
0f40: 72 67 30 28 41 72 72 30 2c 20 41 72 72 30 20 2b  rg0(Arr0, Arr0 +
0f50: 20 28 73 69 7a 65 6f 66 28 41 72 72 30 29 20 2f   (sizeof(Arr0) /
0f60: 20 73 69 7a 65 6f 66 28 41 72 72 30 5b 30 5d 29   sizeof(Arr0[0])
0f70: 29 29 3b 20 69 6e 74 20 41 72 72 31 5b 5d 20 3d  )); int Arr1[] =
0f80: 20 7b 2d 31 30 2c 33 30 2c 32 30 2c 34 30 7d 3b   {-10,30,20,40};
0f90: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72   vector <int> Ar
0fa0: 67 31 28 41 72 72 31 2c 20 41 72 72 31 20 2b 20  g1(Arr1, Arr1 + 
0fb0: 28 73 69 7a 65 6f 66 28 41 72 72 31 29 20 2f 20  (sizeof(Arr1) / 
0fc0: 73 69 7a 65 6f 66 28 41 72 72 31 5b 30 5d 29 29  sizeof(Arr1[0]))
0fd0: 29 3b 20 69 6e 74 20 41 72 72 32 5b 5d 20 3d 20  ); int Arr2[] = 
0fe0: 7b 2d 35 2c 2d 31 30 2c 2d 31 35 2c 2d 35 7d 3b  {-5,-10,-15,-5};
0ff0: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72   vector <int> Ar
1000: 67 32 28 41 72 72 32 2c 20 41 72 72 32 20 2b 20  g2(Arr2, Arr2 + 
1010: 28 73 69 7a 65 6f 66 28 41 72 72 32 29 20 2f 20  (sizeof(Arr2) / 
1020: 73 69 7a 65 6f 66 28 41 72 72 32 5b 30 5d 29 29  sizeof(Arr2[0]))
1030: 29 3b 20 69 6e 74 20 41 72 72 33 5b 5d 20 3d 20  ); int Arr3[] = 
1040: 7b 34 30 2c 2d 31 30 2c 2d 31 2c 2d 35 30 7d 3b  {40,-10,-1,-50};
1050: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72   vector <int> Ar
1060: 67 33 28 41 72 72 33 2c 20 41 72 72 33 20 2b 20  g3(Arr3, Arr3 + 
1070: 28 73 69 7a 65 6f 66 28 41 72 72 33 29 20 2f 20  (sizeof(Arr3) / 
1080: 73 69 7a 65 6f 66 28 41 72 72 33 5b 30 5d 29 29  sizeof(Arr3[0]))
1090: 29 3b 20 64 6f 75 62 6c 65 20 41 72 67 34 20 3d  ); double Arg4 =
10a0: 20 34 30 2e 35 32 36 33 31 35 37 38 39 34 37 33   40.526315789473
10b0: 36 38 35 3b 20 76 65 72 69 66 79 5f 63 61 73 65  685; verify_case
10c0: 28 32 2c 20 41 72 67 34 2c 20 6c 61 72 67 65 73  (2, Arg4, larges
10d0: 74 43 61 67 65 28 41 72 67 30 2c 20 41 72 67 31  tCage(Arg0, Arg1
10e0: 2c 20 41 72 67 32 2c 20 41 72 67 33 29 29 3b 20  , Arg2, Arg3)); 
10f0: 7d 0d 0a 09 76 6f 69 64 20 74 65 73 74 5f 63 61  }...void test_ca
1100: 73 65 5f 33 28 29 20 7b 20 69 6e 74 20 41 72 72  se_3() { int Arr
1110: 30 5b 5d 20 3d 20 7b 30 2c 31 30 2c 31 30 2c 30  0[] = {0,10,10,0
1120: 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20  }; vector <int> 
1130: 41 72 67 30 28 41 72 72 30 2c 20 41 72 72 30 20  Arg0(Arr0, Arr0 
1140: 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 30 29 20  + (sizeof(Arr0) 
1150: 2f 20 73 69 7a 65 6f 66 28 41 72 72 30 5b 30 5d  / sizeof(Arr0[0]
1160: 29 29 29 3b 20 69 6e 74 20 41 72 72 31 5b 5d 20  ))); int Arr1[] 
1170: 3d 20 7b 30 2c 30 2c 31 30 2c 31 30 7d 3b 20 76  = {0,0,10,10}; v
1180: 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72 67 31  ector <int> Arg1
1190: 28 41 72 72 31 2c 20 41 72 72 31 20 2b 20 28 73  (Arr1, Arr1 + (s
11a0: 69 7a 65 6f 66 28 41 72 72 31 29 20 2f 20 73 69  izeof(Arr1) / si
11b0: 7a 65 6f 66 28 41 72 72 31 5b 30 5d 29 29 29 3b  zeof(Arr1[0])));
11c0: 20 69 6e 74 20 41 72 72 32 5b 5d 20 3d 20 7b 31   int Arr2[] = {1
11d0: 2c 30 2c 2d 31 2c 30 7d 3b 20 76 65 63 74 6f 72  ,0,-1,0}; vector
11e0: 20 3c 69 6e 74 3e 20 41 72 67 32 28 41 72 72 32   <int> Arg2(Arr2
11f0: 2c 20 41 72 72 32 20 2b 20 28 73 69 7a 65 6f 66  , Arr2 + (sizeof
1200: 28 41 72 72 32 29 20 2f 20 73 69 7a 65 6f 66 28  (Arr2) / sizeof(
1210: 41 72 72 32 5b 30 5d 29 29 29 3b 20 69 6e 74 20  Arr2[0]))); int 
1220: 41 72 72 33 5b 5d 20 3d 20 7b 30 2c 31 2c 30 2c  Arr3[] = {0,1,0,
1230: 2d 31 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74  -1}; vector <int
1240: 3e 20 41 72 67 33 28 41 72 72 33 2c 20 41 72 72  > Arg3(Arr3, Arr
1250: 33 20 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 33  3 + (sizeof(Arr3
1260: 29 20 2f 20 73 69 7a 65 6f 66 28 41 72 72 33 5b  ) / sizeof(Arr3[
1270: 30 5d 29 29 29 3b 20 64 6f 75 62 6c 65 20 41 72  0]))); double Ar
1280: 67 34 20 3d 20 31 30 2e 30 3b 20 76 65 72 69 66  g4 = 10.0; verif
1290: 79 5f 63 61 73 65 28 33 2c 20 41 72 67 34 2c 20  y_case(3, Arg4, 
12a0: 6c 61 72 67 65 73 74 43 61 67 65 28 41 72 67 30  largestCage(Arg0
12b0: 2c 20 41 72 67 31 2c 20 41 72 67 32 2c 20 41 72  , Arg1, Arg2, Ar
12c0: 67 33 29 29 3b 20 7d 0d 0a 09 76 6f 69 64 20 74  g3)); }...void t
12d0: 65 73 74 5f 63 61 73 65 5f 34 28 29 20 7b 20 69  est_case_4() { i
12e0: 6e 74 20 41 72 72 30 5b 5d 20 3d 20 7b 31 33 2c  nt Arr0[] = {13,
12f0: 35 30 2c 31 30 30 2c 34 30 2c 2d 31 30 30 7d 3b  50,100,40,-100};
1300: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72   vector <int> Ar
1310: 67 30 28 41 72 72 30 2c 20 41 72 72 30 20 2b 20  g0(Arr0, Arr0 + 
1320: 28 73 69 7a 65 6f 66 28 41 72 72 30 29 20 2f 20  (sizeof(Arr0) / 
1330: 73 69 7a 65 6f 66 28 41 72 72 30 5b 30 5d 29 29  sizeof(Arr0[0]))
1340: 29 3b 20 69 6e 74 20 41 72 72 31 5b 5d 20 3d 20  ); int Arr1[] = 
1350: 7b 32 30 2c 32 30 2c 2d 31 35 30 2c 2d 34 30 2c  {20,20,-150,-40,
1360: 36 33 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74  63}; vector <int
1370: 3e 20 41 72 67 31 28 41 72 72 31 2c 20 41 72 72  > Arg1(Arr1, Arr
1380: 31 20 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 31  1 + (sizeof(Arr1
1390: 29 20 2f 20 73 69 7a 65 6f 66 28 41 72 72 31 5b  ) / sizeof(Arr1[
13a0: 30 5d 29 29 29 3b 20 69 6e 74 20 41 72 72 32 5b  0]))); int Arr2[
13b0: 5d 20 3d 20 7b 34 2c 35 30 2c 34 31 2c 2d 34 31  ] = {4,50,41,-41
13c0: 2c 2d 37 39 7d 3b 20 76 65 63 74 6f 72 20 3c 69  ,-79}; vector <i
13d0: 6e 74 3e 20 41 72 67 32 28 41 72 72 32 2c 20 41  nt> Arg2(Arr2, A
13e0: 72 72 32 20 2b 20 28 73 69 7a 65 6f 66 28 41 72  rr2 + (sizeof(Ar
13f0: 72 32 29 20 2f 20 73 69 7a 65 6f 66 28 41 72 72  r2) / sizeof(Arr
1400: 32 5b 30 5d 29 29 29 3b 20 69 6e 74 20 41 72 72  2[0]))); int Arr
1410: 33 5b 5d 20 3d 20 7b 31 2c 31 2c 31 2c 33 2c 2d  3[] = {1,1,1,3,-
1420: 31 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e  1}; vector <int>
1430: 20 41 72 67 33 28 41 72 72 33 2c 20 41 72 72 33   Arg3(Arr3, Arr3
1440: 20 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 33 29   + (sizeof(Arr3)
1450: 20 2f 20 73 69 7a 65 6f 66 28 41 72 72 33 5b 30   / sizeof(Arr3[0
1460: 5d 29 29 29 3b 20 64 6f 75 62 6c 65 20 41 72 67  ]))); double Arg
1470: 34 20 3d 20 32 31 32 2e 37 38 36 38 38 35 32 34  4 = 212.78688524
1480: 35 39 30 31 36 33 3b 20 76 65 72 69 66 79 5f 63  590163; verify_c
1490: 61 73 65 28 34 2c 20 41 72 67 34 2c 20 6c 61 72  ase(4, Arg4, lar
14a0: 67 65 73 74 43 61 67 65 28 41 72 67 30 2c 20 41  gestCage(Arg0, A
14b0: 72 67 31 2c 20 41 72 67 32 2c 20 41 72 67 33 29  rg1, Arg2, Arg3)
14c0: 29 3b 20 7d 0d 0a 09 76 6f 69 64 20 74 65 73 74  ); }...void test
14d0: 5f 63 61 73 65 5f 35 28 29 20 7b 20 69 6e 74 20  _case_5() { int 
14e0: 41 72 72 30 5b 5d 20 3d 20 7b 30 2c 31 30 7d 3b  Arr0[] = {0,10};
14f0: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72   vector <int> Ar
1500: 67 30 28 41 72 72 30 2c 20 41 72 72 30 20 2b 20  g0(Arr0, Arr0 + 
1510: 28 73 69 7a 65 6f 66 28 41 72 72 30 29 20 2f 20  (sizeof(Arr0) / 
1520: 73 69 7a 65 6f 66 28 41 72 72 30 5b 30 5d 29 29  sizeof(Arr0[0]))
1530: 29 3b 20 69 6e 74 20 41 72 72 31 5b 5d 20 3d 20  ); int Arr1[] = 
1540: 7b 30 2c 30 7d 3b 20 76 65 63 74 6f 72 20 3c 69  {0,0}; vector <i
1550: 6e 74 3e 20 41 72 67 31 28 41 72 72 31 2c 20 41  nt> Arg1(Arr1, A
1560: 72 72 31 20 2b 20 28 73 69 7a 65 6f 66 28 41 72  rr1 + (sizeof(Ar
1570: 72 31 29 20 2f 20 73 69 7a 65 6f 66 28 41 72 72  r1) / sizeof(Arr
1580: 31 5b 30 5d 29 29 29 3b 20 69 6e 74 20 41 72 72  1[0]))); int Arr
1590: 32 5b 5d 20 3d 20 7b 35 2c 35 7d 3b 20 76 65 63  2[] = {5,5}; vec
15a0: 74 6f 72 20 3c 69 6e 74 3e 20 41 72 67 32 28 41  tor <int> Arg2(A
15b0: 72 72 32 2c 20 41 72 72 32 20 2b 20 28 73 69 7a  rr2, Arr2 + (siz
15c0: 65 6f 66 28 41 72 72 32 29 20 2f 20 73 69 7a 65  eof(Arr2) / size
15d0: 6f 66 28 41 72 72 32 5b 30 5d 29 29 29 3b 20 69  of(Arr2[0]))); i
15e0: 6e 74 20 41 72 72 33 5b 5d 20 3d 20 7b 33 2c 33  nt Arr3[] = {3,3
15f0: 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20  }; vector <int> 
1600: 41 72 67 33 28 41 72 72 33 2c 20 41 72 72 33 20  Arg3(Arr3, Arr3 
1610: 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 33 29 20  + (sizeof(Arr3) 
1620: 2f 20 73 69 7a 65 6f 66 28 41 72 72 33 5b 30 5d  / sizeof(Arr3[0]
1630: 29 29 29 3b 20 64 6f 75 62 6c 65 20 41 72 67 34  ))); double Arg4
1640: 20 3d 20 31 30 2e 30 3b 20 76 65 72 69 66 79 5f   = 10.0; verify_
1650: 63 61 73 65 28 35 2c 20 41 72 67 34 2c 20 6c 61  case(5, Arg4, la
1660: 72 67 65 73 74 43 61 67 65 28 41 72 67 30 2c 20  rgestCage(Arg0, 
1670: 41 72 67 31 2c 20 41 72 67 32 2c 20 41 72 67 33  Arg1, Arg2, Arg3
1680: 29 29 3b 20 7d 0d 0a 09 76 6f 69 64 20 74 65 73  )); }...void tes
1690: 74 5f 63 61 73 65 5f 36 28 29 20 7b 20 69 6e 74  t_case_6() { int
16a0: 20 41 72 72 30 5b 5d 20 3d 20 7b 2d 34 39 2c 2d   Arr0[] = {-49,-
16b0: 34 36 33 2c 2d 32 31 32 2c 2d 32 30 34 2c 2d 35  463,-212,-204,-5
16c0: 35 37 2c 2d 36 37 2c 2d 33 37 34 2c 2d 33 33 35  57,-67,-374,-335
16d0: 2c 2d 35 39 30 2c 2d 34 7d 3b 20 76 65 63 74 6f  ,-590,-4}; vecto
16e0: 72 20 3c 69 6e 74 3e 20 41 72 67 30 28 41 72 72  r <int> Arg0(Arr
16f0: 30 2c 20 41 72 72 30 20 2b 20 28 73 69 7a 65 6f  0, Arr0 + (sizeo
1700: 66 28 41 72 72 30 29 20 2f 20 73 69 7a 65 6f 66  f(Arr0) / sizeof
1710: 28 41 72 72 30 5b 30 5d 29 29 29 3b 20 69 6e 74  (Arr0[0]))); int
1720: 20 41 72 72 31 5b 5d 20 3d 20 7b 33 35 32 2c 34   Arr1[] = {352,4
1730: 39 31 2c 32 38 30 2c 33 35 35 2c 31 32 39 2c 37  91,280,355,129,7
1740: 38 2c 34 30 34 2c 35 39 37 2c 35 35 33 2c 34 34  8,404,597,553,44
1750: 35 7d 3b 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e  5}; vector <int>
1760: 20 41 72 67 31 28 41 72 72 31 2c 20 41 72 72 31   Arg1(Arr1, Arr1
1770: 20 2b 20 28 73 69 7a 65 6f 66 28 41 72 72 31 29   + (sizeof(Arr1)
1780: 20 2f 20 73 69 7a 65 6f 66 28 41 72 72 31 5b 30   / sizeof(Arr1[0
1790: 5d 29 29 29 3b 20 69 6e 74 20 41 72 72 32 5b 5d  ]))); int Arr2[]
17a0: 20 3d 20 7b 2d 38 32 2c 35 37 2c 2d 32 33 2c 2d   = {-82,57,-23,-
17b0: 33 32 2c 38 39 2c 2d 37 32 2c 32 37 2c 31 37 2c  32,89,-72,27,17,
17c0: 31 30 30 2c 2d 39 34 7d 3b 20 76 65 63 74 6f 72  100,-94}; vector
17d0: 20 3c 69 6e 74 3e 20 41 72 67 32 28 41 72 72 32   <int> Arg2(Arr2
17e0: 2c 20 41 72 72 32 20 2b 20 28 73 69 7a 65 6f 66  , Arr2 + (sizeof
17f0: 28 41 72 72 32 29 20 2f 20 73 69 7a 65 6f 66 28  (Arr2) / sizeof(
1800: 41 72 72 32 5b 30 5d 29 29 29 3b 20 69 6e 74 20  Arr2[0]))); int 
1810: 41 72 72 33 5b 5d 20 3d 20 7b 2d 39 2c 2d 35 38  Arr3[] = {-9,-58
1820: 2c 39 2c 2d 31 34 2c 35 36 2c 37 35 2c 2d 33 32  ,9,-14,56,75,-32
1830: 2c 2d 39 38 2c 2d 38 31 2c 2d 34 33 7d 3b 20 76  ,-98,-81,-43}; v
1840: 65 63 74 6f 72 20 3c 69 6e 74 3e 20 41 72 67 33  ector <int> Arg3
1850: 28 41 72 72 33 2c 20 41 72 72 33 20 2b 20 28 73  (Arr3, Arr3 + (s
1860: 69 7a 65 6f 66 28 41 72 72 33 29 20 2f 20 73 69  izeof(Arr3) / si
1870: 7a 65 6f 66 28 41 72 72 33 5b 30 5d 29 29 29 3b  zeof(Arr3[0])));
1880: 20 64 6f 75 62 6c 65 20 41 72 67 34 20 3d 20 32   double Arg4 = 2
1890: 35 2e 34 36 37 35 33 32 34 36 37 35 33 32 34 36  5.46753246753246
18a0: 38 3b 20 76 65 72 69 66 79 5f 63 61 73 65 28 36  8; verify_case(6
18b0: 2c 20 41 72 67 34 2c 20 6c 61 72 67 65 73 74 43  , Arg4, largestC
18c0: 61 67 65 28 41 72 67 30 2c 20 41 72 67 31 2c 20  age(Arg0, Arg1, 
18d0: 41 72 67 32 2c 20 41 72 67 33 29 29 3b 20 7d 0d  Arg2, Arg3)); }.
18e0: 0a 0d 0a 2f 2f 20 45 4e 44 20 43 55 54 20 48 45  ...// END CUT HE
18f0: 52 45 0d 0a 7d 3b 0d 0a 2f 2f 20 42 45 47 49 4e  RE..};..// BEGIN
1900: 20 43 55 54 20 48 45 52 45 20 0d 0a 69 6e 74 20   CUT HERE ..int 
1910: 6d 61 69 6e 28 29 20 7b 0d 0a 09 43 61 74 63 68  main() {...Catch
1920: 54 68 65 4d 69 63 65 28 29 2e 72 75 6e 5f 74 65  TheMice().run_te
1930: 73 74 28 2d 31 29 3b 0d 0a 7d 0d 0a 2f 2f 20 45  st(-1);..}..// E
1940: 4e 44 20 43 55 54 20 48 45 52 45 0d 0a           ND CUT HERE..