Cody

Problem 45402. Find an overlap in the cleaning schedule of two tank reactors

Solution 3721628

Submitted on 19 Nov 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(two_reactors(5,1,6,5),24))

n1 = 3 y = 32 y = 32

Assertion failed.

2   Fail
assert(isequal(two_reactors(1,2,2,2),5))

n1 = 6 y = 34 y = 34

Assertion failed.

3   Fail
assert(isequal(two_reactors(7,7,7,1),10))

y = 0

Assertion failed.

4   Fail
assert(isequal(two_reactors(1,4,6,7),11))

n1 = 2 y = 18 y = 18

Assertion failed.

5   Fail
assert(isequal(two_reactors(5,9,8,10),11))

n1 = 5 y = 88 y = 88

Assertion failed.

6   Fail
assert(isequal(two_reactors(6,4,2,7),9))

n1 = 8 y = 105 y = 105

Assertion failed.

7   Fail
assert(isequal(two_reactors(8,5,1,3),11))

y = 0

Assertion failed.

8   Fail
assert(isequal(two_reactors(2,3,5,6),12))

n1 = 7 y = 54 y = 54

Assertion failed.

9   Fail
assert(isequal(two_reactors(5,9,6,10),9))

n1 = 9 y = 152 y = 152

Assertion failed.

10   Fail
assert(isequal(two_reactors(7,10,3,7),10))

y = 0

Assertion failed.

11   Fail
assert(isequal(two_reactors(3,7,7,1),10))

y = 0

Assertion failed.

12   Fail
assert(isequal(two_reactors(3,3,7,9),14))

n1 = 2 y = 22 y = 22

Assertion failed.

13   Fail
assert(isequal(two_reactors(4,8,7,1),10))

y = 0

Assertion failed.

14   Fail
assert(isequal(two_reactors(7,4,10,1),13))

y = 0

Assertion failed.

15   Fail
assert(isequal(two_reactors(5,5,5,8),8))

n1 = 1 y = 20 y = 20

Assertion failed.

16   Fail
assert(isequal(two_reactors(4,8,5,1),8))

y = 0

Assertion failed.

17   Fail
assert(isequal(two_reactors(2,8,5,2),8))

y = 0

Assertion failed.

18   Fail
assert(isequal(two_reactors(4,7,2,8),7))

n1 = 11 y = 150 y = 150

Assertion failed.

19   Fail
assert(isequal(two_reactors(3,10,3,8),6))

y = 0

Assertion failed.

20   Fail
assert(isequal(two_reactors(2,3,1,6),5))

n1 = 1 y = 12 y = 12

Assertion failed.

21   Fail
assert(isequal(two_reactors(7,6,5,7),10))

n1 = 13 y = 205 y = 205

Assertion failed.

22   Fail
assert(isequal(two_reactors(7,7,7,10),10))

n1 = 1 y = 26 y = 26

Assertion failed.

23   Fail
assert(isequal(two_reactors(3,8,3,2),6))

y = 0

Assertion failed.

24   Fail
assert(isequal(two_reactors(7,5,5,7),10))

n1 = 1 y = 24 y = 24

Assertion failed.

25   Fail
assert(isequal(two_reactors(8,4,7,5),11))

n1 = 1 y = 25 y = 25

Assertion failed.

26   Fail
assert(isequal(two_reactors(9,9,3,7),12))

y = 0

Assertion failed.

27   Fail
assert(isequal(two_reactors(6,6,9,3),12))

y = 0

Assertion failed.

28   Fail
assert(isequal(two_reactors(4,2,10,7),15))

n1 = 2 y = 23 y = 23

Assertion failed.

29   Fail
assert(isequal(two_reactors(10,1,9,1),156))

n1 = 12 y = 169 y = 169

Assertion failed.

30   Fail
assert(isequal(two_reactors(5,7,6,7),9))

n1 = 15 y = 218 y = 218

Assertion failed.

31   Fail
assert(isequal(two_reactors(6,8,6,10),9))

n1 = 1 y = 25 y = 25

Assertion failed.

32   Fail
assert(isequal(two_reactors(3,2,2,1),20))

y = 0

Assertion failed.

33   Fail
assert(isequal(two_reactors(5,5,4,8),8))

n1 = 1 y = 20 y = 20

Assertion failed.

34   Fail
assert(isequal(two_reactors(7,8,10,10),13))

n1 = 9 y = 163 y = 163

Assertion failed.

35   Fail
assert(isequal(two_reactors(2,2,7,1),30))

y = 0

Assertion failed.

36   Fail
assert(isequal(two_reactors(6,6,9,5),12))

y = 0

Assertion failed.

37   Fail
assert(isequal(two_reactors(4,7,8,6),11))

y = 0

Assertion failed.

38   Fail
assert(isequal(two_reactors(4,2,6,3),31))

n1 = 4 y = 39 y = 39

Assertion failed.

39   Fail
assert(isequal(two_reactors(1,8,3,5),6))

y = 0

Assertion failed.

40   Fail
assert(isequal(two_reactors(7,4,8,4),11))

n1 = 14 y = 192 y = 192

Assertion failed.

41   Fail
assert(isequal(two_reactors(7,8,5,1),16))

y = 0

Assertion failed.

42   Fail
assert(isequal(two_reactors(4,5,3,2),7))

y = 0

Assertion failed.

43   Fail
assert(isequal(two_reactors(9,5,9,4),12))

y = 0

Assertion failed.

44   Fail
assert(isequal(two_reactors(8,4,9,8),12))

n1 = 4 y = 67 y = 67

Assertion failed.

45   Fail
assert(isequal(two_reactors(4,3,8,10),16))

n1 = 2 y = 25 y = 25

Assertion failed.

46   Fail
assert(isequal(two_reactors(4,7,5,9),8))

n1 = 6 y = 85 y = 85

Assertion failed.

47   Fail
assert(isequal(two_reactors(8,2,9,10),12))

n1 = 3 y = 47 y = 47

Assertion failed.

48   Fail
assert(isequal(two_reactors(6,9,6,2),9))

y = 0

Assertion failed.

49   Fail
assert(isequal(two_reactors(2,5,8,9),14))

n1 = 2 y = 23 y = 23

Assertion failed.

50   Fail
assert(isequal(two_reactors(8,4,6,1),27))

y = 0

Assertion failed.

51   Fail
assert(isequal(two_reactors(2,2,7,5),11))

n1 = 2 y = 17 y = 17

Assertion failed.

52   Fail
assert(isequal(two_reactors(2,5,2,1),5))

y = 0

Assertion failed.

53   Fail
assert(isequal(two_reactors(9,6,10,7),13))

n1 = 10 y = 182 y = 182

Assertion failed.

54   Fail
assert(isequal(two_reactors(6,9,9,10),12))

n1 = 16 y = 281 y = 281

Assertion failed.

55   Fail
assert(isequal(two_reactors(1,9,7,10),10))

n1 = 11 y = 136 y = 136

Assertion failed.

56   Fail
assert(isequal(two_reactors(6,5,9,3),12))

y = 0

Assertion failed.

57   Fail
assert(isequal(two_reactors(5,10,6,9),9))

y = 0

Assertion failed.

58   Fail
assert(isequal(two_reactors(8,6,3,7),11))

n1 = 3 y = 59 y = 59

Assertion failed.

59   Fail
assert(isequal(two_reactors(1,7,7,8),10))

n1 = 5 y = 54 y = 54

Assertion failed.

60   Fail
assert(isequal(two_reactors(9,10,8,6),12))

y = 0

Assertion failed.

61   Fail
assert(isequal(two_reactors(10,6,1,2),14))

y = 0

Assertion failed.

62   Fail
assert(isequal(two_reactors(9,5,9,3),12))

y = 0

Assertion failed.

63   Fail
assert(isequal(two_reactors(6,7,1,7),9))

n1 = 2 y = 39 y = 39

Assertion failed.

64   Fail
assert(isequal(two_reactors(4,1,5,2),35))

n1 = 5 y = 42 y = 42

Assertion failed.

65   Fail
assert(isequal(two_reactors(2,3,2,2),5))

y = 0

Assertion failed.

66   Fail
assert(isequal(two_reactors(1,7,3,6),6))

y = 0

Assertion failed.

67   Fail
assert(isequal(two_reactors(7,5,6,5),10))

n1 = 13 y = 192 y = 192

Assertion failed.

68   Fail
assert(isequal(two_reactors(2,5,9,9),14))

n1 = 2 y = 23 y = 23

Assertion failed.

69   Fail
assert(isequal(two_reactors(3,3,6,7),14))

n1 = 7 y = 62 y = 62

Assertion failed.

70   Fail
assert(isequal(two_reactors(5,3,10,1),39))

y = 0

Assertion failed.

71   Fail
assert(isequal(two_reactors(2,2,2,7),5))

n1 = 1 y = 11 y = 11

Assertion failed.

72   Fail
assert(isequal(two_reactors(6,1,10,8),18))

n1 = 2 y = 27 y = 27

Assertion failed.

73   Fail
assert(isequal(two_reactors(8,1,9,10),33))

n1 = 3 y = 44 y = 44

Assertion failed.

74   Fail
assert(isequal(two_reactors(10,9,8,6),13))

y = 0

Assertion failed.

75   Fail
assert(isequal(two_reactors(2,4,2,1),5))

y = 0

Assertion failed.

76   Fail
assert(isequal(two_reactors(10,4,3,4),15))

n1 = 9 y = 157 y = 157

Assertion failed.

77   Fail
assert(isequal(two_reactors(5,7,1,9),8))

n1 = 5 y = 78 y = 78

Assertion failed.

78   Fail
assert(isequal(two_reactors(6,9,4,5),9))

y = 0

Assertion failed.

79   Fail
assert(isequal(two_reactors(1,2,7,4),10))

n1 = 5 y = 29 y = 29

Assertion failed.

80   Fail
assert(isequal(two_reactors(9,2,10,6),13))

n1 = 4 y = 64 y = 64

Assertion failed.

81   Fail
assert(isequal(two_reactors(8,10,3,5),16))

y = 0

Assertion failed.

82   Fail
assert(isequal(two_reactors(5,8,9,2),12))

y = 0

Assertion failed.

83   Fail
assert(isequal(two_reactors(2,4,1,6),5))

n1 = 1 y = 13 y = 13

Assertion failed.

84   Fail
assert(isequal(two_reactors(4,2,3,10),7))

n1 = 1 y = 15 y = 15

Assertion failed.

85   Fail
assert(isequal(two_reactors(7,5,10,2),13))

y = 0

Assertion failed.

86   Fail
assert(isequal(two_reactors(8,8,6,2),29))

y = 0

Assertion failed.

87   Fail
assert(isequal(two_reactors(6,3,2,3),20))

n1 = 7 y = 86 y = 86

Assertion failed.

88   Fail
assert(isequal(two_reactors(9,1,3,1),12))

n1 = 1 y = 24 y = 24

Assertion failed.

89   Fail
assert(isequal(two_reactors(5,1,9,2),64))

n1 = 8 y = 72 y = 72

Assertion failed.

90   Fail
assert(isequal(two_reactors(1,4,5,2),18))

y = 0

Assertion failed.

91   Fail
assert(isequal(two_reactors(10,4,3,1),30))

y = 0

Assertion failed.

92   Fail
assert(isequal(two_reactors(3,1,6,8),12))

n1 = 2 y = 18 y = 18

Assertion failed.

93   Fail
assert(isequal(two_reactors(7,1,1,8),10))

n1 = 1 y = 20 y = 20

Assertion failed.

94   Fail
assert(isequal(two_reactors(10,6,2,9),13))

n1 = 2 y = 49 y = 49

Assertion failed.

95   Fail
assert(isequal(two_reactors(4,3,8,1),44))

y = 0

Assertion failed.

96   Fail
assert(isequal(two_reactors(1,7,7,6),10))

y = 0

Assertion failed.

97   Fail
assert(isequal(two_reactors(8,8,8,3),11))

y = 0

Assertion failed.

98   Fail
assert(isequal(two_reactors(1,1,1,1),4))

n1 = 1 y = 8 y = 8

Assertion failed.

99   Fail
assert(isequal(two_reactors(7,6,4,1),14))

y = 0

Assertion failed.

100   Fail
assert(isequal(two_reactors(8,4,7,8),11))

n1 = 1 y = 25 y = 25

Assertion failed.

101   Fail
assert(isequal(two_reactors(2,2,6,5),11))

n1 = 2 y = 17 y = 17

Assertion failed.

102   Fail
assert(isequal(two_reactors(9,8,8,1),33))

y = 0

Assertion failed.

103   Fail
assert(isequal(two_reactors(1,1,8,10),12))

n1 = 3 y = 16 y = 16

Assertion failed.

104   Fail
assert(isequal(two_reactors(7,2,8,2),11))

n1 = 12 y = 142 y = 142

Assertion failed.

105   Fail
assert(isequal(two_reactors(2,7,4,7),7))

n1 = 13 y = 148 y = 148

Assertion failed.

106   Fail
assert(isequal(two_reactors(8,6,8,3),11))

y = 0

Assertion failed.

107   Fail
assert(isequal(two_reactors(8,10,9,1),12))

y = 0

Assertion failed.

108   Fail
assert(isequal(two_reactors(4,4,7,6),10))

n1 = 3 y = 37 y = 37

Assertion failed.

109   Fail
assert(isequal(two_reactors(8,4,3,1),12))

y = 0

Assertion failed.

110   Fail
assert(isequal(two_reactors(8,3,4,6),11))

n1 = 9 y = 128 y = 128

Assertion failed.

111   Fail
assert(isequal(two_reactors(3,7,5,2),8))

y = 0

Assertion failed.

112   Fail
assert(isequal(two_reactors(8,2,3,3),23))

n1 = 2 y = 35 y = 35

Assertion failed.

113   Fail
assert(isequal(two_reactors(6,1,5,2),9))

n1 = 1 y = 18 y = 18

Assertion failed.

114   Fail
assert(isequal(two_reactors(2,8,3,7),6))

y = 0

Assertion failed.

115   Fail
assert(isequal(two_reactors(10,5,7,8),13))

n1 = 1 y = 30 y = 30

Assertion failed.

116   Fail
assert(isequal(two_reactors(5,7,2,10),8))

n1 = 1 y = 22 y = 22

Assertion failed.

117   Fail
assert(isequal(two_reactors(2,3,8,5),12))

n1 = 2 y = 19 y = 19

Assertion failed.

118   Fail
assert(isequal(two_reactors(8,4,3,1),12))

y = 0

Assertion failed.

119   Fail
assert(isequal(two_reactors(7,5,5,7),10))

n1 = 1 y = 24 y = 24

Assertion failed.

120   Fail
assert(isequal(two_reactors(1,4,8,7),11))

n1 = 2 y = 18 y = 18

Assertion failed.

121   Fail
assert(isequal(two_reactors(2,2,1,1),12))

y = 0

Assertion failed.

122   Fail
assert(isequal(two_reactors(5,7,8,6),11))

y = 0

Assertion failed.

123   Fail
assert(isequal(two_reactors(2,7,2,2),5))

y = 0

Assertion failed.

124   Fail
assert(isequal(two_reactors(1,2,2,2),5))

n1 = 6 y = 34 y = 34

Assertion failed.

125   Fail
assert(isequal(two_reactors(4,4,3,3),7))

y = 0

Assertion failed.

126   Fail
assert(isequal(two_reactors(9,8,6,2),19))

y = 0

Assertion failed.

127   Fail
assert(isequal(two_reactors(3,1,10,8),18))

n1 = 3 y = 24 y = 24

Assertion failed.

128   Fail
assert(isequal(two_reactors(6,4,2,7),9))

n1 = 8 y = 105 y = 105

Assertion failed.

129   Fail
assert(isequal(two_reactors(10,2,3,4),27))

n1 = 5 y = 83 y = 83

Assertion failed.

130   Fail
assert(isequal(two_reactors(1,7,5,10),8))

n1 = 5 y = 54 y = 54

Assertion failed.

131   Fail
assert(isequal(two_reactors(5,7,2,4),8))

y = 0

Assertion failed.

132   Fail
assert(isequal(two_reactors(2,8,9,4),12))

y = 0

Assertion failed.

133   Fail
assert(isequal(two_reactors(7,3,6,9),10))

n1 = 1 y = 22 y = 22

Assertion failed.

134   Fail
assert(isequal(two_reactors(6,4,3,5),9))

n1 = 5 y = 69 y = 69

Assertion failed.

135   Fail
assert(isequal(two_reactors(5,4,6,8),9))

n1 = 4 y = 52 y = 52

Assertion failed.

136   Fail
assert(isequal(two_reactors(5,5,2,1),10))

y = 0

Assertion failed.

137   Fail
assert(isequal(two_reactors(3,4,7,10),15))

n1 = 2 y = 24 y = 24

Assertion failed.

138   Fail
assert(isequal(two_reactors(10,5,3,8),13))

n1 = 3 y = 64 y = 64

Assertion failed.

139   Fail
assert(isequal(two_reactors(8,8,8,2),11))

y = 0

Assertion failed.

140   Fail
assert(isequal(two_reactors(7,5,3,1),12))

y = 0

Assertion failed.

141   Fail
assert(isequal(two_reactors(9,2,2,7),38))

n1 = 3 y = 51 y = 51

Assertion failed.

142   Fail
assert(isequal(two_reactors(9,6,8,2),12))

y = 0

Assertion failed.

143   Fail
assert(isequal(two_reactors(10,6,7,1),50))

y = 0

Assertion failed.

144   Fail
assert(isequal(two_reactors(9,8,2,6),15))

y = 0

Assertion failed.

145   Fail
assert(isequal(two_reactors(4,6,4,5),7))

y = 0

Assertion failed.

146   Fail
assert(isequal(two_reactors(2,3,1,10),5))

n1 = 1 y = 12 y = 12

Assertion failed.

147   Fail
assert(isequal(two_reactors(7,10,2,10),10))

n1 = 14 y = 276 y = 276

Assertion failed.

148   Fail
assert(isequal(two_reactors(8,6,5,3),28))

y = 0

Assertion failed.

149   Fail
assert(isequal(two_reactors(8,3,1,8),11))

n1 = 3 y = 50 y = 50

Assertion failed.

150   Fail
assert(isequal(two_reactors(7,8,7,5),10))

y = 0

Assertion failed.

151   Fail
assert(isequal(two_reactors(4,9,4,9),7))

n1 = 1 y = 22 y = 22

Assertion failed.

152   Fail
assert(isequal(two_reactors(8,9,6,7),11))

y = 0

Assertion failed.

153   Fail
assert(isequal(two_reactors(10,5,1,9),16))

n1 = 2 y = 47 y = 47

Assertion failed.