Cody

# Problem 45394. Count the number of folds needed to pack a large sheet

Solution 2914885

Submitted on 5 Sep 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
assert(isequal(number_of_folds(3247,2132),24))

Assertion failed.

2   Fail
assert(isequal(number_of_folds(1403,3757),23))

Assertion failed.

3   Fail
assert(isequal(number_of_folds(3504,2201),24))

Assertion failed.

4   Fail
assert(isequal(number_of_folds(2490,2349),24))

Assertion failed.

5   Fail
assert(isequal(number_of_folds(831,1205),21))

Assertion failed.

6   Fail
assert(isequal(number_of_folds(1884,922),21))

Assertion failed.

7   Fail
assert(isequal(number_of_folds(2,4),5))

Assertion failed.

8   Fail
assert(isequal(number_of_folds(3378,780),22))

Assertion failed.

9   Fail
assert(isequal(number_of_folds(904,683),20))

Assertion failed.

10   Fail
assert(isequal(number_of_folds(911,1743),21))

Assertion failed.

11   Fail
assert(isequal(number_of_folds(1245,3694),23))

Assertion failed.

12   Fail
assert(isequal(number_of_folds(1721,740),21))

Assertion failed.

13   Fail
assert(isequal(number_of_folds(3620,3919),24))

Assertion failed.

14   Fail
assert(isequal(number_of_folds(1756,445),20))

Assertion failed.

15   Fail
assert(isequal(number_of_folds(1033,1635),22))

Assertion failed.

16   Fail
assert(isequal(number_of_folds(2380,1049),23))

Assertion failed.

17   Fail
assert(isequal(number_of_folds(2412,2845),24))

Assertion failed.

18   Fail
assert(isequal(number_of_folds(887,470),19))

Assertion failed.

19   Fail
assert(isequal(number_of_folds(1187,1276),22))

Assertion failed.

20   Fail
assert(isequal(number_of_folds(1697,2032),22))

Assertion failed.

21   Fail
assert(isequal(number_of_folds(343,1050),20))

Assertion failed.

22   Fail
assert(isequal(number_of_folds(3205,117),19))

Assertion failed.

23   Fail
assert(isequal(number_of_folds(3716,2922),24))

Assertion failed.

24   Fail
assert(isequal(number_of_folds(1955,2315),23))

Assertion failed.

25   Fail
assert(isequal(number_of_folds(950,1836),21))

Assertion failed.

26   Fail
assert(isequal(number_of_folds(3853,2188),24))

Assertion failed.

27   Fail
assert(isequal(number_of_folds(2085,927),22))

Assertion failed.

28   Fail
assert(isequal(number_of_folds(1956,2497),23))

Assertion failed.

29   Fail
assert(isequal(number_of_folds(2717,1583),23))

Assertion failed.

30   Fail
assert(isequal(number_of_folds(1470,3952),23))

Assertion failed.

31   Fail
assert(isequal(number_of_folds(151,3541),20))

Assertion failed.

32   Fail
assert(isequal(number_of_folds(3654,3185),24))

Assertion failed.

33   Fail
assert(isequal(number_of_folds(395,1048),20))

Assertion failed.

34   Fail
assert(isequal(number_of_folds(1342,2719),23))

Assertion failed.

35   Fail
assert(isequal(number_of_folds(547,2885),22))

Assertion failed.

36   Fail
assert(isequal(number_of_folds(428,2616),21))

Assertion failed.

37   Fail
assert(isequal(number_of_folds(1977,3117),23))

Assertion failed.

38   Fail
assert(isequal(number_of_folds(2861,3615),24))

Assertion failed.

39   Fail
assert(isequal(number_of_folds(3564,1337),23))

Assertion failed.

40   Fail
assert(isequal(number_of_folds(1,4000),13))

Assertion failed.

41   Fail
assert(isequal(number_of_folds(2795,792),22))

Assertion failed.

42   Fail
assert(isequal(number_of_folds(123,2977),19))

Assertion failed.

43   Fail
assert(isequal(number_of_folds(2001,1920),22))

Assertion failed.

44   Fail
assert(isequal(number_of_folds(3619,2440),24))

Assertion failed.

45   Fail
assert(isequal(number_of_folds(2471,3438),24))

Assertion failed.

46   Fail
assert(isequal(number_of_folds(3222,2307),24))

Assertion failed.

47   Fail
assert(isequal(number_of_folds(732,960),20))

Assertion failed.

48   Fail
assert(isequal(number_of_folds(3547,115),19))

Assertion failed.

49   Fail
assert(isequal(number_of_folds(1960,672),21))

Assertion failed.

50   Fail
assert(isequal(number_of_folds(3915,2851),24))

Assertion failed.

51   Fail
assert(isequal(number_of_folds(2002,1885),22))

Assertion failed.

52   Fail
assert(isequal(number_of_folds(239,2728),20))

Assertion failed.

53   Fail
assert(isequal(number_of_folds(170,286),17))

Assertion failed.

54   Fail
assert(isequal(number_of_folds(2087,387),21))

Assertion failed.

55   Fail
assert(isequal(number_of_folds(3273,3271),24))

Assertion failed.

56   Fail
assert(isequal(number_of_folds(2890,600),22))

Assertion failed.

57   Fail
assert(isequal(number_of_folds(2639,2075),24))

Assertion failed.

58   Fail
assert(isequal(number_of_folds(3892,2596),24))

Assertion failed.

59   Fail
assert(isequal(number_of_folds(3202,1816),23))

Assertion failed.

60   Fail
assert(isequal(number_of_folds(1730,3302),23))

Assertion failed.

61   Fail
assert(isequal(number_of_folds(334,533),19))

Assertion failed.

62   Fail
assert(isequal(number_of_folds(694,1564),21))

Assertion failed.

63   Fail
assert(isequal(number_of_folds(3326,3214),24))

Assertion failed.

64   Fail
assert(isequal(number_of_folds(242,1598),19))

Assertion failed.

65   Fail
assert(isequal(number_of_folds(2108,1668),23))

Assertion failed.

66   Fail
assert(isequal(number_of_folds(2628,2512),24))

Assertion failed.

67   Fail
assert(isequal(number_of_folds(1168,1727),22))

Assertion failed.

68   Fail
assert(isequal(number_of_folds(62,3937),18))

Assertion failed.

69   Fail
assert(isequal(number_of_folds(669,425),19))

Assertion failed.

70   Fail
assert(isequal(number_of_folds(1490,793),21))

Assertion failed.

71   Fail
assert(isequal(number_of_folds(1959,1358),22))

Assertion failed.

72   Fail
assert(isequal(number_of_folds(3807,3682),24))

Assertion failed.

73   Fail
assert(isequal(number_of_folds(211,2952),20))

Assertion failed.

74   Fail
assert(isequal(number_of_folds(1077,1692),22))

Assertion failed.

75   Fail
assert(isequal(number_of_folds(2192,3771),24))

Assertion failed.

76   Fail
assert(isequal(number_of_folds(1,1),2))

Assertion failed.

77   Fail
assert(isequal(number_of_folds(1671,3933),23))

Assertion failed.

78   Fail
assert(isequal(number_of_folds(1206,2805),23))

Assertion failed.

79   Fail
assert(isequal(number_of_folds(2666,2157),24))

Assertion failed.

80   Fail
assert(isequal(number_of_folds(2793,2667),24))

Assertion failed.

81   Fail
assert(isequal(number_of_folds(713,513),20))

Assertion failed.

82   Fail
assert(isequal(number_of_folds(3997,685),22))

Assertion failed.

83   Fail
assert(isequal(number_of_folds(131,2245),20))

Assertion failed.

84   Fail
assert(isequal(number_of_folds(3528,2677),24))

Assertion failed.

85   Fail
assert(isequal(number_of_folds(762,1476),21))

Assertion failed.

86   Fail
assert(isequal(number_of_folds(1843,3927),23))

Assertion failed.

87   Fail
assert(isequal(number_of_folds(626,3423),22))

Assertion failed.

88   Fail
assert(isequal(number_of_folds(2580,1506),23))

Assertion failed.

89   Fail
assert(isequal(number_of_folds(764,1714),21))

Assertion failed.

90   Fail
assert(isequal(number_of_folds(1929,483),20))

Assertion failed.

91   Fail
assert(isequal(number_of_folds(2359,905),22))

Assertion failed.

92   Fail
assert(isequal(number_of_folds(1539,2332),23))

Assertion failed.

93   Fail
assert(isequal(number_of_folds(1008,1162),21))

Assertion failed.

94   Fail
assert(isequal(number_of_folds(2469,1062),23))

Assertion failed.

95   Fail
assert(isequal(number_of_folds(15,15),8))

Assertion failed.

96   Fail
assert(isequal(number_of_folds(3298,3931),24))

Assertion failed.

97   Fail
assert(isequal(number_of_folds(2921,1376),23))

Assertion failed.

98   Fail
assert(isequal(number_of_folds(2337,432),21))

Assertion failed.

99   Fail
assert(isequal(number_of_folds(3626,3519),24))

Assertion failed.

100   Fail
assert(isequal(number_of_folds(3272,1043),23))

Assertion failed.

101   Fail
assert(isequal(number_of_folds(3,2),4))

Assertion failed.

102   Fail
assert(isequal(number_of_folds(2378,91),19))

Assertion failed.

103   Fail
assert(isequal(number_of_folds(1702,1251),22))

Assertion failed.

104   Fail
assert(isequal(number_of_folds(646,716),20))

Assertion failed.

105   Fail
assert(isequal(number_of_folds(1692,377),20))

Assertion failed.

106   Fail
assert(isequal(number_of_folds(16,15),9))

Assertion failed.

### Community Treasure Hunt

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

Start Hunting!