Cody

Problem 1897. GJam 2014 China Rd A: Rational Number Tree

Solution 3213618

Submitted on 14 Oct 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
tic v=[281 87 ]; vexp=[64903 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

2   Fail
v=[71 384 ]; vexp=[40544 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

3   Fail
v=[280 103 ]; vexp=[14427 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

4   Fail
v=[17357 ]; vexp=[277 162 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

5   Fail
v=[263 381 ]; vexp=[19846 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

6   Fail
v=[785 477 ]; vexp=[56053 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

7   Fail
v=[19311 ]; vexp=[440 93 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

8   Fail
v=[241 171 ]; vexp=[33049 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

9   Fail
v=[225 94 ]; vexp=[14291 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

10   Fail
v=[40040 ]; vexp=[185 664 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

11   Fail
v=[565 431 ]; vexp=[60145 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

12   Fail
v=[399 680 ]; vexp=[64178 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

13   Fail
v=[62292 ]; vexp=[358 937 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

14   Fail
v=[398 1051 ]; vexp=[46356 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

15   Fail
v=[59 45 ]; vexp=[1777 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

16   Fail
v=[47 175 ]; vexp=[3400 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

17   Fail
v=[59987 ]; vexp=[1109 466 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

18   Fail
v=[33547 ]; vexp=[329 129 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

19   Fail
v=[256 45 ]; vexp=[20703 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

20   Fail
v=[43221 ]; vexp=[1090 673 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

21   Fail
v=[80 251 ]; vexp=[41976 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

22   Fail
v=[40366 ]; vexp=[487 621 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

23   Fail
v=[65 48 ]; vexp=[1289 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

24   Fail
v=[5644 ]; vexp=[59 145 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

25   Fail
v=[52852 ]; vexp=[307 787 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

26   Fail
v=[61149 ]; vexp=[610 341 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

27   Fail
v=[39087 ]; vexp=[650 141 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

28   Fail
v=[61881 ]; vexp=[520 361 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

29   Fail
v=[488 275 ]; vexp=[21405 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

30   Fail
v=[33893 ]; vexp=[485 306 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

31   Fail
v=[26965 ]; vexp=[885 547 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

32   Fail
v=[5918 ]; vexp=[99 122 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

33   Fail
v=[63216 ]; vexp=[90 379 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

34   Fail
v=[248 459 ]; vexp=[60546 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

35   Fail
v=[26250 ]; vexp=[370 607 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

36   Fail
v=[295 476 ]; vexp=[33386 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

37   Fail
v=[29373 ]; vexp=[450 247 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

38   Fail
v=[183 509 ]; vexp=[64324 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

39   Fail
v=[56818 ]; vexp=[257 433 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

40   Fail
v=[447 730 ]; vexp=[57674 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

41   Fail
v=[241 ]; vexp=[17 13 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

42   Fail
v=[14807 ]; vexp=[313 86 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

43   Fail
v=[251 145 ]; vexp=[8557 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

44   Fail
v=[76 485 ]; vexp=[60096 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

45   Fail
v=[24345 ]; vexp=[278 197 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

46   Fail
v=[2581 ]; vexp=[127 79 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

47   Fail
v=[588 247 ]; vexp=[48723 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

48   Fail
v=[190 233 ]; vexp=[9630 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

49   Fail
v=[367 303 ]; vexp=[61729 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

50   Fail
v=[4019 ]; vexp=[97 40 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

51   Fail
v=[58547 ]; vexp=[953 394 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

52   Fail
v=[25786 ]; vexp=[367 573 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

53   Fail
v=[52923 ]; vexp=[788 283 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

54   Fail
v=[16812 ]; vexp=[134 319 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

55   Fail
v=[394 323 ]; vexp=[38817 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

56   Fail
v=[34401 ]; vexp=[352 287 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

57   Fail
v=[27426 ]; vexp=[334 597 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

58   Fail
v=[278 41 ]; vexp=[35775 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

59   Fail
v=[59405 ]; vexp=[279 166 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

60   Fail
v=[271 428 ]; vexp=[48986 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

61   Fail
v=[539 327 ]; vexp=[59893 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

62   Fail
v=[461 178 ]; vexp=[17867 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

63   Fail
v=[491 627 ]; vexp=[47278 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

64   Fail
v=[62313 ]; vexp=[712 513 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

65   Fail
v=[10791 ]; vexp=[346 103 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

66   Fail
v=[58888 ]; vexp=[109 419 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

67   Fail
v=[431 114 ]; vexp=[20855 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

68   Fail
v=[373 647 ]; vexp=[50962 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

69   Fail
v=[60814 ]; vexp=[455 593 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

70   Fail
v=[109 79 ]; vexp=[1321 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

71   Fail
v=[356 581 ]; vexp=[57162 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

72   Fail
v=[3453 ]; vexp=[98 53 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

73   Fail
v=[2024 ]; vexp=[13 46 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

74   Fail
v=[3453 ]; vexp=[98 53 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

75   Fail
v=[3545 ]; vexp=[131 92 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

76   Fail
v=[687 244 ]; vexp=[46715 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

77   Fail
v=[26103 ]; vexp=[304 79 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

78   Fail
v=[65174 ]; vexp=[235 326 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

79   Fail
v=[65362 ]; vexp=[155 267 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

80   Fail
v=[701 508 ]; vexp=[48425 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

81   Fail
v=[272 377 ]; vexp=[31638 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

82   Fail
v=[61570 ]; vexp=[143 265 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

83   Fail
v=[156 251 ]; vexp=[32490 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

84   Fail
v=[157 425 ]; vexp=[13924 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

85   Fail
v=[726 203 ]; vexp=[39063 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

86   Fail
v=[26 139 ]; vexp=[65376 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

87   Fail
v=[58926 ]; vexp=[474 607 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

88   Fail
v=[64849 ]; vexp=[397 311 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

89   Fail
v=[38407 ]; vexp=[363 115 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

90   Fail
v=[33546 ]; vexp=[200 329 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

91   Fail
v=[271 201 ]; vexp=[50185 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

92   Fail
v=[123 137 ]; vexp=[56830 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

93   Fail
v=[41192 ]; vexp=[125 446 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

94   Fail
v=[689 292 ]; vexp=[40211 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

95   Fail
v=[185 51 ]; vexp=[8407 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

96   Fail
v=[9110 ]; vexp=[189 262 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

97   Fail
v=[128 473 ]; vexp=[34248 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

98   Fail
v=[722 267 ]; vexp=[21147 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

99   Fail
v=[58918 ]; vexp=[491 699 ]; vout=Tree_CH(v); assert(isequal(vout,vexp))

Assertion failed.

100   Fail
v=[144 37 ]; vexp=[36855 ]; vout=Tree_CH(v); assert(isequal(vout,vexp)) toc

Assertion failed.

Suggested Problems

More from this Author246

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!