Cody

Solution 1306017

Submitted on 20 Oct 2017 by Matthew Eicholtz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
len = 1; wid = 1; d_correct = 0.71; assert(isequal(birthdaycandles(len,wid),d_correct))

2   Pass
len = 2; wid = 3; d_correct = 1.80; assert(isequal(birthdaycandles(len,wid),d_correct))

3   Pass
len = 3; wid = 8; d_correct = 3.61; assert(isequal(birthdaycandles(len,wid),d_correct))

4   Pass
len = 4; wid = 3; d_correct = 2.50; assert(isequal(birthdaycandles(len,wid),d_correct))

5   Pass
len = 5; wid = 4; d_correct = 3.20; assert(isequal(birthdaycandles(len,wid),d_correct))

6   Pass
len = 5; wid = 6; d_correct = 3.91; assert(isequal(birthdaycandles(len,wid),d_correct))

7   Pass
len = 5; wid = 11; d_correct = 5.52; assert(isequal(birthdaycandles(len,wid),d_correct))

8   Pass
len = 7; wid = 6; d_correct = 4.61; assert(isequal(birthdaycandles(len,wid),d_correct))

9   Pass
len = 8; wid = 7; d_correct = 5.32; assert(isequal(birthdaycandles(len,wid),d_correct))

10   Pass
len = 8; wid = 9; d_correct = 6.02; assert(isequal(birthdaycandles(len,wid),d_correct))

11   Pass
len = 10; wid = 9; d_correct = 6.73; assert(isequal(birthdaycandles(len,wid),d_correct))

12   Pass
len = 11; wid = 10; d_correct = 7.43; assert(isequal(birthdaycandles(len,wid),d_correct))

13   Pass
len = 12; wid = 23; d_correct = 12.20; assert(isequal(birthdaycandles(len,wid),d_correct))

14   Pass
len = 15; wid = 32; d_correct = 16.16; assert(isequal(birthdaycandles(len,wid),d_correct))

15   Pass
len = 16; wid = 32; d_correct = 16.56; assert(isequal(birthdaycandles(len,wid),d_correct))

16   Pass
len = 17; wid = 32; d_correct = 17.19; assert(isequal(birthdaycandles(len,wid),d_correct))

17   Pass
len = 64; wid = 1; d_correct = 16.03; assert(isequal(birthdaycandles(len,wid),d_correct))

18   Pass
len = 36; wid = 36; d_correct = 25.46; assert(isequal(birthdaycandles(len,wid),d_correct))

19   Pass
len = 48; wid = 24; d_correct = 24.85; assert(isequal(birthdaycandles(len,wid),d_correct))

20   Pass
len = 26; wid = 48; d_correct = 26.17; assert(isequal(birthdaycandles(len,wid),d_correct))

21   Pass
len = 100.25; wid = 100.25; d_correct = 70.89; assert(isequal(birthdaycandles(len,wid),d_correct))

22   Pass
len = 500; wid = 250; d_correct = 258.83; assert(isequal(birthdaycandles(len,wid),d_correct))

23   Pass
len = 500; wid = 1000; d_correct = 517.65; assert(isequal(birthdaycandles(len,wid),d_correct))