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 63 73 74 72 69 6e 67 3e 0d 0a 75 73 69 6e 67 <cstring>..using
0150: 20 6e 61 6d 65 73 70 61 63 65 20 73 74 64 3b 0d namespace std;.
0160: 0a 74 79 70 65 64 65 66 20 6c 6f 6e 67 20 6c 6f .typedef long lo
0170: 6e 67 20 4c 4c 3b 0d 0a 74 79 70 65 64 65 66 20 ng LL;..typedef
0180: 63 6f 6d 70 6c 65 78 3c 64 6f 75 62 6c 65 3e 20 complex<double>
0190: 43 4d 50 3b 0d 0a 0d 0a 63 6c 61 73 73 20 4d 75 CMP;....class Mu
01a0: 64 64 79 52 6f 61 64 20 7b 20 70 75 62 6c 69 63 ddyRoad { public
01b0: 3a 0d 0a 09 64 6f 75 62 6c 65 20 67 65 74 45 78 :...double getEx
01c0: 70 65 63 74 65 64 56 61 6c 75 65 28 76 65 63 74 pectedValue(vect
01d0: 6f 72 20 3c 69 6e 74 3e 20 72 6f 61 64 29 20 0d or <int> road) .
01e0: 0a 09 7b 0d 0a 09 09 64 6f 75 62 6c 65 20 64 70 ..{....double dp
01f0: 5b 35 30 5d 5b 32 5d 3b 0d 0a 09 09 66 6f 72 28 [50][2];....for(
0200: 73 69 7a 65 5f 74 20 67 3d 30 3b 20 67 3c 72 6f size_t g=0; g<ro
0210: 61 64 2e 73 69 7a 65 28 29 3b 20 2b 2b 67 29 0d ad.size(); ++g).
0220: 0a 09 09 09 66 6f 72 28 69 6e 74 20 6c 65 66 74 ....for(int left
0230: 6d 75 64 3d 30 3b 20 6c 65 66 74 6d 75 64 3c 32 mud=0; leftmud<2
0240: 3b 20 2b 2b 6c 65 66 74 6d 75 64 29 0d 0a 09 09 ; ++leftmud)....
0250: 09 09 69 66 28 20 67 20 3e 3d 20 32 20 29 0d 0a ..if( g >= 2 )..
0260: 09 09 09 09 7b 0d 0a 09 09 09 09 09 63 6f 6e 73 ....{.......cons
0270: 74 20 64 6f 75 62 6c 65 20 70 20 3d 20 72 6f 61 t double p = roa
0280: 64 5b 67 2d 32 5d 20 2f 20 31 30 30 2e 30 3b 0d d[g-2] / 100.0;.
0290: 0a 09 09 09 09 09 63 6f 6e 73 74 20 64 6f 75 62 ......const doub
02a0: 6c 65 20 71 20 3d 20 28 6c 65 66 74 6d 75 64 3d le q = (leftmud=
02b0: 3d 31 20 3f 20 31 2e 30 20 3a 20 72 6f 61 64 5b =1 ? 1.0 : road[
02c0: 67 2d 31 5d 20 2f 20 31 30 30 2e 30 29 3b 0d 0a g-1] / 100.0);..
02d0: 09 09 09 09 09 64 6f 75 62 6c 65 20 65 20 3d 20 .....double e =
02e0: 30 3b 0d 0a 09 09 09 09 09 65 20 2b 3d 20 28 31 0;.......e += (1
02f0: 2d 70 29 20 2a 20 28 31 2d 71 29 20 2a 20 64 70 -p) * (1-q) * dp
0300: 5b 67 2d 32 5d 5b 30 5d 3b 0d 0a 09 09 09 09 09 [g-2][0];.......
0310: 65 20 2b 3d 20 28 31 2d 70 29 20 2a 20 71 20 2a e += (1-p) * q *
0320: 20 64 70 5b 67 2d 32 5d 5b 30 5d 3b 0d 0a 09 09 dp[g-2][0];....
0330: 09 09 09 65 20 2b 3d 20 70 20 2a 20 28 31 2d 71 ...e += p * (1-q
0340: 29 20 2a 20 64 70 5b 67 2d 31 5d 5b 31 5d 3b 0d ) * dp[g-1][1];.
0350: 0a 09 09 09 09 09 65 20 2b 3d 20 70 20 2a 20 71 ......e += p * q
0360: 20 2a 20 28 31 20 2b 20 64 70 5b 67 2d 32 5d 5b * (1 + dp[g-2][
0370: 30 5d 29 3b 0d 0a 09 09 09 09 09 64 70 5b 67 5d 0]);.......dp[g]
0380: 5b 6c 65 66 74 6d 75 64 5d 20 3d 20 65 3b 0d 0a [leftmud] = e;..
0390: 09 09 09 09 7d 0d 0a 09 09 09 09 65 6c 73 65 20 ....}......else
03a0: 69 66 28 20 67 20 3d 3d 20 31 20 29 0d 0a 09 09 if( g == 1 )....
03b0: 09 09 7b 0d 0a 09 09 09 09 09 64 70 5b 67 5d 5b ..{.......dp[g][
03c0: 6c 65 66 74 6d 75 64 5d 20 3d 20 30 3b 0d 0a 09 leftmud] = 0;...
03d0: 09 09 09 7d 0d 0a 09 09 09 09 65 6c 73 65 0d 0a ...}......else..
03e0: 09 09 09 09 7b 0d 0a 09 09 09 09 09 64 70 5b 67 ....{.......dp[g
03f0: 5d 5b 6c 65 66 74 6d 75 64 5d 20 3d 20 30 3b 0d ][leftmud] = 0;.
0400: 0a 09 09 09 09 7d 0d 0a 09 09 72 65 74 75 72 6e .....}....return
0410: 20 64 70 5b 72 6f 61 64 2e 73 69 7a 65 28 29 2d dp[road.size()-
0420: 31 5d 5b 30 5d 3b 0d 0a 09 7d 0d 0a 7d 3b 0d 0a 1][0];...}..};..
0430: 0d 0a 2f 2f 20 42 45 47 49 4e 20 43 55 54 20 48 ..// BEGIN CUT H
0440: 45 52 45 0d 0a 23 69 6e 63 6c 75 64 65 20 3c 63 ERE..#include <c
0450: 74 69 6d 65 3e 0d 0a 64 6f 75 62 6c 65 20 73 74 time>..double st
0460: 61 72 74 5f 74 69 6d 65 3b 20 73 74 72 69 6e 67 art_time; string
0470: 20 74 69 6d 65 72 28 29 0d 0a 20 7b 20 6f 73 74 timer().. { ost
0480: 72 69 6e 67 73 74 72 65 61 6d 20 6f 73 3b 20 6f ringstream os; o
0490: 73 20 3c 3c 20 22 20 28 22 20 3c 3c 20 69 6e 74 s << " (" << int
04a0: 28 28 63 6c 6f 63 6b 28 29 2d 73 74 61 72 74 5f ((clock()-start_
04b0: 74 69 6d 65 29 2f 43 4c 4f 43 4b 53 5f 50 45 52 time)/CLOCKS_PER
04c0: 5f 53 45 43 2a 31 30 30 30 29 20 3c 3c 20 22 20 _SEC*1000) << "
04d0: 6d 73 65 63 29 22 3b 20 72 65 74 75 72 6e 20 6f msec)"; return o
04e0: 73 2e 73 74 72 28 29 3b 20 7d 0d 0a 74 65 6d 70 s.str(); }..temp
04f0: 6c 61 74 65 3c 74 79 70 65 6e 61 6d 65 20 54 3e late<typename T>
0500: 20 6f 73 74 72 65 61 6d 26 20 6f 70 65 72 61 74 ostream& operat
0510: 6f 72 3c 3c 28 6f 73 74 72 65 61 6d 26 20 6f 73 or<<(ostream& os
0520: 2c 20 63 6f 6e 73 74 20 76 65 63 74 6f 72 3c 54 , const vector<T
0530: 3e 26 20 76 29 0d 0a 20 7b 20 6f 73 20 3c 3c 20 >& v).. { os <<
0540: 22 7b 20 22 3b 0d 0a 20 20 20 66 6f 72 28 74 79 "{ ";.. for(ty
0550: 70 65 6e 61 6d 65 20 76 65 63 74 6f 72 3c 54 3e pename vector<T>
0560: 3a 3a 63 6f 6e 73 74 5f 69 74 65 72 61 74 6f 72 ::const_iterator
0570: 20 69 74 3d 76 2e 62 65 67 69 6e 28 29 3b 20 69 it=v.begin(); i
0580: 74 21 3d 76 2e 65 6e 64 28 29 3b 20 2b 2b 69 74 t!=v.end(); ++it
0590: 29 0d 0a 20 20 20 6f 73 20 3c 3c 20 27 5c 22 27 ).. os << '\"'
05a0: 20 3c 3c 20 2a 69 74 20 3c 3c 20 27 5c 22 27 20 << *it << '\"'
05b0: 3c 3c 20 28 69 74 2b 31 3d 3d 76 2e 65 6e 64 28 << (it+1==v.end(
05c0: 29 20 3f 20 22 22 20 3a 20 22 2c 20 22 29 3b 20 ) ? "" : ", ");
05d0: 6f 73 20 3c 3c 20 22 20 7d 22 3b 20 72 65 74 75 os << " }"; retu
05e0: 72 6e 20 6f 73 3b 20 7d 0d 0a 76 6f 69 64 20 76 rn os; }..void v
05f0: 65 72 69 66 79 5f 63 61 73 65 28 63 6f 6e 73 74 erify_case(const
0600: 20 64 6f 75 62 6c 65 26 20 45 78 70 65 63 74 65 double& Expecte
0610: 64 2c 20 63 6f 6e 73 74 20 64 6f 75 62 6c 65 26 d, const double&
0620: 20 52 65 63 65 69 76 65 64 29 20 7b 0d 0a 20 62 Received) {.. b
0630: 6f 6f 6c 20 6f 6b 20 3d 20 28 61 62 73 28 45 78 ool ok = (abs(Ex
0640: 70 65 63 74 65 64 20 2d 20 52 65 63 65 69 76 65 pected - Receive
0650: 64 29 20 3c 20 31 65 2d 39 29 3b 0d 0a 20 69 66 d) < 1e-9);.. if
0660: 28 6f 6b 29 20 63 65 72 72 20 3c 3c 20 22 50 41 (ok) cerr << "PA
0670: 53 53 45 44 22 20 3c 3c 20 74 69 6d 65 72 28 29 SSED" << timer()
0680: 20 3c 3c 20 65 6e 64 6c 3b 20 20 65 6c 73 65 20 << endl; else
0690: 7b 20 63 65 72 72 20 3c 3c 20 22 46 41 49 4c 45 { cerr << "FAILE
06a0: 44 22 20 3c 3c 20 74 69 6d 65 72 28 29 20 3c 3c D" << timer() <<
06b0: 20 65 6e 64 6c 3b 0d 0a 20 63 65 72 72 20 3c 3c endl;.. cerr <<
06c0: 20 22 5c 74 6f 3a 20 5c 22 22 20 3c 3c 20 45 78 "\to: \"" << Ex
06d0: 70 65 63 74 65 64 20 3c 3c 20 27 5c 22 27 20 3c pected << '\"' <
06e0: 3c 20 65 6e 64 6c 20 3c 3c 20 22 5c 74 78 3a 20 < endl << "\tx:
06f0: 5c 22 22 20 3c 3c 20 52 65 63 65 69 76 65 64 20 \"" << Received
0700: 3c 3c 20 27 5c 22 27 20 3c 3c 20 65 6e 64 6c 3b << '\"' << endl;
0710: 20 7d 20 7d 0d 0a 23 64 65 66 69 6e 65 20 43 41 } }..#define CA
0720: 53 45 28 4e 29 20 7b 63 65 72 72 20 3c 3c 20 22 SE(N) {cerr << "
0730: 54 65 73 74 20 43 61 73 65 20 23 22 20 3c 3c 20 Test Case #" <<
0740: 4e 20 3c 3c 20 22 2e 2e 2e 22 20 3c 3c 20 66 6c N << "..." << fl
0750: 75 73 68 3b 20 73 74 61 72 74 5f 74 69 6d 65 3d ush; start_time=
0760: 63 6c 6f 63 6b 28 29 3b 0d 0a 23 64 65 66 69 6e clock();..#defin
0770: 65 20 45 4e 44 09 20 76 65 72 69 66 79 5f 63 61 e END. verify_ca
0780: 73 65 28 5f 2c 20 4d 75 64 64 79 52 6f 61 64 28 se(_, MuddyRoad(
0790: 29 2e 67 65 74 45 78 70 65 63 74 65 64 56 61 6c ).getExpectedVal
07a0: 75 65 28 72 6f 61 64 29 29 3b 7d 0d 0a 69 6e 74 ue(road));}..int
07b0: 20 6d 61 69 6e 28 29 7b 0d 0a 0d 0a 43 41 53 45 main(){....CASE
07c0: 28 30 29 0d 0a 09 69 6e 74 20 72 6f 61 64 5f 5b (0)...int road_[
07d0: 5d 20 3d 20 7b 30 2c 20 36 30 2c 20 36 30 2c 20 ] = {0, 60, 60,
07e0: 30 7d 3b 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 0};... vector <
07f0: 69 6e 74 3e 20 72 6f 61 64 28 72 6f 61 64 5f 2c int> road(road_,
0800: 20 72 6f 61 64 5f 2b 73 69 7a 65 6f 66 28 72 6f road_+sizeof(ro
0810: 61 64 5f 29 2f 73 69 7a 65 6f 66 28 2a 72 6f 61 ad_)/sizeof(*roa
0820: 64 5f 29 29 3b 20 0d 0a 09 64 6f 75 62 6c 65 20 d_)); ...double
0830: 5f 20 3d 20 30 2e 33 36 3b 20 0d 0a 45 4e 44 0d _ = 0.36; ..END.
0840: 0a 43 41 53 45 28 31 29 0d 0a 09 69 6e 74 20 72 .CASE(1)...int r
0850: 6f 61 64 5f 5b 5d 20 3d 20 7b 30 2c 20 35 30 2c oad_[] = {0, 50,
0860: 20 35 30 2c 20 35 30 2c 20 35 30 2c 20 30 7d 3b 50, 50, 50, 0};
0870: 0d 0a 09 20 20 76 65 63 74 6f 72 20 3c 69 6e 74 ... vector <int
0880: 3e 20 72 6f 61 64 28 72 6f 61 64 5f 2c 20 72 6f > road(road_, ro
0890: 61 64 5f 2b 73 69 7a 65 6f 66 28 72 6f 61 64 5f ad_+sizeof(road_
08a0: 29 2f 73 69 7a 65 6f 66 28 2a 72 6f 61 64 5f 29 )/sizeof(*road_)
08b0: 29 3b 20 0d 0a 09 64 6f 75 62 6c 65 20 5f 20 3d ); ...double _ =
08c0: 20 30 2e 35 36 32 35 3b 20 0d 0a 45 4e 44 0d 0a 0.5625; ..END..
08d0: 43 41 53 45 28 32 29 0d 0a 09 69 6e 74 20 72 6f CASE(2)...int ro
08e0: 61 64 5f 5b 5d 20 3d 20 7b 30 2c 20 30 2c 20 31 ad_[] = {0, 0, 1
08f0: 30 30 2c 20 31 30 30 2c 20 31 30 30 2c 20 31 30 00, 100, 100, 10
0900: 30 2c 20 31 30 30 2c 20 31 30 30 2c 20 30 2c 20 0, 100, 100, 0,
0910: 30 2c 20 31 30 30 2c 20 30 7d 3b 0d 0a 09 20 20 0, 100, 0};...
0920: 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 72 6f 61 vector <int> roa
0930: 64 28 72 6f 61 64 5f 2c 20 72 6f 61 64 5f 2b 73 d(road_, road_+s
0940: 69 7a 65 6f 66 28 72 6f 61 64 5f 29 2f 73 69 7a izeof(road_)/siz
0950: 65 6f 66 28 2a 72 6f 61 64 5f 29 29 3b 20 0d 0a eof(*road_)); ..
0960: 09 64 6f 75 62 6c 65 20 5f 20 3d 20 33 2e 30 3b .double _ = 3.0;
0970: 20 0d 0a 45 4e 44 0d 0a 43 41 53 45 28 33 29 0d ..END..CASE(3).
0980: 0a 09 69 6e 74 20 72 6f 61 64 5f 5b 5d 20 3d 20 ..int road_[] =
0990: 7b 30 2c 20 31 32 2c 20 33 34 2c 20 35 36 2c 20 {0, 12, 34, 56,
09a0: 37 38 2c 20 39 31 2c 20 32 33 2c 20 34 35 2c 20 78, 91, 23, 45,
09b0: 36 37 2c 20 38 39 2c 20 30 7d 3b 0d 0a 09 20 20 67, 89, 0};...
09c0: 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 72 6f 61 vector <int> roa
09d0: 64 28 72 6f 61 64 5f 2c 20 72 6f 61 64 5f 2b 73 d(road_, road_+s
09e0: 69 7a 65 6f 66 28 72 6f 61 64 5f 29 2f 73 69 7a izeof(road_)/siz
09f0: 65 6f 66 28 2a 72 6f 61 64 5f 29 29 3b 20 0d 0a eof(*road_)); ..
0a00: 09 64 6f 75 62 6c 65 20 5f 20 3d 20 31 2e 37 33 .double _ = 1.73
0a10: 35 32 35 33 39 34 32 30 30 33 31 39 32 33 3b 20 52539420031923;
0a20: 0d 0a 45 4e 44 0d 0a 43 41 53 45 28 34 29 0d 0a ..END..CASE(4)..
0a30: 09 69 6e 74 20 72 6f 61 64 5f 5b 5d 20 3d 20 7b .int road_[] = {
0a40: 30 2c 20 35 30 2c 20 35 30 2c 20 31 30 30 2c 20 0, 50, 50, 100,
0a50: 35 30 2c 20 31 30 30 2c 20 35 30 2c 20 35 30 2c 50, 100, 50, 50,
0a60: 20 31 30 30 2c 20 36 36 2c 20 30 7d 3b 0d 0a 09 100, 66, 0};...
0a70: 20 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 72 vector <int> r
0a80: 6f 61 64 28 72 6f 61 64 5f 2c 20 72 6f 61 64 5f oad(road_, road_
0a90: 2b 73 69 7a 65 6f 66 28 72 6f 61 64 5f 29 2f 73 +sizeof(road_)/s
0aa0: 69 7a 65 6f 66 28 2a 72 6f 61 64 5f 29 29 3b 20 izeof(*road_));
0ab0: 0d 0a 09 64 6f 75 62 6c 65 20 5f 20 3d 20 32 2e ...double _ = 2.
0ac0: 32 38 38 31 32 35 3b 20 0d 0a 45 4e 44 0d 0a 43 288125; ..END..C
0ad0: 41 53 45 28 35 29 0d 0a 69 6e 74 20 72 6f 61 64 ASE(5)..int road
0ae0: 5f 5b 5d 20 3d 20 7b 30 2c 35 30 2c 35 30 2c 35 _[] = {0,50,50,5
0af0: 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 0,50,50,50,50,50
0b00: 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c ,50,50,50,50,50,
0b10: 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 50,50,50,50,50,5
0b20: 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 0,50,50,50,50,50
0b30: 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c ,50,50,50,50,50,
0b40: 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 50,50,50,50,50,5
0b50: 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 0,50,50,50,50,50
0b60: 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c 35 30 2c ,50,50,50,50,50,
0b70: 35 30 2c 35 30 2c 35 30 2c 30 7d 3b 0d 0a 09 20 50,50,50,0};...
0b80: 20 76 65 63 74 6f 72 20 3c 69 6e 74 3e 20 72 6f vector <int> ro
0b90: 61 64 28 72 6f 61 64 5f 2c 20 72 6f 61 64 5f 2b ad(road_, road_+
0ba0: 73 69 7a 65 6f 66 28 72 6f 61 64 5f 29 2f 73 69 sizeof(road_)/si
0bb0: 7a 65 6f 66 28 2a 72 6f 61 64 5f 29 29 3b 20 0d zeof(*road_)); .
0bc0: 0a 09 64 6f 75 62 6c 65 20 5f 20 3d 20 31 2e 30 ..double _ = 1.0
0bd0: 3b 20 0d 0a 45 4e 44 0d 0a 43 41 53 45 28 36 29 ; ..END..CASE(6)
0be0: 0d 0a 09 69 6e 74 20 72 6f 61 64 5f 5b 5d 20 3d ...int road_[] =
0bf0: 20 7b 30 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c {0,1,1,1,1,1,1,
0c00: 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 1,1,1,1,1,1,1,1,
0c10: 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 1,1,1,1,1,1,1,1,
0c20: 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 1,1,1,1,1,1,1,1,
0c30: 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 1,1,1,1,1,1,1,1,
0c40: 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 31 2c 1,1,1,1,1,1,1,1,
0c50: 31 2c 31 2c 30 7d 3b 0d 0a 09 20 20 76 65 63 74 1,1,0};... vect
0c60: 6f 72 20 3c 69 6e 74 3e 20 72 6f 61 64 28 72 6f or <int> road(ro
0c70: 61 64 5f 2c 20 72 6f 61 64 5f 2b 73 69 7a 65 6f ad_, road_+sizeo
0c80: 66 28 72 6f 61 64 5f 29 2f 73 69 7a 65 6f 66 28 f(road_)/sizeof(
0c90: 2a 72 6f 61 64 5f 29 29 3b 20 0d 0a 09 64 6f 75 *road_)); ...dou
0ca0: 62 6c 65 20 5f 20 3d 20 2d 31 3b 20 0d 0a 45 4e ble _ = -1; ..EN
0cb0: 44 0d 0a 0d 0a 7d 0d 0a 2f 2f 20 45 4e 44 20 43 D....}..// END C
0cc0: 55 54 20 48 45 52 45 0d 0a UT HERE..