-
Notifications
You must be signed in to change notification settings - Fork 0
/
testCases.txt
149 lines (149 loc) · 1.69 KB
/
testCases.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Format:
# (lines starting with # are ignored)
# <input string>,<expected numerator>,<expected denominator>,<optional textual output if it's not just "numerator in denominator">
#-- Base cases --#
0,0,1
1,1,1
#-- between 10% and 90% --#
.519,1,2
.481,1,2
.504,1,2
.496,1,2
.649,2,3
.351,1,3
.661,2,3
.339,1,3
.734,3,4
.266,1,4
.757,3,4
.243,1,4
.746,3,4
.254,1,4
.609,3,5
.391,2,5
.593,3,5
.407,2,5
.799,4,5
.201,1,5
.808,4,5
.192,1,5
.845,5,6
.155,1,6
.831,5,6
.169,1,6
.823,5,6
.177,1,6
.853,6,7
.147,1,7
.862,6,7
.138,1,7
.723,5,7
.277,2,7
.582,4,7
.418,3,7
.708,5,7
.292,2,7
.863,6,7
.137,1,7
.861,6,7
.139,1,7
.729,5,7
.271,2,7
.861,6,7
.139,1,7
.629,5,8
.371,3,8
.873,7,8
.127,1,8
.621,5,8
.379,3,8
.535,5,9
.465,4,9
.530,5,9
.470,4,9
.561,5,9
.439,4,9
.780,7,9
.220,2,9
.535,5,9
.465,4,9
.885,8,9
.115,1,9
.890,8,9
.110,1,9
#-- between 90% and 99% --#
.907,9,10
.093,1,10
.686,7,10
.314,3,10
.700,7,10
.300,3,10
.901,9,10
.099,1,10
.909,11,12
.091,1,12
.933,14,15
.067,1,15
.941,14,15
.059,1,15
.930,14,15
.070,1,15
.940,14,15
.060,1,15
.934,14,15
.066,1,15
.955,19,20
.045,1,20
.945,19,20
.055,1,20
.951,19,20
.049,1,20
.958,19,20
.042,1,20
.945,19,20
.055,1,20
.942,19,20
.058,1,20
.944,19,20
.056,1,20
.964,29,30
.036,1,30
.965,29,30
.035,1,30
.965,29,30
.035,1,30
.959,29,30
.041,1,30
.960,29,30
.040,1,30
.977,39,40
.023,1,40
.972,39,40
.028,1,40
.977,39,40
.023,1,40
.981,49,50
.019,1,50
.983,59,60
.017,1,60
.984,59,60
.016,1,60
.984,59,60
.016,1,60
.986,79,80
.014,1,80
.987,79,80
.013,1,80
.988,79,80
.012,1,80
.987,79,80
.013,1,80
.990,99,100
.010,1,100
#-- more than 99% --#
.991,99,100,>99 in 100
.009,1,100,<1 in 100
.992,99,100,>99 in 100
.008,1,100,<1 in 100
.999,99,100,>99 in 100
.001,1,100,<1 in 100