id
stringlengths
9
111
java
stringlengths
188
2.04k
python
stringlengths
40
1.94k
cpp
stringlengths
65
1.25k
java_test
stringlengths
532
56.4k
python_test
stringlengths
348
57.4k
cpp_test
stringlengths
328
4.71k
LCS_FORMED_CONSECUTIVE_SEGMENTS_LEAST_LENGTH_K
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class LCS_FORMED_CONSECUTIVE_SEGMENTS_LEAST_LENGTH_K{ static int f_gold ( int k , String s1 , String s2 ) { int n = s1 . length ( ) ; int m = s2 . length ( ) ; int lcs [ ] [ ] = new int [ n + 1 ] [ m + 1 ] ; int cnt [ ] [ ] = new int [ n + 1 ] [ m + 1 ] ; for ( int i = 1 ; i <= n ; i ++ ) { for ( int j = 1 ; j <= m ; j ++ ) { lcs [ i ] [ j ] = Math . max ( lcs [ i - 1 ] [ j ] , lcs [ i ] [ j - 1 ] ) ; if ( s1 . charAt ( i - 1 ) == s2 . charAt ( j - 1 ) ) cnt [ i ] [ j ] = cnt [ i - 1 ] [ j - 1 ] + 1 ; if ( cnt [ i ] [ j ] >= k ) { for ( int a = k ; a <= cnt [ i ] [ j ] ; a ++ ) lcs [ i ] [ j ] = Math . max ( lcs [ i ] [ j ] , lcs [ i - a ] [ j - a ] + a ) ; } } } return lcs [ n ] [ m ] ; }
def f_gold ( k , s1 , s2 ) : n = len ( s1 ) m = len ( s2 ) lcs = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ] cnt = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ] for i in range ( 1 , n + 1 ) : for j in range ( 1 , m + 1 ) : lcs [ i ] [ j ] = max ( lcs [ i - 1 ] [ j ] , lcs [ i ] [ j - 1 ] ) if ( s1 [ i - 1 ] == s2 [ j - 1 ] ) : cnt [ i ] [ j ] = cnt [ i - 1 ] [ j - 1 ] + 1 ; if ( cnt [ i ] [ j ] >= k ) : for a in range ( k , cnt [ i ] [ j ] + 1 ) : lcs [ i ] [ j ] = max ( lcs [ i ] [ j ] , lcs [ i - a ] [ j - a ] + a ) return lcs [ n ] [ m ]
using namespace std; int f_gold ( int k, string s1, string s2 ) { int n = s1 . length ( ); int m = s2 . length ( ); int lcs [ n + 1 ] [ m + 1 ]; int cnt [ n + 1 ] [ m + 1 ]; memset ( lcs, 0, sizeof ( lcs ) ); memset ( cnt, 0, sizeof ( cnt ) ); for ( int i = 1; i <= n; i ++ ) { for ( int j = 1; j <= m; j ++ ) { lcs [ i ] [ j ] = max ( lcs [ i - 1 ] [ j ], lcs [ i ] [ j - 1 ] ); if ( s1 [ i - 1 ] == s2 [ j - 1 ] ) cnt [ i ] [ j ] = cnt [ i - 1 ] [ j - 1 ] + 1; if ( cnt [ i ] [ j ] >= k ) { for ( int a = k; a <= cnt [ i ] [ j ]; a ++ ) lcs [ i ] [ j ] = max ( lcs [ i ] [ j ], lcs [ i - a ] [ j - a ] + a ); } } } return lcs [ n ] [ m ]; }
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(4); param0.add(2); param0.add(3); param0.add(5); param0.add(2); param0.add(3); param0.add(3); param0.add(1); param0.add(2); param0.add(2); List<String> param1 = new ArrayList<>(); param1.add("aggayxysdfa"); param1.add("55571659965107"); param1.add("01011011100"); param1.add("aggasdfa"); param1.add("5710246551"); param1.add("0100010"); param1.add("aabcaaaa"); param1.add("1219"); param1.add("111000011"); param1.add("wiC oD"); List<String> param2 = new ArrayList<>(); param2.add("aggajxaaasdfa"); param2.add("390286654154"); param2.add("0000110001000"); param2.add("aggajasdfaxy"); param2.add("79032504084062"); param2.add("10100000"); param2.add("baaabcd"); param2.add("3337119582"); param2.add("011"); param2.add("csiuGOUwE"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i),param2.get(i)) == f_gold(param0.get(i),param1.get(i),param2.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (4,'aggayxysdfa','aggajxaaasdfa',), (2,'55571659965107','390286654154',), (3,'01011011100','0000110001000',), (5,'aggasdfa','aggajasdfaxy',), (2,'5710246551','79032504084062',), (3,'0100010','10100000',), (3,'aabcaaaa','baaabcd',), (1,'1219','3337119582',), (2,'111000011','011',), (2,'wiC oD','csiuGOUwE',) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<int> param0 {4,2,3,5,2,3,3,1,2,2}; vector<string> param1 {"aggayxysdfa","55571659965107","01011011100","aggasdfa","5710246551","0100010","aabcaaaa","1219","111000011","wiC oD"}; vector<string> param2 {"aggajxaaasdfa","390286654154","0000110001000","aggajasdfaxy","79032504084062","10100000","baaabcd","3337119582","011","csiuGOUwE"}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i],param1[i],param2[i]) == f_gold(param0[i],param1[i],param2[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
COUNT_CHARACTERS_STRING_DISTANCE_ENGLISH_ALPHABETS
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class COUNT_CHARACTERS_STRING_DISTANCE_ENGLISH_ALPHABETS{ static int f_gold ( String str ) { int result = 0 ; int n = str . length ( ) ; for ( int i = 0 ; i < n ; i ++ ) for ( int j = i + 1 ; j < n ; j ++ ) if ( Math . abs ( str . charAt ( i ) - str . charAt ( j ) ) == Math . abs ( i - j ) ) result ++ ; return result ; }
def f_gold ( str1 ) : result = 0 ; n = len ( str1 ) for i in range ( 0 , n ) : for j in range ( i + 1 , n ) : if ( abs ( ord ( str1 [ i ] ) - ord ( str1 [ j ] ) ) == abs ( i - j ) ) : result += 1 ; return result ;
using namespace std; int f_gold ( string str ) { int result = 0; int n = str . length ( ); for ( int i = 0; i < n; i ++ ) for ( int j = i + 1; j < n; j ++ ) if ( abs ( str [ i ] - str [ j ] ) == abs ( i - j ) ) result ++; return result; }
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add("smnKL"); param0.add("270083"); param0.add("0"); param0.add("kcZdsz"); param0.add("483544224"); param0.add("000011"); param0.add("WysGCirMwKBzP"); param0.add("3366"); param0.add("110"); param0.add("NlaMkpCjUgg"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)) == f_gold(param0.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ ('smnKL',), ('270083',), ('0',), ('kcZdsz',), ('483544224',), ('000011',), ('WysGCirMwKBzP',), ('3366',), ('110',), ('NlaMkpCjUgg',) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<string> param0 {"smnKL","270083","0","kcZdsz","483544224","000011","WysGCirMwKBzP","3366","110","NlaMkpCjUgg"}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
RECURSIVE_PROGRAM_PRIME_NUMBER
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class RECURSIVE_PROGRAM_PRIME_NUMBER{ static boolean f_gold ( int n , int i ) { if ( n <= 2 ) return ( n == 2 ) ? true : false ; if ( n % i == 0 ) return false ; if ( i * i > n ) return true ; return f_gold ( n , i + 1 ) ; }
null
using namespace std; bool f_gold ( int n, int i = 2 ) { if ( n <= 2 ) return ( n == 2 ) ? true : false; if ( n % i == 0 ) return false; if ( i * i > n ) return true; return f_gold ( n, i + 1 ); }
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(3); param0.add(7); param0.add(89); param0.add(97); param0.add(41); param0.add(73); param0.add(95); param0.add(69); param0.add(20); param0.add(30); List<Integer> param1 = new ArrayList<>(); param1.add(2); param1.add(2); param1.add(2); param1.add(2); param1.add(2); param1.add(2); param1.add(2); param1.add(2); param1.add(2); param1.add(2); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i)) == f_gold(param0.get(i),param1.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
null
int main() { int n_success = 0; vector<int> param0 {3,7,89,97,41,73,95,69,20,30}; vector<int> param1 {2,2,2,2,2,2,2,2,2,2}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
COUNT_DISTINCT_OCCURRENCES_AS_A_SUBSEQUENCE
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class COUNT_DISTINCT_OCCURRENCES_AS_A_SUBSEQUENCE{ static int f_gold ( String S , String T ) { int m = T . length ( ) ; int n = S . length ( ) ; if ( m > n ) return 0 ; int mat [ ] [ ] = new int [ m + 1 ] [ n + 1 ] ; for ( int i = 1 ; i <= m ; i ++ ) mat [ i ] [ 0 ] = 0 ; for ( int j = 0 ; j <= n ; j ++ ) mat [ 0 ] [ j ] = 1 ; for ( int i = 1 ; i <= m ; i ++ ) { for ( int j = 1 ; j <= n ; j ++ ) { if ( T . charAt ( i - 1 ) != S . charAt ( j - 1 ) ) mat [ i ] [ j ] = mat [ i ] [ j - 1 ] ; else mat [ i ] [ j ] = mat [ i ] [ j - 1 ] + mat [ i - 1 ] [ j - 1 ] ; } } return mat [ m ] [ n ] ; }
def f_gold ( S , T ) : m = len ( T ) n = len ( S ) if m > n : return 0 mat = [ [ 0 for _ in range ( n + 1 ) ] for __ in range ( m + 1 ) ] for i in range ( 1 , m + 1 ) : mat [ i ] [ 0 ] = 0 for j in range ( n + 1 ) : mat [ 0 ] [ j ] = 1 for i in range ( 1 , m + 1 ) : for j in range ( 1 , n + 1 ) : if T [ i - 1 ] != S [ j - 1 ] : mat [ i ] [ j ] = mat [ i ] [ j - 1 ] else : mat [ i ] [ j ] = ( mat [ i ] [ j - 1 ] + mat [ i - 1 ] [ j - 1 ] ) return mat [ m ] [ n ]
using namespace std; int f_gold ( string S, string T ) { int m = T . length ( ), n = S . length ( ); if ( m > n ) return 0; int mat [ m + 1 ] [ n + 1 ]; for ( int i = 1; i <= m; i ++ ) mat [ i ] [ 0 ] = 0; for ( int j = 0; j <= n; j ++ ) mat [ 0 ] [ j ] = 1; for ( int i = 1; i <= m; i ++ ) { for ( int j = 1; j <= n; j ++ ) { if ( T [ i - 1 ] != S [ j - 1 ] ) mat [ i ] [ j ] = mat [ i ] [ j - 1 ]; else mat [ i ] [ j ] = mat [ i ] [ j - 1 ] + mat [ i - 1 ] [ j - 1 ]; } } return mat [ m ] [ n ]; }
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add("banana"); param0.add("49597223"); param0.add("1000010000011"); param0.add("BTlzufK"); param0.add("3474007"); param0.add("0010"); param0.add("dKHhoTD"); param0.add("9123259723"); param0.add("11001000111110"); param0.add("iY WJlIZ"); List<String> param1 = new ArrayList<>(); param1.add("ban"); param1.add("42"); param1.add("010"); param1.add("lf RS"); param1.add("370"); param1.add("00000"); param1.add("doT"); param1.add("123"); param1.add("0"); param1.add("iI"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i)) == f_gold(param0.get(i),param1.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ ('banana','ban',), ('49597223','42',), ('1000010000011','010',), ('BTlzufK','EpsVuzP lf',), ('3474007','370',), ('0010','00000',), ('dKHhoTD','doT',), ('9123259723','123',), ('11001000111110','0',), ('iY WJlIZ','iI',) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<string> param0 {"banana","49597223","1000010000011","BTlzufK","3474007","0010","dKHhoTD","9123259723","11001000111110","iY WJlIZ"}; vector<string> param1 {"ban","42","010","lf","370","00000","doT","123","0","iI"}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
CHECK_WHETHER_TWO_STRINGS_ARE_ANAGRAM_OF_EACH_OTHER
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class CHECK_WHETHER_TWO_STRINGS_ARE_ANAGRAM_OF_EACH_OTHER{ static boolean f_gold ( char [ ] str1 , char [ ] str2 ) { int n1 = str1 . length ; int n2 = str2 . length ; if ( n1 != n2 ) return false ; Arrays . sort ( str1 ) ; Arrays . sort ( str2 ) ; for ( int i = 0 ; i < n1 ; i ++ ) if ( str1 [ i ] != str2 [ i ] ) return false ; return true ; }
def f_gold ( str1 , str2 ) : n1 = len ( str1 ) n2 = len ( str2 ) if n1 != n2 : return 0 str1 = sorted ( str1 ) str2 = sorted ( str2 ) for i in range ( 0 , n1 ) : if str1 [ i ] != str2 [ i ] : return 0 return 1
null
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add("LISTEN"); param0.add("TRIANGLE"); param0.add("test"); param0.add("night"); param0.add("Inch"); param0.add("Dusty"); param0.add("GJLMOOSTTXaabceefgllpwz"); param0.add("41658699122772743330"); param0.add("0000000000000000000000001111111111111111111"); param0.add("ERioPYDqgTSz bVCW"); List<String> param1 = new ArrayList<>(); param1.add("SILENT"); param1.add("INTEGRAL"); param1.add("ttew"); param1.add("thing"); param1.add("Study"); param1.add("1"); param1.add("EJRXYajoy"); param1.add("9931020"); param1.add("0000000000000000000001111111111111111111111"); param1.add("GLajZE"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i).toCharArray(),param1.get(i).toCharArray()) == f_gold(param0.get(i).toCharArray(),param1.get(i).toCharArray())) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (['LISTEN'],['SILENT'],), (['TRIANGLE'],['INTEGRAL'],), (['test'],['ttew'],), (['night'],['thing'],), (['Inch'],['Study'],), (['Dusty'],['1'],), (['GJLMOOSTTXaabceefgllpwz'],['EJRXYajoy'],), (['41658699122772743330'],['9931020'],), (['0000000000000000000000001111111111111111111'],['0000000000000000000001111111111111111111111'],), (['ERioPYDqgTSz bVCW'],['GLajZE'],) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
null
COUNT_NUMBERS_CAN_CONSTRUCTED_USING_TWO_NUMBERS
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class COUNT_NUMBERS_CAN_CONSTRUCTED_USING_TWO_NUMBERS{ static int f_gold ( int n , int x , int y ) { boolean [ ] arr = new boolean [ n + 1 ] ; if ( x <= n ) arr [ x ] = true ; if ( y <= n ) arr [ y ] = true ; int result = 0 ; for ( int i = Math . min ( x , y ) ; i <= n ; i ++ ) { if ( arr [ i ] ) { if ( i + x <= n ) arr [ i + x ] = true ; if ( i + y <= n ) arr [ i + y ] = true ; result ++ ; } } return result ; }
def f_gold ( n , x , y ) : arr = [ False for i in range ( n + 2 ) ] if ( x <= n ) : arr [ x ] = True if ( y <= n ) : arr [ y ] = True result = 0 for i in range ( min ( x , y ) , n + 1 ) : if ( arr [ i ] ) : if ( i + x <= n ) : arr [ i + x ] = True if ( i + y <= n ) : arr [ i + y ] = True result = result + 1 return result
using namespace std; int f_gold ( int n, int x, int y ) { vector < bool > arr ( n + 1, false ); if ( x <= n ) arr [ x ] = true; if ( y <= n ) arr [ y ] = true; int result = 0; for ( int i = min ( x, y ); i <= n; i ++ ) { if ( arr [ i ] ) { if ( i + x <= n ) arr [ i + x ] = true; if ( i + y <= n ) arr [ i + y ] = true; result ++; } } return result; }
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(23); param0.add(56); param0.add(30); param0.add(51); param0.add(21); param0.add(69); param0.add(12); param0.add(44); param0.add(99); param0.add(46); List<Integer> param1 = new ArrayList<>(); param1.add(16); param1.add(95); param1.add(63); param1.add(89); param1.add(99); param1.add(63); param1.add(69); param1.add(52); param1.add(65); param1.add(58); List<Integer> param2 = new ArrayList<>(); param2.add(16); param2.add(6); param2.add(1); param2.add(46); param2.add(38); param2.add(50); param2.add(73); param2.add(9); param2.add(10); param2.add(37); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i),param2.get(i)) == f_gold(param0.get(i),param1.get(i),param2.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (23,16,16,), (56,95,6,), (30,63,1,), (51,89,46,), (21,99,38,), (69,63,50,), (12,69,73,), (44,52,9,), (99,65,10,), (46,58,37,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<int> param0 {23,56,30,51,21,69,12,44,99,46}; vector<int> param1 {16,95,63,89,99,63,69,52,65,58}; vector<int> param2 {16,6,1,46,38,50,73,9,10,37}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i],param1[i],param2[i]) == f_gold(param0[i],param1[i],param2[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
SUM_PAIRWISE_PRODUCTS
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class SUM_PAIRWISE_PRODUCTS{ static int f_gold ( int n ) { int sum = 0 ; for ( int i = 1 ; i <= n ; i ++ ) for ( int j = i ; j <= n ; j ++ ) sum = sum + i * j ; return sum ; }
def f_gold ( n ) : sm = 0 for i in range ( 1 , n + 1 ) : for j in range ( i , n + 1 ) : sm = sm + i * j return sm
using namespace std; long long int f_gold ( int n ) { long long int sum = 0; for ( int i = 1; i <= n; i ++ ) for ( int j = i; j <= n; j ++ ) sum = sum + i * j; return sum; }
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(21); param0.add(32); param0.add(16); param0.add(38); param0.add(9); param0.add(3); param0.add(5); param0.add(46); param0.add(45); param0.add(87); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)) == f_gold(param0.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (21,), (32,), (16,), (38,), (9,), (3,), (5,), (46,), (45,), (87,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<int> param0 {21,32,16,38,9,3,5,46,45,87}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
COUNT_SET_BITS_IN_AN_INTEGER
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class COUNT_SET_BITS_IN_AN_INTEGER{ static int f_gold ( int n ) { int count = 0 ; while ( n > 0 ) { count += n & 1 ; n >>= 1 ; } return count ; }
def f_gold ( n ) : count = 0 while ( n ) : count += n & 1 n >>= 1 return count
using namespace std; unsigned int f_gold ( unsigned int n ) { unsigned int count = 0; while ( n ) { count += n & 1; n >>= 1; } return count; }
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(58); param0.add(92); param0.add(73); param0.add(52); param0.add(24); param0.add(14); param0.add(58); param0.add(11); param0.add(8); param0.add(52); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)) == f_gold(param0.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (58,), (92,), (73,), (52,), (24,), (14,), (58,), (11,), (8,), (52,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<int> param0 {58,92,73,52,24,14,58,11,8,52}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
LONGEST_PALINDROME_SUBSEQUENCE_SPACE
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class LONGEST_PALINDROME_SUBSEQUENCE_SPACE{ static int f_gold ( String s ) { int n = s . length ( ) ; int a [ ] = new int [ n ] ; for ( int i = n - 1 ; i >= 0 ; i -- ) { int back_up = 0 ; for ( int j = i ; j < n ; j ++ ) { if ( j == i ) a [ j ] = 1 ; else if ( s . charAt ( i ) == s . charAt ( j ) ) { int temp = a [ j ] ; a [ j ] = back_up + 2 ; back_up = temp ; } else { back_up = a [ j ] ; a [ j ] = Math . max ( a [ j - 1 ] , a [ j ] ) ; } } } return a [ n - 1 ] ; }
def f_gold ( s ) : n = len ( s ) a = [ 0 ] * n for i in range ( n - 1 , - 1 , - 1 ) : back_up = 0 for j in range ( i , n ) : if j == i : a [ j ] = 1 elif s [ i ] == s [ j ] : temp = a [ j ] a [ j ] = back_up + 2 back_up = temp else : back_up = a [ j ] a [ j ] = max ( a [ j - 1 ] , a [ j ] ) return a [ n - 1 ]
using namespace std; int f_gold ( string & s ) { int n = s . length ( ); int a [ n ]; for ( int i = n - 1; i >= 0; i -- ) { int back_up = 0; for ( int j = i; j < n; j ++ ) { if ( j == i ) a [ j ] = 1; else if ( s [ i ] == s [ j ] ) { int temp = a [ j ]; a [ j ] = back_up + 2; back_up = temp; } else { back_up = a [ j ]; a [ j ] = max ( a [ j - 1 ], a [ j ] ); } } } return a [ n - 1 ]; }
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add(" E"); param0.add("0845591950"); param0.add("00101011"); param0.add("pLSvlwrACvFaoT"); param0.add("7246"); param0.add("1010101100000"); param0.add("obPkcLSFp"); param0.add("914757557818"); param0.add("1"); param0.add("PKvUWIQ"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)) == f_gold(param0.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (' E',), ('0845591950',), ('00101011',), ('pLSvlwrACvFaoT',), ('7246',), ('1010101100000',), ('obPkcLSFp',), ('914757557818',), ('1',), ('PKvUWIQ',) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<string> param0 {" E","0845591950","00101011","pLSvlwrACvFaoT","7246","1010101100000","obPkcLSFp","914757557818","1","PKvUWIQ"}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
LONGEST_EVEN_LENGTH_SUBSTRING_SUM_FIRST_SECOND_HALF
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class LONGEST_EVEN_LENGTH_SUBSTRING_SUM_FIRST_SECOND_HALF{ static int f_gold ( String str ) { int n = str . length ( ) ; int maxlen = 0 ; for ( int i = 0 ; i < n ; i ++ ) { for ( int j = i + 1 ; j < n ; j += 2 ) { int length = j - i + 1 ; int leftsum = 0 , rightsum = 0 ; for ( int k = 0 ; k < length / 2 ; k ++ ) { leftsum += ( str . charAt ( i + k ) - '0' ) ; rightsum += ( str . charAt ( i + k + length / 2 ) - '0' ) ; } if ( leftsum == rightsum && maxlen < length ) maxlen = length ; } } return maxlen ; }
null
null
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add("yQHVDWxcfsazM"); param0.add("7889372253"); param0.add("00"); param0.add("N"); param0.add("178791892313"); param0.add("110111101111"); param0.add("Ba"); param0.add("320901509"); param0.add("11"); param0.add(" HCUbvi"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)) == f_gold(param0.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
null
null
DYCK_PATH
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class DYCK_PATH{ public static int f_gold ( int n ) { int res = 1 ; for ( int i = 0 ; i < n ; ++ i ) { res *= ( 2 * n - i ) ; res /= ( i + 1 ) ; } return res / ( n + 1 ) ; }
def f_gold ( n ) : res = 1 for i in range ( 0 , n ) : res *= ( 2 * n - i ) res /= ( i + 1 ) return res / ( n + 1 )
using namespace std; int f_gold ( unsigned int n ) { int res = 1; for ( int i = 0; i < n; ++ i ) { res *= ( 2 * n - i ); res /= ( i + 1 ); } return res / ( n + 1 ); }
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(72); param0.add(90); param0.add(61); param0.add(28); param0.add(70); param0.add(13); param0.add(7); param0.add(98); param0.add(99); param0.add(67); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)) == f_gold(param0.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (72,), (90,), (61,), (28,), (70,), (13,), (7,), (98,), (99,), (67,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<int> param0 {72,90,61,28,70,13,7,98,99,67}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
PRINT_A_CLOSEST_STRING_THAT_DOES_NOT_CONTAIN_ADJACENT_DUPLICATES
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class PRINT_A_CLOSEST_STRING_THAT_DOES_NOT_CONTAIN_ADJACENT_DUPLICATES{ public static String f_gold ( String s1 ) { int n = s1 . length ( ) ; char [ ] s = s1 . toCharArray ( ) ; for ( int i = 1 ; i < n ; i ++ ) { if ( s [ i ] == s [ i - 1 ] ) { s [ i ] = 'a' ; while ( s [ i ] == s [ i - 1 ] || ( i + 1 < n && s [ i ] == s [ i + 1 ] ) ) s [ i ] ++ ; i ++ ; } } return ( new String ( s ) ) ; }
null
using namespace std; string f_gold ( string s ) { int n = s . length ( ); for ( int i = 1; i < n; i ++ ) { if ( s [ i ] == s [ i - 1 ] ) { s [ i ] = 'a'; while ( s [ i ] == s [ i - 1 ] || ( i + 1 < n && s [ i ] == s [ i + 1 ] ) ) s [ i ] ++; i ++; } } return s; }
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add("cHcZCdkbIMGUYe"); param0.add("2292016725711"); param0.add("10110111100010"); param0.add("wHso xGbBY"); param0.add("21884"); param0.add("0"); param0.add("I"); param0.add("716213436"); param0.add("101"); param0.add("HXdDbjcyPc"); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i)).equals(f_gold(param0.get(i)))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
null
int main() { int n_success = 0; vector<string> param0 {"cHcZCdkbIMGUYe","2292016725711","10110111100010","wHso xGbBY","21884","0","I","716213436","101","HXdDbjcyPc"}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
OVERLAPPING_SUM_TWO_ARRAY
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class OVERLAPPING_SUM_TWO_ARRAY{ static int f_gold ( int [ ] A , int [ ] B , int n ) { HashMap < Integer , Integer > hash = new HashMap < > ( ) ; for ( int i = 0 ; i < n ; i ++ ) { if ( hash . containsKey ( A [ i ] ) ) hash . put ( A [ i ] , 1 + hash . get ( A [ i ] ) ) ; else hash . put ( A [ i ] , 1 ) ; if ( hash . containsKey ( B [ i ] ) ) hash . put ( B [ i ] , 1 + hash . get ( B [ i ] ) ) ; else hash . put ( B [ i ] , 1 ) ; } int sum = 0 ; for ( Map . Entry entry : hash . entrySet ( ) ) { if ( Integer . parseInt ( ( entry . getValue ( ) ) . toString ( ) ) == 1 ) sum += Integer . parseInt ( ( entry . getKey ( ) ) . toString ( ) ) ; } return sum ; }
null
using namespace std; int f_gold ( int A [ ], int B [ ], int n ) { unordered_map < int, int > hash; for ( int i = 0; i < n; i ++ ) { hash [ A [ i ] ] ++; hash [ B [ i ] ] ++; } int sum = 0; for ( auto x : hash ) if ( x . second == 1 ) sum += x . first; return sum; }
public static void main(String args[]) { int n_success = 0; List<int [ ]> param0 = new ArrayList<>(); param0.add(new int[]{13,31,63,75,90,92,94,98}); param0.add(new int[]{-20}); param0.add(new int[]{0,0,0,1,1,1}); param0.add(new int[]{47,71,9,64,66,99,7,44,75,84,88,49,95,56,3,90,73,2}); param0.add(new int[]{-76,-72,-70,-60,-44,-38,-38,-26,-16,-10,-4,-2,4,18,30,38,54,56,64,66,68,70,72,82,84}); param0.add(new int[]{0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,1,0,1,0,0,1,0,0,1,1,1}); param0.add(new int[]{3,4,4,6,11,13,14,18,30,30,34,39,40,45,46,50,51,56,60,61,66,68,72,79,79,82,83,87,89,91,91,92,92,93,94}); param0.add(new int[]{-14,12,98,34,58,-70,6,52,-50,96,-6}); param0.add(new int[]{0,0,0,1,1,1,1,1}); param0.add(new int[]{34,85,60,55,38,69,21,43,39,83,10,71,73,15,94,59,83,39,29,31,61,9,11,27,71,90,18,11,4,3,97,43,58,50,35,42,70,33,98,61,32,32,12,29}); List<int [ ]> param1 = new ArrayList<>(); param1.add(new int[]{14,16,20,28,32,55,56,56}); param1.add(new int[]{60}); param1.add(new int[]{0,0,1,1,1,1}); param1.add(new int[]{8,27,21,40,99,8,52,37,72,50,61,82,88,71,27,84,38,35}); param1.add(new int[]{-80,-64,-50,-44,-34,-26,-24,-22,-6,-2,2,2,12,24,34,44,48,50,52,70,76,82,86,94,96}); param1.add(new int[]{0,0,0,1,1,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0}); param1.add(new int[]{3,7,15,15,21,23,30,32,35,38,38,41,41,41,44,45,49,52,60,60,63,66,66,70,72,74,74,75,79,81,87,88,89,93,96}); param1.add(new int[]{50,-22,-82,40,-80,30,-58,-64,60,6,-28}); param1.add(new int[]{0,0,1,1,1,1,1,1}); param1.add(new int[]{74,10,95,67,59,17,32,87,87,12,22,45,50,35,25,51,10,86,75,4,74,43,92,63,60,28,32,72,66,61,43,48,20,89,55,59,22,85,73,43,7,65,53,98}); List<Integer> param2 = new ArrayList<>(); param2.add(6); param2.add(0); param2.add(5); param2.add(16); param2.add(16); param2.add(17); param2.add(22); param2.add(9); param2.add(5); param2.add(34); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i),param2.get(i)) == f_gold(param0.get(i),param1.get(i),param2.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
null
int main() { int n_success = 0; vector<vector<int>> param0 {{13,31,63,75,90,92,94,98},{-20},{0,0,0,1,1,1},{47,71,9,64,66,99,7,44,75,84,88,49,95,56,3,90,73,2},{-76,-72,-70,-60,-44,-38,-38,-26,-16,-10,-4,-2,4,18,30,38,54,56,64,66,68,70,72,82,84},{0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,1,0,1,0,0,1,0,0,1,1,1},{3,4,4,6,11,13,14,18,30,30,34,39,40,45,46,50,51,56,60,61,66,68,72,79,79,82,83,87,89,91,91,92,92,93,94},{-14,12,98,34,58,-70,6,52,-50,96,-6},{0,0,0,1,1,1,1,1},{34,85,60,55,38,69,21,43,39,83,10,71,73,15,94,59,83,39,29,31,61,9,11,27,71,90,18,11,4,3,97,43,58,50,35,42,70,33,98,61,32,32,12,29}}; vector<vector<int>> param1 {{14,16,20,28,32,55,56,56},{60},{0,0,1,1,1,1},{8,27,21,40,99,8,52,37,72,50,61,82,88,71,27,84,38,35},{-80,-64,-50,-44,-34,-26,-24,-22,-6,-2,2,2,12,24,34,44,48,50,52,70,76,82,86,94,96},{0,0,0,1,1,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0},{3,7,15,15,21,23,30,32,35,38,38,41,41,41,44,45,49,52,60,60,63,66,66,70,72,74,74,75,79,81,87,88,89,93,96},{50,-22,-82,40,-80,30,-58,-64,60,6,-28},{0,0,1,1,1,1,1,1},{74,10,95,67,59,17,32,87,87,12,22,45,50,35,25,51,10,86,75,4,74,43,92,63,60,28,32,72,66,61,43,48,20,89,55,59,22,85,73,43,7,65,53,98}}; vector<int> param2 {6,0,5,16,16,17,22,9,5,34}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(&param0[i].front(),&param1[i].front(),param2[i]) == f_gold(&param0[i].front(),&param1[i].front(),param2[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
MOBILE_NUMERIC_KEYPAD_PROBLEM
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class MOBILE_NUMERIC_KEYPAD_PROBLEM{ static int f_gold ( char keypad [ ] [ ] , int n ) { if ( keypad == null || n <= 0 ) return 0 ; if ( n == 1 ) return 10 ; int [ ] odd = new int [ 10 ] ; int [ ] even = new int [ 10 ] ; int i = 0 , j = 0 , useOdd = 0 , totalCount = 0 ; for ( i = 0 ; i <= 9 ; i ++ ) odd [ i ] = 1 ; for ( j = 2 ; j <= n ; j ++ ) { useOdd = 1 - useOdd ; if ( useOdd == 1 ) { even [ 0 ] = odd [ 0 ] + odd [ 8 ] ; even [ 1 ] = odd [ 1 ] + odd [ 2 ] + odd [ 4 ] ; even [ 2 ] = odd [ 2 ] + odd [ 1 ] + odd [ 3 ] + odd [ 5 ] ; even [ 3 ] = odd [ 3 ] + odd [ 2 ] + odd [ 6 ] ; even [ 4 ] = odd [ 4 ] + odd [ 1 ] + odd [ 5 ] + odd [ 7 ] ; even [ 5 ] = odd [ 5 ] + odd [ 2 ] + odd [ 4 ] + odd [ 8 ] + odd [ 6 ] ; even [ 6 ] = odd [ 6 ] + odd [ 3 ] + odd [ 5 ] + odd [ 9 ] ; even [ 7 ] = odd [ 7 ] + odd [ 4 ] + odd [ 8 ] ; even [ 8 ] = odd [ 8 ] + odd [ 0 ] + odd [ 5 ] + odd [ 7 ] + odd [ 9 ] ; even [ 9 ] = odd [ 9 ] + odd [ 6 ] + odd [ 8 ] ; } else { odd [ 0 ] = even [ 0 ] + even [ 8 ] ; odd [ 1 ] = even [ 1 ] + even [ 2 ] + even [ 4 ] ; odd [ 2 ] = even [ 2 ] + even [ 1 ] + even [ 3 ] + even [ 5 ] ; odd [ 3 ] = even [ 3 ] + even [ 2 ] + even [ 6 ] ; odd [ 4 ] = even [ 4 ] + even [ 1 ] + even [ 5 ] + even [ 7 ] ; odd [ 5 ] = even [ 5 ] + even [ 2 ] + even [ 4 ] + even [ 8 ] + even [ 6 ] ; odd [ 6 ] = even [ 6 ] + even [ 3 ] + even [ 5 ] + even [ 9 ] ; odd [ 7 ] = even [ 7 ] + even [ 4 ] + even [ 8 ] ; odd [ 8 ] = even [ 8 ] + even [ 0 ] + even [ 5 ] + even [ 7 ] + even [ 9 ] ; odd [ 9 ] = even [ 9 ] + even [ 6 ] + even [ 8 ] ; } } totalCount = 0 ; if ( useOdd == 1 ) { for ( i = 0 ; i <= 9 ; i ++ ) totalCount += even [ i ] ; } else { for ( i = 0 ; i <= 9 ; i ++ ) totalCount += odd [ i ] ; } return totalCount ; }
def f_gold ( keypad , n ) : if ( not keypad or n <= 0 ) : return 0 if ( n == 1 ) : return 10 odd = [ 0 ] * 10 even = [ 0 ] * 10 i = 0 j = 0 useOdd = 0 totalCount = 0 for i in range ( 10 ) : odd [ i ] = 1 for j in range ( 2 , n + 1 ) : useOdd = 1 - useOdd if ( useOdd == 1 ) : even [ 0 ] = odd [ 0 ] + odd [ 8 ] even [ 1 ] = odd [ 1 ] + odd [ 2 ] + odd [ 4 ] even [ 2 ] = odd [ 2 ] + odd [ 1 ] + odd [ 3 ] + odd [ 5 ] even [ 3 ] = odd [ 3 ] + odd [ 2 ] + odd [ 6 ] even [ 4 ] = odd [ 4 ] + odd [ 1 ] + odd [ 5 ] + odd [ 7 ] even [ 5 ] = odd [ 5 ] + odd [ 2 ] + odd [ 4 ] + odd [ 8 ] + odd [ 6 ] even [ 6 ] = odd [ 6 ] + odd [ 3 ] + odd [ 5 ] + odd [ 9 ] even [ 7 ] = odd [ 7 ] + odd [ 4 ] + odd [ 8 ] even [ 8 ] = odd [ 8 ] + odd [ 0 ] + odd [ 5 ] + odd [ 7 ] + odd [ 9 ] even [ 9 ] = odd [ 9 ] + odd [ 6 ] + odd [ 8 ] else : odd [ 0 ] = even [ 0 ] + even [ 8 ] odd [ 1 ] = even [ 1 ] + even [ 2 ] + even [ 4 ] odd [ 2 ] = even [ 2 ] + even [ 1 ] + even [ 3 ] + even [ 5 ] odd [ 3 ] = even [ 3 ] + even [ 2 ] + even [ 6 ] odd [ 4 ] = even [ 4 ] + even [ 1 ] + even [ 5 ] + even [ 7 ] odd [ 5 ] = even [ 5 ] + even [ 2 ] + even [ 4 ] + even [ 8 ] + even [ 6 ] odd [ 6 ] = even [ 6 ] + even [ 3 ] + even [ 5 ] + even [ 9 ] odd [ 7 ] = even [ 7 ] + even [ 4 ] + even [ 8 ] odd [ 8 ] = even [ 8 ] + even [ 0 ] + even [ 5 ] + even [ 7 ] + even [ 9 ] odd [ 9 ] = even [ 9 ] + even [ 6 ] + even [ 8 ] totalCount = 0 if ( useOdd == 1 ) : for i in range ( 10 ) : totalCount += even [ i ] else : for i in range ( 10 ) : totalCount += odd [ i ] return totalCount
null
public static void main(String args[]) { int n_success = 0; List<char [ ] [ ]> param0 = new ArrayList<>(); param0.add(new char[][]{new char[]{' ','A','C','K','R','R','V','c','d','i','i','j','m','o','q','q','r','r','v','v','x','z'},new char[]{'B','D','I','M','N','Q','R','Z','c','f','i','j','j','l','l','n','p','q','s','t','t','w'},new char[]{'A','F','F','G','H','J','K','K','N','V','V','b','c','c','g','i','j','l','l','s','t','y'},new char[]{' ','A','B','B','E','H','I','J','J','P','Q','T','U','V','Z','c','c','j','p','w','y','z'},new char[]{' ',' ','A','C','F','G','H','M','N','R','R','V','c','i','j','o','p','p','q','r','w','y'},new char[]{' ',' ','C','C','D','H','I','J','K','O','S','X','Y','f','h','h','o','p','p','u','u','w'},new char[]{'B','C','D','H','M','M','Q','Q','R','S','X','Z','e','e','e','j','k','l','m','o','v','w'},new char[]{'A','C','C','D','H','H','I','J','L','L','L','M','N','S','U','c','d','f','f','s','u','y'},new char[]{'A','B','D','D','I','J','K','L','L','M','P','S','S','Y','b','e','h','j','m','o','q','s'},new char[]{' ','B','E','H','H','J','M','P','S','T','U','V','Z','d','j','m','m','p','q','v','w','w'},new char[]{'B','E','F','G','H','M','M','M','N','O','Q','R','T','V','a','c','g','g','i','s','x','y'},new char[]{'A','E','G','J','O','R','R','S','T','W','a','b','f','h','h','i','m','n','s','u','v','y'},new char[]{'B','D','E','H','I','I','K','M','N','P','Q','S','a','e','i','j','m','o','p','r','x','z'},new char[]{'A','G','I','K','K','L','O','P','U','U','X','X','Z','a','c','f','g','i','l','o','o','v'},new char[]{' ',' ','E','H','J','J','L','M','N','O','P','S','S','X','c','f','g','r','u','v','x','z'},new char[]{'C','E','F','F','H','H','I','K','M','M','U','Z','e','e','h','h','h','j','k','k','p','r'},new char[]{' ',' ',' ','C','G','I','J','O','O','P','T','V','Y','b','j','n','o','o','s','u','w','x'},new char[]{'A','D','F','F','H','H','N','R','S','W','W','Y','Y','b','f','i','k','o','u','y','y','z'},new char[]{' ','C','G','I','I','L','P','S','X','Y','d','d','f','g','g','k','m','o','r','r','r','x'},new char[]{'F','I','J','N','P','P','Q','Q','R','X','Y','a','b','h','h','j','l','m','n','p','r','y'},new char[]{' ','C','D','E','F','L','Q','Q','V','c','g','h','k','k','l','l','n','o','p','r','u','x'},new char[]{' ','A','G','K','L','M','T','U','U','W','Z','a','f','i','k','k','n','n','p','q','v','z'}}); param0.add(new char[][]{new char[]{'3','5','1','5','6','7','7','3','0','4','7','6','1','4','0','6','3','4','1','3','1','2','9','8','7','8','0','2','7','6','1','0','3','8','0','5','9','3','9','9','8','6'},new char[]{'0','3','8','5','0','2','0','6','1','8','7','2','8','6','0','3','9','4','9','5','7','4','3','7','4','3','8','6','1','5','4','8','0','8','3','2','7','7','6','9','7','9'},new char[]{'6','7','1','1','7','2','5','3','2','8','4','7','8','6','1','5','2','1','6','5','7','6','8','6','8','8','1','6','3','1','1','7','1','6','4','9','2','8','2','6','3','4'},new char[]{'8','7','9','2','0','6','6','6','2','3','1','4','8','2','3','5','5','9','2','8','0','3','2','7','2','0','2','7','0','6','5','8','2','9','3','9','8','1','9','7','9','7'},new char[]{'9','8','1','5','0','9','9','7','7','8','4','1','8','0','4','6','7','0','5','8','6','5','6','5','1','4','0','4','3','4','6','7','6','7','3','5','4','5','6','7','1','1'},new char[]{'4','4','4','9','8','8','7','5','3','1','8','4','8','1','0','4','9','8','9','5','2','7','5','3','4','8','2','4','7','5','0','3','6','2','5','6','3','1','9','4','8','9'},new char[]{'7','2','7','6','2','8','8','8','1','1','5','4','6','5','3','0','3','7','4','0','0','2','4','1','8','0','0','7','6','4','7','1','8','8','1','8','8','2','3','1','7','2'},new char[]{'2','7','5','8','7','6','2','9','9','0','6','1','7','8','1','3','3','1','5','7','9','8','2','0','7','6','0','0','1','1','5','8','6','7','7','9','9','0','4','4','3','4'},new char[]{'0','9','9','0','5','4','9','9','3','0','3','1','5','9','9','5','3','0','2','3','9','9','7','8','5','4','6','4','2','8','7','0','2','3','6','5','2','6','0','6','5','7'},new char[]{'1','1','4','1','4','2','7','1','9','7','9','9','4','4','2','7','6','8','2','6','7','3','1','8','0','5','3','0','3','9','0','4','7','9','6','8','1','7','0','3','2','4'},new char[]{'6','3','1','3','2','9','5','5','4','7','2','4','7','6','9','2','0','1','2','1','4','3','8','4','9','8','9','7','7','6','8','2','4','5','3','0','1','3','0','1','0','9'},new char[]{'5','9','4','2','1','5','0','2','6','6','0','8','3','0','3','3','3','0','7','8','0','7','7','4','3','0','6','9','6','2','2','2','8','3','7','2','4','0','0','4','5','2'},new char[]{'3','1','1','6','2','9','7','0','3','2','8','0','5','2','2','9','9','2','8','3','5','7','4','2','8','7','8','0','4','9','7','8','0','3','2','2','1','5','1','4','9','1'},new char[]{'6','4','8','2','4','2','5','4','0','1','0','9','0','3','0','6','4','8','6','7','9','3','0','1','6','9','5','7','5','2','9','4','7','0','6','4','1','4','4','1','3','5'},new char[]{'6','7','8','2','9','5','0','2','6','5','4','9','4','7','8','4','6','7','6','5','1','3','8','1','7','5','9','3','9','4','0','6','5','6','9','8','4','6','9','9','0','2'},new char[]{'6','9','2','4','3','7','2','5','8','6','3','6','3','6','7','2','6','8','6','4','3','9','6','2','1','3','1','8','8','9','6','2','0','2','2','9','3','6','4','4','8','7'},new char[]{'1','4','5','5','7','2','3','8','3','6','9','3','3','4','4','2','3','7','5','5','2','8','7','2','7','6','0','5','1','4','1','5','5','0','4','8','7','8','1','4','2','6'},new char[]{'5','6','8','0','0','6','3','8','3','8','2','0','8','5','4','4','0','0','8','5','8','9','1','3','3','1','1','2','9','9','1','2','1','3','5','8','7','9','3','1','3','5'},new char[]{'9','6','7','4','9','0','2','8','9','4','3','6','4','1','8','3','1','8','0','4','4','2','1','2','9','8','3','6','7','3','9','5','7','9','1','4','6','1','4','5','4','0'},new char[]{'5','7','4','0','6','7','8','3','6','5','8','1','4','9','9','2','7','7','4','2','8','0','8','3','2','7','3','5','7','4','4','1','3','5','1','9','6','1','0','9','5','4'},new char[]{'3','4','0','0','3','2','2','2','9','7','5','5','1','8','4','7','9','0','7','4','1','9','3','7','3','9','5','0','3','6','6','8','8','4','1','8','2','3','9','5','3','3'},new char[]{'7','0','6','2','5','2','1','8','1','4','4','8','9','0','3','0','3','1','9','0','8','0','1','0','3','7','6','6','3','9','4','3','4','4','1','4','7','2','9','5','8','3'},new char[]{'7','5','7','9','8','8','3','4','3','2','5','2','4','6','5','6','1','6','0','4','9','6','8','0','3','3','2','1','1','8','9','5','3','8','3','0','4','7','7','9','2','6'},new char[]{'6','3','9','7','5','8','5','1','1','6','6','0','8','3','2','7','3','0','4','5','1','2','3','0','4','2','8','4','1','1','0','2','3','2','5','6','3','0','1','2','2','5'},new char[]{'8','7','2','1','4','9','6','5','2','0','9','1','0','8','6','9','7','3','4','5','6','7','2','8','3','0','1','9','5','4','4','1','6','4','0','5','1','5','7','8','2','4'},new char[]{'4','8','1','1','7','0','8','0','2','1','8','2','2','7','6','2','3','5','2','5','5','5','9','3','4','9','4','9','8','8','0','1','6','7','7','5','7','5','9','3','6','1'},new char[]{'5','8','6','8','0','7','3','1','9','2','3','5','5','5','0','9','2','2','2','8','7','7','6','7','6','7','4','3','9','8','3','9','3','5','7','1','3','1','4','0','7','1'},new char[]{'9','2','6','8','8','6','8','4','8','6','7','7','7','0','2','6','5','1','5','3','8','0','5','6','5','4','9','4','6','0','0','7','2','2','1','1','0','5','1','2','5','1'},new char[]{'1','8','4','3','2','6','1','8','3','6','5','5','1','5','9','8','0','2','8','9','4','2','1','9','6','5','1','2','5','4','6','7','3','8','7','3','2','4','7','6','6','0'},new char[]{'9','2','9','7','5','6','4','9','5','4','8','5','2','4','0','5','5','1','0','9','3','6','4','0','9','4','2','7','5','1','3','4','8','3','7','4','2','8','3','0','2','8'},new char[]{'8','4','4','7','5','7','3','2','8','9','5','5','2','3','8','3','3','8','0','4','9','5','9','8','5','9','1','9','4','3','9','7','4','3','0','9','3','1','3','1','3','9'},new char[]{'9','3','7','7','4','9','1','1','8','9','2','1','2','4','1','0','9','2','8','8','9','7','2','6','0','4','3','6','2','1','4','7','6','2','4','0','8','5','1','6','2','1'},new char[]{'6','8','7','3','6','4','3','9','3','7','1','5','0','5','5','1','7','9','3','9','8','9','9','6','6','3','1','2','2','2','0','7','8','4','7','3','6','2','2','1','9','6'},new char[]{'1','3','1','5','7','5','2','5','3','4','0','7','6','8','5','9','7','1','0','3','3','8','2','9','7','2','4','8','6','3','1','3','3','0','7','1','5','9','0','9','8','1'},new char[]{'4','1','6','2','2','3','9','7','6','5','6','5','3','0','8','4','3','0','6','8','7','4','1','4','2','3','2','2','1','0','0','5','3','4','0','8','4','8','4','9','0','0'},new char[]{'2','1','1','4','8','0','6','9','7','0','9','4','7','6','1','1','5','2','0','6','9','2','0','2','7','3','3','0','5','2','6','3','0','1','8','3','5','5','3','9','8','5'},new char[]{'1','3','2','8','8','7','7','2','6','3','8','8','5','6','7','0','1','7','7','8','5','1','9','5','2','5','7','2','2','5','9','6','0','3','1','2','2','2','3','0','1','9'},new char[]{'2','5','0','6','4','0','1','6','9','7','0','6','7','4','9','1','0','2','5','5','7','0','2','0','8','0','6','2','6','8','1','1','0','6','4','4','0','6','5','8','7','3'},new char[]{'9','7','8','6','0','3','7','5','7','5','6','0','5','6','3','9','6','3','2','6','0','0','6','5','8','3','7','3','7','3','5','2','4','9','4','1','0','7','9','7','6','2'},new char[]{'3','0','7','5','1','4','8','7','9','9','0','7','6','8','6','0','5','8','0','8','9','4','8','1','3','1','8','6','0','5','1','7','3','4','7','6','4','2','8','6','1','7'},new char[]{'4','2','8','1','1','3','2','6','5','1','9','1','2','8','8','8','2','6','2','5','6','0','7','5','2','0','9','3','0','1','4','1','1','0','0','3','9','3','4','8','8','3'},new char[]{'9','1','9','0','9','4','0','8','4','9','7','6','7','6','0','7','1','1','7','4','9','0','0','7','3','2','8','1','6','9','7','2','0','1','6','1','9','8','9','7','5','3'}}); param0.add(new char[][]{new char[]{'0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','1','1','1','1','1'}}); param0.add(new char[][]{new char[]{'b','q','b','D','t','y','Z','G','d','r','R','R','z','A','Y','H','D','Q','X','U','o','a','S','P','S','c','W','r','I','y','E','x','E','k','l','F','M','G','z','T','I','E','D','K','M','l'},new char[]{'V','m','W','M','l','H','l','j','f','S','k','g','O','W','S','R','I','L','J','Z','V','X','w','l','K','s','F','o','X','k','a','L','K','H',' ','E','x','b','Z','w','Z','Y','U','y','I','Q'},new char[]{'I','o','s','A','f','Z','C','o','X','b','d','s',' ','Y','Q','U','C','T','K','r','Q','U','P','C','w','R','e','s','L','A','j','g','p','B','I','W','L','e','w','b','R','z','Y','M','M','E'},new char[]{'k','Y','v','L','f','x','v','l','C','g','J','V','l','q','p','x','z','A','J','h','V','i','h','r','Z','i',' ','y','M','k','p','q','X','M','U','W','v','v','P','L','n','j','r','O','k',' '},new char[]{'K','k','K','Z','X','W','e',' ','x','u','r','l','l','z','V','e','K','z','y','x','f','v','n','f','K','p','b','I','C','p','b','V','R','t','n','t','m','A','F','J','U','M','n','g','M','W'},new char[]{'a','e','x','A','U','V','P','W','W','l','p',' ','o','L','X','E','g','k','Y','W','P','Y','B','t','Z','m','V','Z','O','z','o','O','m','s','x','O','L','q','Z','E','y','B','l','h','h','T'},new char[]{'c','x','R','R','x','S','R','y','J','Y','e','F','X','x','h','L','N','Q','j','X','s','H','Z','M','Q','b','Q','h','x','R','Y','C','r','D','b','O','l','W','J','I','A','P','x','D','T','c'},new char[]{'Y','s','B','N','B','g','e','h','l','y','N','s','a','f','k','p','C','Q','c','U','A','N','w','V','z','F','j','M','F','g','q','x','r','l','e','Y','T','z',' ','a','n','n','x','p','m','J'},new char[]{'v','O','a','A','E','q','L','P',' ','w','l','G','k','f','M','A','k','i','f','D','z','A','J','Y','b','g','a','h','e','S','Q','H','c','f','I','S','X','Y','J','g','f','n','G','J','r','S'},new char[]{' ','S','w','G','b','v','z','U','l','k','a','w','y','D','Q','v','c','T','S','S','n','M','m','j','U','X','a','k','O','A','T','a','U','u','y','s','W','j','k','n','a','V','X','N','D','C'},new char[]{'Z','o','O','a','z','M','X','k','m','X','J','w','y','d','j','c','Q','E','E','i','g','q','U','v','C','k','y','t','T','A','o','u','o','e','J','c','c','d','i','o','b','A','h','g','y','Y'},new char[]{'O','j','F','A','f','t','J','u','V','J','P','Z','C','c','c','y','G','s','W','X','O','g','q','l','z','L','p','U','o','A','k','v','q','v','I','W','k','r','m','Y','i','V','Y','c','P','S'},new char[]{'N',' ','W','k','z','o','V','w','M','a','q','c','P','D','x','O','M','y',' ','B','y','L','V','E','j','i','C','k',' ',' ','c','K','c','h','y','K','c','G','Q','h','B','i','L','Q','P','s'},new char[]{'X','p','y','I','W','F','F','o','W','g','A','H','a','H','X','F','d','Y','I','x','n','r','s','c','B','L','o','B','C','o','G','v','T','q','A','Z','a','Z','d','S','B','S','F','I','m','C'},new char[]{'F','t','c','w','E','X','s','F','e','J','h','Y','f','g','d','f','N','X','G','l','n','M','L','k','P','Y','M',' ','U','X','n','s','o','F','R','g','E','I','G','P','x','f','h','K','b','k'},new char[]{'a','p','j','Q','X','p','h','R','g','U','O','x','X','k','v','m','o','E','Z','Z','W','v','k','l','o','O','N','P','Q','k','A','K','c','l','w','a','k','Z','d','T','S','t','K','L','x','k'},new char[]{'t','f','V','Q','X','e','s','f','o','N','U','z','y','K','F',' ','A','V','W','A','j','C','T','G','z','K','j',' ','I','w','h','Q','t','I','m','V','h','M','L','Q','J','g','p','x','P','i'},new char[]{'X','Q','b','i','T','A','R','f','c','r','K','t','J','E','Z','d','W','O','G','X','u','I','z',' ','m','H','s','P','d','s','k','m','E','K','Y','H','L','b','Z','y','I','c','p','y','Y','T'},new char[]{'P','g','C','T','i','Z','s','s','r','E','L','P','T','o','r','g','x','c','U','b','o','l','H','H','k','b','N','e','S','E','U','c','g','V','E','V','l','L',' ','I','h','M','L','z','P','e'},new char[]{'l','i','O','F','S','e','Z','j','y','J','p','c','q','j','Q','E','j','d','u','S','N','Y','R',' ','F','I','f','u','d','t','u','Q','J','v','i','x','A','d','k','v','H','Z','B','u','o','k'},new char[]{'V','p','B','h','M','a','p','n','z','L','s','g','c','G','T','X','a','X','s','h','O','x','h','s','x','N',' ','O','w','F','v','M','W','u','c','Y','x','x','H','P','T','h','s','W','w','l'},new char[]{'B','f','k','U','j','b','X','J','z','y','w','B','n','f','x','N','Y','l','Q','h','t','v','U','y','I','G','q','T','a','i','N','p','e','Z','Y','Q','B','G','e','N','V','s','E','U','B','h'},new char[]{'q','Y','r','w','t','G','G','M','F',' ','e','u','E','g','s','D','c','h','L','G','x','u','V','j','u','U','i','m','Y','J','L','P','h','X','p','P','F','f','O','u','U','H','Y','I','A','X'},new char[]{'v',' ','W','A','e','t','Y','t','I','s','w','M',' ','E','R','K','x','i','O','w','h','e','f','N','i','N','v','q','F','u','A','c','e','s','p','N','j','G','q','W','q','U','J','b','V','i'},new char[]{'p','Y','p','f','I','N','S','C','J','p','O','O','s','V','s','Z','y','s','l','o','b','e','L','J','m','W','g','P','x','l','W','N','a','T','m','D','p','p','l','P','E','V','c','O','T','Z'},new char[]{'x',' ','v','X','T','s','i','A','J','q','H','P','x','q','Y','n','s','i','W','z','Y','q','a','Z','t','M','s','A','q','e','W','V','g','y','x','n','E','p','x','t','q','R','T','m','h','m'},new char[]{'M','u','D','R','R','h','B','f',' ','H','b','l','q','X','f','b','r','e','v','D','m','T','v','l','g','l','z','y','A','O','i','G','Q','l','K','G','H','G','S','b','a','b','k','p','g','R'},new char[]{'G','Q','P','e','P','r','K','U','l','g','X','q','I','O','U','y','V','Z','t','Q','g','d','T','J','q','w','z','L','V','p','e','X','x','D','k','R','P','U','L','z','a','L','L','Q','z','D'},new char[]{'j','W','Q','E','P','V','f','p','w','n','U','j','Z','P','f','v','R','r','h','z','r','l','T','P','U','f','v','A','B','k','b','n','o','h','j','K','h','r','f','q','x','E','U','g','d','C'},new char[]{'C','v','D',' ','K','d','d','D','d','f','U','F','l','x','E','D','Q','L','W','X','E','E','X','T','M','C','e','B','x','o','C','f','d','o','F','T','J','F','G','l','k','x','u','q','N','t'},new char[]{'l','d','P','k','N','w','t','C','u','n','f','Z','B','A','Z','z','z','v','Z','s','n','f','Y','c','s','j','e','M','E','i','N','Y','D','k','k','n','j','X','q','T','T','G','S','d','t','d'},new char[]{'c','c','G','d','y','T','E','w','k','R','d','N','S','M','L','p','H','F','C','L','n','l','C','M','L','u','k',' ','X','E','L','J','L','G','l','H','l','r','p','v','D','T','r','L','v','e'},new char[]{'t','A','s','J','M','b','P','a','p','G','q','p','i','d','b','C','S','w','c','N','m','A','C','m','f','T','P','z','U','L','o','V','N','M','G','h','V','h','U','S','I','N','f','H','L','f'},new char[]{'q','V','Z','j','s','c','T','n','U','l','E','V','c','s','J','n','q','b','c','h','e','x','H','G','k','U','P','U','T','W','n','t','p','i','b','u','b','H','s','D','L','Y','Z','u','P','w'},new char[]{'s','F','O','t','J','e','f','P','l','l','v','G','B','J','i','b','i','r','P','x','a','i','X','T','G','G','a','k','d','Z','L','Y','U','r','b','p','t','k','L','t','x','T','k','v','a','k'},new char[]{'c','s','B','Z','d','h','d','P','w','D','a','c','G','M','T','u','U','O','T','w','a','o','x','V','J','g','N','w','w','f','g','u','j','p','G','T','w','X','J','p','M','y','o','G','m','w'},new char[]{'w','j','K','u','K','d','N','I','w','E',' ','K','K','c','x','U','A','A','v','F','z','a','z','C','V','W','A','o','m','Z','i','U','F','e','p','w','O','A','T','u','a','P','l','y','w','J'},new char[]{'b','M','e','h','S','Q','c','G','D','A','I','H','g','f','E','j','x','u','P','p','p','d','V','F','D','L','L','g','H','h','n','Q','K','L','g','K','y','Y','u','A','g','W','t','J','X','F'},new char[]{'k','J','l','X','J','m','e','Y','d','Z','L','W','r','W','T','J','G','f',' ','s','j','j','P','h','k','x','k','k','B','N','j','h','s','o','b','m','u','O','i','D','c','B','a','h','B','Y'},new char[]{'L','l','R','Z','f','j','G','E','j','g','X','S','P','H','T','a','c','Y','b','r','N','N','R','n','d','j','H','M','X','A','V','G','c','r','l','v','F','e','z','k','z','Q','r','F','L','H'},new char[]{'U','o','Y','O','n','J','c','i','j','a','j','H','O','u','S','m','K','y','i','T','v','j',' ','v','H','f','r','q','F','a','l','u','F','E','p','b','V',' ','m','O','M','E','f','Q','t','T'},new char[]{' ','B','H','i','H','c','T',' ','K','u','d','C','F','F','S','v','Z','A','b','t','r','G','I','F','p','L','G','N','h','y','m','b','z','V','G','D','p','K','p','C','X','y','w','c','z','K'},new char[]{'P','q','o','M','T','U','o','r','A','h','S','q','T','s','V','u','c','N','v','E','r','X','k','v','M','p','Q','d','Y','Q','J','c','L','M','r','Z','D','k','V','u','G',' ','Y','O','i','x'},new char[]{'V','x','o','G','T','g','G','N','A','q','p','l','K','t','j','n','C','U','c','b','q','q','c','C','w','x','B','C','t','V','z','y','y','o','U','E','O','X','j','V','r','y','t','n','R','H'},new char[]{'Z','O','w','z','v','K','U','c','N','M','h','W','Y','Z','g','k','h','o','K','B','K','q','u','P','z','v','j','u','z','P','B','y','p','Y','U','W','Z','I','c','m','W','J','c','l',' ','O'},new char[]{'Q','A','B','Z','C','D','N','i','W','E','W','V','Z','k','A','D','z','Z','I','t','Y','K','u','T','u','q','p','V','P','y','o','e','Y','x','d','L','P','L','p','Z','E','N','r','c','K','Z'}}); param0.add(new char[][]{new char[]{'1','1','1','1','2','2','3','3','3','4','4','5','5','6','7','7','7','8','8','9','9'},new char[]{'0','0','1','1','1','2','3','4','5','6','6','6','6','6','6','6','7','7','8','8','9'},new char[]{'0','0','0','0','0','1','1','2','2','2','3','3','4','5','5','5','5','6','7','7','8'},new char[]{'0','1','1','2','2','2','2','2','3','3','4','4','5','5','6','6','7','7','7','9','9'},new char[]{'0','0','1','1','2','2','2','3','3','3','4','4','4','4','4','6','7','7','8','8','9'},new char[]{'0','0','0','0','1','1','2','3','3','3','3','4','4','4','5','7','8','8','8','9','9'},new char[]{'0','0','0','0','0','0','1','1','2','3','4','5','5','6','6','7','7','8','8','9','9'},new char[]{'0','2','2','2','4','4','4','4','4','5','5','5','6','6','7','7','7','8','8','9','9'},new char[]{'0','0','1','2','3','3','3','4','4','5','5','5','7','7','7','8','8','8','9','9','9'},new char[]{'0','0','1','2','2','3','4','4','4','4','4','5','6','6','6','7','8','8','9','9','9'},new char[]{'0','0','1','1','1','1','1','2','2','2','2','3','4','4','5','5','6','6','8','8','9'},new char[]{'0','0','1','2','2','2','3','3','5','5','5','6','7','7','7','7','7','8','8','9','9'},new char[]{'0','0','1','1','1','3','5','5','5','5','6','6','6','6','6','7','7','8','8','9','9'},new char[]{'0','0','1','2','2','2','2','2','2','3','3','5','5','5','6','7','8','8','9','9','9'},new char[]{'0','0','0','0','2','3','5','5','5','5','5','6','6','6','7','7','7','7','7','8','9'},new char[]{'0','0','1','2','2','3','3','3','4','4','4','5','5','5','6','6','6','7','7','8','9'},new char[]{'0','0','0','0','1','1','3','3','3','4','4','5','5','6','7','8','8','8','9','9','9'},new char[]{'0','0','1','1','1','1','1','2','2','3','5','5','6','6','6','7','7','7','7','8','8'},new char[]{'0','1','1','1','1','2','2','4','4','4','4','4','5','5','6','7','7','8','8','9','9'},new char[]{'1','1','2','2','3','3','4','5','5','5','5','6','6','7','7','7','8','8','8','9','9'},new char[]{'0','0','0','0','2','2','2','3','3','4','5','5','5','5','5','5','6','7','7','7','9'}}); param0.add(new char[][]{new char[]{'0','1','0','1','1','1','0','1','1','0','1','0','0','0','1','1','1','1','0','0','0','1','1','1','0','1','1','1','1','1','0','0','0','1','1','1','1','0','1'},new char[]{'1','0','0','0','1','0','1','1','0','0','0','0','1','0','0','0','1','1','0','0','0','1','0','0','1','0','1','1','1','1','0','0','0','0','0','0','0','1','0'},new char[]{'0','1','1','0','1','0','1','1','0','0','0','1','0','1','1','0','1','0','0','1','0','1','0','1','1','1','0','1','0','0','0','1','0','0','1','1','1','0','0'},new char[]{'0','1','1','0','0','1','1','1','0','0','0','1','1','1','1','1','0','1','0','1','1','0','0','0','1','1','0','0','1','1','1','1','0','0','0','0','1','1','0'},new char[]{'1','1','1','1','1','0','0','0','1','0','1','1','0','1','1','0','0','1','1','1','1','0','1','0','0','0','0','0','1','0','0','1','0','0','1','0','0','1','1'},new char[]{'1','0','1','0','0','1','1','1','1','0','1','1','0','0','0','0','1','0','0','1','0','1','0','1','1','1','1','0','0','1','0','0','1','1','0','1','0','1','0'},new char[]{'0','0','0','0','1','1','0','1','0','1','0','1','1','1','1','1','0','1','1','0','1','0','0','1','0','1','0','0','0','0','1','1','1','1','0','0','0','1','1'},new char[]{'1','0','0','1','1','1','1','0','0','0','1','0','0','1','0','0','0','0','1','0','1','0','0','0','0','1','1','0','1','1','0','1','0','0','0','0','1','0','0'},new char[]{'0','0','1','1','1','1','0','1','0','1','1','1','1','0','1','1','0','0','0','0','0','0','0','1','0','1','1','0','1','0','0','0','1','1','0','1','1','1','1'},new char[]{'1','0','0','1','1','0','1','1','0','0','0','1','1','0','1','0','1','0','0','0','0','1','1','1','0','1','1','0','0','1','0','0','0','1','1','0','1','0','0'},new char[]{'0','0','0','1','0','0','1','1','0','0','1','0','0','1','0','0','0','0','1','1','0','1','0','0','1','0','1','0','1','0','1','1','0','0','0','1','0','0','1'},new char[]{'1','0','0','1','0','0','0','0','1','1','1','0','1','1','1','0','0','0','0','0','0','1','0','1','0','1','0','1','1','1','1','0','1','0','1','1','0','1','0'},new char[]{'0','0','1','0','0','0','1','1','1','1','1','0','1','1','1','1','0','0','1','0','0','0','0','1','0','1','1','0','0','1','1','1','0','0','0','1','1','0','0'},new char[]{'0','1','0','1','0','0','0','0','1','1','1','1','0','0','0','0','1','1','1','0','0','0','0','0','0','1','0','1','1','1','1','0','0','1','0','0','0','0','0'},new char[]{'0','0','0','0','1','1','0','0','1','1','0','0','0','1','1','0','1','0','0','0','0','1','0','0','1','1','1','0','0','1','1','1','1','0','1','0','1','1','1'},new char[]{'1','1','0','1','1','0','0','0','0','0','0','1','0','1','0','0','0','1','1','0','1','1','0','0','1','0','0','1','0','0','0','0','1','0','1','0','1','0','1'},new char[]{'0','0','0','1','1','1','1','1','1','1','1','1','1','1','0','0','0','0','0','0','0','0','0','1','1','1','1','1','1','0','1','0','0','1','1','1','1','1','0'},new char[]{'1','1','0','1','1','1','0','0','1','1','0','0','1','0','1','1','0','1','1','0','0','1','1','0','0','1','0','0','0','0','0','1','0','0','0','1','0','1','1'},new char[]{'0','0','1','0','1','0','0','0','0','0','1','0','0','1','1','1','0','1','0','0','0','0','0','1','0','0','0','0','1','0','1','1','1','0','1','1','1','0','0'},new char[]{'1','1','0','1','0','0','1','1','1','1','0','0','1','0','0','0','1','1','1','0','1','0','1','0','1','1','1','1','1','0','0','0','1','0','0','0','1','1','1'},new char[]{'1','0','0','1','1','1','0','0','1','1','1','1','1','0','0','0','0','0','1','0','1','0','0','0','0','1','0','0','1','1','0','1','1','0','1','0','0','0','0'},new char[]{'0','0','1','1','0','1','1','1','0','0','0','1','1','1','1','1','0','1','1','1','1','0','1','0','1','0','1','1','1','0','0','1','0','1','1','1','1','0','0'},new char[]{'0','1','0','1','1','1','1','1','0','0','1','1','0','1','0','1','1','0','0','0','1','0','0','1','0','1','0','0','1','0','0','0','1','1','1','1','1','1','1'},new char[]{'0','1','1','1','1','0','1','1','0','0','1','0','0','1','1','0','1','0','0','0','1','1','0','0','0','0','0','1','1','0','1','1','0','1','1','1','0','0','1'},new char[]{'0','0','0','1','0','0','1','0','1','0','0','1','0','1','1','0','1','0','1','1','0','0','0','0','1','0','1','0','0','1','0','1','1','1','1','0','0','0','1'},new char[]{'1','0','0','1','0','1','0','1','0','0','1','1','1','0','0','0','1','0','1','1','0','1','1','1','0','0','1','1','0','1','1','0','1','1','0','0','1','1','0'},new char[]{'0','0','1','0','1','1','0','0','1','1','1','0','0','1','1','1','0','1','0','0','0','0','1','1','1','1','1','0','0','1','0','1','0','0','1','0','1','0','0'},new char[]{'1','1','0','0','1','1','1','0','0','1','0','1','1','1','0','0','0','0','0','1','0','1','0','1','1','0','1','1','1','0','0','1','0','0','1','0','1','1','1'},new char[]{'0','1','0','0','1','1','0','1','1','0','1','0','1','1','0','0','1','1','1','1','1','1','1','1','1','1','0','1','0','0','0','0','0','1','1','0','1','0','1'},new char[]{'1','0','1','0','1','1','0','0','0','1','1','0','0','0','0','1','1','0','0','0','0','0','0','1','1','0','1','0','1','1','1','0','0','0','0','1','1','1','0'},new char[]{'1','0','1','0','1','0','1','0','0','1','1','1','0','1','1','1','1','0','0','1','0','1','0','0','0','1','1','0','1','1','1','0','1','0','0','0','0','0','1'},new char[]{'1','1','0','0','1','0','0','1','1','1','1','0','0','0','0','0','0','1','1','0','0','1','0','0','1','1','1','0','0','0','1','1','1','1','1','1','1','0','0'},new char[]{'1','0','0','1','1','0','1','1','0','0','0','0','0','1','0','0','1','1','1','1','1','1','0','0','0','1','1','1','1','0','0','1','1','0','1','1','1','0','1'},new char[]{'0','1','0','0','0','1','0','1','0','0','1','0','1','0','1','1','0','1','0','1','1','0','0','0','0','0','1','1','0','1','1','0','1','1','0','0','1','1','1'},new char[]{'1','0','1','1','1','1','1','1','0','0','1','0','1','0','1','0','0','1','0','0','0','0','1','1','0','1','0','1','0','1','1','1','1','1','1','0','0','1','0'},new char[]{'0','1','1','1','0','1','0','1','1','0','0','0','1','0','0','0','1','0','0','0','0','1','0','0','0','0','0','1','1','1','0','1','1','0','1','1','1','1','1'},new char[]{'1','1','1','0','1','1','0','0','0','0','1','1','0','1','1','0','1','0','0','1','0','0','1','1','1','0','1','1','0','1','1','1','0','1','1','0','0','0','1'},new char[]{'0','1','0','0','0','1','1','1','1','1','1','1','0','0','1','1','0','1','0','0','1','1','1','0','0','1','0','0','0','0','1','0','1','0','1','0','1','1','0'},new char[]{'1','1','0','1','1','0','0','1','1','1','0','1','1','0','1','1','0','0','1','1','1','1','0','0','0','0','0','0','0','1','0','0','0','1','0','0','1','1','1'}}); param0.add(new char[][]{new char[]{'B','D','D','E','H','H','J','M','M','M','M','N','O','O','P','R','S','T','U','U','W','W','Z','Z','b','c','c','e','f','g','j','k','k','n','o','r','t','u','v'},new char[]{' ','A','A','A','C','C','D','D','E','F','H','J','J','K','L','L','N','T','T','U','W','Y','Z','c','f','g','i','i','k','k','m','n','o','p','r','r','u','v','x'},new char[]{' ','A','A','C','D','E','G','H','K','K','L','Q','S','U','V','Z','a','d','e','g','i','i','j','n','o','o','p','p','q','s','s','t','t','w','x','x','x','y','z'},new char[]{' ','B','D','E','G','H','H','H','H','K','M','O','O','R','R','S','S','U','V','X','a','a','d','e','e','f','h','i','j','p','p','q','q','q','s','w','w','y','z'},new char[]{' ','A','A','C','E','F','G','H','J','J','K','M','O','S','S','U','X','Y','Z','b','d','f','g','h','i','j','k','l','n','q','q','s','s','t','u','u','v','y','z'},new char[]{'H','H','H','H','J','J','K','M','N','S','U','U','V','V','V','W','Y','a','b','c','c','e','f','f','f','h','k','l','m','q','q','s','t','v','v','w','w','y','z'},new char[]{'A','B','D','G','H','I','J','J','L','M','N','P','Q','S','T','T','X','X','X','Y','Z','a','c','d','d','d','i','k','l','m','n','p','q','q','t','w','x','y','y'},new char[]{' ','B','B','C','E','F','G','H','I','I','I','J','J','K','M','N','O','O','P','Q','S','T','W','Y','Y','a','c','d','h','h','i','j','k','o','o','s','z','z','z'},new char[]{' ','A','C','C','D','E','E','E','F','H','H','M','M','N','N','R','T','W','Z','Z','d','e','h','h','j','j','k','m','n','o','p','r','s','s','t','w','x','x','x'},new char[]{'A','D','I','M','P','Q','U','U','Y','Y','Z','Z','Z','a','b','c','e','f','f','f','g','g','h','h','i','i','j','m','n','o','p','q','r','u','u','u','w','x','z'},new char[]{' ','A','A','A','B','C','E','F','G','H','J','Q','R','S','U','U','V','W','Y','Z','a','b','b','d','g','j','k','l','l','m','n','n','o','s','s','u','w','w','w'},new char[]{' ','A','B','C','E','E','E','H','J','J','K','M','N','P','R','U','U','V','W','a','e','f','k','k','k','l','l','m','n','n','o','o','o','q','r','r','t','u','x'},new char[]{' ','B','B','E','F','F','H','O','O','P','P','Q','R','S','T','X','a','a','a','b','e','f','g','i','j','m','n','p','r','t','t','t','u','v','v','w','x','x','z'},new char[]{' ','A','B','C','D','E','E','G','H','J','J','J','K','K','M','P','Q','R','R','W','X','X','Z','a','a','e','h','i','j','k','q','q','r','r','s','u','x','x','y'},new char[]{' ','B','I','I','J','J','K','N','O','P','P','R','U','X','Z','Z','Z','b','d','f','f','h','h','h','j','k','k','n','n','o','o','p','q','s','t','v','w','x','z'},new char[]{' ',' ','B','E','K','L','M','N','Q','Q','R','S','T','U','V','V','V','W','X','Y','Z','a','b','e','e','g','i','i','m','n','o','p','s','u','u','v','w','x','z'},new char[]{'E','E','E','E','J','K','K','M','N','P','Q','S','S','V','W','W','W','X','Y','c','c','d','e','f','h','n','n','p','q','r','s','t','u','v','x','x','y','z','z'},new char[]{' ',' ',' ','E','E','F','F','G','G','H','J','L','O','Q','R','R','T','V','W','Y','Y','Z','Z','c','f','g','h','h','j','l','q','q','q','t','v','x','x','y','y'},new char[]{'B','D','G','G','H','J','J','K','M','Q','S','S','T','T','T','U','V','Z','Z','a','b','d','e','g','g','h','h','l','l','n','o','s','u','u','v','v','w','x','y'},new char[]{' ',' ','B','B','B','C','D','D','E','I','L','M','O','O','P','P','Q','R','R','R','R','R','U','a','b','c','d','e','g','k','l','l','n','n','n','p','p','r','r'},new char[]{' ',' ','B','E','E','F','G','L','M','N','N','O','P','R','R','S','S','S','T','T','Y','Y','Z','a','a','b','d','e','f','j','j','k','l','l','m','o','o','p','y'},new char[]{'A','B','E','E','H','H','I','J','J','N','O','P','Q','R','V','V','W','W','X','X','Y','Z','Z','g','i','j','j','m','n','o','q','r','r','s','s','s','s','t','x'},new char[]{' ','G','J','L','M','M','Q','Q','Q','S','U','W','W','Y','Z','Z','a','b','f','h','i','i','l','l','m','n','o','p','p','p','q','q','q','s','s','t','u','v','w'},new char[]{'B','B','D','E','E','H','I','J','K','K','L','S','T','V','X','b','b','b','d','d','g','h','h','h','i','i','k','l','m','m','n','o','v','w','x','x','x','z','z'},new char[]{'B','C','C','C','D','D','E','F','J','K','M','N','O','O','Q','Q','R','R','R','S','T','U','V','W','W','a','b','f','g','i','m','n','n','n','p','p','p','u','v'},new char[]{' ','B','D','F','F','H','J','J','M','M','N','T','U','c','d','e','e','j','j','j','l','l','m','m','n','n','o','p','p','p','s','t','t','v','v','w','y','y','y'},new char[]{' ','A','A','B','D','G','H','H','H','I','K','N','O','P','R','S','T','Y','Y','a','b','c','e','f','g','h','j','j','j','m','n','o','s','s','u','u','x','x','z'},new char[]{' ',' ','F','G','G','J','N','N','P','S','S','S','T','T','X','Z','a','d','e','f','f','h','i','j','k','m','m','n','r','s','s','t','v','w','x','x','x','z','z'},new char[]{'B','B','D','I','J','L','M','M','N','P','P','Q','S','U','X','X','X','Y','Z','a','b','e','e','f','g','i','j','l','m','o','q','r','r','t','v','w','w','w','w'},new char[]{' ','A','B','C','D','D','E','F','F','H','I','J','J','M','N','N','O','S','U','V','W','W','e','g','h','h','i','j','j','o','p','q','q','r','t','v','v','x','y'},new char[]{' ','A','A','C','C','D','D','D','E','G','I','J','O','Q','S','S','S','T','T','V','X','Y','Y','b','i','k','l','l','m','n','p','t','v','w','w','x','x','y','z'},new char[]{'A','A','D','F','G','H','I','L','N','P','Q','S','T','U','V','W','W','X','Y','Z','b','c','f','g','g','g','j','j','j','l','q','s','s','v','v','w','x','y','z'},new char[]{'B','H','I','J','K','K','L','L','M','N','N','N','P','P','S','T','U','V','W','W','a','a','a','a','b','j','j','k','m','n','p','u','u','u','v','w','x','y','z'},new char[]{'B','B','D','D','D','E','G','H','I','I','I','L','N','N','O','P','R','R','R','S','V','V','Y','Z','a','b','h','k','l','m','n','o','p','p','q','r','s','x','z'},new char[]{'A','B','B','G','G','H','J','J','L','M','M','N','N','P','P','P','R','S','T','X','Z','d','d','f','f','j','j','j','l','l','l','m','r','r','u','v','v','x','x'},new char[]{' ','B','B','C','E','G','J','J','K','L','N','O','Q','R','T','T','V','V','X','X','b','e','f','i','i','k','m','n','o','o','p','s','s','u','u','w','x','x','x'},new char[]{'A','A','A','B','B','E','H','H','H','I','J','J','N','Q','Q','R','R','U','V','X','a','b','d','d','e','e','g','g','k','k','l','n','n','p','q','q','v','w','x'},new char[]{'B','B','B','C','C','D','E','F','H','I','I','K','N','N','P','P','P','U','W','X','Z','c','e','h','h','i','j','l','p','p','r','r','r','r','v','w','x','x','y'},new char[]{' ',' ','B','C','C','D','E','E','H','L','O','P','P','S','T','V','Y','Y','Y','c','d','e','e','f','h','h','h','j','k','l','m','n','r','s','s','u','x','y','y'}}); param0.add(new char[][]{new char[]{'8','0','3','3','7','7','3','5','4','9','6','9','4','6','9'},new char[]{'8','7','2','2','6','9','6','0','0','6','8','1','6','1','5'},new char[]{'2','0','5','1','8','0','0','2','9','4','1','4','8','0','2'},new char[]{'9','9','9','5','1','8','9','5','8','7','2','9','4','0','4'},new char[]{'1','6','7','1','7','4','7','4','6','4','3','8','0','4','9'},new char[]{'2','7','9','6','1','2','2','9','0','7','2','3','2','0','9'},new char[]{'9','5','3','3','6','1','3','1','3','4','3','4','1','5','9'},new char[]{'1','6','5','2','6','7','1','8','6','6','2','2','6','7','6'},new char[]{'5','3','8','0','3','6','3','2','1','2','3','8','1','0','2'},new char[]{'2','2','6','8','0','6','5','9','9','3','9','5','8','6','4'},new char[]{'4','1','0','3','9','1','0','8','3','4','0','9','0','6','8'},new char[]{'1','7','9','6','6','1','7','2','5','9','5','2','1','1','8'},new char[]{'7','7','4','5','2','6','4','3','4','9','1','4','3','7','2'},new char[]{'1','3','0','5','9','2','2','6','2','4','0','7','2','6','1'},new char[]{'0','4','4','2','6','9','5','4','3','2','6','5','6','4','0'}}); param0.add(new char[][]{new char[]{'0','0','0','0','0','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','1','1','1','1'},new char[]{'0','0','0','0','0','0','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','0','1','1','1'},new char[]{'0','0','0','0','0','0','0','0','1','1','1','1'},new char[]{'0','0','0','0','0','0','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','1','1','1','1','1','1','1'},new char[]{'0','0','0','0','0','0','0','1','1','1','1','1'},new char[]{'0','0','0','0','0','1','1','1','1','1','1','1'}}); param0.add(new char[][]{new char[]{'u','V','l','L','o','i','o','L','S','D','S','u','Z','E','s','q','P','X','d','v','W','J','p','r','e','j','F','l','Z','U','R','Y','M','C','S','C','Q','A'},new char[]{'w','p','O','x','a','v','Q','Z','n','Q','j','t','N',' ','n','u','y','x','E','r','d','e','g','e','H','Z','b','s','A','R','x','h','v','X','x','K','P','M'},new char[]{'y','D','z','t','g','L','B','N','i','g','E','l','P','q','j','m','c','X','b','X','Z','w','s','Z','F','p','r','P','o','p','Y','R','w','n','y','n','t','C'},new char[]{'b','v','G','K','J','u','w','q','x','b','O','Z','b','v','E','O','o','j','W','d','r','z','X','K','r','O','m','S','V','D','m','O','j','O','J','L','z','S'},new char[]{'Z','O','X','A','d','N','V','t','f','z','q','H','O','Z','b','T','W','B','u','K','P','y','w','z','p','M','Z','P','l','y','J','G','i','C','r','y','s','v'},new char[]{'k','R','i','z','A','l','J','X','C','i','P','A','y','y','a','E','V','s','a','P','r','Y','D','n','o','w','M',' ','W','m','W','H','a','v','j','g','Y','m'},new char[]{'M','y','N','A','R','u','e','N','H','a','s','E','Q','b','d','E','s','X','f','G','N','x','h','i','u','U','M','U','s','u','N','f','u','o','C','s','S','P'},new char[]{'h','C','v','L','H','h','Y','Y','F','S','d','Q','h','V','V','U','g','C','s','X','E','t','e','M','F','w','U','e','C','J','Y','R','o','a','W','L','k','K'},new char[]{'k','H','J','T','s','F','y','C','O','J','O','B','m','B','e','G','l','g','y','J','y','u','F','E','B',' ','B','Z','a','e','v','u','U','J','l','C','k','v'},new char[]{'d','y','V','Z','t','X','n','v','O','s','E','L','Z','x','x','p','w','W','S','n','G','y','q','o','B','X','f','r','n','T','y','p','J','j','I','w','r','s'},new char[]{'h','y','p','j','r','D','j','H','t','X','q','K','N','j','h','v','K','r','j','J','A','u','D','f','J','n','q','w','P','w','i','s','G','s','t','D','r','A'},new char[]{'f','I','v','M','x','K','O','i','p','y','o','Z','Y','s','V','f','i','V','x','K','p','a','L','V','r','B','v','d','M','e','X','h','F','S','p','Z','J','I'},new char[]{'H','V','a','a','i','k','D','e','Z','i','h','v','A','G','N','Q','r','e','A','q','n','a','z','N','b','y','R','z','c','I','A','h','z','o','F','w','p','h'},new char[]{'X','z','K','b','z','E','u','E','h','L','X','K','Q','r','f','Z','k','p','S','b','l','N','M','u','f','z','p','f','Q','U','q','g','F','K','D','Q','H','K'},new char[]{'S','U','o','u','z','G','q','w','N','B','c','u','k','n','v','S','O','Z','I','F','T','Z','D','g','w','K','G','C','B','M','e','W','r','v','l','t','t','u'},new char[]{'P','e','m','H','W','b','s','C','j','U','E','a','J','o','G',' ','H','T','f','j','N','N','E','u','W','O','X','e','m','w',' ','f','U','Y','N','X','I','j'},new char[]{' ','v','q','O','d','p','d','Q','N','A','v','u','o','q',' ','S','H','b','M','J','b','G','L','N','w','r','G','Q','E','R','y','a','k','S','W','I','P','d'},new char[]{'N','z','F','X','x','J','q','G','Z','Z','E',' ','q','M','L','B','y','k','h','R','e','R','N','p','D','K','n','g','E','w','P','v','J','P',' ','q','N','s'},new char[]{'u','Q','F','j','r','I','X','C','E','R','R','E','D','p','n','a','X','Q','J','F','F','x','s','P','o','a','t','f','S','n','P','S','k','s','j','M','L','l'},new char[]{'F',' ','n','P','P','N','D',' ','N','W','G','m','p','P','R','L','b','c','q','O','k','Y','p','I','b','P','Y','Y','F','c','p','W','e','R','k','j','V','h'},new char[]{'Q','J','g','D','S','U','m','z','M','n','a','V','q','P','X','w','s','v','J','J','h','n','J','d','Z','M','v','M','h','Q',' ','W','V','s','O','A','x','j'},new char[]{'N','i','m','F','H','C',' ','x',' ','t','g','q','j','d','n','g','l','U','k','U','q','h','A','c','u','o','U','z','D','N','p','R','K','k','T','i','D','i'},new char[]{'P','r','W','S','s','U','k','l','e','s','W','d','Y','q','p','Q','z','F','Z','s','x','h','J','q','B','F','R','m','l','f','H','U','d','V','o','b','t','B'},new char[]{'R','q','m','q','h','q','i','P','N','O','q','i','V','O','n','K','J','d','E','b','V','O','u','S','l','u','A','k','d','r','x','g','y','U','A','q','p','d'},new char[]{'r','h','h','L','j','d','b','o','v','D','d','M','f','y','Q','V',' ','j','a','T','X','a','t','I','Z','A','P','l','Y','j','c','A','A','e','r','H','u','f'},new char[]{'a','Y','J','J','k','L','x','l','O','n','J','I','l','x','V','S','S','l','D','E','m','d',' ','j','Q','L','t','c','o','D','z','A','x','u','F','E','v','a'},new char[]{'o','K','F','V','L','G','t','A','d','b','P','F','K','N','J','e','B','T','H','n','D','b','m','T','L','S','n','D','b','s','I','t','O','a','m','a','A','n'},new char[]{'L','o','z','L','a','d','T','D','d','S','D','a','m','z','y','y','A','j','v','H','F','t','A','f','G','E',' ','x',' ','m','L','I','O','Z','C','y','X','x'},new char[]{' ','I','i','s','E','N','m','k','l','n','s','s','P','M','x','i','I','K','k','m','k','X','n','W','k','F','D','c','l','d','n','o','H','T','B','g','S','v'},new char[]{'g','p','d','A','Y','b','L','P','v','j','O','C','s','g','J','m','P','d','H','c','h','U','P','J','h','c','f','W','l','K','F','T','s','Z','n','v',' ','p'},new char[]{'O','H','J','y','B','c','M','Q','F','k','S','o','b','M','c','i','K','l','a','Y','v','O','U','R','B','o','H','g','o',' ','H','l','g','e','L','x','M','z'},new char[]{'q','u','A','O','u','f','r','U','F','g','f','g','R','E','W','H','n','e','N','Z','y','M','j','L','T','b','v','N','u','X','E','y','g','Y',' ','n','T','r'},new char[]{'k','n','F','B','X','t','j','a','b','I','C','O','R','h','c','C','F','E','l','Y','s','D','p','j','J',' ','y','u','x','q',' ','P','J','P','t','g','X','j'},new char[]{'M','u','Q','x','r','n','U','w','w',' ','H','P',' ','V','X','Y','t','Z','F','H','X','N','y','E','j','I','Q','P',' ','y','e','I','o','b','j','E','p','G'},new char[]{'n','d','T','f','a','D','s','i','b','m','K','h','c','G','I','p','d','x','I','G','B','q','k','A','B','M','g','S','t','K','b','m','m','u','k',' ','U','Z'},new char[]{'C','v','L','k','x','L',' ','m','x','P','C','X','n','w','d','E','O','D','Q','i','A','p','K','r','n','Y','T','v','K','O','M','w','p','P','R','X','I','g'},new char[]{'l','M','d','j','M','d','y','x',' ','o','E','t','X','w','c','H','r','q','d','Q','I','g','T','F','t','q','A','e','m','y','G','t','v','G','r','x','g','H'},new char[]{'T','f','N','W','K','T','b','O','J','B','a','d','l','y','s','s','W','D','t','z','D','c','k','l','e','Q','A','J','J','k','M','G','F','S','C','N','x','X'}}); List<Integer> param1 = new ArrayList<>(); param1.add(13); param1.add(39); param1.add(15); param1.add(31); param1.add(11); param1.add(20); param1.add(38); param1.add(8); param1.add(6); param1.add(32); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i)) == f_gold(param0.get(i),param1.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ ([[' ', 'A', 'C', 'K', 'R', 'R', 'V', 'c', 'd', 'i', 'i', 'j', 'm', 'o', 'q', 'q', 'r', 'r', 'v', 'v', 'x', 'z'], ['B', 'D', 'I', 'M', 'N', 'Q', 'R', 'Z', 'c', 'f', 'i', 'j', 'j', 'l', 'l', 'n', 'p', 'q', 's', 't', 't', 'w'], ['A', 'F', 'F', 'G', 'H', 'J', 'K', 'K', 'N', 'V', 'V', 'b', 'c', 'c', 'g', 'i', 'j', 'l', 'l', 's', 't', 'y'], [' ', 'A', 'B', 'B', 'E', 'H', 'I', 'J', 'J', 'P', 'Q', 'T', 'U', 'V', 'Z', 'c', 'c', 'j', 'p', 'w', 'y', 'z'], [' ', ' ', 'A', 'C', 'F', 'G', 'H', 'M', 'N', 'R', 'R', 'V', 'c', 'i', 'j', 'o', 'p', 'p', 'q', 'r', 'w', 'y'], [' ', ' ', 'C', 'C', 'D', 'H', 'I', 'J', 'K', 'O', 'S', 'X', 'Y', 'f', 'h', 'h', 'o', 'p', 'p', 'u', 'u', 'w'], ['B', 'C', 'D', 'H', 'M', 'M', 'Q', 'Q', 'R', 'S', 'X', 'Z', 'e', 'e', 'e', 'j', 'k', 'l', 'm', 'o', 'v', 'w'], ['A', 'C', 'C', 'D', 'H', 'H', 'I', 'J', 'L', 'L', 'L', 'M', 'N', 'S', 'U', 'c', 'd', 'f', 'f', 's', 'u', 'y'], ['A', 'B', 'D', 'D', 'I', 'J', 'K', 'L', 'L', 'M', 'P', 'S', 'S', 'Y', 'b', 'e', 'h', 'j', 'm', 'o', 'q', 's'], [' ', 'B', 'E', 'H', 'H', 'J', 'M', 'P', 'S', 'T', 'U', 'V', 'Z', 'd', 'j', 'm', 'm', 'p', 'q', 'v', 'w', 'w'], ['B', 'E', 'F', 'G', 'H', 'M', 'M', 'M', 'N', 'O', 'Q', 'R', 'T', 'V', 'a', 'c', 'g', 'g', 'i', 's', 'x', 'y'], ['A', 'E', 'G', 'J', 'O', 'R', 'R', 'S', 'T', 'W', 'a', 'b', 'f', 'h', 'h', 'i', 'm', 'n', 's', 'u', 'v', 'y'], ['B', 'D', 'E', 'H', 'I', 'I', 'K', 'M', 'N', 'P', 'Q', 'S', 'a', 'e', 'i', 'j', 'm', 'o', 'p', 'r', 'x', 'z'], ['A', 'G', 'I', 'K', 'K', 'L', 'O', 'P', 'U', 'U', 'X', 'X', 'Z', 'a', 'c', 'f', 'g', 'i', 'l', 'o', 'o', 'v'], [' ', ' ', 'E', 'H', 'J', 'J', 'L', 'M', 'N', 'O', 'P', 'S', 'S', 'X', 'c', 'f', 'g', 'r', 'u', 'v', 'x', 'z'], ['C', 'E', 'F', 'F', 'H', 'H', 'I', 'K', 'M', 'M', 'U', 'Z', 'e', 'e', 'h', 'h', 'h', 'j', 'k', 'k', 'p', 'r'], [' ', ' ', ' ', 'C', 'G', 'I', 'J', 'O', 'O', 'P', 'T', 'V', 'Y', 'b', 'j', 'n', 'o', 'o', 's', 'u', 'w', 'x'], ['A', 'D', 'F', 'F', 'H', 'H', 'N', 'R', 'S', 'W', 'W', 'Y', 'Y', 'b', 'f', 'i', 'k', 'o', 'u', 'y', 'y', 'z'], [' ', 'C', 'G', 'I', 'I', 'L', 'P', 'S', 'X', 'Y', 'd', 'd', 'f', 'g', 'g', 'k', 'm', 'o', 'r', 'r', 'r', 'x'], ['F', 'I', 'J', 'N', 'P', 'P', 'Q', 'Q', 'R', 'X', 'Y', 'a', 'b', 'h', 'h', 'j', 'l', 'm', 'n', 'p', 'r', 'y'], [' ', 'C', 'D', 'E', 'F', 'L', 'Q', 'Q', 'V', 'c', 'g', 'h', 'k', 'k', 'l', 'l', 'n', 'o', 'p', 'r', 'u', 'x'], [' ', 'A', 'G', 'K', 'L', 'M', 'T', 'U', 'U', 'W', 'Z', 'a', 'f', 'i', 'k', 'k', 'n', 'n', 'p', 'q', 'v', 'z']],13,), ([['3', '5', '1', '5', '6', '7', '7', '3', '0', '4', '7', '6', '1', '4', '0', '6', '3', '4', '1', '3', '1', '2', '9', '8', '7', '8', '0', '2', '7', '6', '1', '0', '3', '8', '0', '5', '9', '3', '9', '9', '8', '6'], ['0', '3', '8', '5', '0', '2', '0', '6', '1', '8', '7', '2', '8', '6', '0', '3', '9', '4', '9', '5', '7', '4', '3', '7', '4', '3', '8', '6', '1', '5', '4', '8', '0', '8', '3', '2', '7', '7', '6', '9', '7', '9'], ['6', '7', '1', '1', '7', '2', '5', '3', '2', '8', '4', '7', '8', '6', '1', '5', '2', '1', '6', '5', '7', '6', '8', '6', '8', '8', '1', '6', '3', '1', '1', '7', '1', '6', '4', '9', '2', '8', '2', '6', '3', '4'], ['8', '7', '9', '2', '0', '6', '6', '6', '2', '3', '1', '4', '8', '2', '3', '5', '5', '9', '2', '8', '0', '3', '2', '7', '2', '0', '2', '7', '0', '6', '5', '8', '2', '9', '3', '9', '8', '1', '9', '7', '9', '7'], ['9', '8', '1', '5', '0', '9', '9', '7', '7', '8', '4', '1', '8', '0', '4', '6', '7', '0', '5', '8', '6', '5', '6', '5', '1', '4', '0', '4', '3', '4', '6', '7', '6', '7', '3', '5', '4', '5', '6', '7', '1', '1'], ['4', '4', '4', '9', '8', '8', '7', '5', '3', '1', '8', '4', '8', '1', '0', '4', '9', '8', '9', '5', '2', '7', '5', '3', '4', '8', '2', '4', '7', '5', '0', '3', '6', '2', '5', '6', '3', '1', '9', '4', '8', '9'], ['7', '2', '7', '6', '2', '8', '8', '8', '1', '1', '5', '4', '6', '5', '3', '0', '3', '7', '4', '0', '0', '2', '4', '1', '8', '0', '0', '7', '6', '4', '7', '1', '8', '8', '1', '8', '8', '2', '3', '1', '7', '2'], ['2', '7', '5', '8', '7', '6', '2', '9', '9', '0', '6', '1', '7', '8', '1', '3', '3', '1', '5', '7', '9', '8', '2', '0', '7', '6', '0', '0', '1', '1', '5', '8', '6', '7', '7', '9', '9', '0', '4', '4', '3', '4'], ['0', '9', '9', '0', '5', '4', '9', '9', '3', '0', '3', '1', '5', '9', '9', '5', '3', '0', '2', '3', '9', '9', '7', '8', '5', '4', '6', '4', '2', '8', '7', '0', '2', '3', '6', '5', '2', '6', '0', '6', '5', '7'], ['1', '1', '4', '1', '4', '2', '7', '1', '9', '7', '9', '9', '4', '4', '2', '7', '6', '8', '2', '6', '7', '3', '1', '8', '0', '5', '3', '0', '3', '9', '0', '4', '7', '9', '6', '8', '1', '7', '0', '3', '2', '4'], ['6', '3', '1', '3', '2', '9', '5', '5', '4', '7', '2', '4', '7', '6', '9', '2', '0', '1', '2', '1', '4', '3', '8', '4', '9', '8', '9', '7', '7', '6', '8', '2', '4', '5', '3', '0', '1', '3', '0', '1', '0', '9'], ['5', '9', '4', '2', '1', '5', '0', '2', '6', '6', '0', '8', '3', '0', '3', '3', '3', '0', '7', '8', '0', '7', '7', '4', '3', '0', '6', '9', '6', '2', '2', '2', '8', '3', '7', '2', '4', '0', '0', '4', '5', '2'], ['3', '1', '1', '6', '2', '9', '7', '0', '3', '2', '8', '0', '5', '2', '2', '9', '9', '2', '8', '3', '5', '7', '4', '2', '8', '7', '8', '0', '4', '9', '7', '8', '0', '3', '2', '2', '1', '5', '1', '4', '9', '1'], ['6', '4', '8', '2', '4', '2', '5', '4', '0', '1', '0', '9', '0', '3', '0', '6', '4', '8', '6', '7', '9', '3', '0', '1', '6', '9', '5', '7', '5', '2', '9', '4', '7', '0', '6', '4', '1', '4', '4', '1', '3', '5'], ['6', '7', '8', '2', '9', '5', '0', '2', '6', '5', '4', '9', '4', '7', '8', '4', '6', '7', '6', '5', '1', '3', '8', '1', '7', '5', '9', '3', '9', '4', '0', '6', '5', '6', '9', '8', '4', '6', '9', '9', '0', '2'], ['6', '9', '2', '4', '3', '7', '2', '5', '8', '6', '3', '6', '3', '6', '7', '2', '6', '8', '6', '4', '3', '9', '6', '2', '1', '3', '1', '8', '8', '9', '6', '2', '0', '2', '2', '9', '3', '6', '4', '4', '8', '7'], ['1', '4', '5', '5', '7', '2', '3', '8', '3', '6', '9', '3', '3', '4', '4', '2', '3', '7', '5', '5', '2', '8', '7', '2', '7', '6', '0', '5', '1', '4', '1', '5', '5', '0', '4', '8', '7', '8', '1', '4', '2', '6'], ['5', '6', '8', '0', '0', '6', '3', '8', '3', '8', '2', '0', '8', '5', '4', '4', '0', '0', '8', '5', '8', '9', '1', '3', '3', '1', '1', '2', '9', '9', '1', '2', '1', '3', '5', '8', '7', '9', '3', '1', '3', '5'], ['9', '6', '7', '4', '9', '0', '2', '8', '9', '4', '3', '6', '4', '1', '8', '3', '1', '8', '0', '4', '4', '2', '1', '2', '9', '8', '3', '6', '7', '3', '9', '5', '7', '9', '1', '4', '6', '1', '4', '5', '4', '0'], ['5', '7', '4', '0', '6', '7', '8', '3', '6', '5', '8', '1', '4', '9', '9', '2', '7', '7', '4', '2', '8', '0', '8', '3', '2', '7', '3', '5', '7', '4', '4', '1', '3', '5', '1', '9', '6', '1', '0', '9', '5', '4'], ['3', '4', '0', '0', '3', '2', '2', '2', '9', '7', '5', '5', '1', '8', '4', '7', '9', '0', '7', '4', '1', '9', '3', '7', '3', '9', '5', '0', '3', '6', '6', '8', '8', '4', '1', '8', '2', '3', '9', '5', '3', '3'], ['7', '0', '6', '2', '5', '2', '1', '8', '1', '4', '4', '8', '9', '0', '3', '0', '3', '1', '9', '0', '8', '0', '1', '0', '3', '7', '6', '6', '3', '9', '4', '3', '4', '4', '1', '4', '7', '2', '9', '5', '8', '3'], ['7', '5', '7', '9', '8', '8', '3', '4', '3', '2', '5', '2', '4', '6', '5', '6', '1', '6', '0', '4', '9', '6', '8', '0', '3', '3', '2', '1', '1', '8', '9', '5', '3', '8', '3', '0', '4', '7', '7', '9', '2', '6'], ['6', '3', '9', '7', '5', '8', '5', '1', '1', '6', '6', '0', '8', '3', '2', '7', '3', '0', '4', '5', '1', '2', '3', '0', '4', '2', '8', '4', '1', '1', '0', '2', '3', '2', '5', '6', '3', '0', '1', '2', '2', '5'], ['8', '7', '2', '1', '4', '9', '6', '5', '2', '0', '9', '1', '0', '8', '6', '9', '7', '3', '4', '5', '6', '7', '2', '8', '3', '0', '1', '9', '5', '4', '4', '1', '6', '4', '0', '5', '1', '5', '7', '8', '2', '4'], ['4', '8', '1', '1', '7', '0', '8', '0', '2', '1', '8', '2', '2', '7', '6', '2', '3', '5', '2', '5', '5', '5', '9', '3', '4', '9', '4', '9', '8', '8', '0', '1', '6', '7', '7', '5', '7', '5', '9', '3', '6', '1'], ['5', '8', '6', '8', '0', '7', '3', '1', '9', '2', '3', '5', '5', '5', '0', '9', '2', '2', '2', '8', '7', '7', '6', '7', '6', '7', '4', '3', '9', '8', '3', '9', '3', '5', '7', '1', '3', '1', '4', '0', '7', '1'], ['9', '2', '6', '8', '8', '6', '8', '4', '8', '6', '7', '7', '7', '0', '2', '6', '5', '1', '5', '3', '8', '0', '5', '6', '5', '4', '9', '4', '6', '0', '0', '7', '2', '2', '1', '1', '0', '5', '1', '2', '5', '1'], ['1', '8', '4', '3', '2', '6', '1', '8', '3', '6', '5', '5', '1', '5', '9', '8', '0', '2', '8', '9', '4', '2', '1', '9', '6', '5', '1', '2', '5', '4', '6', '7', '3', '8', '7', '3', '2', '4', '7', '6', '6', '0'], ['9', '2', '9', '7', '5', '6', '4', '9', '5', '4', '8', '5', '2', '4', '0', '5', '5', '1', '0', '9', '3', '6', '4', '0', '9', '4', '2', '7', '5', '1', '3', '4', '8', '3', '7', '4', '2', '8', '3', '0', '2', '8'], ['8', '4', '4', '7', '5', '7', '3', '2', '8', '9', '5', '5', '2', '3', '8', '3', '3', '8', '0', '4', '9', '5', '9', '8', '5', '9', '1', '9', '4', '3', '9', '7', '4', '3', '0', '9', '3', '1', '3', '1', '3', '9'], ['9', '3', '7', '7', '4', '9', '1', '1', '8', '9', '2', '1', '2', '4', '1', '0', '9', '2', '8', '8', '9', '7', '2', '6', '0', '4', '3', '6', '2', '1', '4', '7', '6', '2', '4', '0', '8', '5', '1', '6', '2', '1'], ['6', '8', '7', '3', '6', '4', '3', '9', '3', '7', '1', '5', '0', '5', '5', '1', '7', '9', '3', '9', '8', '9', '9', '6', '6', '3', '1', '2', '2', '2', '0', '7', '8', '4', '7', '3', '6', '2', '2', '1', '9', '6'], ['1', '3', '1', '5', '7', '5', '2', '5', '3', '4', '0', '7', '6', '8', '5', '9', '7', '1', '0', '3', '3', '8', '2', '9', '7', '2', '4', '8', '6', '3', '1', '3', '3', '0', '7', '1', '5', '9', '0', '9', '8', '1'], ['4', '1', '6', '2', '2', '3', '9', '7', '6', '5', '6', '5', '3', '0', '8', '4', '3', '0', '6', '8', '7', '4', '1', '4', '2', '3', '2', '2', '1', '0', '0', '5', '3', '4', '0', '8', '4', '8', '4', '9', '0', '0'], ['2', '1', '1', '4', '8', '0', '6', '9', '7', '0', '9', '4', '7', '6', '1', '1', '5', '2', '0', '6', '9', '2', '0', '2', '7', '3', '3', '0', '5', '2', '6', '3', '0', '1', '8', '3', '5', '5', '3', '9', '8', '5'], ['1', '3', '2', '8', '8', '7', '7', '2', '6', '3', '8', '8', '5', '6', '7', '0', '1', '7', '7', '8', '5', '1', '9', '5', '2', '5', '7', '2', '2', '5', '9', '6', '0', '3', '1', '2', '2', '2', '3', '0', '1', '9'], ['2', '5', '0', '6', '4', '0', '1', '6', '9', '7', '0', '6', '7', '4', '9', '1', '0', '2', '5', '5', '7', '0', '2', '0', '8', '0', '6', '2', '6', '8', '1', '1', '0', '6', '4', '4', '0', '6', '5', '8', '7', '3'], ['9', '7', '8', '6', '0', '3', '7', '5', '7', '5', '6', '0', '5', '6', '3', '9', '6', '3', '2', '6', '0', '0', '6', '5', '8', '3', '7', '3', '7', '3', '5', '2', '4', '9', '4', '1', '0', '7', '9', '7', '6', '2'], ['3', '0', '7', '5', '1', '4', '8', '7', '9', '9', '0', '7', '6', '8', '6', '0', '5', '8', '0', '8', '9', '4', '8', '1', '3', '1', '8', '6', '0', '5', '1', '7', '3', '4', '7', '6', '4', '2', '8', '6', '1', '7'], ['4', '2', '8', '1', '1', '3', '2', '6', '5', '1', '9', '1', '2', '8', '8', '8', '2', '6', '2', '5', '6', '0', '7', '5', '2', '0', '9', '3', '0', '1', '4', '1', '1', '0', '0', '3', '9', '3', '4', '8', '8', '3'], ['9', '1', '9', '0', '9', '4', '0', '8', '4', '9', '7', '6', '7', '6', '0', '7', '1', '1', '7', '4', '9', '0', '0', '7', '3', '2', '8', '1', '6', '9', '7', '2', '0', '1', '6', '1', '9', '8', '9', '7', '5', '3']],39,), ([['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1']],15,), ([['b', 'q', 'b', 'D', 't', 'y', 'Z', 'G', 'd', 'r', 'R', 'R', 'z', 'A', 'Y', 'H', 'D', 'Q', 'X', 'U', 'o', 'a', 'S', 'P', 'S', 'c', 'W', 'r', 'I', 'y', 'E', 'x', 'E', 'k', 'l', 'F', 'M', 'G', 'z', 'T', 'I', 'E', 'D', 'K', 'M', 'l'], ['V', 'm', 'W', 'M', 'l', 'H', 'l', 'j', 'f', 'S', 'k', 'g', 'O', 'W', 'S', 'R', 'I', 'L', 'J', 'Z', 'V', 'X', 'w', 'l', 'K', 's', 'F', 'o', 'X', 'k', 'a', 'L', 'K', 'H', ' ', 'E', 'x', 'b', 'Z', 'w', 'Z', 'Y', 'U', 'y', 'I', 'Q'], ['I', 'o', 's', 'A', 'f', 'Z', 'C', 'o', 'X', 'b', 'd', 's', ' ', 'Y', 'Q', 'U', 'C', 'T', 'K', 'r', 'Q', 'U', 'P', 'C', 'w', 'R', 'e', 's', 'L', 'A', 'j', 'g', 'p', 'B', 'I', 'W', 'L', 'e', 'w', 'b', 'R', 'z', 'Y', 'M', 'M', 'E'], ['k', 'Y', 'v', 'L', 'f', 'x', 'v', 'l', 'C', 'g', 'J', 'V', 'l', 'q', 'p', 'x', 'z', 'A', 'J', 'h', 'V', 'i', 'h', 'r', 'Z', 'i', ' ', 'y', 'M', 'k', 'p', 'q', 'X', 'M', 'U', 'W', 'v', 'v', 'P', 'L', 'n', 'j', 'r', 'O', 'k', ' '], ['K', 'k', 'K', 'Z', 'X', 'W', 'e', ' ', 'x', 'u', 'r', 'l', 'l', 'z', 'V', 'e', 'K', 'z', 'y', 'x', 'f', 'v', 'n', 'f', 'K', 'p', 'b', 'I', 'C', 'p', 'b', 'V', 'R', 't', 'n', 't', 'm', 'A', 'F', 'J', 'U', 'M', 'n', 'g', 'M', 'W'], ['a', 'e', 'x', 'A', 'U', 'V', 'P', 'W', 'W', 'l', 'p', ' ', 'o', 'L', 'X', 'E', 'g', 'k', 'Y', 'W', 'P', 'Y', 'B', 't', 'Z', 'm', 'V', 'Z', 'O', 'z', 'o', 'O', 'm', 's', 'x', 'O', 'L', 'q', 'Z', 'E', 'y', 'B', 'l', 'h', 'h', 'T'], ['c', 'x', 'R', 'R', 'x', 'S', 'R', 'y', 'J', 'Y', 'e', 'F', 'X', 'x', 'h', 'L', 'N', 'Q', 'j', 'X', 's', 'H', 'Z', 'M', 'Q', 'b', 'Q', 'h', 'x', 'R', 'Y', 'C', 'r', 'D', 'b', 'O', 'l', 'W', 'J', 'I', 'A', 'P', 'x', 'D', 'T', 'c'], ['Y', 's', 'B', 'N', 'B', 'g', 'e', 'h', 'l', 'y', 'N', 's', 'a', 'f', 'k', 'p', 'C', 'Q', 'c', 'U', 'A', 'N', 'w', 'V', 'z', 'F', 'j', 'M', 'F', 'g', 'q', 'x', 'r', 'l', 'e', 'Y', 'T', 'z', ' ', 'a', 'n', 'n', 'x', 'p', 'm', 'J'], ['v', 'O', 'a', 'A', 'E', 'q', 'L', 'P', ' ', 'w', 'l', 'G', 'k', 'f', 'M', 'A', 'k', 'i', 'f', 'D', 'z', 'A', 'J', 'Y', 'b', 'g', 'a', 'h', 'e', 'S', 'Q', 'H', 'c', 'f', 'I', 'S', 'X', 'Y', 'J', 'g', 'f', 'n', 'G', 'J', 'r', 'S'], [' ', 'S', 'w', 'G', 'b', 'v', 'z', 'U', 'l', 'k', 'a', 'w', 'y', 'D', 'Q', 'v', 'c', 'T', 'S', 'S', 'n', 'M', 'm', 'j', 'U', 'X', 'a', 'k', 'O', 'A', 'T', 'a', 'U', 'u', 'y', 's', 'W', 'j', 'k', 'n', 'a', 'V', 'X', 'N', 'D', 'C'], ['Z', 'o', 'O', 'a', 'z', 'M', 'X', 'k', 'm', 'X', 'J', 'w', 'y', 'd', 'j', 'c', 'Q', 'E', 'E', 'i', 'g', 'q', 'U', 'v', 'C', 'k', 'y', 't', 'T', 'A', 'o', 'u', 'o', 'e', 'J', 'c', 'c', 'd', 'i', 'o', 'b', 'A', 'h', 'g', 'y', 'Y'], ['O', 'j', 'F', 'A', 'f', 't', 'J', 'u', 'V', 'J', 'P', 'Z', 'C', 'c', 'c', 'y', 'G', 's', 'W', 'X', 'O', 'g', 'q', 'l', 'z', 'L', 'p', 'U', 'o', 'A', 'k', 'v', 'q', 'v', 'I', 'W', 'k', 'r', 'm', 'Y', 'i', 'V', 'Y', 'c', 'P', 'S'], ['N', ' ', 'W', 'k', 'z', 'o', 'V', 'w', 'M', 'a', 'q', 'c', 'P', 'D', 'x', 'O', 'M', 'y', ' ', 'B', 'y', 'L', 'V', 'E', 'j', 'i', 'C', 'k', ' ', ' ', 'c', 'K', 'c', 'h', 'y', 'K', 'c', 'G', 'Q', 'h', 'B', 'i', 'L', 'Q', 'P', 's'], ['X', 'p', 'y', 'I', 'W', 'F', 'F', 'o', 'W', 'g', 'A', 'H', 'a', 'H', 'X', 'F', 'd', 'Y', 'I', 'x', 'n', 'r', 's', 'c', 'B', 'L', 'o', 'B', 'C', 'o', 'G', 'v', 'T', 'q', 'A', 'Z', 'a', 'Z', 'd', 'S', 'B', 'S', 'F', 'I', 'm', 'C'], ['F', 't', 'c', 'w', 'E', 'X', 's', 'F', 'e', 'J', 'h', 'Y', 'f', 'g', 'd', 'f', 'N', 'X', 'G', 'l', 'n', 'M', 'L', 'k', 'P', 'Y', 'M', ' ', 'U', 'X', 'n', 's', 'o', 'F', 'R', 'g', 'E', 'I', 'G', 'P', 'x', 'f', 'h', 'K', 'b', 'k'], ['a', 'p', 'j', 'Q', 'X', 'p', 'h', 'R', 'g', 'U', 'O', 'x', 'X', 'k', 'v', 'm', 'o', 'E', 'Z', 'Z', 'W', 'v', 'k', 'l', 'o', 'O', 'N', 'P', 'Q', 'k', 'A', 'K', 'c', 'l', 'w', 'a', 'k', 'Z', 'd', 'T', 'S', 't', 'K', 'L', 'x', 'k'], ['t', 'f', 'V', 'Q', 'X', 'e', 's', 'f', 'o', 'N', 'U', 'z', 'y', 'K', 'F', ' ', 'A', 'V', 'W', 'A', 'j', 'C', 'T', 'G', 'z', 'K', 'j', ' ', 'I', 'w', 'h', 'Q', 't', 'I', 'm', 'V', 'h', 'M', 'L', 'Q', 'J', 'g', 'p', 'x', 'P', 'i'], ['X', 'Q', 'b', 'i', 'T', 'A', 'R', 'f', 'c', 'r', 'K', 't', 'J', 'E', 'Z', 'd', 'W', 'O', 'G', 'X', 'u', 'I', 'z', ' ', 'm', 'H', 's', 'P', 'd', 's', 'k', 'm', 'E', 'K', 'Y', 'H', 'L', 'b', 'Z', 'y', 'I', 'c', 'p', 'y', 'Y', 'T'], ['P', 'g', 'C', 'T', 'i', 'Z', 's', 's', 'r', 'E', 'L', 'P', 'T', 'o', 'r', 'g', 'x', 'c', 'U', 'b', 'o', 'l', 'H', 'H', 'k', 'b', 'N', 'e', 'S', 'E', 'U', 'c', 'g', 'V', 'E', 'V', 'l', 'L', ' ', 'I', 'h', 'M', 'L', 'z', 'P', 'e'], ['l', 'i', 'O', 'F', 'S', 'e', 'Z', 'j', 'y', 'J', 'p', 'c', 'q', 'j', 'Q', 'E', 'j', 'd', 'u', 'S', 'N', 'Y', 'R', ' ', 'F', 'I', 'f', 'u', 'd', 't', 'u', 'Q', 'J', 'v', 'i', 'x', 'A', 'd', 'k', 'v', 'H', 'Z', 'B', 'u', 'o', 'k'], ['V', 'p', 'B', 'h', 'M', 'a', 'p', 'n', 'z', 'L', 's', 'g', 'c', 'G', 'T', 'X', 'a', 'X', 's', 'h', 'O', 'x', 'h', 's', 'x', 'N', ' ', 'O', 'w', 'F', 'v', 'M', 'W', 'u', 'c', 'Y', 'x', 'x', 'H', 'P', 'T', 'h', 's', 'W', 'w', 'l'], ['B', 'f', 'k', 'U', 'j', 'b', 'X', 'J', 'z', 'y', 'w', 'B', 'n', 'f', 'x', 'N', 'Y', 'l', 'Q', 'h', 't', 'v', 'U', 'y', 'I', 'G', 'q', 'T', 'a', 'i', 'N', 'p', 'e', 'Z', 'Y', 'Q', 'B', 'G', 'e', 'N', 'V', 's', 'E', 'U', 'B', 'h'], ['q', 'Y', 'r', 'w', 't', 'G', 'G', 'M', 'F', ' ', 'e', 'u', 'E', 'g', 's', 'D', 'c', 'h', 'L', 'G', 'x', 'u', 'V', 'j', 'u', 'U', 'i', 'm', 'Y', 'J', 'L', 'P', 'h', 'X', 'p', 'P', 'F', 'f', 'O', 'u', 'U', 'H', 'Y', 'I', 'A', 'X'], ['v', ' ', 'W', 'A', 'e', 't', 'Y', 't', 'I', 's', 'w', 'M', ' ', 'E', 'R', 'K', 'x', 'i', 'O', 'w', 'h', 'e', 'f', 'N', 'i', 'N', 'v', 'q', 'F', 'u', 'A', 'c', 'e', 's', 'p', 'N', 'j', 'G', 'q', 'W', 'q', 'U', 'J', 'b', 'V', 'i'], ['p', 'Y', 'p', 'f', 'I', 'N', 'S', 'C', 'J', 'p', 'O', 'O', 's', 'V', 's', 'Z', 'y', 's', 'l', 'o', 'b', 'e', 'L', 'J', 'm', 'W', 'g', 'P', 'x', 'l', 'W', 'N', 'a', 'T', 'm', 'D', 'p', 'p', 'l', 'P', 'E', 'V', 'c', 'O', 'T', 'Z'], ['x', ' ', 'v', 'X', 'T', 's', 'i', 'A', 'J', 'q', 'H', 'P', 'x', 'q', 'Y', 'n', 's', 'i', 'W', 'z', 'Y', 'q', 'a', 'Z', 't', 'M', 's', 'A', 'q', 'e', 'W', 'V', 'g', 'y', 'x', 'n', 'E', 'p', 'x', 't', 'q', 'R', 'T', 'm', 'h', 'm'], ['M', 'u', 'D', 'R', 'R', 'h', 'B', 'f', ' ', 'H', 'b', 'l', 'q', 'X', 'f', 'b', 'r', 'e', 'v', 'D', 'm', 'T', 'v', 'l', 'g', 'l', 'z', 'y', 'A', 'O', 'i', 'G', 'Q', 'l', 'K', 'G', 'H', 'G', 'S', 'b', 'a', 'b', 'k', 'p', 'g', 'R'], ['G', 'Q', 'P', 'e', 'P', 'r', 'K', 'U', 'l', 'g', 'X', 'q', 'I', 'O', 'U', 'y', 'V', 'Z', 't', 'Q', 'g', 'd', 'T', 'J', 'q', 'w', 'z', 'L', 'V', 'p', 'e', 'X', 'x', 'D', 'k', 'R', 'P', 'U', 'L', 'z', 'a', 'L', 'L', 'Q', 'z', 'D'], ['j', 'W', 'Q', 'E', 'P', 'V', 'f', 'p', 'w', 'n', 'U', 'j', 'Z', 'P', 'f', 'v', 'R', 'r', 'h', 'z', 'r', 'l', 'T', 'P', 'U', 'f', 'v', 'A', 'B', 'k', 'b', 'n', 'o', 'h', 'j', 'K', 'h', 'r', 'f', 'q', 'x', 'E', 'U', 'g', 'd', 'C'], ['C', 'v', 'D', ' ', 'K', 'd', 'd', 'D', 'd', 'f', 'U', 'F', 'l', 'x', 'E', 'D', 'Q', 'L', 'W', 'X', 'E', 'E', 'X', 'T', 'M', 'C', 'e', 'B', 'x', 'o', 'C', 'f', 'd', 'o', 'F', 'T', 'J', 'F', 'G', 'l', 'k', 'x', 'u', 'q', 'N', 't'], ['l', 'd', 'P', 'k', 'N', 'w', 't', 'C', 'u', 'n', 'f', 'Z', 'B', 'A', 'Z', 'z', 'z', 'v', 'Z', 's', 'n', 'f', 'Y', 'c', 's', 'j', 'e', 'M', 'E', 'i', 'N', 'Y', 'D', 'k', 'k', 'n', 'j', 'X', 'q', 'T', 'T', 'G', 'S', 'd', 't', 'd'], ['c', 'c', 'G', 'd', 'y', 'T', 'E', 'w', 'k', 'R', 'd', 'N', 'S', 'M', 'L', 'p', 'H', 'F', 'C', 'L', 'n', 'l', 'C', 'M', 'L', 'u', 'k', ' ', 'X', 'E', 'L', 'J', 'L', 'G', 'l', 'H', 'l', 'r', 'p', 'v', 'D', 'T', 'r', 'L', 'v', 'e'], ['t', 'A', 's', 'J', 'M', 'b', 'P', 'a', 'p', 'G', 'q', 'p', 'i', 'd', 'b', 'C', 'S', 'w', 'c', 'N', 'm', 'A', 'C', 'm', 'f', 'T', 'P', 'z', 'U', 'L', 'o', 'V', 'N', 'M', 'G', 'h', 'V', 'h', 'U', 'S', 'I', 'N', 'f', 'H', 'L', 'f'], ['q', 'V', 'Z', 'j', 's', 'c', 'T', 'n', 'U', 'l', 'E', 'V', 'c', 's', 'J', 'n', 'q', 'b', 'c', 'h', 'e', 'x', 'H', 'G', 'k', 'U', 'P', 'U', 'T', 'W', 'n', 't', 'p', 'i', 'b', 'u', 'b', 'H', 's', 'D', 'L', 'Y', 'Z', 'u', 'P', 'w'], ['s', 'F', 'O', 't', 'J', 'e', 'f', 'P', 'l', 'l', 'v', 'G', 'B', 'J', 'i', 'b', 'i', 'r', 'P', 'x', 'a', 'i', 'X', 'T', 'G', 'G', 'a', 'k', 'd', 'Z', 'L', 'Y', 'U', 'r', 'b', 'p', 't', 'k', 'L', 't', 'x', 'T', 'k', 'v', 'a', 'k'], ['c', 's', 'B', 'Z', 'd', 'h', 'd', 'P', 'w', 'D', 'a', 'c', 'G', 'M', 'T', 'u', 'U', 'O', 'T', 'w', 'a', 'o', 'x', 'V', 'J', 'g', 'N', 'w', 'w', 'f', 'g', 'u', 'j', 'p', 'G', 'T', 'w', 'X', 'J', 'p', 'M', 'y', 'o', 'G', 'm', 'w'], ['w', 'j', 'K', 'u', 'K', 'd', 'N', 'I', 'w', 'E', ' ', 'K', 'K', 'c', 'x', 'U', 'A', 'A', 'v', 'F', 'z', 'a', 'z', 'C', 'V', 'W', 'A', 'o', 'm', 'Z', 'i', 'U', 'F', 'e', 'p', 'w', 'O', 'A', 'T', 'u', 'a', 'P', 'l', 'y', 'w', 'J'], ['b', 'M', 'e', 'h', 'S', 'Q', 'c', 'G', 'D', 'A', 'I', 'H', 'g', 'f', 'E', 'j', 'x', 'u', 'P', 'p', 'p', 'd', 'V', 'F', 'D', 'L', 'L', 'g', 'H', 'h', 'n', 'Q', 'K', 'L', 'g', 'K', 'y', 'Y', 'u', 'A', 'g', 'W', 't', 'J', 'X', 'F'], ['k', 'J', 'l', 'X', 'J', 'm', 'e', 'Y', 'd', 'Z', 'L', 'W', 'r', 'W', 'T', 'J', 'G', 'f', ' ', 's', 'j', 'j', 'P', 'h', 'k', 'x', 'k', 'k', 'B', 'N', 'j', 'h', 's', 'o', 'b', 'm', 'u', 'O', 'i', 'D', 'c', 'B', 'a', 'h', 'B', 'Y'], ['L', 'l', 'R', 'Z', 'f', 'j', 'G', 'E', 'j', 'g', 'X', 'S', 'P', 'H', 'T', 'a', 'c', 'Y', 'b', 'r', 'N', 'N', 'R', 'n', 'd', 'j', 'H', 'M', 'X', 'A', 'V', 'G', 'c', 'r', 'l', 'v', 'F', 'e', 'z', 'k', 'z', 'Q', 'r', 'F', 'L', 'H'], ['U', 'o', 'Y', 'O', 'n', 'J', 'c', 'i', 'j', 'a', 'j', 'H', 'O', 'u', 'S', 'm', 'K', 'y', 'i', 'T', 'v', 'j', ' ', 'v', 'H', 'f', 'r', 'q', 'F', 'a', 'l', 'u', 'F', 'E', 'p', 'b', 'V', ' ', 'm', 'O', 'M', 'E', 'f', 'Q', 't', 'T'], [' ', 'B', 'H', 'i', 'H', 'c', 'T', ' ', 'K', 'u', 'd', 'C', 'F', 'F', 'S', 'v', 'Z', 'A', 'b', 't', 'r', 'G', 'I', 'F', 'p', 'L', 'G', 'N', 'h', 'y', 'm', 'b', 'z', 'V', 'G', 'D', 'p', 'K', 'p', 'C', 'X', 'y', 'w', 'c', 'z', 'K'], ['P', 'q', 'o', 'M', 'T', 'U', 'o', 'r', 'A', 'h', 'S', 'q', 'T', 's', 'V', 'u', 'c', 'N', 'v', 'E', 'r', 'X', 'k', 'v', 'M', 'p', 'Q', 'd', 'Y', 'Q', 'J', 'c', 'L', 'M', 'r', 'Z', 'D', 'k', 'V', 'u', 'G', ' ', 'Y', 'O', 'i', 'x'], ['V', 'x', 'o', 'G', 'T', 'g', 'G', 'N', 'A', 'q', 'p', 'l', 'K', 't', 'j', 'n', 'C', 'U', 'c', 'b', 'q', 'q', 'c', 'C', 'w', 'x', 'B', 'C', 't', 'V', 'z', 'y', 'y', 'o', 'U', 'E', 'O', 'X', 'j', 'V', 'r', 'y', 't', 'n', 'R', 'H'], ['Z', 'O', 'w', 'z', 'v', 'K', 'U', 'c', 'N', 'M', 'h', 'W', 'Y', 'Z', 'g', 'k', 'h', 'o', 'K', 'B', 'K', 'q', 'u', 'P', 'z', 'v', 'j', 'u', 'z', 'P', 'B', 'y', 'p', 'Y', 'U', 'W', 'Z', 'I', 'c', 'm', 'W', 'J', 'c', 'l', ' ', 'O'], ['Q', 'A', 'B', 'Z', 'C', 'D', 'N', 'i', 'W', 'E', 'W', 'V', 'Z', 'k', 'A', 'D', 'z', 'Z', 'I', 't', 'Y', 'K', 'u', 'T', 'u', 'q', 'p', 'V', 'P', 'y', 'o', 'e', 'Y', 'x', 'd', 'L', 'P', 'L', 'p', 'Z', 'E', 'N', 'r', 'c', 'K', 'Z']],31,), ([['1', '1', '1', '1', '2', '2', '3', '3', '3', '4', '4', '5', '5', '6', '7', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '1', '1', '2', '3', '4', '5', '6', '6', '6', '6', '6', '6', '6', '7', '7', '8', '8', '9'], ['0', '0', '0', '0', '0', '1', '1', '2', '2', '2', '3', '3', '4', '5', '5', '5', '5', '6', '7', '7', '8'], ['0', '1', '1', '2', '2', '2', '2', '2', '3', '3', '4', '4', '5', '5', '6', '6', '7', '7', '7', '9', '9'], ['0', '0', '1', '1', '2', '2', '2', '3', '3', '3', '4', '4', '4', '4', '4', '6', '7', '7', '8', '8', '9'], ['0', '0', '0', '0', '1', '1', '2', '3', '3', '3', '3', '4', '4', '4', '5', '7', '8', '8', '8', '9', '9'], ['0', '0', '0', '0', '0', '0', '1', '1', '2', '3', '4', '5', '5', '6', '6', '7', '7', '8', '8', '9', '9'], ['0', '2', '2', '2', '4', '4', '4', '4', '4', '5', '5', '5', '6', '6', '7', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '2', '3', '3', '3', '4', '4', '5', '5', '5', '7', '7', '7', '8', '8', '8', '9', '9', '9'], ['0', '0', '1', '2', '2', '3', '4', '4', '4', '4', '4', '5', '6', '6', '6', '7', '8', '8', '9', '9', '9'], ['0', '0', '1', '1', '1', '1', '1', '2', '2', '2', '2', '3', '4', '4', '5', '5', '6', '6', '8', '8', '9'], ['0', '0', '1', '2', '2', '2', '3', '3', '5', '5', '5', '6', '7', '7', '7', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '1', '1', '3', '5', '5', '5', '5', '6', '6', '6', '6', '6', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '2', '2', '2', '2', '2', '2', '3', '3', '5', '5', '5', '6', '7', '8', '8', '9', '9', '9'], ['0', '0', '0', '0', '2', '3', '5', '5', '5', '5', '5', '6', '6', '6', '7', '7', '7', '7', '7', '8', '9'], ['0', '0', '1', '2', '2', '3', '3', '3', '4', '4', '4', '5', '5', '5', '6', '6', '6', '7', '7', '8', '9'], ['0', '0', '0', '0', '1', '1', '3', '3', '3', '4', '4', '5', '5', '6', '7', '8', '8', '8', '9', '9', '9'], ['0', '0', '1', '1', '1', '1', '1', '2', '2', '3', '5', '5', '6', '6', '6', '7', '7', '7', '7', '8', '8'], ['0', '1', '1', '1', '1', '2', '2', '4', '4', '4', '4', '4', '5', '5', '6', '7', '7', '8', '8', '9', '9'], ['1', '1', '2', '2', '3', '3', '4', '5', '5', '5', '5', '6', '6', '7', '7', '7', '8', '8', '8', '9', '9'], ['0', '0', '0', '0', '2', '2', '2', '3', '3', '4', '5', '5', '5', '5', '5', '5', '6', '7', '7', '7', '9']],11,), ([['0', '1', '0', '1', '1', '1', '0', '1', '1', '0', '1', '0', '0', '0', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '0', '1'], ['1', '0', '0', '0', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '1', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0'], ['0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '1', '0', '0', '1', '0', '1', '0', '1', '1', '1', '0', '1', '0', '0', '0', '1', '0', '0', '1', '1', '1', '0', '0'], ['0', '1', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '1', '1', '0'], ['1', '1', '1', '1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '1', '0', '0', '1', '0', '0', '1', '1'], ['1', '0', '1', '0', '0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '0', '1', '0', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '1', '1', '0', '1', '0', '1', '0'], ['0', '0', '0', '0', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '0', '1', '1', '0', '1', '0', '0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '1', '0', '0', '0', '1', '1'], ['1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '0', '0', '0', '1', '0', '0'], ['0', '0', '1', '1', '1', '1', '0', '1', '0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0', '1', '1', '0', '1', '0', '0', '0', '1', '1', '0', '1', '1', '1', '1'], ['1', '0', '0', '1', '1', '0', '1', '1', '0', '0', '0', '1', '1', '0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '0', '1', '1', '0', '1', '0', '0'], ['0', '0', '0', '1', '0', '0', '1', '1', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '0', '1', '0', '0', '1', '0', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '0', '1'], ['1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '0', '1', '0', '1', '1', '0', '1', '0'], ['0', '0', '1', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '1', '0', '0'], ['0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '1', '1', '0', '0', '1', '1', '0', '0', '0', '1', '1', '0', '1', '0', '0', '0', '0', '1', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '1', '0', '1', '0', '1', '1', '1'], ['1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0', '1', '0', '0', '0', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '0', '1', '0', '1'], ['0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '0', '1', '0', '0', '1', '1', '1', '1', '1', '0'], ['1', '1', '0', '1', '1', '1', '0', '0', '1', '1', '0', '0', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '0', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '0', '1', '0', '1', '1'], ['0', '0', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '1', '1', '0', '1', '1', '1', '0', '0'], ['1', '1', '0', '1', '0', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '1', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '1', '1'], ['1', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '1', '1', '0', '0', '0', '0', '0', '1', '0', '1', '0', '0', '0', '0', '1', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '0', '0', '0'], ['0', '0', '1', '1', '0', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '1', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0'], ['0', '1', '0', '1', '1', '1', '1', '1', '0', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '0', '1', '0', '1', '0', '0', '1', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '1', '1', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '1', '1', '0', '0', '1'], ['0', '0', '0', '1', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0', '0', '1'], ['1', '0', '0', '1', '0', '1', '0', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '1', '1', '1', '0', '0', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '0'], ['0', '0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '1', '1', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '0', '0'], ['1', '1', '0', '0', '1', '1', '1', '0', '0', '1', '0', '1', '1', '1', '0', '0', '0', '0', '0', '1', '0', '1', '0', '1', '1', '0', '1', '1', '1', '0', '0', '1', '0', '0', '1', '0', '1', '1', '1'], ['0', '1', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1', '1', '0', '1', '0', '1'], ['1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '1', '1', '0', '1', '0', '1', '1', '1', '0', '0', '0', '0', '1', '1', '1', '0'], ['1', '0', '1', '0', '1', '0', '1', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '1', '0', '0', '0', '1', '1', '0', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1'], ['1', '1', '0', '0', '1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '1', '1', '0', '0', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '0', '0'], ['1', '0', '0', '1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '1', '0', '0', '1', '1', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '0', '0', '1', '1', '0', '1', '1', '1', '0', '1'], ['0', '1', '0', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1'], ['1', '0', '1', '1', '1', '1', '1', '1', '0', '0', '1', '0', '1', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '1', '0', '0', '1', '0'], ['0', '1', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '0', '1', '1', '1', '1', '1'], ['1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '0', '1', '0', '0', '1', '1', '1', '0', '1', '1', '0', '1', '1', '1', '0', '1', '1', '0', '0', '0', '1'], ['0', '1', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '0', '0', '1', '1', '0', '1', '0', '0', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '0', '1', '0', '1', '1', '0'], ['1', '1', '0', '1', '1', '0', '0', '1', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '1', '0', '0', '1', '1', '1']],20,), ([['B', 'D', 'D', 'E', 'H', 'H', 'J', 'M', 'M', 'M', 'M', 'N', 'O', 'O', 'P', 'R', 'S', 'T', 'U', 'U', 'W', 'W', 'Z', 'Z', 'b', 'c', 'c', 'e', 'f', 'g', 'j', 'k', 'k', 'n', 'o', 'r', 't', 'u', 'v'], [' ', 'A', 'A', 'A', 'C', 'C', 'D', 'D', 'E', 'F', 'H', 'J', 'J', 'K', 'L', 'L', 'N', 'T', 'T', 'U', 'W', 'Y', 'Z', 'c', 'f', 'g', 'i', 'i', 'k', 'k', 'm', 'n', 'o', 'p', 'r', 'r', 'u', 'v', 'x'], [' ', 'A', 'A', 'C', 'D', 'E', 'G', 'H', 'K', 'K', 'L', 'Q', 'S', 'U', 'V', 'Z', 'a', 'd', 'e', 'g', 'i', 'i', 'j', 'n', 'o', 'o', 'p', 'p', 'q', 's', 's', 't', 't', 'w', 'x', 'x', 'x', 'y', 'z'], [' ', 'B', 'D', 'E', 'G', 'H', 'H', 'H', 'H', 'K', 'M', 'O', 'O', 'R', 'R', 'S', 'S', 'U', 'V', 'X', 'a', 'a', 'd', 'e', 'e', 'f', 'h', 'i', 'j', 'p', 'p', 'q', 'q', 'q', 's', 'w', 'w', 'y', 'z'], [' ', 'A', 'A', 'C', 'E', 'F', 'G', 'H', 'J', 'J', 'K', 'M', 'O', 'S', 'S', 'U', 'X', 'Y', 'Z', 'b', 'd', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'n', 'q', 'q', 's', 's', 't', 'u', 'u', 'v', 'y', 'z'], ['H', 'H', 'H', 'H', 'J', 'J', 'K', 'M', 'N', 'S', 'U', 'U', 'V', 'V', 'V', 'W', 'Y', 'a', 'b', 'c', 'c', 'e', 'f', 'f', 'f', 'h', 'k', 'l', 'm', 'q', 'q', 's', 't', 'v', 'v', 'w', 'w', 'y', 'z'], ['A', 'B', 'D', 'G', 'H', 'I', 'J', 'J', 'L', 'M', 'N', 'P', 'Q', 'S', 'T', 'T', 'X', 'X', 'X', 'Y', 'Z', 'a', 'c', 'd', 'd', 'd', 'i', 'k', 'l', 'm', 'n', 'p', 'q', 'q', 't', 'w', 'x', 'y', 'y'], [' ', 'B', 'B', 'C', 'E', 'F', 'G', 'H', 'I', 'I', 'I', 'J', 'J', 'K', 'M', 'N', 'O', 'O', 'P', 'Q', 'S', 'T', 'W', 'Y', 'Y', 'a', 'c', 'd', 'h', 'h', 'i', 'j', 'k', 'o', 'o', 's', 'z', 'z', 'z'], [' ', 'A', 'C', 'C', 'D', 'E', 'E', 'E', 'F', 'H', 'H', 'M', 'M', 'N', 'N', 'R', 'T', 'W', 'Z', 'Z', 'd', 'e', 'h', 'h', 'j', 'j', 'k', 'm', 'n', 'o', 'p', 'r', 's', 's', 't', 'w', 'x', 'x', 'x'], ['A', 'D', 'I', 'M', 'P', 'Q', 'U', 'U', 'Y', 'Y', 'Z', 'Z', 'Z', 'a', 'b', 'c', 'e', 'f', 'f', 'f', 'g', 'g', 'h', 'h', 'i', 'i', 'j', 'm', 'n', 'o', 'p', 'q', 'r', 'u', 'u', 'u', 'w', 'x', 'z'], [' ', 'A', 'A', 'A', 'B', 'C', 'E', 'F', 'G', 'H', 'J', 'Q', 'R', 'S', 'U', 'U', 'V', 'W', 'Y', 'Z', 'a', 'b', 'b', 'd', 'g', 'j', 'k', 'l', 'l', 'm', 'n', 'n', 'o', 's', 's', 'u', 'w', 'w', 'w'], [' ', 'A', 'B', 'C', 'E', 'E', 'E', 'H', 'J', 'J', 'K', 'M', 'N', 'P', 'R', 'U', 'U', 'V', 'W', 'a', 'e', 'f', 'k', 'k', 'k', 'l', 'l', 'm', 'n', 'n', 'o', 'o', 'o', 'q', 'r', 'r', 't', 'u', 'x'], [' ', 'B', 'B', 'E', 'F', 'F', 'H', 'O', 'O', 'P', 'P', 'Q', 'R', 'S', 'T', 'X', 'a', 'a', 'a', 'b', 'e', 'f', 'g', 'i', 'j', 'm', 'n', 'p', 'r', 't', 't', 't', 'u', 'v', 'v', 'w', 'x', 'x', 'z'], [' ', 'A', 'B', 'C', 'D', 'E', 'E', 'G', 'H', 'J', 'J', 'J', 'K', 'K', 'M', 'P', 'Q', 'R', 'R', 'W', 'X', 'X', 'Z', 'a', 'a', 'e', 'h', 'i', 'j', 'k', 'q', 'q', 'r', 'r', 's', 'u', 'x', 'x', 'y'], [' ', 'B', 'I', 'I', 'J', 'J', 'K', 'N', 'O', 'P', 'P', 'R', 'U', 'X', 'Z', 'Z', 'Z', 'b', 'd', 'f', 'f', 'h', 'h', 'h', 'j', 'k', 'k', 'n', 'n', 'o', 'o', 'p', 'q', 's', 't', 'v', 'w', 'x', 'z'], [' ', ' ', 'B', 'E', 'K', 'L', 'M', 'N', 'Q', 'Q', 'R', 'S', 'T', 'U', 'V', 'V', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'e', 'e', 'g', 'i', 'i', 'm', 'n', 'o', 'p', 's', 'u', 'u', 'v', 'w', 'x', 'z'], ['E', 'E', 'E', 'E', 'J', 'K', 'K', 'M', 'N', 'P', 'Q', 'S', 'S', 'V', 'W', 'W', 'W', 'X', 'Y', 'c', 'c', 'd', 'e', 'f', 'h', 'n', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'x', 'y', 'z', 'z'], [' ', ' ', ' ', 'E', 'E', 'F', 'F', 'G', 'G', 'H', 'J', 'L', 'O', 'Q', 'R', 'R', 'T', 'V', 'W', 'Y', 'Y', 'Z', 'Z', 'c', 'f', 'g', 'h', 'h', 'j', 'l', 'q', 'q', 'q', 't', 'v', 'x', 'x', 'y', 'y'], ['B', 'D', 'G', 'G', 'H', 'J', 'J', 'K', 'M', 'Q', 'S', 'S', 'T', 'T', 'T', 'U', 'V', 'Z', 'Z', 'a', 'b', 'd', 'e', 'g', 'g', 'h', 'h', 'l', 'l', 'n', 'o', 's', 'u', 'u', 'v', 'v', 'w', 'x', 'y'], [' ', ' ', 'B', 'B', 'B', 'C', 'D', 'D', 'E', 'I', 'L', 'M', 'O', 'O', 'P', 'P', 'Q', 'R', 'R', 'R', 'R', 'R', 'U', 'a', 'b', 'c', 'd', 'e', 'g', 'k', 'l', 'l', 'n', 'n', 'n', 'p', 'p', 'r', 'r'], [' ', ' ', 'B', 'E', 'E', 'F', 'G', 'L', 'M', 'N', 'N', 'O', 'P', 'R', 'R', 'S', 'S', 'S', 'T', 'T', 'Y', 'Y', 'Z', 'a', 'a', 'b', 'd', 'e', 'f', 'j', 'j', 'k', 'l', 'l', 'm', 'o', 'o', 'p', 'y'], ['A', 'B', 'E', 'E', 'H', 'H', 'I', 'J', 'J', 'N', 'O', 'P', 'Q', 'R', 'V', 'V', 'W', 'W', 'X', 'X', 'Y', 'Z', 'Z', 'g', 'i', 'j', 'j', 'm', 'n', 'o', 'q', 'r', 'r', 's', 's', 's', 's', 't', 'x'], [' ', 'G', 'J', 'L', 'M', 'M', 'Q', 'Q', 'Q', 'S', 'U', 'W', 'W', 'Y', 'Z', 'Z', 'a', 'b', 'f', 'h', 'i', 'i', 'l', 'l', 'm', 'n', 'o', 'p', 'p', 'p', 'q', 'q', 'q', 's', 's', 't', 'u', 'v', 'w'], ['B', 'B', 'D', 'E', 'E', 'H', 'I', 'J', 'K', 'K', 'L', 'S', 'T', 'V', 'X', 'b', 'b', 'b', 'd', 'd', 'g', 'h', 'h', 'h', 'i', 'i', 'k', 'l', 'm', 'm', 'n', 'o', 'v', 'w', 'x', 'x', 'x', 'z', 'z'], ['B', 'C', 'C', 'C', 'D', 'D', 'E', 'F', 'J', 'K', 'M', 'N', 'O', 'O', 'Q', 'Q', 'R', 'R', 'R', 'S', 'T', 'U', 'V', 'W', 'W', 'a', 'b', 'f', 'g', 'i', 'm', 'n', 'n', 'n', 'p', 'p', 'p', 'u', 'v'], [' ', 'B', 'D', 'F', 'F', 'H', 'J', 'J', 'M', 'M', 'N', 'T', 'U', 'c', 'd', 'e', 'e', 'j', 'j', 'j', 'l', 'l', 'm', 'm', 'n', 'n', 'o', 'p', 'p', 'p', 's', 't', 't', 'v', 'v', 'w', 'y', 'y', 'y'], [' ', 'A', 'A', 'B', 'D', 'G', 'H', 'H', 'H', 'I', 'K', 'N', 'O', 'P', 'R', 'S', 'T', 'Y', 'Y', 'a', 'b', 'c', 'e', 'f', 'g', 'h', 'j', 'j', 'j', 'm', 'n', 'o', 's', 's', 'u', 'u', 'x', 'x', 'z'], [' ', ' ', 'F', 'G', 'G', 'J', 'N', 'N', 'P', 'S', 'S', 'S', 'T', 'T', 'X', 'Z', 'a', 'd', 'e', 'f', 'f', 'h', 'i', 'j', 'k', 'm', 'm', 'n', 'r', 's', 's', 't', 'v', 'w', 'x', 'x', 'x', 'z', 'z'], ['B', 'B', 'D', 'I', 'J', 'L', 'M', 'M', 'N', 'P', 'P', 'Q', 'S', 'U', 'X', 'X', 'X', 'Y', 'Z', 'a', 'b', 'e', 'e', 'f', 'g', 'i', 'j', 'l', 'm', 'o', 'q', 'r', 'r', 't', 'v', 'w', 'w', 'w', 'w'], [' ', 'A', 'B', 'C', 'D', 'D', 'E', 'F', 'F', 'H', 'I', 'J', 'J', 'M', 'N', 'N', 'O', 'S', 'U', 'V', 'W', 'W', 'e', 'g', 'h', 'h', 'i', 'j', 'j', 'o', 'p', 'q', 'q', 'r', 't', 'v', 'v', 'x', 'y'], [' ', 'A', 'A', 'C', 'C', 'D', 'D', 'D', 'E', 'G', 'I', 'J', 'O', 'Q', 'S', 'S', 'S', 'T', 'T', 'V', 'X', 'Y', 'Y', 'b', 'i', 'k', 'l', 'l', 'm', 'n', 'p', 't', 'v', 'w', 'w', 'x', 'x', 'y', 'z'], ['A', 'A', 'D', 'F', 'G', 'H', 'I', 'L', 'N', 'P', 'Q', 'S', 'T', 'U', 'V', 'W', 'W', 'X', 'Y', 'Z', 'b', 'c', 'f', 'g', 'g', 'g', 'j', 'j', 'j', 'l', 'q', 's', 's', 'v', 'v', 'w', 'x', 'y', 'z'], ['B', 'H', 'I', 'J', 'K', 'K', 'L', 'L', 'M', 'N', 'N', 'N', 'P', 'P', 'S', 'T', 'U', 'V', 'W', 'W', 'a', 'a', 'a', 'a', 'b', 'j', 'j', 'k', 'm', 'n', 'p', 'u', 'u', 'u', 'v', 'w', 'x', 'y', 'z'], ['B', 'B', 'D', 'D', 'D', 'E', 'G', 'H', 'I', 'I', 'I', 'L', 'N', 'N', 'O', 'P', 'R', 'R', 'R', 'S', 'V', 'V', 'Y', 'Z', 'a', 'b', 'h', 'k', 'l', 'm', 'n', 'o', 'p', 'p', 'q', 'r', 's', 'x', 'z'], ['A', 'B', 'B', 'G', 'G', 'H', 'J', 'J', 'L', 'M', 'M', 'N', 'N', 'P', 'P', 'P', 'R', 'S', 'T', 'X', 'Z', 'd', 'd', 'f', 'f', 'j', 'j', 'j', 'l', 'l', 'l', 'm', 'r', 'r', 'u', 'v', 'v', 'x', 'x'], [' ', 'B', 'B', 'C', 'E', 'G', 'J', 'J', 'K', 'L', 'N', 'O', 'Q', 'R', 'T', 'T', 'V', 'V', 'X', 'X', 'b', 'e', 'f', 'i', 'i', 'k', 'm', 'n', 'o', 'o', 'p', 's', 's', 'u', 'u', 'w', 'x', 'x', 'x'], ['A', 'A', 'A', 'B', 'B', 'E', 'H', 'H', 'H', 'I', 'J', 'J', 'N', 'Q', 'Q', 'R', 'R', 'U', 'V', 'X', 'a', 'b', 'd', 'd', 'e', 'e', 'g', 'g', 'k', 'k', 'l', 'n', 'n', 'p', 'q', 'q', 'v', 'w', 'x'], ['B', 'B', 'B', 'C', 'C', 'D', 'E', 'F', 'H', 'I', 'I', 'K', 'N', 'N', 'P', 'P', 'P', 'U', 'W', 'X', 'Z', 'c', 'e', 'h', 'h', 'i', 'j', 'l', 'p', 'p', 'r', 'r', 'r', 'r', 'v', 'w', 'x', 'x', 'y'], [' ', ' ', 'B', 'C', 'C', 'D', 'E', 'E', 'H', 'L', 'O', 'P', 'P', 'S', 'T', 'V', 'Y', 'Y', 'Y', 'c', 'd', 'e', 'e', 'f', 'h', 'h', 'h', 'j', 'k', 'l', 'm', 'n', 'r', 's', 's', 'u', 'x', 'y', 'y']],38,), ([['8', '0', '3', '3', '7', '7', '3', '5', '4', '9', '6', '9', '4', '6', '9'], ['8', '7', '2', '2', '6', '9', '6', '0', '0', '6', '8', '1', '6', '1', '5'], ['2', '0', '5', '1', '8', '0', '0', '2', '9', '4', '1', '4', '8', '0', '2'], ['9', '9', '9', '5', '1', '8', '9', '5', '8', '7', '2', '9', '4', '0', '4'], ['1', '6', '7', '1', '7', '4', '7', '4', '6', '4', '3', '8', '0', '4', '9'], ['2', '7', '9', '6', '1', '2', '2', '9', '0', '7', '2', '3', '2', '0', '9'], ['9', '5', '3', '3', '6', '1', '3', '1', '3', '4', '3', '4', '1', '5', '9'], ['1', '6', '5', '2', '6', '7', '1', '8', '6', '6', '2', '2', '6', '7', '6'], ['5', '3', '8', '0', '3', '6', '3', '2', '1', '2', '3', '8', '1', '0', '2'], ['2', '2', '6', '8', '0', '6', '5', '9', '9', '3', '9', '5', '8', '6', '4'], ['4', '1', '0', '3', '9', '1', '0', '8', '3', '4', '0', '9', '0', '6', '8'], ['1', '7', '9', '6', '6', '1', '7', '2', '5', '9', '5', '2', '1', '1', '8'], ['7', '7', '4', '5', '2', '6', '4', '3', '4', '9', '1', '4', '3', '7', '2'], ['1', '3', '0', '5', '9', '2', '2', '6', '2', '4', '0', '7', '2', '6', '1'], ['0', '4', '4', '2', '6', '9', '5', '4', '3', '2', '6', '5', '6', '4', '0']],8,), ([['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1']],6,), ([['u', 'V', 'l', 'L', 'o', 'i', 'o', 'L', 'S', 'D', 'S', 'u', 'Z', 'E', 's', 'q', 'P', 'X', 'd', 'v', 'W', 'J', 'p', 'r', 'e', 'j', 'F', 'l', 'Z', 'U', 'R', 'Y', 'M', 'C', 'S', 'C', 'Q', 'A'], ['w', 'p', 'O', 'x', 'a', 'v', 'Q', 'Z', 'n', 'Q', 'j', 't', 'N', ' ', 'n', 'u', 'y', 'x', 'E', 'r', 'd', 'e', 'g', 'e', 'H', 'Z', 'b', 's', 'A', 'R', 'x', 'h', 'v', 'X', 'x', 'K', 'P', 'M'], ['y', 'D', 'z', 't', 'g', 'L', 'B', 'N', 'i', 'g', 'E', 'l', 'P', 'q', 'j', 'm', 'c', 'X', 'b', 'X', 'Z', 'w', 's', 'Z', 'F', 'p', 'r', 'P', 'o', 'p', 'Y', 'R', 'w', 'n', 'y', 'n', 't', 'C'], ['b', 'v', 'G', 'K', 'J', 'u', 'w', 'q', 'x', 'b', 'O', 'Z', 'b', 'v', 'E', 'O', 'o', 'j', 'W', 'd', 'r', 'z', 'X', 'K', 'r', 'O', 'm', 'S', 'V', 'D', 'm', 'O', 'j', 'O', 'J', 'L', 'z', 'S'], ['Z', 'O', 'X', 'A', 'd', 'N', 'V', 't', 'f', 'z', 'q', 'H', 'O', 'Z', 'b', 'T', 'W', 'B', 'u', 'K', 'P', 'y', 'w', 'z', 'p', 'M', 'Z', 'P', 'l', 'y', 'J', 'G', 'i', 'C', 'r', 'y', 's', 'v'], ['k', 'R', 'i', 'z', 'A', 'l', 'J', 'X', 'C', 'i', 'P', 'A', 'y', 'y', 'a', 'E', 'V', 's', 'a', 'P', 'r', 'Y', 'D', 'n', 'o', 'w', 'M', ' ', 'W', 'm', 'W', 'H', 'a', 'v', 'j', 'g', 'Y', 'm'], ['M', 'y', 'N', 'A', 'R', 'u', 'e', 'N', 'H', 'a', 's', 'E', 'Q', 'b', 'd', 'E', 's', 'X', 'f', 'G', 'N', 'x', 'h', 'i', 'u', 'U', 'M', 'U', 's', 'u', 'N', 'f', 'u', 'o', 'C', 's', 'S', 'P'], ['h', 'C', 'v', 'L', 'H', 'h', 'Y', 'Y', 'F', 'S', 'd', 'Q', 'h', 'V', 'V', 'U', 'g', 'C', 's', 'X', 'E', 't', 'e', 'M', 'F', 'w', 'U', 'e', 'C', 'J', 'Y', 'R', 'o', 'a', 'W', 'L', 'k', 'K'], ['k', 'H', 'J', 'T', 's', 'F', 'y', 'C', 'O', 'J', 'O', 'B', 'm', 'B', 'e', 'G', 'l', 'g', 'y', 'J', 'y', 'u', 'F', 'E', 'B', ' ', 'B', 'Z', 'a', 'e', 'v', 'u', 'U', 'J', 'l', 'C', 'k', 'v'], ['d', 'y', 'V', 'Z', 't', 'X', 'n', 'v', 'O', 's', 'E', 'L', 'Z', 'x', 'x', 'p', 'w', 'W', 'S', 'n', 'G', 'y', 'q', 'o', 'B', 'X', 'f', 'r', 'n', 'T', 'y', 'p', 'J', 'j', 'I', 'w', 'r', 's'], ['h', 'y', 'p', 'j', 'r', 'D', 'j', 'H', 't', 'X', 'q', 'K', 'N', 'j', 'h', 'v', 'K', 'r', 'j', 'J', 'A', 'u', 'D', 'f', 'J', 'n', 'q', 'w', 'P', 'w', 'i', 's', 'G', 's', 't', 'D', 'r', 'A'], ['f', 'I', 'v', 'M', 'x', 'K', 'O', 'i', 'p', 'y', 'o', 'Z', 'Y', 's', 'V', 'f', 'i', 'V', 'x', 'K', 'p', 'a', 'L', 'V', 'r', 'B', 'v', 'd', 'M', 'e', 'X', 'h', 'F', 'S', 'p', 'Z', 'J', 'I'], ['H', 'V', 'a', 'a', 'i', 'k', 'D', 'e', 'Z', 'i', 'h', 'v', 'A', 'G', 'N', 'Q', 'r', 'e', 'A', 'q', 'n', 'a', 'z', 'N', 'b', 'y', 'R', 'z', 'c', 'I', 'A', 'h', 'z', 'o', 'F', 'w', 'p', 'h'], ['X', 'z', 'K', 'b', 'z', 'E', 'u', 'E', 'h', 'L', 'X', 'K', 'Q', 'r', 'f', 'Z', 'k', 'p', 'S', 'b', 'l', 'N', 'M', 'u', 'f', 'z', 'p', 'f', 'Q', 'U', 'q', 'g', 'F', 'K', 'D', 'Q', 'H', 'K'], ['S', 'U', 'o', 'u', 'z', 'G', 'q', 'w', 'N', 'B', 'c', 'u', 'k', 'n', 'v', 'S', 'O', 'Z', 'I', 'F', 'T', 'Z', 'D', 'g', 'w', 'K', 'G', 'C', 'B', 'M', 'e', 'W', 'r', 'v', 'l', 't', 't', 'u'], ['P', 'e', 'm', 'H', 'W', 'b', 's', 'C', 'j', 'U', 'E', 'a', 'J', 'o', 'G', ' ', 'H', 'T', 'f', 'j', 'N', 'N', 'E', 'u', 'W', 'O', 'X', 'e', 'm', 'w', ' ', 'f', 'U', 'Y', 'N', 'X', 'I', 'j'], [' ', 'v', 'q', 'O', 'd', 'p', 'd', 'Q', 'N', 'A', 'v', 'u', 'o', 'q', ' ', 'S', 'H', 'b', 'M', 'J', 'b', 'G', 'L', 'N', 'w', 'r', 'G', 'Q', 'E', 'R', 'y', 'a', 'k', 'S', 'W', 'I', 'P', 'd'], ['N', 'z', 'F', 'X', 'x', 'J', 'q', 'G', 'Z', 'Z', 'E', ' ', 'q', 'M', 'L', 'B', 'y', 'k', 'h', 'R', 'e', 'R', 'N', 'p', 'D', 'K', 'n', 'g', 'E', 'w', 'P', 'v', 'J', 'P', ' ', 'q', 'N', 's'], ['u', 'Q', 'F', 'j', 'r', 'I', 'X', 'C', 'E', 'R', 'R', 'E', 'D', 'p', 'n', 'a', 'X', 'Q', 'J', 'F', 'F', 'x', 's', 'P', 'o', 'a', 't', 'f', 'S', 'n', 'P', 'S', 'k', 's', 'j', 'M', 'L', 'l'], ['F', ' ', 'n', 'P', 'P', 'N', 'D', ' ', 'N', 'W', 'G', 'm', 'p', 'P', 'R', 'L', 'b', 'c', 'q', 'O', 'k', 'Y', 'p', 'I', 'b', 'P', 'Y', 'Y', 'F', 'c', 'p', 'W', 'e', 'R', 'k', 'j', 'V', 'h'], ['Q', 'J', 'g', 'D', 'S', 'U', 'm', 'z', 'M', 'n', 'a', 'V', 'q', 'P', 'X', 'w', 's', 'v', 'J', 'J', 'h', 'n', 'J', 'd', 'Z', 'M', 'v', 'M', 'h', 'Q', ' ', 'W', 'V', 's', 'O', 'A', 'x', 'j'], ['N', 'i', 'm', 'F', 'H', 'C', ' ', 'x', ' ', 't', 'g', 'q', 'j', 'd', 'n', 'g', 'l', 'U', 'k', 'U', 'q', 'h', 'A', 'c', 'u', 'o', 'U', 'z', 'D', 'N', 'p', 'R', 'K', 'k', 'T', 'i', 'D', 'i'], ['P', 'r', 'W', 'S', 's', 'U', 'k', 'l', 'e', 's', 'W', 'd', 'Y', 'q', 'p', 'Q', 'z', 'F', 'Z', 's', 'x', 'h', 'J', 'q', 'B', 'F', 'R', 'm', 'l', 'f', 'H', 'U', 'd', 'V', 'o', 'b', 't', 'B'], ['R', 'q', 'm', 'q', 'h', 'q', 'i', 'P', 'N', 'O', 'q', 'i', 'V', 'O', 'n', 'K', 'J', 'd', 'E', 'b', 'V', 'O', 'u', 'S', 'l', 'u', 'A', 'k', 'd', 'r', 'x', 'g', 'y', 'U', 'A', 'q', 'p', 'd'], ['r', 'h', 'h', 'L', 'j', 'd', 'b', 'o', 'v', 'D', 'd', 'M', 'f', 'y', 'Q', 'V', ' ', 'j', 'a', 'T', 'X', 'a', 't', 'I', 'Z', 'A', 'P', 'l', 'Y', 'j', 'c', 'A', 'A', 'e', 'r', 'H', 'u', 'f'], ['a', 'Y', 'J', 'J', 'k', 'L', 'x', 'l', 'O', 'n', 'J', 'I', 'l', 'x', 'V', 'S', 'S', 'l', 'D', 'E', 'm', 'd', ' ', 'j', 'Q', 'L', 't', 'c', 'o', 'D', 'z', 'A', 'x', 'u', 'F', 'E', 'v', 'a'], ['o', 'K', 'F', 'V', 'L', 'G', 't', 'A', 'd', 'b', 'P', 'F', 'K', 'N', 'J', 'e', 'B', 'T', 'H', 'n', 'D', 'b', 'm', 'T', 'L', 'S', 'n', 'D', 'b', 's', 'I', 't', 'O', 'a', 'm', 'a', 'A', 'n'], ['L', 'o', 'z', 'L', 'a', 'd', 'T', 'D', 'd', 'S', 'D', 'a', 'm', 'z', 'y', 'y', 'A', 'j', 'v', 'H', 'F', 't', 'A', 'f', 'G', 'E', ' ', 'x', ' ', 'm', 'L', 'I', 'O', 'Z', 'C', 'y', 'X', 'x'], [' ', 'I', 'i', 's', 'E', 'N', 'm', 'k', 'l', 'n', 's', 's', 'P', 'M', 'x', 'i', 'I', 'K', 'k', 'm', 'k', 'X', 'n', 'W', 'k', 'F', 'D', 'c', 'l', 'd', 'n', 'o', 'H', 'T', 'B', 'g', 'S', 'v'], ['g', 'p', 'd', 'A', 'Y', 'b', 'L', 'P', 'v', 'j', 'O', 'C', 's', 'g', 'J', 'm', 'P', 'd', 'H', 'c', 'h', 'U', 'P', 'J', 'h', 'c', 'f', 'W', 'l', 'K', 'F', 'T', 's', 'Z', 'n', 'v', ' ', 'p'], ['O', 'H', 'J', 'y', 'B', 'c', 'M', 'Q', 'F', 'k', 'S', 'o', 'b', 'M', 'c', 'i', 'K', 'l', 'a', 'Y', 'v', 'O', 'U', 'R', 'B', 'o', 'H', 'g', 'o', ' ', 'H', 'l', 'g', 'e', 'L', 'x', 'M', 'z'], ['q', 'u', 'A', 'O', 'u', 'f', 'r', 'U', 'F', 'g', 'f', 'g', 'R', 'E', 'W', 'H', 'n', 'e', 'N', 'Z', 'y', 'M', 'j', 'L', 'T', 'b', 'v', 'N', 'u', 'X', 'E', 'y', 'g', 'Y', ' ', 'n', 'T', 'r'], ['k', 'n', 'F', 'B', 'X', 't', 'j', 'a', 'b', 'I', 'C', 'O', 'R', 'h', 'c', 'C', 'F', 'E', 'l', 'Y', 's', 'D', 'p', 'j', 'J', ' ', 'y', 'u', 'x', 'q', ' ', 'P', 'J', 'P', 't', 'g', 'X', 'j'], ['M', 'u', 'Q', 'x', 'r', 'n', 'U', 'w', 'w', ' ', 'H', 'P', ' ', 'V', 'X', 'Y', 't', 'Z', 'F', 'H', 'X', 'N', 'y', 'E', 'j', 'I', 'Q', 'P', ' ', 'y', 'e', 'I', 'o', 'b', 'j', 'E', 'p', 'G'], ['n', 'd', 'T', 'f', 'a', 'D', 's', 'i', 'b', 'm', 'K', 'h', 'c', 'G', 'I', 'p', 'd', 'x', 'I', 'G', 'B', 'q', 'k', 'A', 'B', 'M', 'g', 'S', 't', 'K', 'b', 'm', 'm', 'u', 'k', ' ', 'U', 'Z'], ['C', 'v', 'L', 'k', 'x', 'L', ' ', 'm', 'x', 'P', 'C', 'X', 'n', 'w', 'd', 'E', 'O', 'D', 'Q', 'i', 'A', 'p', 'K', 'r', 'n', 'Y', 'T', 'v', 'K', 'O', 'M', 'w', 'p', 'P', 'R', 'X', 'I', 'g'], ['l', 'M', 'd', 'j', 'M', 'd', 'y', 'x', ' ', 'o', 'E', 't', 'X', 'w', 'c', 'H', 'r', 'q', 'd', 'Q', 'I', 'g', 'T', 'F', 't', 'q', 'A', 'e', 'm', 'y', 'G', 't', 'v', 'G', 'r', 'x', 'g', 'H'], ['T', 'f', 'N', 'W', 'K', 'T', 'b', 'O', 'J', 'B', 'a', 'd', 'l', 'y', 's', 's', 'W', 'D', 't', 'z', 'D', 'c', 'k', 'l', 'e', 'Q', 'A', 'J', 'J', 'k', 'M', 'G', 'F', 'S', 'C', 'N', 'x', 'X']],32,) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
null
CHECK_VALID_SEQUENCE_DIVISIBLE_M_1
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class CHECK_VALID_SEQUENCE_DIVISIBLE_M_1{ static int f_gold ( int n , int index , int modulo , int M , int arr [ ] , int dp [ ] [ ] ) { modulo = ( ( modulo % M ) + M ) % M ; if ( index == n ) { if ( modulo == 0 ) { return 1 ; } return 0 ; } if ( dp [ index ] [ modulo ] != - 1 ) { return dp [ index ] [ modulo ] ; } int placeAdd = f_gold ( n , index + 1 , modulo + arr [ index ] , M , arr , dp ) ; int placeMinus = f_gold ( n , index + 1 , modulo - arr [ index ] , M , arr , dp ) ; int res = placeAdd ; dp [ index ] [ modulo ] = res ; return res ; }
def f_gold ( n , index , modulo , M , arr , dp ) : modulo = ( ( modulo % M ) + M ) % M if ( index == n ) : if ( modulo == 0 ) : return 1 return 0 if ( dp [ index ] [ modulo ] != - 1 ) : return dp [ index ] [ modulo ] placeAdd = f_gold ( n , index + 1 , modulo + arr [ index ] , M , arr , dp ) placeMinus = f_gold ( n , index + 1 , modulo - arr [ index ] , M , arr , dp ) res = bool ( placeAdd or placeMinus ) dp [ index ] [ modulo ] = res return res
null
public static void main(String args[]) { int n_success = 0; List<Integer> param0 = new ArrayList<>(); param0.add(19); param0.add(14); param0.add(5); param0.add(8); param0.add(14); param0.add(16); param0.add(24); param0.add(7); param0.add(35); param0.add(8); List<Integer> param1 = new ArrayList<>(); param1.add(29); param1.add(17); param1.add(7); param1.add(10); param1.add(12); param1.add(21); param1.add(26); param1.add(7); param1.add(35); param1.add(5); List<Integer> param2 = new ArrayList<>(); param2.add(20); param2.add(13); param2.add(6); param2.add(10); param2.add(16); param2.add(17); param2.add(24); param2.add(7); param2.add(33); param2.add(8); List<Integer> param3 = new ArrayList<>(); param3.add(19); param3.add(17); param3.add(8); param3.add(8); param3.add(19); param3.add(18); param3.add(21); param3.add(7); param3.add(22); param3.add(6); List<int [ ]> param4 = new ArrayList<>(); param4.add(new int[]{1,2,2,3,6,15,16,17,20,21,27,28,28,29,44,47,53,53,54,59,60,60,66,68,78,79,80,84,87,91,92,97}); param4.add(new int[]{68,-86,-98,40,-6,-16,-98,50,46,-34,74,-8,-70,-18,-58,92,12,98,34,6,54,70}); param4.add(new int[]{0,0,0,0,0,1,1,1,1,1}); param4.add(new int[]{8,8,80,15,73,51,44,98,99,59,73,42}); param4.add(new int[]{-88,-82,-78,-72,-70,-54,-32,-32,-10,-8,8,14,16,22,26,26,28,30,34,34,62,62,76,88}); param4.add(new int[]{0,1,0,1,1,0,0,0,0,0,1,0,1,1,1,1,0,0,0,1,0,1,1,1,1,1,1,1}); param4.add(new int[]{4,8,8,16,22,23,28,32,38,45,48,50,52,54,55,64,70,75,75,76,83,87,88,89,94,94,95}); param4.add(new int[]{-56,-66,-60,94,44,-92,18,-26,-88,46,-24,-8,-46,78}); param4.add(new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}); param4.add(new int[]{80,95,34,51,95,68,55,65,60}); List<int [ ] [ ]> param5 = new ArrayList<>(); param5.add(new int[][]{new int[]{4,7,9,11,16,22,22,24,31,35,36,37,44,46,47,50,52,56,59,62,62,63,65,65,67,67,72,74,74,79,92,92},new int[]{6,10,12,16,17,21,23,25,25,25,27,30,32,39,39,40,46,47,47,62,78,79,79,84,86,87,88,88,90,91,93,95},new int[]{2,3,8,9,12,12,27,28,32,33,33,38,39,40,43,43,46,47,48,48,56,58,62,72,77,77,78,89,93,94,97,98},new int[]{2,3,3,6,12,13,14,14,17,19,19,19,20,23,27,43,48,52,53,54,60,65,65,67,67,67,68,74,75,78,88,90},new int[]{1,3,13,16,21,23,30,30,35,37,37,42,43,47,47,49,50,52,60,61,67,68,73,78,78,79,80,82,83,89,95,97},new int[]{2,4,6,10,11,16,24,33,34,35,40,40,47,50,51,55,62,64,68,70,70,73,75,81,85,85,89,91,92,93,93,94},new int[]{3,5,11,11,15,19,20,25,26,27,27,36,37,44,56,60,64,64,68,74,76,76,77,78,80,84,87,91,92,94,95,96},new int[]{2,2,9,14,16,20,20,27,28,29,32,33,35,46,53,54,55,57,61,62,63,63,69,74,84,87,88,90,93,93,98,98},new int[]{4,5,9,12,14,20,21,22,25,26,32,33,33,35,36,38,45,51,54,58,60,61,67,69,70,75,75,77,80,89,90,94},new int[]{2,8,18,18,20,23,24,29,31,32,33,34,35,41,41,47,48,49,52,55,61,65,65,66,69,69,76,85,89,91,94,94},new int[]{6,10,12,14,14,32,32,34,35,39,39,44,44,50,52,52,54,56,58,60,60,62,65,69,69,71,77,83,83,86,92,92},new int[]{2,8,15,19,21,27,32,41,46,47,48,49,51,51,63,65,67,72,73,76,77,77,82,82,83,85,87,88,91,92,94,98},new int[]{6,7,13,14,14,14,15,21,23,29,30,30,37,44,45,45,48,48,57,67,67,68,70,71,71,72,78,86,86,91,97,99},new int[]{4,5,12,12,13,14,14,16,18,20,21,24,24,25,25,26,33,40,47,49,51,61,64,64,68,74,81,83,83,87,89,94},new int[]{3,8,9,14,16,17,30,33,39,40,40,43,45,46,47,49,51,54,55,56,59,60,63,79,79,83,94,94,95,98,99,99},new int[]{4,6,7,9,9,10,16,17,18,21,30,33,36,37,37,39,42,53,57,66,69,70,73,77,81,82,82,84,87,88,92,99},new int[]{2,2,5,6,6,7,12,13,13,17,22,24,24,27,27,29,35,36,39,39,43,44,45,64,71,72,73,82,82,85,93,98},new int[]{1,5,8,9,12,13,22,29,30,31,36,36,40,40,41,42,52,55,57,58,61,61,61,65,76,78,82,86,86,89,94,96},new int[]{1,3,3,5,9,10,19,19,20,24,34,40,42,42,46,46,48,53,53,58,64,68,72,73,81,86,88,89,90,92,93,95},new int[]{1,1,5,5,15,19,22,23,27,29,33,41,44,44,48,51,56,56,71,77,79,79,82,82,84,86,87,90,90,91,93,98},new int[]{2,4,8,13,14,22,23,27,28,29,37,37,38,41,47,47,48,50,51,53,54,55,57,63,65,69,75,77,77,79,82,97},new int[]{4,9,10,18,20,23,24,27,39,40,41,41,42,43,45,58,58,64,66,67,68,69,74,81,83,83,84,84,86,87,90,98},new int[]{1,8,9,11,15,15,18,24,25,31,31,33,34,35,35,43,47,52,56,58,58,67,69,70,71,74,77,82,85,89,89,90},new int[]{1,3,8,8,12,12,16,21,22,25,25,25,29,31,31,31,34,34,35,35,36,37,37,42,43,55,55,59,67,72,74,85},new int[]{2,4,6,9,12,14,18,22,23,23,26,36,36,41,44,51,51,53,56,59,59,59,60,61,68,68,74,77,93,94,94,96},new int[]{1,2,5,11,12,14,19,28,33,34,37,37,38,38,38,47,49,59,62,67,71,73,73,74,80,83,84,85,89,90,92,99},new int[]{1,5,10,19,24,36,41,47,48,57,59,59,60,62,65,65,67,70,71,77,79,79,81,81,82,83,87,89,91,91,95,97},new int[]{7,10,10,10,17,18,29,29,30,31,32,32,37,38,44,50,59,59,62,63,63,73,74,80,80,81,84,85,85,89,98,99},new int[]{1,7,9,14,19,22,26,29,30,34,40,43,44,45,45,46,49,58,62,63,67,76,78,79,82,84,93,94,95,97,98,98},new int[]{5,6,8,9,12,14,22,31,34,36,38,43,46,47,48,48,50,52,54,57,67,68,68,72,75,77,79,80,92,96,97,98},new int[]{8,10,15,15,15,19,21,24,25,27,30,34,36,43,44,45,50,51,54,55,57,58,59,63,69,69,73,75,87,94,96,96},new int[]{3,4,12,13,13,16,16,19,29,32,40,43,48,49,55,58,61,64,65,66,66,69,71,72,75,83,85,88,89,90,94,96}}); param5.add(new int[][]{new int[]{-30,10,-22,92,-46,58,-12,-42,64,12,6,12,-34,-20,6,-90,-60,78,90,-72,-30,2},new int[]{-72,-60,22,-22,-12,6,80,-34,8,-66,20,-72,-34,-30,14,-54,86,96,-20,-76,34,-64},new int[]{52,8,28,-74,78,-92,-78,6,56,-76,98,4,-46,80,36,54,-70,68,-88,68,-84,-94},new int[]{94,84,60,44,-46,-44,94,60,14,76,82,84,56,68,54,46,-42,16,-46,32,-76,-6},new int[]{-8,-88,70,-48,62,4,70,-62,34,-48,48,-82,-16,60,14,-10,-56,4,-22,-96,44,22},new int[]{-34,-70,-16,-94,-22,2,-20,10,-42,52,18,-74,-84,-56,72,-24,64,-90,68,-90,60,-70},new int[]{28,-86,-52,-58,-2,-96,32,-90,88,98,-66,78,-44,-6,-44,46,-16,-76,48,-20,-68,-70},new int[]{-88,-88,-16,24,-96,-32,20,-92,-50,40,26,12,-76,50,-90,-96,6,8,-56,74,30,-46},new int[]{40,-74,-18,-36,-50,82,-72,-74,-38,16,86,56,58,80,74,4,-16,-14,-78,36,-8,-16},new int[]{-44,-18,-14,94,-4,-98,-4,-32,-84,-54,38,78,-74,62,76,30,22,24,34,42,94,-84},new int[]{60,-26,-12,14,-26,42,60,12,74,-26,66,60,32,32,-70,22,50,84,-14,-2,62,50},new int[]{-38,-28,-8,62,10,18,-78,-68,70,88,-4,24,88,-32,44,-46,58,-90,18,-32,42,32},new int[]{2,-14,62,84,-18,76,-94,-66,-64,-58,-54,40,74,32,-78,-46,44,-16,-40,32,-66,-82},new int[]{-46,26,92,96,-34,-88,-84,82,20,-12,62,92,32,66,38,66,38,-50,68,-56,-44,72},new int[]{-30,-40,-56,46,36,12,-58,-36,-36,66,-80,-24,34,-96,0,-46,-38,88,36,92,-74,-40},new int[]{-10,-54,96,-58,80,-64,-88,60,24,14,-58,30,74,64,66,96,-66,86,66,76,-90,-28},new int[]{34,6,60,62,-10,-34,58,-38,92,-28,-88,-36,84,94,2,36,22,-38,66,36,36,22},new int[]{92,64,64,-8,14,88,-64,34,-26,44,44,10,-2,-80,-50,-90,70,36,-50,32,18,72},new int[]{26,52,-88,-72,-52,78,64,-34,-96,-68,76,-50,-28,-84,22,16,40,84,-16,80,-48,38},new int[]{16,-94,-74,30,-82,24,38,8,-68,26,-96,-36,90,56,20,24,-42,-76,-20,24,76,10},new int[]{74,56,-46,84,-84,80,-26,90,-42,22,78,26,56,-12,62,-12,-30,-20,-52,42,52,-56},new int[]{34,-86,-18,-60,-64,60,-98,78,34,-40,10,-36,48,98,94,38,-32,46,-52,34,-74,60}}); param5.add(new int[][]{new int[]{0,0,0,0,0,0,1,1,1,1},new int[]{0,0,0,0,0,0,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0},new int[]{0,0,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,1,1,1,1},new int[]{0,0,0,0,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,1,1,1},new int[]{0,0,0,0,0,0,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,1,1},new int[]{0,0,0,0,0,1,1,1,1,1}}); param5.add(new int[][]{new int[]{89,45,59,5,12,1,54,1,25,40,25,45},new int[]{94,83,22,94,13,16,98,46,37,94,99,59},new int[]{7,92,73,68,63,10,45,75,56,77,66,79},new int[]{37,91,18,45,35,35,66,75,82,14,88,88},new int[]{16,44,53,11,41,41,44,53,19,11,3,99},new int[]{80,89,67,90,58,65,9,15,76,4,43,8},new int[]{39,51,95,87,68,88,84,27,15,77,95,84},new int[]{54,67,79,17,81,4,18,10,37,96,15,42},new int[]{19,49,6,4,37,50,43,83,89,44,74,21},new int[]{75,19,30,32,20,67,1,85,3,31,76,78},new int[]{94,25,26,97,28,74,96,81,36,33,21,25},new int[]{19,72,42,88,41,20,1,18,92,5,82,18}}); param5.add(new int[][]{new int[]{-96,-74,-68,-56,-40,-26,-22,-18,-6,-2,6,6,18,18,20,22,26,30,32,40,52,52,70,70},new int[]{-96,-92,-90,-90,-72,-70,-64,-52,-50,-44,-40,-32,-30,-28,-24,-18,-16,-4,14,18,28,36,50,70},new int[]{-96,-62,-60,-54,-52,-40,-36,-2,6,6,6,8,12,14,18,34,36,44,62,66,66,78,86,88},new int[]{-90,-78,-64,-58,-56,-50,-40,-32,-32,-12,0,0,16,18,26,28,30,38,40,44,48,72,84,98},new int[]{-88,-46,-34,0,10,12,16,20,26,38,48,48,50,60,60,62,66,72,72,74,84,88,94,98},new int[]{-96,-94,-88,-80,-76,-66,-62,-36,-20,-16,-6,-6,-2,0,0,18,20,24,36,40,72,76,86,98},new int[]{-66,-52,-44,-32,-28,-20,-6,-4,10,18,22,24,26,38,40,44,44,48,48,58,84,90,94,94},new int[]{-86,-78,-54,-52,-46,-38,-34,14,24,26,34,34,40,46,50,50,62,72,72,82,84,86,92,94},new int[]{-98,-84,-70,-68,-66,-60,-28,-10,4,10,16,34,34,44,46,48,52,56,56,56,60,84,84,88},new int[]{-96,-92,-82,-80,-76,-54,-52,-46,-46,-30,-26,-26,-20,-16,-10,-10,-4,26,30,32,34,78,78,86},new int[]{-92,-90,-76,-64,-50,-48,-46,-42,-36,-30,-24,-20,-14,-4,12,16,22,30,40,40,48,60,86,92},new int[]{-86,-82,-72,-46,-46,-42,-34,-34,-22,-20,-20,-14,-10,-2,-2,28,50,50,52,58,78,80,84,94},new int[]{-92,-90,-74,-64,-64,-56,-52,-50,-46,-46,-32,-26,-22,-4,-2,10,16,32,34,38,58,58,60,86},new int[]{-94,-88,-66,-58,-56,-50,-42,-30,-28,-24,-22,-12,-10,-8,0,16,24,26,30,38,44,52,80,98},new int[]{-98,-82,-74,-64,-60,-52,-48,-38,-36,-24,-20,-20,-18,26,26,36,44,44,50,50,54,78,80,96},new int[]{-84,-68,-66,-62,-60,-52,-50,-40,-36,-28,-8,-6,2,18,26,32,42,50,62,66,68,72,80,98},new int[]{-92,-90,-82,-72,-72,-58,-54,-40,-38,-34,-28,-22,-6,-6,0,0,2,6,18,44,68,70,72,74},new int[]{-92,-64,-64,-60,-58,-52,-50,-12,-8,-8,-4,-2,14,14,16,18,22,28,38,38,42,66,90,90},new int[]{-72,-70,-68,-56,-42,-40,-38,-32,-32,-22,-20,-20,-10,-10,0,24,24,34,72,80,88,92,94,96},new int[]{-84,-80,-58,-38,-32,-30,-16,-14,4,10,10,14,18,20,24,26,30,34,36,40,58,70,72,92},new int[]{-88,-78,-68,-66,-50,-42,-36,-36,-18,-14,-10,-6,-6,-2,2,6,16,18,40,68,72,76,86,94},new int[]{-82,-70,-64,-56,-52,-32,-10,-4,8,16,28,40,46,56,56,58,66,68,70,74,76,80,80,86},new int[]{-98,-90,-80,-78,-76,-74,-72,-64,-62,-42,-30,-14,-8,2,12,24,42,44,72,74,76,94,94,98},new int[]{-94,-90,-86,-82,-58,-50,-44,-20,-18,0,18,26,36,38,44,50,52,54,56,64,68,78,82,86}}); param5.add(new int[][]{new int[]{0,1,1,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,0,1,0,0,1,1,1,1,1,1},new int[]{0,0,0,1,0,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,1,0,0,0,1,1,1,0},new int[]{1,0,0,0,1,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1},new int[]{0,1,0,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,0,1,1,0,1,1,1,0,1,0},new int[]{0,1,1,0,0,0,1,1,0,0,1,1,0,0,0,1,0,1,1,1,0,1,0,1,1,0,1,0},new int[]{0,0,1,0,1,1,1,0,0,1,0,0,0,1,1,0,0,0,0,1,0,1,0,0,0,0,1,0},new int[]{0,0,1,1,1,0,1,1,1,1,1,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,1,1},new int[]{1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,0,1,0,0,0,1,1,0,1},new int[]{1,1,0,0,1,0,0,1,0,1,1,0,1,0,0,0,0,1,1,1,0,1,0,1,0,0,1,0},new int[]{0,0,0,1,1,0,1,1,1,1,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,0},new int[]{1,0,0,0,1,0,1,1,1,0,0,1,0,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1},new int[]{1,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,1,1},new int[]{1,1,1,1,1,1,1,0,0,0,1,1,0,1,1,0,1,0,1,0,0,1,0,0,1,0,1,1},new int[]{0,1,0,1,1,0,0,1,1,0,0,0,1,1,0,0,1,0,0,1,0,1,0,1,1,1,0,1},new int[]{0,1,0,0,1,0,0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,0,1,0},new int[]{0,0,1,1,0,0,0,0,0,1,0,1,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,1},new int[]{0,0,1,1,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,1,1,1,0,0,0},new int[]{1,0,0,1,1,1,1,0,1,0,0,1,0,0,0,0,1,1,1,0,0,1,1,0,0,0,0,1},new int[]{1,1,0,0,1,0,1,0,1,1,0,1,1,0,1,0,0,1,0,0,1,1,1,0,0,1,1,1},new int[]{1,1,1,1,0,1,0,1,0,0,1,1,0,0,0,1,0,1,0,1,1,0,0,0,0,0,0,0},new int[]{1,0,1,0,0,0,1,0,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,1,0,0,1},new int[]{0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,1,0,1},new int[]{0,1,1,0,0,0,0,0,0,1,1,0,1,0,1,1,1,0,1,0,0,1,0,0,0,0,0,1},new int[]{1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,0,1,0,1,0,1,0,0,1,1,1,0,1},new int[]{0,0,0,0,1,1,0,0,0,0,1,0,1,0,1,1,0,0,1,0,0,0,1,1,0,1,0,0},new int[]{0,0,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,0,1,0,1,1,1,0,0,0,1,1},new int[]{1,0,0,1,0,0,0,1,0,0,1,0,0,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0},new int[]{0,1,1,0,1,0,0,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,0,0,1,0}}); param5.add(new int[][]{new int[]{1,3,5,8,8,16,16,18,19,26,28,33,33,35,35,41,42,43,47,51,65,66,73,84,87,95,99},new int[]{1,3,3,21,26,29,31,40,40,43,51,53,54,62,62,65,74,75,77,77,79,81,81,84,84,92,95},new int[]{7,9,10,12,13,14,19,27,30,44,46,47,51,53,58,59,65,73,78,84,84,86,88,91,92,98,99},new int[]{5,15,15,21,24,25,31,34,47,53,53,58,60,60,69,74,75,75,76,78,79,81,86,87,88,91,97},new int[]{5,16,19,20,22,25,32,37,37,40,43,46,50,55,56,58,59,60,61,64,67,72,85,88,91,91,96},new int[]{5,6,10,14,16,19,22,25,26,31,38,41,43,45,52,56,59,66,69,78,82,87,87,88,89,92,99},new int[]{3,11,15,18,22,25,31,37,37,38,38,44,47,50,51,52,68,70,78,81,83,84,89,90,95,95,98},new int[]{3,6,8,10,13,21,22,22,22,22,23,26,33,42,49,49,50,66,72,73,75,78,83,84,92,93,99},new int[]{8,10,11,16,17,26,32,45,52,53,53,63,64,65,69,71,72,72,74,77,81,82,87,94,96,96,96},new int[]{3,4,8,11,21,25,26,31,33,35,35,38,42,43,48,50,50,61,62,63,67,67,70,79,80,84,97},new int[]{2,14,15,16,21,30,30,32,32,40,41,41,42,45,45,46,46,52,61,63,78,79,80,81,86,93,97},new int[]{4,5,5,6,7,16,16,18,20,22,23,28,30,35,38,43,63,67,72,77,82,85,85,87,87,91,92},new int[]{4,8,10,11,27,30,31,39,47,49,52,62,67,69,71,71,72,75,79,79,80,84,84,87,95,95,99},new int[]{16,17,21,24,26,32,43,43,46,49,53,56,64,72,81,82,85,85,90,90,92,92,93,95,95,97,99},new int[]{4,4,6,12,12,13,16,26,31,31,35,40,40,50,51,54,56,57,60,62,64,64,86,90,91,99,99},new int[]{13,13,16,17,18,20,21,21,23,24,25,25,27,32,33,34,45,45,64,76,77,78,78,83,88,90,97},new int[]{2,4,5,6,6,11,17,18,35,36,42,52,52,54,55,57,58,70,70,72,81,86,87,87,89,97,99},new int[]{2,5,5,10,10,13,25,27,29,29,29,30,42,48,48,52,56,57,62,64,65,66,68,76,85,89,91},new int[]{7,15,27,32,40,44,49,49,63,65,67,69,70,70,71,71,73,74,80,84,84,85,88,89,92,95,97},new int[]{4,9,10,14,27,30,30,36,37,38,39,41,44,45,46,50,52,60,62,63,68,76,77,81,82,88,94},new int[]{5,6,9,10,11,19,24,26,30,31,34,46,47,54,56,56,59,62,66,71,79,87,89,90,92,99,99},new int[]{3,5,6,6,15,21,23,28,32,50,50,56,65,66,75,76,82,85,85,87,88,90,93,94,97,97,99},new int[]{10,13,13,15,16,19,21,26,30,51,55,59,60,61,63,66,67,77,77,83,87,89,89,90,92,97,99},new int[]{8,10,10,11,12,13,16,25,31,33,34,36,36,44,48,58,62,67,73,75,76,80,84,89,91,96,98},new int[]{10,12,22,25,28,29,40,41,42,47,48,50,55,58,62,72,72,72,76,79,81,82,85,94,95,98,99},new int[]{4,5,6,7,9,15,22,23,26,27,31,33,34,37,47,52,52,54,54,56,63,72,84,91,92,99,99},new int[]{17,18,22,25,31,36,36,36,36,37,42,45,46,51,51,62,68,73,83,87,88,90,91,92,95,96,97}}); param5.add(new int[][]{new int[]{32,-72,-76,-6,4,-42,-82,-6,-52,24,88,8,78,82},new int[]{-20,18,-68,48,-64,40,-26,22,80,-52,-98,-28,-6,-76},new int[]{-68,20,-52,-90,-78,96,-20,56,-28,-88,-80,60,30,38},new int[]{-12,58,48,58,-78,14,-36,82,-66,-52,36,-26,90,-90},new int[]{-76,24,-46,-2,-76,-62,-50,-64,72,-52,-62,84,-20,12},new int[]{-66,-8,40,20,-56,-42,90,32,40,-8,-28,78,76,-78},new int[]{-82,38,28,-26,-72,-96,-60,-66,28,94,10,-30,24,-90},new int[]{66,-14,24,80,-38,-4,52,-94,-40,26,6,58,40,-74},new int[]{72,78,62,-40,-30,-4,-82,66,-32,6,-72,0,56,42},new int[]{74,62,16,-4,36,-38,-30,-18,32,-76,12,-52,40,98},new int[]{-88,52,-10,96,12,68,-12,86,4,-84,-54,-90,92,54},new int[]{68,44,-30,-90,52,-96,-44,48,-80,2,12,24,58,-74},new int[]{-78,-24,86,14,-76,46,82,14,6,-10,56,-70,20,80},new int[]{80,38,10,-76,-82,26,32,74,6,76,14,88,24,90}}); param5.add(new int[][]{new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}}); param5.add(new int[][]{new int[]{32,76,68,57,32,74,11,94,55},new int[]{53,76,86,95,82,62,51,37,84},new int[]{73,35,43,64,94,53,79,61,20},new int[]{25,5,34,35,84,44,76,20,21},new int[]{18,60,47,2,26,24,80,29,63},new int[]{76,15,47,88,50,90,57,10,14},new int[]{84,17,77,25,28,1,6,19,15},new int[]{22,10,30,53,32,83,28,49,62},new int[]{73,75,57,84,1,93,80,44,55}}); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i),param2.get(i),param3.get(i),param4.get(i),param5.get(i)) == f_gold(param0.get(i),param1.get(i),param2.get(i),param3.get(i),param4.get(i),param5.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ (19,29,20,19,[1, 2, 2, 3, 6, 15, 16, 17, 20, 21, 27, 28, 28, 29, 44, 47, 53, 53, 54, 59, 60, 60, 66, 68, 78, 79, 80, 84, 87, 91, 92, 97],[[4, 7, 9, 11, 16, 22, 22, 24, 31, 35, 36, 37, 44, 46, 47, 50, 52, 56, 59, 62, 62, 63, 65, 65, 67, 67, 72, 74, 74, 79, 92, 92], [6, 10, 12, 16, 17, 21, 23, 25, 25, 25, 27, 30, 32, 39, 39, 40, 46, 47, 47, 62, 78, 79, 79, 84, 86, 87, 88, 88, 90, 91, 93, 95], [2, 3, 8, 9, 12, 12, 27, 28, 32, 33, 33, 38, 39, 40, 43, 43, 46, 47, 48, 48, 56, 58, 62, 72, 77, 77, 78, 89, 93, 94, 97, 98], [2, 3, 3, 6, 12, 13, 14, 14, 17, 19, 19, 19, 20, 23, 27, 43, 48, 52, 53, 54, 60, 65, 65, 67, 67, 67, 68, 74, 75, 78, 88, 90], [1, 3, 13, 16, 21, 23, 30, 30, 35, 37, 37, 42, 43, 47, 47, 49, 50, 52, 60, 61, 67, 68, 73, 78, 78, 79, 80, 82, 83, 89, 95, 97], [2, 4, 6, 10, 11, 16, 24, 33, 34, 35, 40, 40, 47, 50, 51, 55, 62, 64, 68, 70, 70, 73, 75, 81, 85, 85, 89, 91, 92, 93, 93, 94], [3, 5, 11, 11, 15, 19, 20, 25, 26, 27, 27, 36, 37, 44, 56, 60, 64, 64, 68, 74, 76, 76, 77, 78, 80, 84, 87, 91, 92, 94, 95, 96], [2, 2, 9, 14, 16, 20, 20, 27, 28, 29, 32, 33, 35, 46, 53, 54, 55, 57, 61, 62, 63, 63, 69, 74, 84, 87, 88, 90, 93, 93, 98, 98], [4, 5, 9, 12, 14, 20, 21, 22, 25, 26, 32, 33, 33, 35, 36, 38, 45, 51, 54, 58, 60, 61, 67, 69, 70, 75, 75, 77, 80, 89, 90, 94], [2, 8, 18, 18, 20, 23, 24, 29, 31, 32, 33, 34, 35, 41, 41, 47, 48, 49, 52, 55, 61, 65, 65, 66, 69, 69, 76, 85, 89, 91, 94, 94], [6, 10, 12, 14, 14, 32, 32, 34, 35, 39, 39, 44, 44, 50, 52, 52, 54, 56, 58, 60, 60, 62, 65, 69, 69, 71, 77, 83, 83, 86, 92, 92], [2, 8, 15, 19, 21, 27, 32, 41, 46, 47, 48, 49, 51, 51, 63, 65, 67, 72, 73, 76, 77, 77, 82, 82, 83, 85, 87, 88, 91, 92, 94, 98], [6, 7, 13, 14, 14, 14, 15, 21, 23, 29, 30, 30, 37, 44, 45, 45, 48, 48, 57, 67, 67, 68, 70, 71, 71, 72, 78, 86, 86, 91, 97, 99], [4, 5, 12, 12, 13, 14, 14, 16, 18, 20, 21, 24, 24, 25, 25, 26, 33, 40, 47, 49, 51, 61, 64, 64, 68, 74, 81, 83, 83, 87, 89, 94], [3, 8, 9, 14, 16, 17, 30, 33, 39, 40, 40, 43, 45, 46, 47, 49, 51, 54, 55, 56, 59, 60, 63, 79, 79, 83, 94, 94, 95, 98, 99, 99], [4, 6, 7, 9, 9, 10, 16, 17, 18, 21, 30, 33, 36, 37, 37, 39, 42, 53, 57, 66, 69, 70, 73, 77, 81, 82, 82, 84, 87, 88, 92, 99], [2, 2, 5, 6, 6, 7, 12, 13, 13, 17, 22, 24, 24, 27, 27, 29, 35, 36, 39, 39, 43, 44, 45, 64, 71, 72, 73, 82, 82, 85, 93, 98], [1, 5, 8, 9, 12, 13, 22, 29, 30, 31, 36, 36, 40, 40, 41, 42, 52, 55, 57, 58, 61, 61, 61, 65, 76, 78, 82, 86, 86, 89, 94, 96], [1, 3, 3, 5, 9, 10, 19, 19, 20, 24, 34, 40, 42, 42, 46, 46, 48, 53, 53, 58, 64, 68, 72, 73, 81, 86, 88, 89, 90, 92, 93, 95], [1, 1, 5, 5, 15, 19, 22, 23, 27, 29, 33, 41, 44, 44, 48, 51, 56, 56, 71, 77, 79, 79, 82, 82, 84, 86, 87, 90, 90, 91, 93, 98], [2, 4, 8, 13, 14, 22, 23, 27, 28, 29, 37, 37, 38, 41, 47, 47, 48, 50, 51, 53, 54, 55, 57, 63, 65, 69, 75, 77, 77, 79, 82, 97], [4, 9, 10, 18, 20, 23, 24, 27, 39, 40, 41, 41, 42, 43, 45, 58, 58, 64, 66, 67, 68, 69, 74, 81, 83, 83, 84, 84, 86, 87, 90, 98], [1, 8, 9, 11, 15, 15, 18, 24, 25, 31, 31, 33, 34, 35, 35, 43, 47, 52, 56, 58, 58, 67, 69, 70, 71, 74, 77, 82, 85, 89, 89, 90], [1, 3, 8, 8, 12, 12, 16, 21, 22, 25, 25, 25, 29, 31, 31, 31, 34, 34, 35, 35, 36, 37, 37, 42, 43, 55, 55, 59, 67, 72, 74, 85], [2, 4, 6, 9, 12, 14, 18, 22, 23, 23, 26, 36, 36, 41, 44, 51, 51, 53, 56, 59, 59, 59, 60, 61, 68, 68, 74, 77, 93, 94, 94, 96], [1, 2, 5, 11, 12, 14, 19, 28, 33, 34, 37, 37, 38, 38, 38, 47, 49, 59, 62, 67, 71, 73, 73, 74, 80, 83, 84, 85, 89, 90, 92, 99], [1, 5, 10, 19, 24, 36, 41, 47, 48, 57, 59, 59, 60, 62, 65, 65, 67, 70, 71, 77, 79, 79, 81, 81, 82, 83, 87, 89, 91, 91, 95, 97], [7, 10, 10, 10, 17, 18, 29, 29, 30, 31, 32, 32, 37, 38, 44, 50, 59, 59, 62, 63, 63, 73, 74, 80, 80, 81, 84, 85, 85, 89, 98, 99], [1, 7, 9, 14, 19, 22, 26, 29, 30, 34, 40, 43, 44, 45, 45, 46, 49, 58, 62, 63, 67, 76, 78, 79, 82, 84, 93, 94, 95, 97, 98, 98], [5, 6, 8, 9, 12, 14, 22, 31, 34, 36, 38, 43, 46, 47, 48, 48, 50, 52, 54, 57, 67, 68, 68, 72, 75, 77, 79, 80, 92, 96, 97, 98], [8, 10, 15, 15, 15, 19, 21, 24, 25, 27, 30, 34, 36, 43, 44, 45, 50, 51, 54, 55, 57, 58, 59, 63, 69, 69, 73, 75, 87, 94, 96, 96], [3, 4, 12, 13, 13, 16, 16, 19, 29, 32, 40, 43, 48, 49, 55, 58, 61, 64, 65, 66, 66, 69, 71, 72, 75, 83, 85, 88, 89, 90, 94, 96]],), (14,17,13,17,[68, -86, -98, 40, -6, -16, -98, 50, 46, -34, 74, -8, -70, -18, -58, 92, 12, 98, 34, 6, 54, 70],[[-30, 10, -22, 92, -46, 58, -12, -42, 64, 12, 6, 12, -34, -20, 6, -90, -60, 78, 90, -72, -30, 2], [-72, -60, 22, -22, -12, 6, 80, -34, 8, -66, 20, -72, -34, -30, 14, -54, 86, 96, -20, -76, 34, -64], [52, 8, 28, -74, 78, -92, -78, 6, 56, -76, 98, 4, -46, 80, 36, 54, -70, 68, -88, 68, -84, -94], [94, 84, 60, 44, -46, -44, 94, 60, 14, 76, 82, 84, 56, 68, 54, 46, -42, 16, -46, 32, -76, -6], [-8, -88, 70, -48, 62, 4, 70, -62, 34, -48, 48, -82, -16, 60, 14, -10, -56, 4, -22, -96, 44, 22], [-34, -70, -16, -94, -22, 2, -20, 10, -42, 52, 18, -74, -84, -56, 72, -24, 64, -90, 68, -90, 60, -70], [28, -86, -52, -58, -2, -96, 32, -90, 88, 98, -66, 78, -44, -6, -44, 46, -16, -76, 48, -20, -68, -70], [-88, -88, -16, 24, -96, -32, 20, -92, -50, 40, 26, 12, -76, 50, -90, -96, 6, 8, -56, 74, 30, -46], [40, -74, -18, -36, -50, 82, -72, -74, -38, 16, 86, 56, 58, 80, 74, 4, -16, -14, -78, 36, -8, -16], [-44, -18, -14, 94, -4, -98, -4, -32, -84, -54, 38, 78, -74, 62, 76, 30, 22, 24, 34, 42, 94, -84], [60, -26, -12, 14, -26, 42, 60, 12, 74, -26, 66, 60, 32, 32, -70, 22, 50, 84, -14, -2, 62, 50], [-38, -28, -8, 62, 10, 18, -78, -68, 70, 88, -4, 24, 88, -32, 44, -46, 58, -90, 18, -32, 42, 32], [2, -14, 62, 84, -18, 76, -94, -66, -64, -58, -54, 40, 74, 32, -78, -46, 44, -16, -40, 32, -66, -82], [-46, 26, 92, 96, -34, -88, -84, 82, 20, -12, 62, 92, 32, 66, 38, 66, 38, -50, 68, -56, -44, 72], [-30, -40, -56, 46, 36, 12, -58, -36, -36, 66, -80, -24, 34, -96, 0, -46, -38, 88, 36, 92, -74, -40], [-10, -54, 96, -58, 80, -64, -88, 60, 24, 14, -58, 30, 74, 64, 66, 96, -66, 86, 66, 76, -90, -28], [34, 6, 60, 62, -10, -34, 58, -38, 92, -28, -88, -36, 84, 94, 2, 36, 22, -38, 66, 36, 36, 22], [92, 64, 64, -8, 14, 88, -64, 34, -26, 44, 44, 10, -2, -80, -50, -90, 70, 36, -50, 32, 18, 72], [26, 52, -88, -72, -52, 78, 64, -34, -96, -68, 76, -50, -28, -84, 22, 16, 40, 84, -16, 80, -48, 38], [16, -94, -74, 30, -82, 24, 38, 8, -68, 26, -96, -36, 90, 56, 20, 24, -42, -76, -20, 24, 76, 10], [74, 56, -46, 84, -84, 80, -26, 90, -42, 22, 78, 26, 56, -12, 62, -12, -30, -20, -52, 42, 52, -56], [34, -86, -18, -60, -64, 60, -98, 78, 34, -40, 10, -36, 48, 98, 94, 38, -32, 46, -52, 34, -74, 60]],), (5,7,6,8,[0, 0, 0, 0, 0, 1, 1, 1, 1, 1],[[0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1]],), (8,10,10,8,[8, 8, 80, 15, 73, 51, 44, 98, 99, 59, 73, 42],[[89, 45, 59, 5, 12, 1, 54, 1, 25, 40, 25, 45], [94, 83, 22, 94, 13, 16, 98, 46, 37, 94, 99, 59], [7, 92, 73, 68, 63, 10, 45, 75, 56, 77, 66, 79], [37, 91, 18, 45, 35, 35, 66, 75, 82, 14, 88, 88], [16, 44, 53, 11, 41, 41, 44, 53, 19, 11, 3, 99], [80, 89, 67, 90, 58, 65, 9, 15, 76, 4, 43, 8], [39, 51, 95, 87, 68, 88, 84, 27, 15, 77, 95, 84], [54, 67, 79, 17, 81, 4, 18, 10, 37, 96, 15, 42], [19, 49, 6, 4, 37, 50, 43, 83, 89, 44, 74, 21], [75, 19, 30, 32, 20, 67, 1, 85, 3, 31, 76, 78], [94, 25, 26, 97, 28, 74, 96, 81, 36, 33, 21, 25], [19, 72, 42, 88, 41, 20, 1, 18, 92, 5, 82, 18]],), (14,12,16,19,[-88, -82, -78, -72, -70, -54, -32, -32, -10, -8, 8, 14, 16, 22, 26, 26, 28, 30, 34, 34, 62, 62, 76, 88],[[-96, -74, -68, -56, -40, -26, -22, -18, -6, -2, 6, 6, 18, 18, 20, 22, 26, 30, 32, 40, 52, 52, 70, 70], [-96, -92, -90, -90, -72, -70, -64, -52, -50, -44, -40, -32, -30, -28, -24, -18, -16, -4, 14, 18, 28, 36, 50, 70], [-96, -62, -60, -54, -52, -40, -36, -2, 6, 6, 6, 8, 12, 14, 18, 34, 36, 44, 62, 66, 66, 78, 86, 88], [-90, -78, -64, -58, -56, -50, -40, -32, -32, -12, 0, 0, 16, 18, 26, 28, 30, 38, 40, 44, 48, 72, 84, 98], [-88, -46, -34, 0, 10, 12, 16, 20, 26, 38, 48, 48, 50, 60, 60, 62, 66, 72, 72, 74, 84, 88, 94, 98], [-96, -94, -88, -80, -76, -66, -62, -36, -20, -16, -6, -6, -2, 0, 0, 18, 20, 24, 36, 40, 72, 76, 86, 98], [-66, -52, -44, -32, -28, -20, -6, -4, 10, 18, 22, 24, 26, 38, 40, 44, 44, 48, 48, 58, 84, 90, 94, 94], [-86, -78, -54, -52, -46, -38, -34, 14, 24, 26, 34, 34, 40, 46, 50, 50, 62, 72, 72, 82, 84, 86, 92, 94], [-98, -84, -70, -68, -66, -60, -28, -10, 4, 10, 16, 34, 34, 44, 46, 48, 52, 56, 56, 56, 60, 84, 84, 88], [-96, -92, -82, -80, -76, -54, -52, -46, -46, -30, -26, -26, -20, -16, -10, -10, -4, 26, 30, 32, 34, 78, 78, 86], [-92, -90, -76, -64, -50, -48, -46, -42, -36, -30, -24, -20, -14, -4, 12, 16, 22, 30, 40, 40, 48, 60, 86, 92], [-86, -82, -72, -46, -46, -42, -34, -34, -22, -20, -20, -14, -10, -2, -2, 28, 50, 50, 52, 58, 78, 80, 84, 94], [-92, -90, -74, -64, -64, -56, -52, -50, -46, -46, -32, -26, -22, -4, -2, 10, 16, 32, 34, 38, 58, 58, 60, 86], [-94, -88, -66, -58, -56, -50, -42, -30, -28, -24, -22, -12, -10, -8, 0, 16, 24, 26, 30, 38, 44, 52, 80, 98], [-98, -82, -74, -64, -60, -52, -48, -38, -36, -24, -20, -20, -18, 26, 26, 36, 44, 44, 50, 50, 54, 78, 80, 96], [-84, -68, -66, -62, -60, -52, -50, -40, -36, -28, -8, -6, 2, 18, 26, 32, 42, 50, 62, 66, 68, 72, 80, 98], [-92, -90, -82, -72, -72, -58, -54, -40, -38, -34, -28, -22, -6, -6, 0, 0, 2, 6, 18, 44, 68, 70, 72, 74], [-92, -64, -64, -60, -58, -52, -50, -12, -8, -8, -4, -2, 14, 14, 16, 18, 22, 28, 38, 38, 42, 66, 90, 90], [-72, -70, -68, -56, -42, -40, -38, -32, -32, -22, -20, -20, -10, -10, 0, 24, 24, 34, 72, 80, 88, 92, 94, 96], [-84, -80, -58, -38, -32, -30, -16, -14, 4, 10, 10, 14, 18, 20, 24, 26, 30, 34, 36, 40, 58, 70, 72, 92], [-88, -78, -68, -66, -50, -42, -36, -36, -18, -14, -10, -6, -6, -2, 2, 6, 16, 18, 40, 68, 72, 76, 86, 94], [-82, -70, -64, -56, -52, -32, -10, -4, 8, 16, 28, 40, 46, 56, 56, 58, 66, 68, 70, 74, 76, 80, 80, 86], [-98, -90, -80, -78, -76, -74, -72, -64, -62, -42, -30, -14, -8, 2, 12, 24, 42, 44, 72, 74, 76, 94, 94, 98], [-94, -90, -86, -82, -58, -50, -44, -20, -18, 0, 18, 26, 36, 38, 44, 50, 52, 54, 56, 64, 68, 78, 82, 86]],), (16,21,17,18,[0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1],[[0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0], [1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1], [0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0], [0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0], [0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0], [0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1], [1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0], [0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0], [1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1], [1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1], [0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0], [1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1], [1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0], [1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1], [0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1], [0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1], [1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1], [1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0]],), (24,26,24,21,[4, 8, 8, 16, 22, 23, 28, 32, 38, 45, 48, 50, 52, 54, 55, 64, 70, 75, 75, 76, 83, 87, 88, 89, 94, 94, 95],[[1, 3, 5, 8, 8, 16, 16, 18, 19, 26, 28, 33, 33, 35, 35, 41, 42, 43, 47, 51, 65, 66, 73, 84, 87, 95, 99], [1, 3, 3, 21, 26, 29, 31, 40, 40, 43, 51, 53, 54, 62, 62, 65, 74, 75, 77, 77, 79, 81, 81, 84, 84, 92, 95], [7, 9, 10, 12, 13, 14, 19, 27, 30, 44, 46, 47, 51, 53, 58, 59, 65, 73, 78, 84, 84, 86, 88, 91, 92, 98, 99], [5, 15, 15, 21, 24, 25, 31, 34, 47, 53, 53, 58, 60, 60, 69, 74, 75, 75, 76, 78, 79, 81, 86, 87, 88, 91, 97], [5, 16, 19, 20, 22, 25, 32, 37, 37, 40, 43, 46, 50, 55, 56, 58, 59, 60, 61, 64, 67, 72, 85, 88, 91, 91, 96], [5, 6, 10, 14, 16, 19, 22, 25, 26, 31, 38, 41, 43, 45, 52, 56, 59, 66, 69, 78, 82, 87, 87, 88, 89, 92, 99], [3, 11, 15, 18, 22, 25, 31, 37, 37, 38, 38, 44, 47, 50, 51, 52, 68, 70, 78, 81, 83, 84, 89, 90, 95, 95, 98], [3, 6, 8, 10, 13, 21, 22, 22, 22, 22, 23, 26, 33, 42, 49, 49, 50, 66, 72, 73, 75, 78, 83, 84, 92, 93, 99], [8, 10, 11, 16, 17, 26, 32, 45, 52, 53, 53, 63, 64, 65, 69, 71, 72, 72, 74, 77, 81, 82, 87, 94, 96, 96, 96], [3, 4, 8, 11, 21, 25, 26, 31, 33, 35, 35, 38, 42, 43, 48, 50, 50, 61, 62, 63, 67, 67, 70, 79, 80, 84, 97], [2, 14, 15, 16, 21, 30, 30, 32, 32, 40, 41, 41, 42, 45, 45, 46, 46, 52, 61, 63, 78, 79, 80, 81, 86, 93, 97], [4, 5, 5, 6, 7, 16, 16, 18, 20, 22, 23, 28, 30, 35, 38, 43, 63, 67, 72, 77, 82, 85, 85, 87, 87, 91, 92], [4, 8, 10, 11, 27, 30, 31, 39, 47, 49, 52, 62, 67, 69, 71, 71, 72, 75, 79, 79, 80, 84, 84, 87, 95, 95, 99], [16, 17, 21, 24, 26, 32, 43, 43, 46, 49, 53, 56, 64, 72, 81, 82, 85, 85, 90, 90, 92, 92, 93, 95, 95, 97, 99], [4, 4, 6, 12, 12, 13, 16, 26, 31, 31, 35, 40, 40, 50, 51, 54, 56, 57, 60, 62, 64, 64, 86, 90, 91, 99, 99], [13, 13, 16, 17, 18, 20, 21, 21, 23, 24, 25, 25, 27, 32, 33, 34, 45, 45, 64, 76, 77, 78, 78, 83, 88, 90, 97], [2, 4, 5, 6, 6, 11, 17, 18, 35, 36, 42, 52, 52, 54, 55, 57, 58, 70, 70, 72, 81, 86, 87, 87, 89, 97, 99], [2, 5, 5, 10, 10, 13, 25, 27, 29, 29, 29, 30, 42, 48, 48, 52, 56, 57, 62, 64, 65, 66, 68, 76, 85, 89, 91], [7, 15, 27, 32, 40, 44, 49, 49, 63, 65, 67, 69, 70, 70, 71, 71, 73, 74, 80, 84, 84, 85, 88, 89, 92, 95, 97], [4, 9, 10, 14, 27, 30, 30, 36, 37, 38, 39, 41, 44, 45, 46, 50, 52, 60, 62, 63, 68, 76, 77, 81, 82, 88, 94], [5, 6, 9, 10, 11, 19, 24, 26, 30, 31, 34, 46, 47, 54, 56, 56, 59, 62, 66, 71, 79, 87, 89, 90, 92, 99, 99], [3, 5, 6, 6, 15, 21, 23, 28, 32, 50, 50, 56, 65, 66, 75, 76, 82, 85, 85, 87, 88, 90, 93, 94, 97, 97, 99], [10, 13, 13, 15, 16, 19, 21, 26, 30, 51, 55, 59, 60, 61, 63, 66, 67, 77, 77, 83, 87, 89, 89, 90, 92, 97, 99], [8, 10, 10, 11, 12, 13, 16, 25, 31, 33, 34, 36, 36, 44, 48, 58, 62, 67, 73, 75, 76, 80, 84, 89, 91, 96, 98], [10, 12, 22, 25, 28, 29, 40, 41, 42, 47, 48, 50, 55, 58, 62, 72, 72, 72, 76, 79, 81, 82, 85, 94, 95, 98, 99], [4, 5, 6, 7, 9, 15, 22, 23, 26, 27, 31, 33, 34, 37, 47, 52, 52, 54, 54, 56, 63, 72, 84, 91, 92, 99, 99], [17, 18, 22, 25, 31, 36, 36, 36, 36, 37, 42, 45, 46, 51, 51, 62, 68, 73, 83, 87, 88, 90, 91, 92, 95, 96, 97]],), (7,7,7,7,[-56, -66, -60, 94, 44, -92, 18, -26, -88, 46, -24, -8, -46, 78],[[32, -72, -76, -6, 4, -42, -82, -6, -52, 24, 88, 8, 78, 82], [-20, 18, -68, 48, -64, 40, -26, 22, 80, -52, -98, -28, -6, -76], [-68, 20, -52, -90, -78, 96, -20, 56, -28, -88, -80, 60, 30, 38], [-12, 58, 48, 58, -78, 14, -36, 82, -66, -52, 36, -26, 90, -90], [-76, 24, -46, -2, -76, -62, -50, -64, 72, -52, -62, 84, -20, 12], [-66, -8, 40, 20, -56, -42, 90, 32, 40, -8, -28, 78, 76, -78], [-82, 38, 28, -26, -72, -96, -60, -66, 28, 94, 10, -30, 24, -90], [66, -14, 24, 80, -38, -4, 52, -94, -40, 26, 6, 58, 40, -74], [72, 78, 62, -40, -30, -4, -82, 66, -32, 6, -72, 0, 56, 42], [74, 62, 16, -4, 36, -38, -30, -18, 32, -76, 12, -52, 40, 98], [-88, 52, -10, 96, 12, 68, -12, 86, 4, -84, -54, -90, 92, 54], [68, 44, -30, -90, 52, -96, -44, 48, -80, 2, 12, 24, 58, -74], [-78, -24, 86, 14, -76, 46, 82, 14, 6, -10, 56, -70, 20, 80], [80, 38, 10, -76, -82, 26, 32, 74, 6, 76, 14, 88, 24, 90]],), (35,35,33,22,[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],), (8,5,8,6,[80, 95, 34, 51, 95, 68, 55, 65, 60],[[32, 76, 68, 57, 32, 74, 11, 94, 55], [53, 76, 86, 95, 82, 62, 51, 37, 84], [73, 35, 43, 64, 94, 53, 79, 61, 20], [25, 5, 34, 35, 84, 44, 76, 20, 21], [18, 60, 47, 2, 26, 24, 80, 29, 63], [76, 15, 47, 88, 50, 90, 57, 10, 14], [84, 17, 77, 25, 28, 1, 6, 19, 15], [22, 10, 30, 53, 32, 83, 28, 49, 62], [73, 75, 57, 84, 1, 93, 80, 44, 55]],) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
null
DIFFERENCE_BETWEEN_HIGHEST_AND_LEAST_FREQUENCIES_IN_AN_ARRAY_1
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class DIFFERENCE_BETWEEN_HIGHEST_AND_LEAST_FREQUENCIES_IN_AN_ARRAY_1{ static int f_gold ( int arr [ ] , int n ) { Map < Integer , Integer > mp = new HashMap < > ( ) ; for ( int i = 0 ; i < n ; i ++ ) { if ( mp . containsKey ( arr [ i ] ) ) { mp . put ( arr [ i ] , mp . get ( arr [ i ] ) + 1 ) ; } else { mp . put ( arr [ i ] , 1 ) ; } } int max_count = 0 , min_count = n ; for ( Map . Entry < Integer , Integer > x : mp . entrySet ( ) ) { max_count = Math . max ( max_count , x . getValue ( ) ) ; min_count = Math . min ( min_count , x . getValue ( ) ) ; } return ( max_count - min_count ) ; }
null
using namespace std; int f_gold ( int arr [ ], int n ) { unordered_map < int, int > hm; for ( int i = 0; i < n; i ++ ) hm [ arr [ i ] ] ++; int max_count = 0, min_count = n; for ( auto x : hm ) { max_count = max ( max_count, x . second ); min_count = min ( min_count, x . second ); } return ( max_count - min_count ); }
public static void main(String args[]) { int n_success = 0; List<int [ ]> param0 = new ArrayList<>(); param0.add(new int[]{2,3,23,24,39,53,55,57,59,60,68,87}); param0.add(new int[]{-76,46,50,90,-98,98,8,-14,24,-70,-86,-44,-88,-60,76,-16,-24,24,52,-94,-44,-76,60,-12,-70,10,90,70,64,-4,-88,28,62,74,-30,64,-78,-54,14,62,40,76,-26,26}); param0.add(new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}); param0.add(new int[]{61,48,24,48,26,49,90,88,55,4,49}); param0.add(new int[]{-94,-80,-76,-72,-66,-62,-62,-60,-58,-48,-46,-42,-30,-20,-12,0,8,22,30,36,52,58,64,64,66,66,70,74,78,84,84,92,94,96}); param0.add(new int[]{1,1,0,1,1,1,0,0,0,0,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1,0,0,1,0,0,0,1,0,1}); param0.add(new int[]{4,9,20,22,24,29,30,34,51,54,55,60,76,94,99}); param0.add(new int[]{2,46,72,0,60,32,24,-12,-54,86,-78,8,10,22,98,4,-56,-94,52,30,16,-14,80,96,22,86,6,-34,92,-50,0,-6,16,32,58,-74,-16,-70,-88,70,-16}); param0.add(new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}); param0.add(new int[]{76,63,32,60,35,16,36,56,30,32,79,21,56,40,93,54,30,89,20,74,95,1,74,18,57,59,13}); List<Integer> param1 = new ArrayList<>(); param1.add(7); param1.add(37); param1.add(19); param1.add(6); param1.add(30); param1.add(33); param1.add(11); param1.add(22); param1.add(33); param1.add(26); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i)) == f_gold(param0.get(i),param1.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
null
int main() { int n_success = 0; vector<vector<int>> param0 {{2,3,23,24,39,53,55,57,59,60,68,87},{-76,46,50,90,-98,98,8,-14,24,-70,-86,-44,-88,-60,76,-16,-24,24,52,-94,-44,-76,60,-12,-70,10,90,70,64,-4,-88,28,62,74,-30,64,-78,-54,14,62,40,76,-26,26},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},{61,48,24,48,26,49,90,88,55,4,49},{-94,-80,-76,-72,-66,-62,-62,-60,-58,-48,-46,-42,-30,-20,-12,0,8,22,30,36,52,58,64,64,66,66,70,74,78,84,84,92,94,96},{1,1,0,1,1,1,0,0,0,0,1,0,0,1,1,1,0,1,0,0,0,1,1,1,1,0,0,1,0,0,0,1,0,1},{4,9,20,22,24,29,30,34,51,54,55,60,76,94,99},{2,46,72,0,60,32,24,-12,-54,86,-78,8,10,22,98,4,-56,-94,52,30,16,-14,80,96,22,86,6,-34,92,-50,0,-6,16,32,58,-74,-16,-70,-88,70,-16},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},{76,63,32,60,35,16,36,56,30,32,79,21,56,40,93,54,30,89,20,74,95,1,74,18,57,59,13}}; vector<int> param1 {7,37,19,6,30,33,11,22,33,26}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(&param0[i].front(),param1[i]) == f_gold(&param0[i].front(),param1[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }
WAYS_TRANSFORMING_ONE_STRING_REMOVING_0_CHARACTERS
import java.util. *; import java.util.stream.*; import java.lang.*; import javafx.util.Pair; public class WAYS_TRANSFORMING_ONE_STRING_REMOVING_0_CHARACTERS{ static int f_gold ( String a , String b ) { int n = a . length ( ) , m = b . length ( ) ; if ( m == 0 ) { return 1 ; } int dp [ ] [ ] = new int [ m + 1 ] [ n + 1 ] ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = i ; j < n ; j ++ ) { if ( i == 0 ) { if ( j == 0 ) { dp [ i ] [ j ] = ( a . charAt ( j ) == b . charAt ( i ) ) ? 1 : 0 ; } else if ( a . charAt ( j ) == b . charAt ( i ) ) { dp [ i ] [ j ] = dp [ i ] [ j - 1 ] + 1 ; } else { dp [ i ] [ j ] = dp [ i ] [ j - 1 ] ; } } else if ( a . charAt ( j ) == b . charAt ( i ) ) { dp [ i ] [ j ] = dp [ i ] [ j - 1 ] + dp [ i - 1 ] [ j - 1 ] ; } else { dp [ i ] [ j ] = dp [ i ] [ j - 1 ] ; } } } return dp [ m - 1 ] [ n - 1 ] ; }
def f_gold ( a , b ) : n = len ( a ) m = len ( b ) if m == 0 : return 1 dp = [ [ 0 ] * ( n + 1 ) for _ in range ( m + 1 ) ] for i in range ( m ) : for j in range ( i , n ) : if i == 0 : if j == 0 : if a [ j ] == b [ i ] : dp [ i ] [ j ] = 1 else : dp [ i ] [ j ] = 0 elif a [ j ] == b [ i ] : dp [ i ] [ j ] = dp [ i ] [ j - 1 ] + 1 else : dp [ i ] [ j ] = dp [ i ] [ j - 1 ] else : if a [ j ] == b [ i ] : dp [ i ] [ j ] = ( dp [ i ] [ j - 1 ] + dp [ i - 1 ] [ j - 1 ] ) else : dp [ i ] [ j ] = dp [ i ] [ j - 1 ] return dp [ m - 1 ] [ n - 1 ]
using namespace std; int f_gold ( string a, string b ) { int n = a . size ( ), m = b . size ( ); if ( m == 0 ) return 1; int dp [ m + 1 ] [ n + 1 ]; memset ( dp, 0, sizeof ( dp ) ); for ( int i = 0; i < m; i ++ ) { for ( int j = i; j < n; j ++ ) { if ( i == 0 ) { if ( j == 0 ) dp [ i ] [ j ] = ( a [ j ] == b [ i ] ) ? 1 : 0; else if ( a [ j ] == b [ i ] ) dp [ i ] [ j ] = dp [ i ] [ j - 1 ] + 1; else dp [ i ] [ j ] = dp [ i ] [ j - 1 ]; } else { if ( a [ j ] == b [ i ] ) dp [ i ] [ j ] = dp [ i ] [ j - 1 ] + dp [ i - 1 ] [ j - 1 ]; else dp [ i ] [ j ] = dp [ i ] [ j - 1 ]; } } } return dp [ m - 1 ] [ n - 1 ]; }
public static void main(String args[]) { int n_success = 0; List<String> param0 = new ArrayList<>(); param0.add("abcccdf"); param0.add("aabba"); param0.add("aabsdfljk"); param0.add("IONiqV"); param0.add("9667771256770"); param0.add("10001011"); param0.add("fczbDtMDT"); param0.add("298746088"); param0.add("01100011000"); param0.add("Qk"); List<String> param1 = new ArrayList<>(); param1.add("abccdf"); param1.add("ab"); param1.add("aa"); param1.add("XKbBiGZ"); param1.add("50915176"); param1.add("01"); param1.add("FbX"); param1.add("29888"); param1.add("0"); param1.add(""); for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0.get(i),param1.get(i)) == f_gold(param0.get(i),param1.get(i))) { n_success+=1; } } System.out.println("#Results:" + n_success + ", " + param0.size()); } }
if __name__ == '__main__': param = [ ('abcccdf','abccdf',), ('aabba','ab',), ('aabsdfljk','aa',), ('IONiqV','XKbBiGZ',), ('9667771256770','50915176',), ('10001011','01',), ('fczbDtMDT','FbX',), ('298746088','29888',), ('01100011000','0',), ('Qk','',) ] n_success = 0 for i, parameters_set in enumerate(param): if f_filled(*parameters_set) == f_gold(*parameters_set): n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
int main() { int n_success = 0; vector<string> param0 {"abcccdf","aabba","aabsdfljk","IONiqV","9667771256770","10001011","fczbDtMDT","298746088","01100011000","Qk"}; vector<string> param1 {"abccdf","ab","aa","XKbBiGZ","50915176","01","FbX","29888","0",""}; for(int i = 0; i < param0.size(); ++i) { if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i])) { n_success+=1; } } cout << "#Results:" << " " << n_success << ", " << param0.size(); return 0; }

statistics

cpp-java: 627 pairs

python-java: 616 pairs

cpp-python: 545 pairs

Downloads last month
178
Edit dataset card