Cody

# Problem 2431. Power Times (of the day)

Solution 2126201

Submitted on 12 Feb 2020 by Malcolm Wildgoose
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   Pass
time = '2:38'; y_correct = 1; assert(isequal(power_time(time),y_correct))

a = 2 b = 3 c = 8 ans = 1

2   Pass
time = '8:23'; y_correct = 100; assert(isequal(power_time(time),y_correct))

a = 8 b = 2 c = 3 ans = 100

3   Pass
time = '3:28'; y_correct = 10; assert(isequal(power_time(time),y_correct))

a = 3 b = 2 c = 8 ans = 10

4   Pass
time = '9:23'; y_correct = 1000; assert(isequal(power_time(time),y_correct))

a = 9 b = 2 c = 3 ans = 1000

5   Pass
time = '7:22'; y_correct = 0; assert(isequal(power_time(time),y_correct))

a = 7 b = 2 c = 2 ans = 0

6   Pass
time = '1:31'; y_correct = 1001; assert(isequal(power_time(time),y_correct))

a = 1 b = 3 c = 1 ans = 1001

7   Pass
time = '4:22'; y_correct = 1100; assert(isequal(power_time(time),y_correct))

a = 4 b = 2 c = 2 ans = 1100

8   Pass
time = '1:02'; y_correct = 1000; assert(isequal(power_time(time),y_correct))

a = 1 b = 0 c = 2 ans = 1000

9   Pass
time = '4:12'; y_correct = 0; assert(isequal(power_time(time),y_correct))

a = 4 b = 1 c = 2 ans = 0

10   Pass
time = '5:15'; y_correct = 1001; assert(isequal(power_time(time),y_correct))

a = 5 b = 1 c = 5 ans = 1001

### Community Treasure Hunt

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

Start Hunting!