예제 #1
0
void testCase3 () {
string var0 = "94";

string _var1[] = {"0","1","2"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 6LL;

assertEquals(3, ret, solution.numStripes(var0, var1));
}
예제 #2
0
void testCase5 () {
string var0 = "100000000000000000";

string _var1[] = {"0","1 2","1 2"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 108LL;

assertEquals(5, ret, solution.numStripes(var0, var1));
}
예제 #3
0
void testCase26 () {
string var0 = "32899482551498535";

string _var1[] = {"0 1","0 1 2","1 2 3","2 3 4","3 4 5","4 5 6","5 6 7","6 7 8","7 8 9","8 9"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 20LL;

assertEquals(26, ret, solution.numStripes(var0, var1));
}
예제 #4
0
void testCase27 () {
string var0 = "10000000000000000";

string _var1[] = {"0 2 3","1 2 3","0 1 2","0 1 3"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 2500000000000000LL;

assertEquals(27, ret, solution.numStripes(var0, var1));
}
예제 #5
0
void testCase19 () {
string var0 = "6";

string _var1[] = {"0","1","2","3","4","5"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 1LL;

assertEquals(19, ret, solution.numStripes(var0, var1));
}
예제 #6
0
void testCase14 () {
string var0 = "40";

string _var1[] = {"0","1 2","1 2","3"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 3LL;

assertEquals(14, ret, solution.numStripes(var0, var1));
}
예제 #7
0
void testCase8 () {
string var0 = "10000000000000000";

string _var1[] = {"0 1 2 3 4 5 6 7 8 9","0 1 3 4 5 6 7 8 9","0 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9","0 1 2 3 4 5 6 7 8 9"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 4999999999999996LL;

assertEquals(8, ret, solution.numStripes(var0, var1));
}
예제 #8
0
void testCase7 () {
string var0 = "10000000000000000";

string _var1[] = {"0 5 6 7 8 9","1","2","3","4","0 5","0 6","0 7","0 8","0 9"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 18LL;

assertEquals(7, ret, solution.numStripes(var0, var1));
}
예제 #9
0
void testCase6 () {
string var0 = "10000000000000000";

string _var1[] = {"0 1","0 1","2 3 4","2 3 4","2 3 4"};
vector <string> var1 (_var1, _var1 + (sizeof(_var1) / sizeof(_var1[0])));

long long ret = 40LL;

assertEquals(6, ret, solution.numStripes(var0, var1));
}