Cody

Solution 1869327

Submitted on 9 Jul 2019 by SJ Won
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
assert(isequal(ord(1),'1st'))

m = 1 x = 1 y = 1 s = '1st'

2   Pass
assert(isequal(ord(2),'2nd'))

m = 2 x = 2 y = 2 s = '2nd'

3   Pass
assert(isequal(ord(3),'3rd'))

m = 3 x = 3 y = 3 s = '3rd'

4   Pass
assert(isequal(ord(4),'4th'))

m = 4 x = 4 y = 4 s = '4th'

5   Pass
assert(isequal(ord(5),'5th'))

m = 5 x = 5 y = 5 s = '5th'

6   Pass
assert(isequal(ord(10),'10th'))

m = 10 x = 10 y = 0 s = '10th'

7   Pass
assert(isequal(ord(11),'11th'))

m = 11 x = 11 y = 1 s = '11th'

8   Pass
assert(isequal(ord(12),'12th'))

m = 12 x = 12 y = 2 s = '12th'

9   Pass
assert(isequal(ord(13),'13th'))

m = 13 x = 13 y = 3 s = '13th'

10   Pass
assert(isequal(ord(14),'14th'))

m = 14 x = 14 y = 4 s = '14th'

11   Pass
assert(isequal(ord(15),'15th'))

m = 15 x = 15 y = 5 s = '15th'

12   Pass
assert(isequal(ord(82),'82nd'))

m = 82 x = 82 y = 2 s = '82nd'

13   Pass
assert(isequal(ord(126),'126th'))

m = 126 x = 26 y = 6 s = '126th'

14   Pass
assert(isequal(ord(911),'911th'))

m = 911 x = 11 y = 1 s = '911th'

15   Pass
assert(isequal(ord(2012),'2012th'))

m = 2012 x = 12 y = 2 s = '2012th'

16   Pass
assert(isequal(ord(4077),'4077th'))

m = 4077 x = 77 y = 7 s = '4077th'

17   Pass
assert(isequal(ord(0),'0th'))

m = 0 x = 0 y = 0 s = '0th'

18   Pass
assert(isequal(ord(-101),'-101st'))

m = 101 x = 1 y = 1 s = '-101st'