python_code
stringlengths
0
4.04M
repo_name
stringlengths
8
58
file_path
stringlengths
5
147
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : der = [ 0 for i in range ( n + 1 ) ] der [ 0 ] = 1 der [ 1 ] = 0 der [ 2 ] = 1 for i in range ( 3 , n + 1 ) : der [ i ] = ( i - 1 ) * ( der [ i - 1 ] + der [ i - 2 ] ) return der [ n ] #TOFILL if __name__ == '__main__': param = [ (22,), (91,), (33,), (93,), (90,), (59,), (88,), (41,), (70,), (63,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_DERANGEMENTS_PERMUTATION_SUCH_THAT_NO_ELEMENT_APPEARS_IN_ITS_ORIGINAL_POSITION_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( number ) : n = len ( number ) d = [ 0 for i in range ( 9 ) ] d [ 0 ] = 1 result = 0 mod_sum = 0 continuous_zero = 0 for i in range ( n ) : if ( ord ( number [ i ] ) - ord ( '0' ) == 0 ) : continuous_zero += 1 else : continuous_zero = 0 mod_sum += ord ( number [ i ] ) - ord ( '0' ) mod_sum %= 9 result += d [ mod_sum ] d [ mod_sum ] += 1 result -= continuous_zero return result #TOFILL if __name__ == '__main__': param = [ ([' ', 'B', 'C', 'D', 'F', 'G', 'G', 'I', 'K', 'O', 'T', 'T', 'X', 'X', 'Z', 'Z', 'Z', 'c', 'g', 'i', 'i', 'm', 'q', 'q', 's', 't', 'v'],), (['1', '4', '0', '2', '9', '1', '8', '8', '2', '9', '3', '9', '5', '1', '3', '4', '7', '4', '5', '8', '0', '6', '4', '7', '2', '5', '0', '0', '2', '7', '7', '3', '3'],), (['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'],), (['F', 'i', 'a', 'E', 'Q', 's', 's', 'a', 'K', 'j', 'N', 'U', 'U', 'p', 'R', 'u', 'Q', 's', 'i', 'c', 'Y', 'M', 'w', 'J', 's', 'M', 'L', 'z', 'c'],), (['0', '0', '0', '1', '1', '1', '1', '2', '2', '2', '3', '3', '3', '3', '4', '4', '5', '6', '6', '6', '7', '7', '8', '8', '8', '8', '9', '9'],), (['1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '1', '0', '0', '0', '1', '0', '1', '1', '1', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '1', '1', '1', '1', '1', '1', '1', '0', '1'],), ([' ', 'C', 'S', 'v'],), (['2', '4', '1', '3', '3', '3', '0', '4', '0', '2', '2', '4', '1', '8', '4', '6', '4', '2', '9', '3', '5', '2', '8', '0', '1', '0', '7', '6', '8', '8', '7', '6', '6', '3', '1', '2', '2', '9', '5', '7', '2', '6', '5', '7', '1', '5'],), (['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'],), (['l', 'X', 'i', 'J', 'e', 'm', 'L', 'g', 'L', 'p', 'b', 'y', 'E', 'g'],) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/GIVEN_NUMBER_STRING_FIND_NUMBER_CONTIGUOUS_SUBSEQUENCES_RECURSIVELY_ADD_9_SET_2.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b ) : if ( a == 0 or b == 0 ) : return False result = a * b if ( result >= 9223372036854775807 or result <= - 9223372036854775808 ) : result = 0 if ( a == ( result // b ) ) : print ( result // b ) return False else : return True #TOFILL if __name__ == '__main__': param = [ (37,80,), (10000000000,-10000000000,), (10000000000,10000000000,), (999999999,999999999,), (39,36,), (92,56,), (14,21,), (19,38,), (14,82,), (88,41,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_INTEGER_OVERFLOW_MULTIPLICATION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n , index , Sum , M , arr , dp ) : global MAX if index == n : if ( Sum % M ) == 0 : return True return False if dp [ index ] [ Sum ] != - 1 : return dp [ index ] [ Sum ] placeAdd = f_gold ( n , index + 1 , Sum + arr [ index ] , M , arr , dp ) placeMinus = f_gold ( n , index + 1 , Sum - arr [ index ] , M , arr , dp ) res = placeAdd or placeMinus dp [ index ] [ Sum ] = res return res #TOFILL if __name__ == '__main__': param = [ (18,10,13,12,[2, 11, 23, 27, 28, 32, 38, 43, 45, 56, 59, 59, 71, 77, 80, 81, 88, 94, 96],[[5, 6, 13, 16, 18, 19, 23, 27, 34, 57, 61, 66, 67, 81, 89, 91, 92, 96, 98], [1, 1, 2, 2, 4, 7, 32, 33, 50, 61, 61, 61, 62, 73, 73, 76, 83, 88, 89], [15, 23, 24, 31, 32, 42, 46, 47, 47, 57, 60, 61, 62, 64, 68, 75, 85, 92, 93], [6, 10, 13, 16, 19, 20, 26, 39, 40, 43, 45, 46, 53, 54, 56, 58, 61, 79, 84], [16, 20, 25, 31, 37, 37, 38, 38, 41, 42, 61, 64, 68, 69, 71, 83, 84, 86, 97], [5, 22, 24, 29, 38, 41, 44, 45, 47, 62, 64, 64, 80, 83, 85, 85, 92, 96, 97], [4, 13, 25, 26, 27, 34, 35, 37, 50, 51, 52, 54, 64, 68, 71, 86, 90, 92, 98], [2, 11, 12, 14, 16, 20, 26, 27, 27, 28, 38, 42, 50, 60, 70, 73, 79, 80, 95], [9, 15, 17, 21, 22, 36, 55, 57, 69, 73, 74, 76, 77, 80, 87, 88, 93, 97, 98], [8, 12, 16, 29, 30, 49, 50, 50, 62, 63, 75, 79, 81, 89, 92, 94, 94, 97, 98], [2, 3, 4, 19, 28, 35, 38, 39, 41, 46, 50, 52, 55, 64, 80, 83, 91, 98, 98], [8, 9, 27, 28, 34, 35, 40, 41, 45, 46, 55, 59, 64, 69, 71, 72, 75, 88, 95], [5, 11, 12, 16, 22, 23, 30, 44, 46, 47, 51, 58, 64, 64, 67, 67, 72, 91, 95], [4, 8, 12, 14, 29, 31, 37, 37, 38, 39, 53, 53, 55, 61, 64, 66, 68, 99, 99], [4, 14, 18, 18, 24, 24, 39, 54, 57, 59, 65, 67, 72, 74, 75, 76, 77, 85, 87], [4, 13, 24, 24, 30, 34, 45, 45, 56, 69, 70, 72, 81, 88, 90, 91, 96, 96, 96], [1, 7, 15, 28, 30, 30, 31, 50, 51, 64, 68, 69, 76, 80, 83, 83, 85, 89, 97], [3, 4, 18, 24, 37, 54, 57, 60, 60, 69, 75, 79, 80, 82, 82, 82, 83, 85, 90], [1, 2, 15, 19, 19, 30, 31, 32, 50, 51, 68, 84, 85, 92, 92, 93, 94, 97, 98]],), (33,21,37,32,[-20, -70, -50, -62, 30, -14, 60, -56, -90, 16, -24, 70, 18, -38, -2, -98, -26, 78, -66, 12, -94, 54, 62, 46, 72, -34, 38, 98, 76, 82, -98, -64, 68, 38, -92, -28, -86, 28, -12, -10, 64, -66],[[-34, 42, -20, 36, 50, -10, -4, 26, -28, 74, 68, -54, 70, 16, 70, -50, 2, 18, -42, 6, 70, 34, -44, 82, 50, 52, 36, -32, -4, 22, -76, -84, -50, 44, 26, -68, 56, -92, 54, 22, 20, -16], [-8, -36, 4, 94, 56, -94, -66, 80, 66, -56, 92, 28, -68, 12, 54, -62, -66, 68, -70, -96, 88, -16, -26, 6, 58, 18, 38, -32, -22, 64, -92, -30, 80, -14, 78, 22, -40, 60, 54, -74, 52, -68], [-38, 6, -60, 6, -18, -20, -72, 72, 84, 38, -20, -86, 76, -82, 38, 32, 64, -72, -46, 28, 54, 94, 30, -48, 58, -92, 66, -34, -22, 54, -20, -8, -78, 82, -18, -96, 90, 90, 44, -66, 42, 38], [-44, -92, 70, -54, 86, -68, -50, 90, 44, 12, -2, -30, 48, -54, 52, 8, 22, -28, 52, 82, -24, 10, 82, 60, 54, 96, -40, -36, 12, -48, 82, 18, 42, 26, 6, -14, 22, -22, 52, -76, 16, 80], [60, -80, 92, -54, 48, -80, -86, 4, 90, 98, -42, 42, 56, 0, 32, 10, -8, -76, 58, 38, 82, 56, 44, -58, -48, -24, -88, -86, -16, -84, -34, 14, 28, -14, -64, -52, -66, -84, 26, -92, 4, 2], [-92, 22, -78, 8, 28, 34, 54, -8, -40, 48, 44, 72, 74, 72, -52, -96, 92, 56, 44, -96, 62, -36, -28, 38, -74, -6, 26, -36, -28, 2, 8, -24, 92, -28, -20, -28, 44, 86, 22, 94, -54, 10], [38, -10, -80, -52, 54, -36, 62, -96, -24, -6, 12, 18, -4, -36, -8, -92, 20, 44, 18, -40, 78, 32, 56, 22, 22, -52, 10, -18, -60, -10, 26, 10, 28, -74, 88, 6, 76, -60, -94, 82, 86, 48], [-10, 10, -56, 96, -76, 56, 8, 20, -70, 68, -98, 62, -46, -32, 32, -50, 96, -78, 14, 36, 76, 2, 90, -50, -28, -70, 74, 78, 18, -10, -78, -38, 34, -48, -12, -16, -88, 56, -14, 44, 62, -52], [-44, 88, -90, -30, 42, -92, -44, -56, 4, 50, -70, -62, -54, 8, 80, -66, -76, 60, 60, -60, -40, -8, -16, -98, -24, -60, -94, 10, -64, -42, -24, -50, 50, -50, 58, -22, -68, -40, 20, 42, -40, -18], [74, 78, -4, -54, -78, -64, 78, 42, 88, -70, 4, -54, -48, 32, 12, -42, 80, -70, 50, 44, -54, 80, -58, 36, 6, 32, 60, -62, 58, -58, 46, 18, 12, 72, -88, 86, -20, -88, -90, -24, -74, 0], [4, -16, 48, -4, -48, 80, 58, 28, 22, -26, 78, 54, -46, 48, -90, -2, 12, -28, -24, 74, -70, 32, -80, -12, 38, 38, -72, -56, 0, 40, 96, 40, -36, 68, 6, 30, -24, -94, 96, -86, 44, 66], [-8, -40, -42, -90, 56, 28, 2, 34, -68, 2, -4, -76, -6, -44, 98, 92, -24, -90, -64, 6, -18, -76, -36, -20, -42, -22, -76, 32, 80, 56, -78, 22, 80, 4, -82, -86, -36, -26, -86, -22, -58, 70], [92, -14, -14, -24, 4, -90, 26, 34, -34, -78, -54, -96, -84, -30, -34, -90, -12, -52, 94, -50, 38, 56, 76, -78, -84, -92, 12, -12, -10, 40, -98, 28, 96, 54, -32, 82, 0, -36, -82, -50, 46, -74], [-56, -84, 40, -6, 20, -28, -90, 92, -32, 96, 70, -22, -34, -58, -56, 8, -80, -66, 92, 78, 24, -18, -20, -42, 12, -60, 58, -86, 4, 60, -58, -88, -8, 0, 72, -86, -8, 18, 76, -68, -72, -32], [8, -96, -72, 72, 18, -38, 80, -8, -48, 70, -80, 18, 96, -32, 30, 78, 12, -16, -88, -78, 12, 2, -36, -96, -4, 36, 42, -2, -64, -28, -20, -72, -40, 54, 64, 24, 70, -16, 28, 50, -80, 34], [36, -26, -44, 90, -10, -30, 44, -90, 54, -12, 8, 12, 60, 22, -10, -62, 44, 74, -80, -92, 6, -88, -68, -20, 22, 56, -56, 12, -16, 26, -6, -20, -48, 84, -46, -66, 80, -24, 54, 74, 70, -34], [28, 94, -96, 12, 82, -66, 26, 88, -72, -26, 66, -52, -36, -20, 86, -20, 10, -6, 96, 18, -12, 56, 12, 86, 26, -16, -42, -14, -66, 26, 94, 84, -22, 22, 26, 20, -34, -82, -46, 74, -22, 54], [48, -76, 30, 6, 24, -8, 74, 98, 32, 32, 52, 96, -40, 54, -12, 98, -58, -20, -82, 52, 70, 44, -64, -92, -82, 54, -36, 4, 10, 92, -80, -20, -70, -46, -6, 74, 96, -84, 54, 46, -76, 70], [6, 98, 48, -76, -42, 70, 30, 82, 82, 98, 8, -30, -54, -48, -24, -52, -40, 14, -84, 32, 90, -18, 60, -80, -26, -28, 20, 64, -26, -2, -58, 76, -14, -18, 12, -98, 4, -14, 96, 58, -26, 28], [-44, 68, 78, -72, -2, 92, 94, -32, -14, -54, 72, 2, -18, 38, -34, 62, 98, -74, 34, 70, -44, 42, 56, -14, -96, 46, 36, 56, -96, -12, -34, -82, -14, 64, -84, -80, 42, 44, -88, 80, -40, 92], [-26, 50, -42, -38, 62, 62, 84, -96, 48, 84, -18, -46, -6, 28, 56, 16, -2, 22, 10, -42, 28, 64, 88, 44, 48, 78, 4, 46, -66, 44, 28, -78, 36, -84, -80, 96, 16, -96, 28, -82, 56, 70], [-84, -48, -14, 64, 8, 6, 28, 62, 30, 96, 58, -26, 34, -82, 30, 12, -10, 12, 14, -28, 12, -30, -88, -58, 90, 90, 22, 84, -70, 16, 12, 52, 54, 48, -62, -78, 14, 38, 92, 28, -86, -50], [-68, -70, -28, 90, 46, -48, 78, 86, 92, -62, 14, 2, -52, -60, 60, -44, -66, -94, -62, 52, -18, -14, -64, 80, 62, -2, -58, 32, 60, -10, 78, 22, 68, -60, -82, -28, 46, -94, 74, 28, 24, 32], [-80, 22, -34, 2, 44, 6, 78, 38, 70, 56, -40, -34, -80, -88, -34, 36, 4, 36, 52, -40, -36, -48, 52, 48, -36, 48, -34, -98, -96, -72, -28, -24, 18, -40, -80, -48, -98, 16, 6, 74, -22, 56], [66, 70, -92, 68, -2, 36, 86, 94, -50, -80, 86, 14, -88, -82, 44, -88, -84, 92, 70, -30, 42, 24, 18, 40, -44, 64, 74, 18, -64, -58, 42, 20, 80, 66, 24, 26, 44, 92, 16, 40, 28, -8], [-12, 50, 2, 40, -70, -34, -26, -58, 24, 68, -92, 84, 40, -66, 80, 18, 28, -52, 54, 12, -48, 54, 76, 18, 22, 2, -90, 34, -98, 86, 78, 32, 80, 0, 58, -48, -80, -68, -78, 84, 24, 66], [92, -68, -82, -38, -58, 98, -44, 92, 92, 60, 68, -44, 32, 40, 60, -80, 80, 48, -58, 58, -28, -2, -46, 98, 58, -66, 60, 76, -84, 40, -98, 98, 12, -28, 76, -70, -40, 20, 66, -8, 16, 14], [42, 78, -94, 16, 18, 8, -38, 86, 68, -10, -14, 30, 4, 38, 28, -92, 38, 60, -54, 44, 48, -70, 28, 82, -48, 32, 64, 82, -86, 46, 94, 48, 82, 90, -72, -52, 26, -40, -20, 78, -58, 42], [-14, -22, 14, 70, -12, 76, -34, -64, 46, -68, -86, 16, 60, 86, 78, -18, 62, 16, 54, 64, 74, 90, 6, -2, 86, 58, -42, 66, 98, -66, -76, -26, 34, -50, 22, 48, -68, 30, 28, 64, 72, -22], [-2, -74, 78, 24, -38, 56, 24, 80, -18, -44, 92, 88, 62, 40, -94, -48, -8, 90, 98, -72, -60, 72, -78, -20, 6, 12, -8, -40, 58, 4, 48, 62, -92, 0, 56, 82, 70, 86, -30, -82, -98, 58], [40, 74, 56, -38, 56, 84, 36, -70, 60, 72, 48, -58, -84, 54, 62, -34, 78, 32, 84, -80, -12, -14, 68, 62, 10, -42, -28, -34, 98, 66, -78, 74, 4, 50, 20, -66, -58, -74, -92, 90, -20, 0], [-88, 58, 76, 38, 84, 20, 46, -42, -8, 36, -16, -96, 8, 78, 64, 22, 60, -60, -26, -86, 86, 86, -28, -18, 90, 72, -20, 10, 6, 48, 8, -86, -66, 36, 96, -84, -36, -92, 78, 2, -44, -28], [-10, -66, 64, 62, -44, 8, 26, -36, -4, -32, -18, 98, -74, -14, -92, 70, -78, 40, -4, 34, 42, 34, -8, -90, -16, -70, -88, 2, -12, -16, -80, -2, -24, -56, -40, 88, 76, -68, -10, -98, 38, 30], [-94, -76, -40, 78, 34, 8, 80, 16, 12, -60, 18, 74, -40, 44, -20, 96, -52, 24, 8, 76, 26, 6, 14, -52, 68, 22, -2, -88, 52, 56, -28, 26, 74, -92, -4, 62, 18, -56, -8, 28, 48, 28], [-8, -80, 4, 48, 86, 12, -52, 98, -26, 6, -44, 68, -16, 54, 76, -46, 86, 76, 68, -66, 28, -88, -4, 88, 88, -4, 94, 88, -12, -76, 40, 54, -52, 62, -24, -70, 16, 32, -44, -4, 8, 36], [-32, -36, 58, 78, 88, 44, 44, 52, -20, 54, -28, 76, 48, -26, -12, 78, -64, -62, 28, 34, -40, 38, -70, 98, 20, -66, 88, 16, -32, -4, 48, 54, -36, -50, 78, 72, 74, 44, -28, 10, 82, -76], [-50, -76, -34, 44, -16, -74, -84, -60, -72, -82, -72, -54, -10, -84, -8, 20, 62, 28, -46, 80, -60, 28, -28, 22, 94, 32, -66, 4, 2, 34, -28, 88, 28, 32, 2, -80, -44, -92, -18, -84, 20, 54], [-32, 98, -48, -42, 24, 12, -94, -50, 18, -22, -92, 72, -2, -46, -16, -28, 78, 26, -26, -58, 68, 62, -52, -66, -72, 80, -18, 24, 2, -70, 72, -18, 40, -30, 60, -30, 50, 28, 92, 74, 4, -42], [-22, -4, -48, -58, 82, 14, 0, 46, -38, -80, 88, -54, -40, 78, 10, 12, 14, 70, -50, -72, 88, -26, 54, -6, 74, -80, 10, 18, -66, -34, 48, 48, -42, 36, -18, 46, 42, -92, 6, -8, -16, -58], [-2, 92, -90, 50, 62, -78, -64, -22, 90, -22, 22, -8, -80, 28, -68, 92, -68, -34, 92, 56, 60, 14, -52, 82, 20, -66, -56, 82, 96, -66, 28, 46, 88, 46, -66, -8, -44, 2, 6, -24, 52, 74], [68, -92, 40, -46, 26, -46, -92, -46, -94, -58, 64, 54, -80, -50, 38, -28, -80, 76, 94, 8, 72, 78, 12, 70, -48, -70, -98, -26, 8, -60, 30, -94, -58, -80, 88, 68, -82, -2, 70, 96, 2, -52], [56, -74, 80, -20, 48, 32, -18, -16, 10, 32, 66, 4, -14, -82, 32, -72, 62, 96, 74, 48, -78, -88, 34, -76, -40, 74, -88, -32, 54, 46, 0, -50, -92, -82, -54, -44, 92, -2, -6, 52, -84, 48]],), (12,14,20,17,[0, 0, 0, 0, 0, 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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, 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, 1, 1, 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, 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]],), (2,3,3,3,[70, 2, 31, 68],[[15, 67, 61, 47], [51, 13, 77, 81], [86, 65, 71, 97], [66, 11, 26, 46]],), (3,3,5,4,[-76, -70, -56, -54, -46, 80],[[-84, 0, 18, 30, 76, 96], [-24, -4, 14, 80, 80, 84], [-70, -64, -62, 4, 28, 96], [-98, -68, -50, 14, 22, 24], [-30, -20, -16, 8, 42, 52], [-32, -30, -22, 34, 34, 42]],), (22,29,30,37,[0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0],[[1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0], [0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 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, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1], [0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], [1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0]],), (17,13,12,13,[1, 7, 34, 36, 36, 41, 42, 46, 47, 55, 56, 58, 62, 62, 66, 70, 77, 86, 89, 90, 95, 98],[[2, 8, 12, 16, 18, 24, 26, 40, 42, 43, 44, 52, 53, 65, 70, 80, 80, 90, 92, 92, 95, 99], [8, 10, 14, 16, 26, 37, 43, 51, 51, 55, 55, 62, 67, 70, 73, 78, 80, 84, 86, 88, 90, 99], [1, 4, 13, 16, 28, 30, 37, 40, 41, 41, 42, 49, 51, 55, 56, 57, 59, 60, 68, 69, 78, 87], [2, 19, 26, 30, 38, 43, 46, 47, 47, 51, 59, 59, 63, 65, 66, 70, 80, 86, 86, 88, 93, 94], [2, 3, 4, 7, 20, 25, 36, 39, 46, 51, 53, 56, 60, 62, 69, 70, 73, 80, 87, 88, 89, 93], [1, 2, 22, 31, 34, 38, 43, 44, 51, 54, 59, 62, 65, 71, 71, 79, 83, 84, 95, 96, 98, 98], [3, 7, 9, 13, 16, 21, 28, 32, 37, 40, 43, 43, 55, 62, 74, 75, 76, 80, 81, 85, 90, 96], [1, 3, 5, 5, 16, 18, 24, 25, 48, 49, 55, 61, 61, 61, 63, 76, 79, 82, 83, 91, 98, 99], [10, 13, 18, 23, 24, 25, 36, 37, 53, 53, 54, 56, 69, 71, 74, 78, 79, 79, 81, 83, 95, 99], [11, 14, 19, 21, 31, 36, 37, 55, 64, 65, 66, 70, 71, 76, 76, 78, 82, 87, 88, 88, 93, 97], [8, 10, 25, 26, 29, 31, 38, 41, 51, 55, 60, 61, 63, 64, 67, 70, 75, 78, 81, 83, 97, 99], [1, 2, 16, 17, 22, 28, 33, 33, 34, 37, 38, 38, 45, 50, 50, 56, 62, 75, 78, 82, 87, 87], [3, 4, 17, 21, 22, 23, 26, 30, 30, 35, 37, 40, 44, 56, 71, 80, 84, 85, 85, 85, 91, 93], [7, 8, 10, 16, 20, 21, 30, 37, 41, 41, 46, 51, 55, 56, 63, 65, 68, 83, 86, 91, 93, 96], [4, 14, 16, 17, 18, 19, 39, 42, 44, 49, 54, 58, 75, 76, 77, 80, 83, 89, 89, 90, 92, 98], [3, 5, 8, 12, 21, 22, 26, 29, 32, 40, 42, 54, 55, 73, 73, 75, 79, 80, 85, 93, 96, 97], [1, 2, 3, 10, 14, 16, 16, 17, 19, 30, 47, 48, 50, 52, 52, 55, 61, 68, 73, 79, 80, 83], [4, 10, 23, 31, 37, 41, 46, 51, 52, 61, 66, 68, 72, 74, 76, 78, 79, 79, 82, 85, 96, 98], [14, 14, 16, 22, 25, 29, 31, 32, 33, 38, 42, 44, 48, 49, 59, 60, 76, 77, 82, 83, 89, 95], [3, 6, 7, 19, 24, 32, 33, 36, 36, 47, 48, 49, 53, 65, 67, 68, 69, 73, 82, 85, 87, 93], [1, 9, 12, 20, 25, 29, 30, 31, 33, 36, 52, 53, 54, 54, 57, 62, 67, 73, 73, 86, 93, 99], [3, 6, 6, 7, 19, 19, 26, 29, 33, 38, 42, 45, 48, 56, 58, 63, 67, 68, 68, 75, 76, 96]],), (2,2,2,2,[-16, -58, -18, 96, -20],[[-66, -92, 94, -90, -14], [-2, -40, 20, 64, 74], [-14, 6, -2, 92, -40], [10, 24, 8, 44, 96], [-86, 8, 74, -64, 8]],), (29,32,31,42,[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, 1, 1, 1, 1, 1,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 96, 66, 73, 12, 83, 43, 2, 66, 61, 77, 43, 91, 80, 20, 89, 3, 79, 41, 56, 35, 8, 19, 75], [4, 16, 49, 91, 28, 41, 83, 83, 58, 81, 20, 50, 36, 59, 31, 91, 3, 31, 91, 21, 10, 7, 50, 40, 59], [85, 66, 41, 27, 91, 41, 95, 69, 49, 11, 71, 49, 31, 91, 54, 56, 72, 99, 73, 87, 22, 15, 6, 36, 12], [52, 35, 73, 18, 82, 62, 45, 89, 38, 38, 24, 55, 19, 12, 15, 73, 67, 1, 72, 90, 90, 46, 70, 71, 25], [78, 57, 78, 68, 94, 85, 27, 70, 98, 19, 42, 68, 70, 54, 76, 72, 11, 46, 62, 68, 43, 53, 56, 38, 94], [86, 33, 43, 69, 50, 45, 99, 38, 87, 12, 78, 86, 28, 23, 18, 13, 51, 15, 61, 21, 94, 14, 89, 30, 93], [1, 27, 42, 84, 10, 85, 72, 12, 11, 2, 83, 19, 77, 11, 42, 95, 78, 19, 64, 34, 34, 93, 15, 90, 70], [37, 11, 25, 2, 7, 64, 52, 46, 49, 21, 88, 45, 14, 39, 87, 71, 69, 83, 65, 15, 74, 69, 62, 21, 58], [12, 24, 2, 34, 48, 99, 84, 3, 49, 40, 95, 3, 73, 20, 59, 96, 23, 79, 16, 25, 96, 27, 82, 57, 28], [72, 50, 70, 70, 18, 32, 34, 71, 6, 31, 58, 41, 52, 70, 23, 2, 95, 15, 98, 43, 37, 85, 94, 7, 9], [75, 91, 87, 74, 5, 36, 52, 64, 39, 97, 65, 28, 18, 93, 70, 80, 80, 33, 20, 82, 54, 67, 16, 80, 8], [93, 76, 98, 56, 84, 84, 33, 78, 3, 65, 62, 72, 15, 20, 52, 49, 79, 64, 39, 44, 50, 60, 72, 94, 34], [45, 11, 87, 4, 97, 23, 63, 37, 10, 28, 77, 15, 76, 11, 37, 98, 61, 66, 30, 80, 67, 51, 22, 28, 80], [55, 7, 73, 8, 38, 28, 24, 61, 94, 61, 9, 9, 47, 90, 71, 47, 83, 84, 97, 28, 95, 60, 31, 83, 43], [40, 35, 56, 43, 77, 14, 87, 33, 33, 82, 28, 25, 74, 89, 10, 39, 43, 88, 64, 63, 73, 60, 22, 2, 54], [79, 2, 21, 77, 30, 82, 85, 95, 14, 32, 21, 67, 9, 4, 38, 70, 34, 92, 99, 11, 9, 80, 6, 55, 85], [68, 15, 28, 5, 75, 6, 28, 21, 53, 9, 20, 25, 4, 72, 10, 16, 23, 26, 7, 20, 5, 69, 54, 65, 13], [28, 41, 22, 84, 3, 12, 40, 15, 1, 83, 44, 36, 74, 48, 89, 95, 36, 75, 84, 32, 39, 78, 65, 31, 49], [37, 87, 58, 13, 12, 69, 37, 10, 54, 68, 51, 72, 96, 23, 7, 58, 69, 71, 62, 39, 34, 39, 88, 37, 42], [48, 61, 19, 26, 78, 56, 55, 46, 50, 46, 7, 5, 46, 41, 23, 50, 46, 80, 34, 44, 16, 45, 56, 86, 25], [72, 7, 80, 5, 61, 35, 55, 96, 80, 68, 16, 75, 95, 21, 45, 61, 3, 67, 33, 11, 13, 73, 17, 56, 45], [7, 57, 6, 52, 46, 65, 58, 65, 34, 81, 22, 23, 70, 44, 84, 22, 31, 76, 63, 71, 10, 48, 98, 85, 34], [29, 74, 58, 9, 39, 34, 89, 33, 7, 20, 95, 3, 4, 73, 71, 95, 3, 1, 54, 23, 44, 79, 41, 60, 29]],) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_VALID_SEQUENCE_DIVISIBLE_M.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( str ) : mx = "" for i in range ( len ( str ) ) : mx = max ( mx , str [ i : ] ) return mx #TOFILL if __name__ == '__main__': param = [ ('HCoAefoaan',), ('80336005',), ('01111111110',), ('qIH',), ('4210598472796',), ('10101',), ('imqmKdatcgXjs',), ('950509666021',), ('10111101101',), ('wasqgYFvz',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/LEXICOGRAPHICAL_MAXIMUM_SUBSTRING_STRING.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( s ) : for i in range ( len ( s ) ) : if s [ i ].isdigit ( ) != True : return False return True #TOFILL if __name__ == '__main__': param = [ ('MgTOyHo NT',), ('033675175',), ('011001',), ('XLlccG',), ('8223900094410',), ('000',), ('aupp',), ('90202721499',), ('110000100011',), ('MhYHsMQeLhG',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/PROGRAM_CHECK_INPUT_INTEGER_STRING.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import math def f_gold ( n ) : if ( n < 0 ) : return 0 ; if ( n <= 1 ) : return 1 ; digits = 0 ; for i in range ( 2 , n + 1 ) : digits += math.log10 ( i ) ; return math.floor ( digits ) + 1 ; #TOFILL if __name__ == '__main__': param = [ (66,), (7,), (55,), (37,), (76,), (16,), (17,), (95,), (71,), (90,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_DIGITS_FACTORIAL_SET_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : res = 1 for i in range ( 0 , n ) : if arr [ i ] <= res : res = res + arr [ i ] else : break return res #TOFILL if __name__ == '__main__': param = [ ([16, 23, 24, 41, 48, 58, 72, 75],4,), ([-14, -82, 12, -14, -38, 12, 40, 12, -74, 42, -36, 64],8,), ([0, 0, 1, 1, 1, 1],5,), ([17, 89, 44],2,), ([-94, -92, -84, -82, -72, -58, -56, -40, -34, -34, -24, -22, -8, -8, 12, 14, 16, 16, 22, 22, 34, 46, 54, 58, 68, 72, 74, 78, 88, 96],25,), ([0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0],8,), ([2, 12, 13, 13, 13, 16, 28, 32, 34, 41, 41, 47, 49, 49, 50, 52, 58, 61, 63, 65, 67, 68, 68, 74, 80, 80, 84, 84, 89, 93, 94, 98, 99, 99],23,), ([-54],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, 1, 1, 1, 1, 1, 1],33,), ([42, 50, 76, 45, 6, 63, 46, 73, 65, 70, 87, 5, 41, 63, 96, 75, 38, 76, 27, 7, 71, 9, 65, 44, 76, 37, 94, 52, 55, 3, 38, 68, 45, 15, 35, 90, 36, 46, 13, 92, 32, 22, 49, 35, 83],35,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_SMALLEST_VALUE_REPRESENTED_SUM_SUBSET_GIVEN_ARRAY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : arr.sort ( ) i = 0 j = n - 1 while ( i < j ) : print ( arr [ j ] , end = " " ) j -= 1 print ( arr [ i ] , end = " " ) i += 1 if ( n % 2 != 0 ) : print ( arr [ i ] ) #TOFILL if __name__ == '__main__': param = [ ([1, 4, 5, 8, 8, 10, 11, 13, 14, 15, 16, 19, 20, 20, 23, 31, 33, 34, 37, 41, 42, 43, 43, 44, 46, 46, 50, 55, 55, 61, 63, 65, 66, 67, 68, 79, 79, 84, 84, 84, 86, 89, 92, 96, 96],42,), ([64, 32, -48, -98, 74, -10, 36, 18, 28, 94, -52, 30, 94, -52, 90, -12, -78, 4, -78, 66, -92, -18, -44, -6, -38, -22, 62, 8, -84, -60, -26, 72, -78, 12, 34],19,), ([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],13,), ([61, 41, 24, 22, 96, 75, 48, 83, 22, 93, 85, 67, 37, 48, 98, 13, 58, 89, 56, 99, 14, 55, 7, 3, 11, 68, 50, 16],22,), ([-92, -80, -80, -78, -76, -72, -70, -60, -58, -58, -56, -44, -34, -32, -32, -26, -20, -14, -10, -8, -6, 0, 6, 6, 6, 10, 16, 18, 28, 30, 36, 36, 38, 46, 48, 52, 56, 56, 60, 68, 92, 96],31,), ([0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0],15,), ([4, 10, 12, 13, 15, 17, 24, 26, 30, 31, 36, 41, 41, 45, 49, 56, 57, 57, 66, 75, 75, 78, 85, 93, 94],14,), ([-94, 66, -12, 20, 74, 10, -18, 50, -58, -88, -14, 68, 72, 64, 90, -14, -72, -44, -6, 86, 18, 50, -68, 62, -16, -68, 46, 6, 30, -26, -74, -22, 14, -70, -78, -12, -32, 96, 52, -16, 22, -2],40,), ([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],20,), ([16, 13, 96, 14, 49, 26],4,) ] filled_function_param = [ ([1, 4, 5, 8, 8, 10, 11, 13, 14, 15, 16, 19, 20, 20, 23, 31, 33, 34, 37, 41, 42, 43, 43, 44, 46, 46, 50, 55, 55, 61, 63, 65, 66, 67, 68, 79, 79, 84, 84, 84, 86, 89, 92, 96, 96],42,), ([64, 32, -48, -98, 74, -10, 36, 18, 28, 94, -52, 30, 94, -52, 90, -12, -78, 4, -78, 66, -92, -18, -44, -6, -38, -22, 62, 8, -84, -60, -26, 72, -78, 12, 34],19,), ([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],13,), ([61, 41, 24, 22, 96, 75, 48, 83, 22, 93, 85, 67, 37, 48, 98, 13, 58, 89, 56, 99, 14, 55, 7, 3, 11, 68, 50, 16],22,), ([-92, -80, -80, -78, -76, -72, -70, -60, -58, -58, -56, -44, -34, -32, -32, -26, -20, -14, -10, -8, -6, 0, 6, 6, 6, 10, 16, 18, 28, 30, 36, 36, 38, 46, 48, 52, 56, 56, 60, 68, 92, 96],31,), ([0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0],15,), ([4, 10, 12, 13, 15, 17, 24, 26, 30, 31, 36, 41, 41, 45, 49, 56, 57, 57, 66, 75, 75, 78, 85, 93, 94],14,), ([-94, 66, -12, 20, 74, 10, -18, 50, -58, -88, -14, 68, 72, 64, 90, -14, -72, -44, -6, 86, 18, 50, -68, 62, -16, -68, 46, 6, 30, -26, -74, -22, 14, -70, -78, -12, -32, 96, 52, -16, 22, -2],40,), ([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],20,), ([16, 13, 96, 14, 49, 26],4,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/ALTERNATIVE_SORTING.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : um = dict ( ) curr_sum = 0 for i in range ( n ) : curr_sum += ( - 1 if ( arr [ i ] == 0 ) else arr [ i ] ) if um.get ( curr_sum ) : um [ curr_sum ] += 1 else : um [ curr_sum ] = 1 count = 0 for itr in um : if um [ itr ] > 1 : count += ( ( um [ itr ] * int ( um [ itr ] - 1 ) ) / 2 ) if um.get ( 0 ) : count += um [ 0 ] return int ( count ) #TOFILL if __name__ == '__main__': param = [ ([2, 12, 18, 19, 19, 20, 20, 21, 25, 29, 38, 54, 54, 71, 72, 72, 74, 75, 77, 78, 80, 80, 81, 84, 97, 97],24,), ([10, 70, 24, -38, 32, -68, 88, -28, -24, -70, -64, 50, -30, 64, 54, -6, 18, -30, -30, -62, -10, 94, -54, -22, -88, 96, 22, 26, -92, -40, -76, 46, 36, 30, 24, -52, 0],24,), ([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],11,), ([66, 50, 17, 15, 86, 84, 87, 24, 81, 23, 71, 31, 13, 72, 58, 19, 29, 28, 40, 14, 48, 48, 81, 4, 52, 88, 54, 56, 10, 12, 58, 55, 7, 66, 15, 73, 22, 2, 20, 27, 57, 56, 56, 31, 9, 55],40,), ([-98, -62, -60, 16, 78, 82],5,), ([1, 0, 1],2,), ([2, 31, 34, 64],2,), ([-70, 90, -10, -64, -76, -74, -12, -44, -48, -54, 76, -78, 8, 0, 0, 78, -28, 6, 98, -84, 60, 60, 2, 48, -96, -28, -78, -76, -56, -26, -60, 50, 44, 34, -90, 80, -30, -98, 62, 36, -46, -72],25,), ([1, 1, 1],1,), ([37, 70, 80, 61, 86, 10, 17, 98, 54, 89, 87, 84, 11, 55, 3, 52, 4, 90, 98, 31, 20, 62, 71, 58, 58, 6, 92, 5, 99, 99, 72, 40, 82, 54, 23, 19, 85, 91, 62, 98, 62, 72, 93, 74],27,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_SUBARRAYS_EQUAL_NUMBER_1S_0S.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : invcount = 0 for i in range ( 1 , n - 1 ) : small = 0 for j in range ( i + 1 , n ) : if ( arr [ i ] > arr [ j ] ) : small += 1 great = 0 ; for j in range ( i - 1 , - 1 , - 1 ) : if ( arr [ i ] < arr [ j ] ) : great += 1 invcount += great * small return invcount #TOFILL if __name__ == '__main__': param = [ ([4, 75, 89],1,), ([84, -66, -52, 34, -28, -6, 20, 22, -78, -26, 14, 24, -92, -18, 32, -94, -64, -38, 56, 4, -10, 58, -66, -58, -10, -8, -62, -60, -26],26,), ([0, 0, 0, 1, 1, 1, 1, 1],7,), ([18, 7, 43, 57, 94, 37, 38, 41, 59, 64, 97, 29, 51, 37, 64, 91, 42, 83, 13, 22, 68],17,), ([-94, -86, -84, -84, -82, -66, -62, -58, -52, -48, -44, -40, -38, -32, -22, -22, -22, -14, -8, -6, -6, 0, 2, 20, 20, 26, 32, 32, 52, 56, 66, 74, 76, 80, 80, 86, 88, 94],34,), ([0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0],9,), ([4, 8, 15, 19, 24, 31, 33, 36, 38, 45, 45, 52, 54, 65, 73, 75, 83, 84, 90, 92, 93],19,), ([80, -30, -44, 76, -96, 2, 22, -30, 36, -6, 88, -60, -90, -52, 78, 90, -52],10,), ([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],7,), ([74, 71, 28, 45, 14, 31, 17, 10, 82, 27, 45, 73, 93, 87, 57, 58],10,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_INVERSIONS_OF_SIZE_THREE_IN_A_GIVE_ARRAY_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( str ) : res = ord ( str [ 0 ] ) - 48 for i in range ( 1 , len ( str ) ) : if ( str [ i ] == '0' or str [ i ] == '1' or res < 2 ) : res += ord ( str [ i ] ) - 48 else : res *= ord ( str [ i ] ) - 48 return res #TOFILL if __name__ == '__main__': param = [ ('pR',), ('9518',), ('1',), ('nNMCIXUCpRMmvO',), ('3170487',), ('0100101010',), ('Z rONcUqWb',), ('00419297',), ('00',), ('r',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CALCULATE_MAXIMUM_VALUE_USING_SIGN_TWO_NUMBERS_STRING.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : arr.sort ( ) for i in range ( 0 , n - 1 , 2 ) : arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ] #TOFILL if __name__ == '__main__': param = [ ([5, 11, 14, 14, 17, 20, 30, 35, 43, 44, 44, 45, 51, 56, 56, 61, 63, 65, 70, 71, 83],20,), ([52, 80, -10, 54, 58, -78, -30, -98],6,), ([0, 0, 0, 1, 1, 1, 1, 1, 1],5,), ([26, 83, 21, 22, 58, 42, 4, 14, 11, 53, 33, 3, 92, 44],10,), ([-94, -78, -76, -42, -26, -16, -10, 4, 16, 38, 60, 86, 98],9,), ([1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0],8,), ([5, 12, 20, 26, 30, 35, 39, 44, 54, 56, 70, 72, 74, 74, 79, 80, 88, 95, 95, 98],10,), ([-80, 22, 36, 90, -22, -10, 40, -10, -68, 88, 48, 22, 8, 2, -76, -88, -2, 66, -84, 42, 0],12,), ([0, 0, 0, 1, 1, 1, 1, 1, 1],4,), ([61, 79, 82, 75, 51, 64, 20, 42, 57, 70, 9, 22, 64, 38, 60, 53, 53, 56, 24, 37, 52, 67, 47, 2, 59, 89, 82, 11, 22],20,) ] filled_function_param = [ ([5, 11, 14, 14, 17, 20, 30, 35, 43, 44, 44, 45, 51, 56, 56, 61, 63, 65, 70, 71, 83],20,), ([52, 80, -10, 54, 58, -78, -30, -98],6,), ([0, 0, 0, 1, 1, 1, 1, 1, 1],5,), ([26, 83, 21, 22, 58, 42, 4, 14, 11, 53, 33, 3, 92, 44],10,), ([-94, -78, -76, -42, -26, -16, -10, 4, 16, 38, 60, 86, 98],9,), ([1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0],8,), ([5, 12, 20, 26, 30, 35, 39, 44, 54, 56, 70, 72, 74, 74, 79, 80, 88, 95, 95, 98],10,), ([-80, 22, 36, 90, -22, -10, 40, -10, -68, 88, 48, 22, 8, 2, -76, -88, -2, 66, -84, 42, 0],12,), ([0, 0, 0, 1, 1, 1, 1, 1, 1],4,), ([61, 79, 82, 75, 51, 64, 20, 42, 57, 70, 9, 22, 64, 38, 60, 53, 53, 56, 24, 37, 52, 67, 47, 2, 59, 89, 82, 11, 22],20,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SORT_ARRAY_WAVE_FORM_2.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : i = - 1 j = 0 while ( j != n ) : if ( arr [ j ] % 2 == 0 ) : i = i + 1 arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ] j = j + 1 for i in arr : print ( str ( i ) + " " , end = '' ) #TOFILL if __name__ == '__main__': param = [ ([20, 67],1,), ([-54, 22, -42, -22, -48, -20, 34, -50, -22, -30, -94, 62, -24, 70, -54, -38, 84],11,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,), ([62, 45, 87, 31, 67, 53, 61, 9, 20, 8, 99, 18, 69, 54, 99, 64, 35, 88, 85, 74, 58, 93, 65, 30, 96, 4, 77, 24, 54, 88, 43, 84, 62, 34, 93],28,), ([-28, -6, 18, 42, 98],2,), ([0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],21,), ([10, 42, 46],2,), ([88, 4, -88, 2, -16, -74, -18, -60, 86, 88, -2, 82, -8, 54, -84, -4, 32, 20],17,), ([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],35,), ([80, 52, 9, 56, 68, 69, 48, 40, 64, 73, 44, 4, 97, 20, 25, 66, 46, 64, 72, 79, 24],15,) ] filled_function_param = [ ([20, 67],1,), ([-54, 22, -42, -22, -48, -20, 34, -50, -22, -30, -94, 62, -24, 70, -54, -38, 84],11,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,), ([62, 45, 87, 31, 67, 53, 61, 9, 20, 8, 99, 18, 69, 54, 99, 64, 35, 88, 85, 74, 58, 93, 65, 30, 96, 4, 77, 24, 54, 88, 43, 84, 62, 34, 93],28,), ([-28, -6, 18, 42, 98],2,), ([0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],21,), ([10, 42, 46],2,), ([88, 4, -88, 2, -16, -74, -18, -60, 86, 88, -2, 82, -8, 54, -84, -4, 32, 20],17,), ([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],35,), ([80, 52, 9, 56, 68, 69, 48, 40, 64, 73, 44, 4, 97, 20, 25, 66, 46, 64, 72, 79, 24],15,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SEGREGATE_EVEN_ODD_NUMBERS_SET_3.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( high , low , n ) : if ( n <= 0 ) : return 0 return max ( high [ n - 1 ] + f_gold ( high , low , ( n - 2 ) ) , low [ n - 1 ] + f_gold ( high , low , ( n - 1 ) ) ) ; #TOFILL if __name__ == '__main__': param = [ ([1, 3, 9, 10, 13, 14, 15, 15, 17, 22, 23, 28, 30, 31, 37, 42, 45, 62, 62, 68, 68, 68, 78, 79, 82, 84, 87, 90, 99],[5, 10, 11, 14, 16, 22, 24, 30, 34, 35, 37, 37, 39, 41, 42, 42, 43, 55, 57, 63, 71, 76, 83, 83, 85, 90, 91, 97, 99],18,), ([-78, -12, 26, 80, 50, 4, -80, 86, 12, -2, 18, -50, -90, 56, -50, 88, -62, 96, -44, -82, 56],[-44, -14, 14, 0, 30, 78, 40, -12, -44, -16, 60, -12, -50, -66, 70, -98, -56, 48, -82, 94, 14],16,), ([1],[1],0,), ([21, 28, 13, 48, 26, 49, 16, 70, 81, 35, 74, 12, 97, 61, 10, 84, 94, 78, 40, 30, 30, 84, 41, 4, 95, 79, 38, 29, 9],[49, 88, 25, 93, 24, 56, 47, 44, 33, 27, 86, 57, 21, 25, 64, 44, 37, 99, 36, 54, 17, 29, 37, 17, 26, 43, 61, 27, 21],25,), ([-80, -36, -32, -20, -14, -12, 10, 12, 72],[-76, -54, -50, -28, 0, 58, 70, 78, 90],4,), ([1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1],[0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1],24,), ([1, 7, 9, 10, 13, 14, 15, 20, 23, 24, 24, 24, 26, 27, 29, 31, 32, 33, 34, 35, 46, 48, 49, 51, 51, 53, 53, 56, 56, 60, 62, 64, 64, 70, 73, 73, 73, 74, 77, 78, 79, 79, 79, 80, 86, 89, 89, 92, 98],[1, 3, 3, 4, 8, 8, 10, 10, 10, 12, 12, 15, 15, 22, 23, 28, 28, 30, 31, 33, 34, 35, 36, 36, 36, 42, 44, 44, 51, 54, 57, 58, 59, 59, 63, 65, 66, 68, 69, 71, 73, 76, 77, 78, 79, 79, 86, 87, 93],31,), ([56, 48, 40, -56, 44, -86, -28, -32, -34, 4, -94, -14, 28, -74],[82, -40, -16, -64, 12, -6, 60, 48, -58, -4, 42, -28, 24, -58],8,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],16,), ([85, 13, 35, 57, 8, 48, 65, 54, 88, 7, 66, 30, 47, 51],[1, 42, 42, 89, 3, 21, 49, 98, 4, 59, 26, 85, 53, 34],8,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/DYNAMIC_PROGRAMMING_HIGH_EFFORT_VS_LOW_EFFORT_TASKS_PROBLEM.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : num = n ; dec_value = 0 ; base = 1 ; temp = num ; while ( temp ) : last_digit = temp % 10 ; temp = int ( temp / 10 ) ; dec_value += last_digit * base ; base = base * 8 ; return dec_value ; #TOFILL if __name__ == '__main__': param = [ (37,), (25,), (63,), (66,), (32,), (5,), (41,), (82,), (54,), (5,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/PROGRAM_OCTAL_DECIMAL_CONVERSION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( num ) : l = len ( num ) count_zero = 0 i = 1 while i < l : ch = num [ i ] if ( ch == "0" ) : count_zero = count_zero + 1 i = i + 1 return count_zero #TOFILL if __name__ == '__main__': param = [ ('HLlQWSphZcIC',), ('080287724',), ('0000100000',), (' Q',), ('4247040983',), ('00001011101',), ('LbNsnYTHmLbCf',), ('24',), ('110',), ('ie',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_WHETHER_NUMBER_DUCK_NUMBER_NOT.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : return 1162261467 % n == 0 #TOFILL if __name__ == '__main__': param = [ (1,), (3,), (27,), (9,), (-9,), (11,), (57,), (21,), (60,), (44,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_WHETHER_GIVEN_INTEGER_POWER_3_NOT.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , k ) : count = 0 for i in range ( 0 , n ) : if ( arr [ i ] <= k ) : count = count + 1 bad = 0 for i in range ( 0 , count ) : if ( arr [ i ] > k ) : bad = bad + 1 ans = bad j = count for i in range ( 0 , n ) : if ( j == n ) : break if ( arr [ i ] > k ) : bad = bad - 1 if ( arr [ j ] > k ) : bad = bad + 1 ans = min ( ans , bad ) j = j + 1 return ans #TOFILL if __name__ == '__main__': param = [ ([7, 12, 15, 30, 33, 34, 53, 66, 73, 74, 76, 77, 85, 90],9,8,), ([-62, -20, -26, -24, 92, 66, -74, -4, 18, -82, -36, 92, -4, 92, -80, 56, -24, 4, -48, -10, -14, -46, -16, -58, -58, -6, -68, -22, -82, -16, 76, -30, -86, -38, -66, 28, 58, 30, -44, -56],24,28,), ([0, 0, 0, 0, 0, 1, 1],5,6,), ([8, 48, 64, 77, 61, 60, 96, 95, 41, 68, 9, 67, 10, 66, 16, 59, 83, 21, 47, 16, 13, 85, 52, 11, 48, 31, 99, 57, 57, 44, 66, 93, 80, 69, 23, 2, 55, 90],36,24,), ([-80, -58, -40, -34, 14, 36, 48, 56, 58, 60, 84, 90, 92, 92],7,8,), ([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1],26,23,), ([4, 4, 8, 9, 13, 17, 18, 19, 21, 22, 22, 23, 27, 28, 30, 44, 46, 48, 53, 53, 55, 60, 61, 62, 68, 70, 70, 71, 73, 80, 82, 82, 85, 88, 90, 93, 99],28,36,), ([-28, 50, 82, -32, 32, -78, 12, 50, 38, 34, -10, 6, 86, -56, -2],13,9,), ([0, 0, 0, 0, 1, 1, 1, 1, 1, 1],9,8,), ([37, 88, 83, 91, 11, 39, 98, 70, 93, 74, 24, 90, 66, 3, 6, 28],12,12,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_SWAPS_REQUIRED_BRING_ELEMENTS_LESS_EQUAL_K_TOGETHER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : return - 1 if ( n & 1 ) else 1 #TOFILL if __name__ == '__main__': param = [ (67,), (2,), (58,), (6,), (42,), (17,), (37,), (44,), (23,), (40,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CASSINIS_IDENTITY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , sum ) : for i in range ( n ) : curr_sum = arr [ i ] j = i + 1 while j <= n : if curr_sum == sum : print ( "Sum found between" ) print ( "indexes %d and %d" % ( i , j - 1 ) ) return 1 if curr_sum > sum or j == n : break curr_sum = curr_sum + arr [ j ] j += 1 print ( "No subarray found" ) return 0 #TOFILL if __name__ == '__main__': param = [ ([4, 8, 8, 10, 15, 18, 19, 22, 25, 26, 30, 32, 35, 36, 40, 41, 43, 48, 53, 57, 59, 63, 64, 68, 71, 76, 76, 77, 78, 89, 96, 97],26,23,), ([-78, 16, -16, -10, -2, -38, 58, -72, -78, 50, -68, -16, -96, 82, 70, 2, -20],9,12,), ([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],9,11,), ([16, 10, 55, 43, 46, 74, 57, 65, 86, 60, 28, 6, 92],10,6,), ([-98, -98, -90, -84, -84, -80, -76, -76, -70, -54, -48, -46, -44, -42, -38, -14, -12, -4, 6, 8, 24, 28, 32, 40, 40, 42, 64, 84, 98],23,19,), ([0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1],12,8,), ([2, 10, 40, 45, 56, 66, 66, 70, 75, 83, 93, 98],10,10,), ([-20, 30, 56, -68, 54, -6, 78, -86, 88, -66, 76, -66, 62, 78, 22, 46, -94, -10, 18, 16, -36, 34, -98, -84, -40, 98, 82, 10, 12, 54, -88],30,17,), ([0, 0, 1, 1],2,2,), ([38, 24, 12],1,1,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_SUBARRAY_WITH_GIVEN_SUM.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : if ( n == 1 ) : return arr [ 0 ] dec = [ 0 for i in range ( n + 1 ) ] inc = [ 0 for i in range ( n + 1 ) ] dec [ 0 ] = inc [ 0 ] = arr [ 0 ] flag = 0 for i in range ( 1 , n ) : for j in range ( i ) : if ( arr [ j ] > arr [ i ] ) : dec [ i ] = max ( dec [ i ] , inc [ j ] + arr [ i ] ) flag = 1 elif ( arr [ j ] < arr [ i ] and flag == 1 ) : inc [ i ] = max ( inc [ i ] , dec [ j ] + arr [ i ] ) result = - 2147483648 for i in range ( n ) : if ( result < inc [ i ] ) : result = inc [ i ] if ( result < dec [ i ] ) : result = dec [ i ] return result #TOFILL if __name__ == '__main__': param = [ ([2, 5, 9, 15, 15, 20, 21, 26, 28, 32, 34, 38, 42, 42, 42, 46, 47, 48, 50, 54, 55, 60, 60, 61, 63, 63, 66, 74, 79, 80, 85, 91, 93],23,), ([-98],0,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1],6,), ([70, 5, 20, 22, 44, 94, 69, 89, 45, 92, 56, 58, 36, 91, 82, 95, 9, 60, 4, 34, 37, 95, 38, 47, 81, 68, 73, 15, 88, 8, 95, 28, 97, 12, 24, 5, 26, 82, 47, 88, 28, 33, 17, 28, 11, 71, 74],24,), ([-98, -96, -94, -94, -92, -86, -86, -84, -82, -68, -66, -66, -50, -48, -46, -36, -26, -8, -6, 8, 14, 16, 18, 22, 32, 48, 48, 50, 62, 70, 70, 74, 78, 78, 84, 86, 92, 94, 98],32,), ([0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1],5,), ([1, 2, 8, 8, 12, 14, 19, 24, 25, 32, 36, 45, 47, 53, 54, 56, 56, 58, 59, 60, 65, 68, 86, 86, 91, 98],13,), ([-94, 88, 94, 78, -34, 84, -32, 68, -72, 80],7,), ([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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],30,), ([76, 62, 62, 61, 63, 15, 61, 74, 50, 86, 60, 35, 91, 32, 93, 14, 52, 18, 14, 39],18,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MAXIMUM_SUM_ALTERNATING_SUBSEQUENCE_SUM.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , n ) : count = dict ( ) for i in range ( n ) : if count.get ( a [ i ] ) : count [ a [ i ] ] += 1 else : count [ a [ i ] ] = 1 ; next_missing = 1 for i in range ( n ) : if count [ a [ i ] ] != 1 or a [ i ] > n or a [ i ] < 1 : count [ a [ i ] ] -= 1 while count.get ( next_missing ) : next_missing += 1 a [ i ] = next_missing count [ next_missing ] = 1 #TOFILL if __name__ == '__main__': param = [ ([19],0,), ([-47, 72],1,), ([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],18,), ([93, 3, 20, 59, 36, 19, 90, 67, 19, 20, 96, 71, 52, 33, 40, 39],9,), ([-98, -93, -91, -89, -63, -58, -52, -52, -46, -40, -25, -16, -10, -1, -1, 4, 12, 12, 13, 13, 16, 20, 29, 29, 31, 40, 44, 47, 48, 51, 52, 52, 59, 60, 61, 64, 66, 78, 85, 97],22,), ([0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0],12,), ([4, 6, 8, 17, 19, 21, 22, 24, 27, 27, 28, 30, 30, 30, 32, 33, 35, 37, 38, 44, 46, 46, 48, 49, 51, 53, 54, 59, 60, 61, 63, 64, 64, 69, 76, 85, 86, 87, 92, 93, 93, 95, 97, 97, 97, 98, 99, 99],26,), ([-75, -46, -42, -33, 4, 74, -76, 14, -68, 75, -14, 51, 94, 27, 55, 30, -83, 4],9,), ([0, 0, 0, 0, 0, 1, 1, 1, 1],5,), ([24, 13, 60, 7, 57, 36, 45, 20, 65, 8, 16, 14, 76, 87, 15, 92, 98, 66, 32, 87, 63, 86, 51, 25, 58],24,) ] filled_function_param = [ ([19],0,), ([-47, 72],1,), ([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],18,), ([93, 3, 20, 59, 36, 19, 90, 67, 19, 20, 96, 71, 52, 33, 40, 39],9,), ([-98, -93, -91, -89, -63, -58, -52, -52, -46, -40, -25, -16, -10, -1, -1, 4, 12, 12, 13, 13, 16, 20, 29, 29, 31, 40, 44, 47, 48, 51, 52, 52, 59, 60, 61, 64, 66, 78, 85, 97],22,), ([0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0],12,), ([4, 6, 8, 17, 19, 21, 22, 24, 27, 27, 28, 30, 30, 30, 32, 33, 35, 37, 38, 44, 46, 46, 48, 49, 51, 53, 54, 59, 60, 61, 63, 64, 64, 69, 76, 85, 86, 87, 92, 93, 93, 95, 97, 97, 97, 98, 99, 99],26,), ([-75, -46, -42, -33, 4, 74, -76, 14, -68, 75, -14, 51, 94, 27, 55, 30, -83, 4],9,), ([0, 0, 0, 0, 0, 1, 1, 1, 1],5,), ([24, 13, 60, 7, 57, 36, 45, 20, 65, 8, 16, 14, 76, 87, 15, 92, 98, 66, 32, 87, 63, 86, 51, 25, 58],24,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHANGE_ARRAY_PERMUTATION_NUMBERS_1_N.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n , d ) : return ( n & ( d - 1 ) ) #TOFILL if __name__ == '__main__': param = [ (54,59,), (39,84,), (35,81,), (9,60,), (62,68,), (16,16,), (93,96,), (32,38,), (39,62,), (63,16,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COMPUTE_MODULUS_DIVISION_BY_A_POWER_OF_2_NUMBER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(arr, l, h, key): if l > h: return - 1 mid = (l + h) // 2 if arr[mid] == key: return mid if arr[l] <= arr[mid]: if key >= arr[l] and key <= arr[mid]: return f_gold(arr, l, mid - 1, key) return f_gold(arr, mid + 1, h, key) if key >= arr[mid] and key <= arr[h]: return f_gold(a, mid + 1, h, key) return f_gold(arr, l, mid - 1, key) #TOFILL if __name__ == '__main__': param = [ ([5, 6, 7, 8, 9, 10, 1, 2, 3], 0, 8, 3,), ([30, 40, 50, 10, 20], 0, 4, 40,), ([40, 50, 55, 67, 70, 4, 5, 6, 7], 0, 9, 67,), ([14, 41, 38, 67, 99, 11, 96, 52, 4, 29, 22, 57, 3, 45, 14, 76, 70, 38, 93, 5, 74, 50, 18, 17, 20, 34, 51, 69, 86, 73], 0, 16, 15,), ([-90, -88, -88, -82, -62, -44, -38, -38, -36, -34, -34, -32, -30, -28, -28, -26, -24, -20, -16, -16, -16, - 6, -6, 2, 6, 8, 10, 14, 18, 18, 46, 50, 50, 54, 56, 58, 58, 60, 62, 70, 70, 74, 82, 84, 88, 94, 96], 0, 24, 24,), ([1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0], 0, 10, 10,), ([4, 7, 9, 10, 10, 11, 14, 16, 17, 21, 25, 27, 31, 34, 34, 34, 38, 41, 42, 42, 52, 56, 56, 58, 60, 66, 67, 68, 68, 70, 72, 74, 76, 82, 88, 88, 88, 89, 91, 93, 94, 95, 95], 0, 23, 39,), ([92, 60, -60, 64, 18, 70, 56, 34, 58, 14, 28, -72, -22, -74, -46, -28, 64, 88, 18, -50, -14, -20, 64, 6, -4, - 98, 60, 98, 84, -58, -98, 66, 80, 68, -42, -58, 82, 90, -72, 34, 34, 80, 88, -64, 66, -20, -26], 0, 25, 25,), ([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, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 0, 40, 29,), ([33, 18, 98, 47, 76, 58, 29, 68, 62, 78, 12, 95, 20, 88, 39, 12, 43, 45, 5, 45, 96, 64, 38, 28, 70, 25, 65, 79, 39], 0, 16, 28,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SEARCH_AN_ELEMENT_IN_A_SORTED_AND_PIVOTED_ARRAY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : result = 0 for i in range ( 1 , 10 ) : s = [ ] if ( i <= n ) : s.append ( i ) result += 1 while len ( s ) != 0 : tp = s [ - 1 ] s.pop ( ) for j in range ( tp % 10 , 10 ) : x = tp * 10 + j if ( x <= n ) : s.append ( x ) result += 1 return result #TOFILL if __name__ == '__main__': param = [ (69,), (72,), (88,), (7,), (66,), (34,), (23,), (37,), (33,), (21,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_NATURAL_NUMBERS_WHOSE_PERMUTATION_GREATER_NUMBER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( x ) : return ( x << 1 ) + x + ( x >> 1 ) #TOFILL if __name__ == '__main__': param = [ (58,), (16,), (82,), (33,), (88,), (51,), (81,), (38,), (79,), (89,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MULTIPLY_AN_INTEGER_WITH_3_5.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( y , x ) : return ( y % pow ( 2 , x ) ) #TOFILL if __name__ == '__main__': param = [ (57,76,), (80,46,), (84,96,), (35,16,), (3,84,), (42,79,), (7,2,), (99,83,), (13,61,), (44,8,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_VALUE_OF_Y_MOD_2_RAISED_TO_POWER_X.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import math def f_gold ( s ) : return ( ( 3 * math.sqrt ( 3 ) * ( s * s ) ) / 2 ) ; #TOFILL if __name__ == '__main__': param = [ (1772.6589509256596,), (-599.737107809315,), (1074.1765931782,), (-1182.4087746714795,), (8083.035797247716,), (-6126.414356565494,), (5370.057504189614,), (-6947.020794285176,), (2110.5107873533325,), (-6458.751326919488,) ] n_success = 0 for i, parameters_set in enumerate(param): if abs(1 - (0.0000001 + abs(f_gold(*parameters_set))) / (abs(f_filled(*parameters_set)) + 0.0000001)) < 0.001: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/AREA_OF_A_HEXAGON.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( mat , n ) : transpose = [ [ 0 ] * n ] * n for i in range ( n ) : for j in range ( n ) : transpose [ i ] [ j ] = mat [ j ] [ i ] flip = 0 for i in range ( n ) : for j in range ( n ) : if transpose [ i ] [ j ] != mat [ i ] [ j ] : flip += 1 return int ( flip / 2 ) #TOFILL if __name__ == '__main__': param = [ ([[1, 2, 4, 5, 6, 7, 7, 12, 13, 13, 16, 17, 17, 20, 22, 24, 26, 27, 31, 34, 39, 39, 40, 46, 48, 49, 56, 57, 57, 62, 64, 69, 74, 77, 81, 82, 85, 88, 93, 94, 95, 96, 97, 98, 98], [3, 6, 8, 12, 13, 15, 21, 21, 21, 24, 25, 26, 26, 26, 27, 27, 28, 28, 34, 36, 44, 44, 47, 50, 51, 53, 60, 60, 63, 64, 65, 65, 69, 73, 75, 81, 84, 85, 86, 86, 89, 90, 93, 94, 97], [1, 5, 8, 10, 22, 23, 23, 24, 28, 35, 39, 41, 44, 44, 45, 48, 51, 56, 56, 58, 59, 64, 65, 68, 68, 70, 71, 72, 72, 72, 75, 77, 78, 81, 81, 82, 82, 83, 83, 87, 90, 92, 97, 99, 99], [8, 8, 8, 9, 10, 11, 13, 13, 15, 17, 17, 17, 20, 24, 24, 25, 28, 29, 34, 35, 36, 37, 37, 38, 45, 46, 47, 52, 54, 56, 60, 69, 71, 73, 75, 76, 86, 90, 91, 93, 93, 96, 96, 96, 96], [1, 5, 7, 10, 14, 14, 17, 17, 18, 20, 22, 24, 28, 29, 32, 39, 40, 45, 45, 48, 52, 52, 54, 56, 57, 58, 59, 59, 60, 67, 67, 68, 72, 75, 80, 80, 81, 83, 84, 84, 86, 87, 89, 94, 98], [3, 4, 5, 7, 7, 7, 9, 12, 12, 19, 21, 30, 31, 33, 36, 37, 37, 41, 42, 49, 49, 54, 55, 55, 56, 63, 65, 73, 75, 78, 78, 78, 80, 80, 83, 84, 84, 84, 85, 85, 92, 95, 96, 97, 98], [1, 1, 3, 4, 6, 7, 11, 11, 11, 14, 18, 29, 29, 30, 30, 32, 34, 34, 38, 40, 40, 41, 45, 49, 50, 52, 56, 59, 61, 61, 61, 63, 64, 69, 69, 70, 76, 77, 79, 79, 87, 88, 91, 99, 99], [6, 6, 10, 17, 19, 19, 22, 30, 31, 33, 34, 39, 39, 40, 41, 43, 43, 45, 46, 49, 49, 51, 51, 53, 57, 58, 59, 60, 66, 68, 68, 69, 72, 76, 77, 80, 83, 84, 88, 89, 95, 95, 95, 95, 99], [3, 3, 7, 7, 8, 9, 9, 10, 10, 14, 15, 15, 15, 15, 15, 17, 19, 20, 21, 23, 24, 24, 25, 29, 30, 30, 43, 43, 44, 47, 49, 49, 58, 60, 63, 63, 72, 73, 77, 80, 81, 83, 85, 85, 86], [4, 8, 11, 12, 13, 14, 14, 15, 17, 22, 27, 29, 32, 32, 34, 35, 37, 37, 38, 38, 39, 49, 55, 60, 61, 61, 62, 64, 66, 68, 73, 76, 78, 78, 81, 83, 84, 90, 90, 91, 95, 95, 97, 99, 99], [1, 3, 5, 6, 14, 15, 18, 19, 27, 29, 30, 30, 31, 32, 36, 39, 41, 44, 50, 51, 51, 53, 56, 57, 63, 63, 68, 69, 70, 73, 73, 73, 76, 81, 82, 84, 86, 86, 86, 87, 89, 92, 92, 94, 95], [1, 1, 2, 3, 5, 10, 11, 16, 24, 25, 26, 28, 29, 32, 35, 37, 40, 46, 51, 52, 54, 55, 58, 59, 63, 64, 67, 70, 71, 72, 72, 73, 77, 77, 77, 78, 79, 82, 83, 87, 87, 88, 93, 96, 97], [1, 1, 3, 5, 7, 10, 13, 14, 22, 27, 28, 30, 32, 33, 36, 37, 39, 42, 44, 44, 45, 46, 46, 46, 50, 53, 53, 60, 67, 69, 72, 73, 77, 78, 81, 81, 84, 85, 85, 88, 88, 88, 89, 96, 98], [3, 6, 9, 16, 19, 22, 23, 23, 26, 33, 36, 37, 39, 40, 43, 44, 45, 45, 46, 48, 49, 53, 55, 58, 58, 60, 63, 65, 67, 68, 70, 78, 78, 79, 85, 86, 86, 87, 88, 89, 89, 90, 91, 91, 93], [2, 6, 10, 10, 11, 14, 15, 20, 23, 23, 27, 27, 28, 29, 29, 30, 30, 31, 32, 33, 34, 37, 38, 39, 45, 53, 56, 56, 57, 61, 62, 62, 64, 65, 66, 66, 66, 67, 69, 80, 82, 85, 89, 96, 97], [5, 8, 15, 19, 22, 23, 25, 28, 32, 33, 33, 35, 36, 39, 39, 41, 41, 41, 41, 43, 48, 49, 54, 55, 56, 62, 65, 70, 74, 75, 78, 79, 79, 79, 80, 81, 81, 85, 85, 89, 94, 94, 95, 95, 98], [1, 4, 7, 8, 10, 11, 12, 15, 16, 18, 19, 19, 21, 22, 23, 27, 28, 31, 34, 36, 36, 37, 38, 40, 41, 42, 45, 50, 50, 53, 54, 56, 57, 62, 63, 64, 65, 74, 78, 82, 88, 89, 89, 91, 95], [3, 4, 4, 5, 5, 6, 11, 13, 18, 20, 21, 24, 25, 26, 30, 31, 33, 34, 37, 38, 45, 45, 48, 50, 51, 51, 53, 59, 72, 77, 77, 79, 80, 80, 82, 82, 83, 83, 87, 90, 91, 92, 92, 97, 98], [3, 9, 14, 14, 14, 16, 16, 19, 19, 20, 22, 24, 28, 29, 33, 33, 36, 36, 38, 44, 49, 49, 54, 58, 59, 64, 70, 71, 73, 73, 74, 74, 76, 76, 77, 77, 80, 81, 82, 84, 85, 86, 88, 92, 99], [4, 7, 8, 10, 10, 12, 17, 21, 22, 29, 29, 31, 32, 33, 33, 34, 35, 35, 44, 44, 44, 45, 46, 47, 53, 55, 56, 56, 58, 63, 64, 73, 75, 79, 82, 82, 85, 87, 89, 92, 92, 93, 96, 97, 99], [1, 4, 6, 6, 6, 6, 11, 13, 15, 15, 16, 17, 17, 18, 20, 21, 24, 24, 28, 32, 41, 42, 45, 50, 52, 54, 63, 65, 65, 66, 67, 69, 70, 71, 72, 73, 75, 77, 84, 90, 91, 95, 96, 98, 98], [2, 2, 4, 4, 4, 8, 10, 14, 16, 21, 22, 27, 27, 28, 29, 30, 31, 34, 36, 40, 42, 44, 46, 46, 47, 58, 60, 61, 62, 64, 68, 69, 69, 69, 73, 82, 82, 83, 84, 89, 90, 91, 98, 98, 99], [1, 2, 2, 2, 4, 6, 8, 12, 13, 20, 21, 22, 22, 25, 27, 33, 36, 37, 39, 39, 42, 43, 45, 51, 54, 54, 55, 57, 57, 62, 66, 68, 69, 71, 75, 78, 79, 80, 92, 93, 93, 97, 98, 98, 99], [1, 1, 8, 12, 12, 15, 17, 17, 19, 20, 20, 22, 22, 24, 25, 26, 31, 35, 36, 37, 39, 44, 44, 46, 48, 50, 50, 52, 57, 60, 66, 69, 74, 76, 79, 79, 79, 79, 79, 80, 86, 88, 88, 94, 95], [6, 6, 9, 12, 15, 17, 17, 26, 26, 29, 29, 33, 36, 38, 39, 39, 40, 42, 43, 44, 46, 46, 46, 54, 60, 60, 62, 69, 72, 72, 73, 76, 78, 78, 80, 80, 83, 83, 86, 87, 91, 93, 94, 95, 98], [5, 10, 10, 11, 12, 17, 22, 22, 27, 39, 40, 44, 44, 45, 47, 47, 48, 48, 49, 49, 50, 51, 53, 54, 60, 61, 61, 64, 67, 73, 73, 73, 79, 84, 87, 87, 87, 89, 90, 91, 91, 92, 93, 94, 96], [5, 6, 6, 10, 10, 12, 14, 16, 19, 19, 19, 22, 25, 25, 26, 27, 32, 34, 34, 37, 39, 45, 51, 52, 55, 56, 59, 59, 61, 65, 66, 67, 71, 72, 75, 77, 77, 78, 82, 84, 92, 93, 93, 94, 98], [3, 3, 7, 14, 15, 18, 20, 22, 23, 26, 26, 27, 29, 30, 33, 34, 34, 40, 41, 42, 44, 45, 51, 51, 51, 53, 55, 57, 65, 69, 70, 74, 76, 78, 80, 82, 83, 84, 85, 88, 88, 91, 94, 94, 97], [1, 3, 9, 11, 11, 11, 15, 16, 18, 20, 21, 26, 30, 31, 33, 33, 34, 39, 40, 42, 45, 46, 47, 48, 49, 54, 58, 59, 62, 67, 71, 71, 73, 74, 74, 76, 78, 82, 82, 85, 86, 91, 92, 95, 97], [1, 6, 6, 8, 10, 10, 17, 21, 27, 30, 31, 32, 33, 38, 39, 39, 42, 42, 43, 45, 48, 52, 54, 56, 58, 59, 59, 60, 61, 66, 68, 69, 72, 74, 80, 83, 83, 90, 91, 92, 94, 95, 97, 98, 99], [1, 2, 3, 6, 18, 21, 22, 26, 28, 28, 31, 31, 32, 36, 41, 42, 42, 43, 46, 48, 49, 57, 60, 63, 63, 63, 64, 64, 68, 71, 71, 72, 74, 74, 80, 86, 87, 90, 90, 92, 92, 95, 98, 98, 99], [1, 2, 3, 9, 10, 11, 17, 18, 19, 23, 24, 27, 29, 30, 32, 32, 33, 50, 52, 56, 56, 57, 58, 60, 60, 61, 62, 63, 63, 64, 65, 65, 65, 72, 75, 76, 78, 83, 86, 87, 88, 93, 94, 94, 95], [5, 6, 7, 7, 7, 7, 9, 13, 13, 13, 16, 18, 22, 22, 34, 34, 37, 37, 42, 45, 45, 54, 60, 62, 62, 63, 66, 66, 67, 68, 69, 70, 70, 71, 74, 76, 77, 77, 78, 81, 82, 92, 97, 98, 99], [5, 6, 10, 10, 11, 12, 13, 18, 19, 19, 19, 24, 25, 25, 29, 38, 40, 40, 41, 41, 44, 46, 51, 53, 61, 62, 66, 67, 69, 71, 72, 73, 75, 75, 76, 76, 79, 80, 80, 84, 86, 88, 90, 93, 99], [1, 2, 3, 4, 6, 14, 19, 21, 22, 23, 24, 25, 26, 27, 27, 32, 36, 38, 38, 40, 41, 45, 49, 51, 52, 57, 60, 60, 60, 66, 68, 72, 73, 74, 74, 76, 76, 78, 78, 83, 87, 89, 91, 92, 95], [1, 4, 7, 9, 10, 12, 16, 19, 20, 23, 25, 26, 28, 34, 35, 39, 40, 46, 50, 51, 52, 52, 54, 54, 55, 55, 56, 58, 59, 61, 62, 62, 64, 65, 69, 70, 78, 81, 81, 85, 87, 89, 90, 97, 98], [4, 5, 7, 11, 12, 12, 13, 14, 14, 15, 15, 15, 16, 17, 17, 20, 21, 22, 26, 33, 36, 36, 40, 42, 45, 51, 55, 56, 58, 60, 63, 63, 68, 68, 69, 69, 81, 82, 85, 89, 91, 94, 96, 97, 98], [4, 6, 8, 9, 11, 14, 16, 19, 22, 22, 23, 25, 27, 28, 29, 30, 31, 32, 34, 36, 39, 44, 44, 44, 45, 46, 50, 51, 53, 56, 59, 59, 61, 63, 67, 68, 68, 73, 85, 85, 87, 89, 89, 92, 98], [1, 2, 4, 14, 14, 15, 17, 18, 22, 24, 25, 28, 29, 31, 32, 32, 32, 37, 39, 40, 41, 41, 47, 50, 50, 60, 61, 61, 62, 63, 64, 67, 68, 69, 70, 70, 71, 72, 73, 75, 77, 81, 86, 93, 94], [4, 6, 6, 6, 8, 9, 13, 15, 17, 20, 20, 20, 21, 29, 31, 33, 39, 41, 43, 47, 53, 55, 58, 60, 61, 61, 68, 68, 69, 70, 71, 72, 75, 75, 76, 77, 79, 80, 80, 82, 84, 85, 86, 88, 89], [1, 2, 2, 8, 8, 11, 14, 18, 20, 22, 25, 27, 31, 36, 39, 45, 46, 53, 56, 57, 57, 58, 59, 60, 61, 61, 63, 64, 64, 65, 66, 69, 75, 75, 77, 80, 82, 84, 88, 89, 95, 95, 96, 96, 98], [1, 4, 5, 7, 9, 11, 17, 17, 23, 24, 27, 28, 29, 30, 30, 34, 36, 43, 43, 44, 45, 45, 46, 47, 48, 52, 53, 54, 55, 60, 62, 63, 67, 74, 75, 77, 80, 82, 87, 87, 87, 91, 91, 94, 94], [5, 6, 6, 6, 8, 10, 11, 13, 14, 15, 16, 16, 19, 19, 22, 24, 24, 25, 25, 25, 26, 28, 31, 32, 33, 39, 40, 41, 43, 45, 55, 59, 68, 71, 73, 74, 75, 75, 77, 81, 83, 89, 91, 95, 97], [1, 3, 5, 5, 8, 9, 10, 10, 12, 13, 13, 14, 14, 22, 22, 24, 25, 27, 28, 29, 30, 30, 35, 35, 38, 43, 43, 49, 50, 55, 61, 62, 67, 67, 71, 72, 75, 75, 78, 86, 86, 88, 93, 94, 95], [1, 2, 4, 5, 6, 6, 8, 16, 16, 17, 24, 24, 27, 31, 32, 38, 38, 39, 40, 40, 46, 48, 48, 50, 52, 53, 55, 59, 66, 68, 71, 73, 76, 76, 79, 79, 79, 88, 90, 94, 94, 95, 95, 97, 97]],24,), ([[-14, 56, -38, 0, -2, 26, -24, 72, -2, 74, -96, -96, -10, -80, 64, -86, 22, 16, 52, 28, 48, -88, -24, -62, -40, 0, 94, 72, -92, -84, 14, -48, -16, 90, 56], [-14, 50, 20, 58, -70, -22, 6, -4, 84, 62, 6, -26, -74, 72, -54, 58, -4, -86, 12, 18, 44, -36, 42, -82, -60, 68, 76, -22, -68, 38, -70, -84, 86, 56, -88], [-84, 22, 40, 86, -4, 38, 62, -54, -40, 4, -96, -4, -34, 64, -16, 12, 36, 88, -84, -58, 74, 88, -4, -38, -6, -34, -66, 70, -52, -64, 86, -12, 88, -38, -54], [2, 84, 68, 32, 72, -54, -40, -8, -32, -98, -46, -90, 96, -82, 80, 82, 46, 38, 94, -14, -88, 26, 58, -98, -42, 64, -40, 86, 26, -58, -18, -76, -74, 46, -66], [12, 40, -50, -32, -42, 64, 18, -38, -26, 90, -86, 84, 48, -34, 50, 0, -88, 88, 44, -32, 94, -4, 48, 30, 6, 6, 58, -56, -78, -26, -86, -28, -16, -36, -40], [20, 18, 6, 60, -62, -30, -72, -8, -44, -50, 90, 50, -62, 0, 0, 54, -24, -26, -28, 84, -32, -90, -44, 28, -72, 72, -92, -24, -80, 90, 72, -18, -26, -20, 84], [-26, 14, -60, 24, 60, -86, -60, -18, -82, -24, -66, -48, -70, 96, 76, -86, 98, 38, -72, 50, -88, -74, -46, 20, 88, -68, 20, -14, 0, 60, 72, -22, 4, -28, -64], [88, 98, 84, 6, 82, -86, -16, -34, -16, 16, -34, -52, 96, -72, 94, -78, 14, -72, -12, 94, -30, -8, -90, -54, -2, -56, -66, -76, 24, -92, 10, -10, -16, 12, -24], [-74, -44, -90, 22, -90, -58, 48, -62, 14, -96, -26, 28, 96, -82, -58, 38, 74, 14, -48, 82, 72, 22, 88, 12, 60, 14, -86, -12, -52, 10, -24, 20, 24, 4, 90], [-10, -62, 78, -86, 38, -94, -74, -4, -22, 92, 68, -64, -18, 52, -96, -70, 36, -58, 54, 18, 84, -10, -90, -24, 90, 64, -52, -14, -70, -16, 76, 86, 40, -66, -64], [-46, -12, 80, -10, 0, -28, -30, 98, -16, -74, -98, -74, -40, 10, -76, -30, 98, 50, -32, -2, 2, -24, 60, -64, -92, 38, 18, -86, 34, -66, -82, 86, 18, -92, 90], [-10, -46, -82, -12, -74, 46, 68, -64, 66, 0, 18, 86, -70, 10, -84, -32, 36, 54, 8, -58, 78, 96, 96, -62, 10, -42, -20, 96, -12, -20, -22, -66, -36, 12, -74], [46, -4, -26, -96, 94, -76, -70, -94, -24, 6, 48, 70, -22, -24, -64, 62, -6, -70, 26, 50, -30, 26, 8, 64, 56, 76, 78, -34, 38, -98, 10, -20, -14, 54, 94], [68, 42, -72, 44, 66, 14, -68, 60, -16, -68, 22, 6, -46, 80, 32, -56, -98, 34, 80, 26, 12, -92, 36, 82, -76, -78, -2, 2, 88, 84, -90, 38, 60, -26, 32], [-50, 94, 96, -86, -70, -84, 78, -24, 88, -42, -40, 84, 34, -20, 18, -80, 90, -50, 92, 22, -62, 60, 42, -80, -32, -86, 18, 72, -14, -62, -26, 70, -94, 56, -92], [82, -70, 72, 20, 52, 86, -92, -4, 4, 80, 28, -54, 28, -2, -72, 50, 94, 94, 44, 30, -98, -16, -46, -58, 40, -70, -90, -70, 34, 4, 26, 4, -2, 26, -34], [-88, 34, 68, -70, 16, -28, -4, -56, 18, 24, -92, -78, 18, -30, -70, 18, -80, -54, 50, 84, 42, 10, 44, 88, 26, -76, -58, -70, -16, -30, 30, 0, 30, 62, 58], [36, 58, -76, 34, 40, 68, -36, 8, -66, 60, -12, -28, 70, -62, -10, 50, -12, -66, 20, 74, 22, -56, 34, 42, -8, 36, -6, -38, 0, -42, 94, 94, -10, -12, -98], [-2, 74, 12, 68, -8, -22, 28, 28, -42, 92, 10, -86, -22, 70, -34, -46, -74, 52, 70, -56, 40, 58, -96, -64, 50, 0, -92, 0, 54, 58, 88, 82, 92, -48, -50], [38, -64, 26, 62, -46, 50, 82, 44, -12, 34, -6, 24, 70, -64, -22, -74, 92, 42, -78, 54, -78, 8, -40, -62, -98, -44, 40, -22, 42, -46, 80, 80, -32, -56, -82], [80, 86, -86, 10, 6, 50, 62, -54, -18, 66, 68, -74, -12, -8, -76, -44, -42, 0, 92, 98, 28, -12, 68, -92, 42, 46, 26, -74, -36, 84, 2, 94, -82, -2, -80], [78, -30, -56, 42, -88, -74, 68, -62, 90, 26, 92, -12, -98, -40, 88, 86, 24, -14, -42, 6, 54, 22, 16, 30, -20, -36, 50, -74, 52, -28, 44, 4, 94, -82, 18], [92, -32, -8, 20, 80, -20, -26, -22, 82, 74, 54, -26, -78, -52, 66, 48, -66, 78, -76, 42, 56, 70, 52, -86, 96, -74, -56, 50, 62, 84, 84, -50, -42, -44, -78], [34, 58, 96, 86, 70, -82, -14, 20, -66, 88, -40, -38, 86, -40, 56, -34, -14, -32, -42, -78, 90, 46, -64, -58, 6, -30, 86, 72, -4, -42, 16, -98, 56, -58, -72], [-52, -18, -24, 2, 38, 52, -10, -56, 74, -52, -78, -68, -42, -76, -96, -46, -8, -82, -16, 88, 46, 86, -6, -38, 60, -98, 6, -38, 6, -60, -44, -96, 52, 30, 8], [38, -34, -10, 10, -32, -70, -8, 78, -70, 34, -12, 90, -56, 30, -76, -86, 74, -8, -12, -94, -22, 34, -60, 18, 44, 80, 8, 28, 2, 32, -20, -50, -86, -56, -48], [2, -32, 60, -74, -46, -34, -96, -78, 20, 70, 90, 50, -16, 80, -26, 0, -32, 68, 68, -30, -48, -14, -82, -22, -58, -26, -38, -2, 82, -66, 82, -54, -70, 24, 66], [-90, 86, -96, 76, -64, -38, 52, 84, -94, -32, 38, 92, 4, -52, -54, -14, 30, 26, -10, -70, 48, 12, -90, -72, 98, 6, 44, -38, -30, 52, -74, -12, -34, 46, 26], [74, 38, 70, -96, 50, 82, -50, -42, 48, 42, -78, 48, -14, 90, 18, -44, 40, 86, 74, -56, 66, -26, -54, -86, -4, 42, 74, -8, 28, 10, -80, -32, -78, 16, -26], [-36, -2, 56, -40, -26, -54, -36, 60, 24, 62, -22, -52, -90, -88, 52, 72, -92, 72, -6, -22, 4, 80, -44, -80, -24, 40, -48, -22, 6, 68, 96, -96, 88, 84, 56], [0, -94, -6, -4, -74, -52, 94, -80, 48, -76, 18, 0, 28, -78, -24, 86, -20, -30, -94, 8, 26, 82, 24, 66, 20, -24, 24, -30, -12, 50, -88, 50, -96, -70, 88], [20, 36, 14, -68, -4, -98, -42, -44, -94, -26, 36, -66, -8, -64, -84, 10, 78, 8, -6, 22, -34, 40, -66, 54, 12, -94, 66, 30, 70, 16, -54, -4, 86, 42, -52], [96, -36, -90, 26, 22, -48, -62, -10, -58, -54, -30, 56, -22, 74, -8, -76, -24, 24, 80, 30, -44, 80, -20, 18, -62, 56, 64, -4, -74, -16, -54, 88, 54, 94, -80], [72, -16, 92, 36, 62, 30, 94, -98, -24, -36, 32, -20, 40, 54, 96, 66, 90, -38, 80, 74, -54, -94, -78, -40, -10, 68, 82, 38, 76, -42, 6, 50, 94, 6, -52], [-2, -20, 90, -20, 40, -38, -96, -82, 58, 60, -40, 74, -8, 22, -26, 38, -34, -86, -96, 34, -28, 70, 38, 96, -82, 48, 34, 74, 42, -76, -2, 66, -62, 74, -14]],29,), ([[0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1], [0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1]],6,), ([[91, 96, 40, 29, 88, 94, 90, 40, 24, 68, 24, 11, 48, 43, 36, 17, 88, 90, 33, 31, 22, 68, 8, 77, 76, 15, 22, 13, 28], [5, 8, 33, 97, 27, 15, 76, 98, 11, 25, 81, 31, 7, 92, 63, 84, 46, 7, 40, 40, 81, 12, 27, 24, 88, 88, 49, 83, 77], [31, 31, 13, 88, 26, 21, 42, 12, 69, 23, 87, 29, 36, 52, 36, 22, 60, 33, 18, 86, 68, 27, 54, 72, 83, 19, 1, 2, 47], [78, 78, 32, 95, 18, 92, 18, 39, 31, 52, 48, 36, 2, 97, 77, 90, 91, 13, 14, 8, 20, 98, 70, 53, 94, 9, 28, 32, 66], [4, 82, 2, 30, 74, 75, 66, 7, 82, 32, 44, 38, 67, 12, 30, 77, 60, 8, 51, 67, 33, 61, 31, 50, 39, 59, 84, 24, 94], [91, 45, 20, 5, 73, 70, 90, 18, 74, 26, 95, 90, 22, 91, 3, 80, 13, 66, 5, 57, 68, 57, 23, 64, 66, 51, 30, 3, 19], [52, 51, 80, 54, 75, 94, 49, 26, 4, 94, 35, 61, 44, 30, 54, 7, 50, 48, 81, 78, 40, 39, 8, 66, 55, 56, 81, 29, 74], [9, 35, 49, 26, 86, 42, 93, 77, 19, 78, 17, 31, 54, 17, 91, 85, 6, 70, 84, 79, 21, 16, 41, 35, 42, 10, 26, 77, 24], [89, 91, 82, 11, 56, 46, 93, 70, 25, 17, 64, 83, 17, 98, 13, 24, 51, 49, 21, 45, 99, 90, 14, 57, 51, 23, 83, 32, 77], [92, 54, 50, 70, 1, 74, 2, 13, 6, 99, 44, 93, 40, 83, 7, 44, 51, 47, 78, 80, 50, 14, 54, 66, 15, 30, 34, 3, 38], [59, 50, 74, 81, 53, 11, 45, 8, 96, 4, 68, 17, 43, 15, 60, 82, 49, 45, 75, 68, 66, 90, 21, 57, 58, 98, 30, 73, 57], [76, 45, 63, 48, 80, 46, 31, 54, 33, 69, 38, 42, 1, 47, 77, 33, 31, 48, 44, 42, 69, 19, 34, 95, 81, 52, 93, 64, 71], [84, 91, 10, 59, 92, 26, 7, 40, 87, 74, 25, 48, 81, 98, 20, 4, 67, 69, 81, 49, 3, 1, 1, 94, 61, 91, 74, 51, 77], [41, 17, 81, 36, 79, 33, 49, 58, 82, 25, 35, 74, 47, 37, 18, 93, 55, 15, 51, 7, 6, 51, 65, 83, 99, 74, 14, 24, 91], [15, 56, 46, 35, 43, 74, 18, 63, 89, 85, 64, 64, 82, 62, 32, 31, 77, 94, 91, 72, 75, 98, 56, 36, 61, 2, 90, 4, 11], [64, 85, 71, 22, 68, 53, 92, 77, 99, 39, 67, 21, 44, 17, 76, 33, 39, 10, 57, 84, 39, 23, 5, 38, 24, 30, 84, 52, 86], [9, 74, 10, 56, 16, 58, 73, 6, 5, 15, 71, 12, 50, 91, 27, 59, 84, 3, 40, 62, 81, 21, 19, 41, 61, 2, 31, 15, 49], [87, 39, 27, 39, 1, 63, 63, 51, 77, 65, 12, 22, 86, 19, 5, 17, 90, 78, 79, 39, 31, 97, 52, 45, 34, 57, 39, 14, 39], [19, 26, 1, 17, 94, 43, 48, 14, 97, 85, 37, 61, 13, 62, 46, 67, 7, 4, 8, 73, 40, 48, 96, 86, 47, 87, 11, 59, 96], [11, 16, 38, 4, 34, 64, 43, 94, 58, 7, 77, 91, 16, 18, 11, 83, 1, 22, 20, 37, 93, 37, 41, 23, 79, 40, 14, 86, 90], [30, 31, 10, 72, 52, 46, 10, 95, 16, 35, 26, 1, 79, 79, 84, 58, 35, 35, 93, 62, 21, 65, 39, 16, 51, 64, 45, 84, 79], [81, 76, 56, 82, 64, 32, 62, 69, 21, 72, 75, 78, 26, 39, 15, 49, 69, 17, 24, 23, 35, 63, 54, 77, 40, 65, 61, 16, 14], [17, 80, 66, 42, 29, 99, 74, 42, 39, 93, 91, 99, 72, 73, 30, 58, 13, 97, 71, 27, 53, 4, 87, 32, 93, 54, 47, 75, 63], [13, 6, 25, 86, 35, 63, 27, 45, 79, 96, 65, 52, 17, 60, 30, 14, 19, 98, 22, 75, 72, 72, 34, 29, 41, 70, 51, 4, 18], [43, 16, 67, 30, 39, 9, 33, 46, 53, 56, 19, 86, 57, 5, 19, 84, 15, 49, 42, 10, 85, 31, 82, 97, 69, 62, 23, 22, 54], [44, 13, 93, 92, 90, 85, 26, 14, 88, 75, 11, 18, 8, 84, 87, 35, 81, 36, 5, 42, 67, 37, 21, 22, 46, 25, 17, 57, 11], [33, 20, 69, 52, 18, 88, 76, 79, 8, 71, 53, 32, 9, 15, 92, 96, 39, 76, 62, 90, 50, 29, 41, 3, 66, 67, 11, 62, 22], [67, 80, 40, 40, 11, 62, 16, 80, 11, 60, 81, 46, 39, 77, 55, 62, 25, 19, 1, 63, 33, 99, 17, 77, 2, 33, 68, 53, 54], [40, 98, 29, 43, 12, 95, 12, 29, 7, 59, 48, 33, 33, 20, 27, 90, 33, 37, 1, 26, 16, 9, 24, 68, 18, 70, 34, 90, 31]],22,), ([[-98, -70, -70, -62, -60, -60, -54, -52, -52, -44, -42, -42, -38, -36, -32, -18, -8, -4, -2, 0, 4, 10, 10, 14, 14, 16, 20, 34, 40, 40, 44, 44, 50, 60, 62, 68, 74, 82, 94], [-92, -88, -86, -84, -84, -78, -60, -58, -48, -30, -28, -26, -24, -22, -22, -18, -18, -16, -14, -2, 2, 2, 2, 4, 16, 24, 34, 44, 44, 46, 48, 60, 60, 64, 66, 78, 96, 96, 98], [-92, -90, -88, -86, -74, -74, -72, -70, -68, -68, -62, -44, -42, -40, -34, -26, -22, -18, -12, -6, -4, -4, -2, 4, 4, 6, 12, 34, 34, 46, 50, 50, 54, 62, 72, 74, 76, 94, 96], [-94, -90, -88, -64, -60, -52, -52, -50, -48, -46, -44, -34, -34, -32, -28, -14, -10, 2, 2, 12, 16, 28, 30, 42, 46, 48, 48, 50, 54, 54, 54, 56, 66, 70, 72, 84, 88, 98, 98], [-94, -92, -76, -70, -70, -70, -68, -68, -64, -58, -58, -58, -52, -52, -48, -44, -40, -28, -20, -14, -12, -6, 2, 6, 8, 16, 26, 26, 26, 28, 40, 42, 42, 50, 52, 70, 72, 90, 98], [-84, -82, -82, -78, -76, -76, -68, -66, -64, -60, -54, -50, -48, -42, -32, -28, -28, -26, -22, -22, -16, -12, -8, -6, 10, 26, 36, 36, 40, 54, 56, 58, 62, 66, 66, 72, 72, 76, 94], [-96, -88, -72, -70, -60, -60, -52, -50, -48, -44, -44, -38, -38, -36, -32, -28, -22, -12, -4, -2, 18, 40, 44, 46, 48, 58, 58, 66, 76, 76, 78, 78, 80, 80, 82, 84, 88, 90, 96], [-88, -82, -68, -48, -42, -40, -38, -32, -30, -30, -26, -24, -18, -18, -16, -8, -2, -2, 2, 4, 8, 24, 44, 48, 54, 56, 58, 58, 60, 62, 68, 72, 74, 76, 80, 80, 82, 88, 94], [-72, -66, -62, -62, -60, -56, -52, -46, -42, -40, -38, -38, -38, -32, -30, -28, -26, -26, -24, -12, -8, -4, 8, 14, 28, 32, 34, 38, 48, 50, 50, 54, 60, 62, 66, 84, 86, 90, 94], [-98, -96, -94, -92, -92, -92, -84, -76, -72, -66, -56, -52, -48, -40, -28, -28, -24, -16, -8, -8, -8, -6, -6, -4, 0, 2, 4, 4, 10, 16, 18, 20, 32, 36, 42, 52, 68, 84, 96], [-92, -74, -62, -62, -60, -60, -60, -56, -42, -42, -26, -26, -24, -24, -22, -8, -6, -2, 2, 16, 18, 20, 26, 28, 28, 34, 42, 46, 62, 68, 78, 82, 84, 88, 88, 90, 90, 96, 98], [-96, -94, -94, -88, -82, -78, -76, -72, -70, -68, -64, -50, -46, -44, -36, -18, -16, -14, -12, -10, -2, 8, 10, 12, 14, 22, 34, 34, 34, 36, 48, 56, 56, 58, 58, 64, 68, 70, 94], [-88, -88, -68, -68, -68, -66, -58, -52, -48, -48, -34, -30, -24, -20, -16, -10, -10, -6, -4, -2, 10, 12, 14, 22, 26, 36, 66, 66, 68, 68, 72, 76, 78, 86, 88, 92, 96, 96, 98], [-98, -90, -86, -78, -60, -52, -50, -44, -38, -34, -32, -24, -22, -20, -20, -14, -10, -6, -4, 12, 18, 18, 22, 28, 38, 44, 44, 48, 52, 54, 56, 58, 58, 60, 60, 68, 74, 78, 82], [-98, -90, -88, -84, -76, -70, -60, -54, -50, -50, -48, -46, -46, -44, -38, -18, -4, 4, 4, 10, 14, 16, 16, 26, 28, 34, 34, 42, 44, 44, 46, 50, 52, 56, 64, 78, 86, 90, 96], [-96, -84, -84, -80, -76, -70, -68, -66, -64, -64, -58, -38, -36, -30, -30, -22, -14, -14, -10, -10, -6, -2, 6, 14, 18, 20, 22, 24, 28, 42, 50, 58, 70, 72, 78, 78, 78, 84, 84], [-94, -94, -94, -84, -82, -80, -76, -76, -68, -60, -58, -54, -34, -30, -24, -22, -20, -16, -6, -4, 8, 12, 14, 22, 26, 26, 34, 38, 44, 46, 50, 58, 60, 66, 78, 92, 94, 96, 98], [-94, -88, -84, -84, -76, -60, -52, -48, -46, -46, -44, -40, -40, -38, -34, -22, -8, -2, 6, 8, 16, 26, 38, 42, 54, 62, 66, 66, 66, 72, 74, 74, 76, 78, 78, 80, 80, 88, 94], [-96, -74, -72, -72, -56, -52, -40, -34, -30, -28, -24, -18, -18, -16, -16, -12, -4, 2, 10, 16, 18, 18, 20, 28, 30, 32, 36, 38, 44, 46, 46, 48, 50, 56, 82, 90, 92, 98, 98], [-86, -82, -80, -70, -60, -58, -46, -38, -20, -18, -16, 0, 4, 8, 16, 16, 18, 22, 28, 30, 34, 34, 36, 38, 38, 42, 46, 52, 52, 60, 62, 66, 70, 82, 82, 88, 90, 94, 94], [-94, -94, -92, -88, -86, -78, -72, -66, -60, -54, -50, -50, -40, -34, -28, -28, -8, -2, 0, 2, 2, 14, 16, 24, 24, 30, 36, 36, 38, 42, 42, 44, 48, 56, 58, 64, 72, 78, 96], [-94, -88, -84, -78, -74, -70, -66, -56, -54, -50, -48, -44, -28, -22, -18, -16, -10, -6, 0, 8, 16, 18, 24, 32, 42, 52, 54, 66, 66, 74, 74, 84, 88, 88, 90, 92, 94, 98, 98], [-92, -90, -88, -86, -86, -82, -74, -70, -68, -66, -60, -56, -52, -46, -46, -34, -34, -22, -20, -2, 0, 0, 4, 10, 20, 36, 42, 46, 48, 54, 62, 62, 66, 66, 76, 86, 88, 92, 94], [-90, -84, -78, -78, -74, -70, -64, -62, -58, -54, -38, -36, -34, -28, -20, -20, -18, -8, -4, -2, 10, 14, 20, 22, 28, 44, 46, 46, 46, 50, 50, 60, 60, 62, 66, 66, 66, 68, 88], [-88, -84, -80, -68, -62, -60, -58, -50, -48, -38, -36, -32, -26, -26, -16, -4, -4, 0, 2, 6, 20, 26, 34, 34, 36, 38, 50, 54, 58, 58, 58, 60, 74, 80, 82, 86, 86, 88, 88], [-98, -94, -88, -82, -76, -76, -72, -62, -54, -52, -50, -50, -48, -40, -40, -38, -38, -24, -20, -18, -16, -16, -14, -4, -2, 16, 18, 20, 24, 24, 40, 48, 50, 52, 52, 54, 60, 72, 94], [-90, -90, -82, -68, -68, -66, -66, -66, -64, -64, -62, -46, -44, -44, -28, -20, -12, -8, 6, 6, 16, 16, 18, 36, 38, 42, 44, 44, 48, 48, 56, 62, 70, 70, 80, 84, 88, 94, 98], [-90, -82, -78, -74, -62, -50, -48, -46, -42, -40, -30, -20, -4, 2, 2, 2, 6, 8, 10, 14, 22, 26, 26, 28, 34, 38, 40, 42, 46, 50, 52, 54, 56, 58, 64, 66, 72, 82, 98], [-98, -88, -74, -68, -66, -66, -64, -62, -56, -50, -46, -46, -42, -32, -24, -18, -14, -6, -6, 0, 2, 14, 18, 26, 28, 32, 36, 50, 54, 54, 56, 56, 64, 64, 74, 76, 76, 80, 84], [-96, -94, -94, -90, -82, -76, -74, -74, -72, -60, -58, -48, -40, -38, -34, -34, -30, -18, -12, -10, -10, 2, 4, 30, 34, 36, 36, 44, 48, 48, 54, 56, 58, 78, 78, 80, 88, 92, 98], [-94, -88, -84, -80, -76, -74, -54, -48, -48, -40, -34, -30, -24, -22, -18, -16, -16, -14, -12, 4, 6, 8, 8, 8, 10, 10, 12, 14, 16, 22, 34, 44, 50, 50, 58, 64, 70, 82, 86], [-98, -98, -96, -92, -92, -88, -52, -52, -38, -36, -28, -18, -16, 2, 10, 12, 24, 24, 30, 30, 34, 38, 38, 40, 44, 44, 46, 46, 50, 62, 62, 68, 72, 74, 76, 82, 82, 86, 96], [-92, -90, -86, -62, -60, -58, -50, -38, -36, -32, -30, -28, -28, -22, -18, -8, -4, -4, 4, 8, 10, 14, 22, 22, 24, 26, 36, 38, 46, 46, 50, 64, 70, 70, 78, 78, 80, 92, 96], [-98, -96, -96, -96, -86, -86, -84, -82, -74, -72, -66, -62, -62, -52, -50, -46, -34, -30, -12, -4, 0, 2, 6, 6, 16, 28, 36, 42, 50, 50, 58, 60, 72, 78, 84, 86, 88, 88, 90], [-92, -88, -84, -84, -72, -60, -48, -44, -40, -32, -24, -16, -10, -6, -6, -4, 2, 4, 6, 6, 8, 16, 18, 24, 30, 32, 36, 44, 46, 54, 56, 58, 68, 76, 82, 82, 94, 94, 98], [-92, -88, -82, -82, -80, -76, -76, -68, -68, -64, -62, -48, -46, -22, -20, -18, -16, -14, -14, -12, -2, -2, 0, 2, 2, 10, 32, 42, 48, 48, 52, 54, 54, 64, 66, 82, 84, 86, 96], [-92, -78, -76, -68, -60, -60, -58, -52, -48, -42, -42, -38, -34, -24, -18, -16, 0, 4, 4, 8, 16, 26, 30, 32, 32, 54, 54, 54, 62, 64, 66, 74, 76, 78, 82, 90, 94, 96, 98], [-94, -92, -92, -92, -86, -84, -80, -58, -52, -50, -50, -46, -46, -40, -32, -26, -22, -18, -10, -8, -8, 0, 4, 4, 12, 48, 50, 54, 54, 56, 58, 58, 64, 68, 70, 80, 84, 88, 90], [-96, -94, -82, -80, -76, -74, -66, -60, -54, -54, -48, -48, -34, -34, -26, -26, -18, -16, -14, -12, -12, -4, -4, -2, 0, 4, 6, 16, 26, 36, 36, 48, 56, 68, 88, 90, 94, 96, 96]],22,), ([[1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0], [0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1], [1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1], [1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1], [0, 1, 1, 0, 0, 1, 1, 0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 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0], [1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1]],35,), ([[7, 8, 11, 16, 23, 31, 32, 32, 33, 34, 53, 60, 69, 71, 72, 74, 82, 86, 87, 91, 97, 99], [1, 8, 9, 11, 15, 17, 19, 21, 21, 30, 33, 41, 55, 59, 59, 61, 75, 78, 83, 93, 98, 99], [6, 6, 9, 12, 16, 16, 19, 29, 29, 32, 56, 57, 64, 64, 71, 72, 74, 80, 83, 88, 95, 99], [12, 15, 16, 36, 36, 37, 42, 55, 58, 58, 59, 70, 73, 76, 81, 81, 81, 82, 88, 94, 99, 99], [10, 13, 13, 18, 22, 24, 35, 40, 45, 46, 47, 49, 51, 73, 82, 86, 86, 89, 94, 96, 99, 99], [3, 23, 30, 35, 36, 43, 48, 48, 49, 53, 57, 59, 59, 61, 64, 64, 65, 72, 74, 79, 91, 96], [9, 15, 19, 30, 32, 34, 41, 42, 57, 59, 60, 64, 65, 67, 68, 69, 80, 86, 87, 92, 97, 99], [7, 23, 24, 26, 26, 34, 40, 44, 48, 52, 53, 55, 58, 59, 61, 63, 66, 74, 86, 93, 97, 98], [4, 5, 5, 14, 18, 27, 29, 30, 32, 50, 53, 55, 57, 61, 61, 65, 66, 75, 82, 91, 96, 97], [1, 9, 15, 20, 21, 23, 23, 28, 30, 31, 36, 42, 42, 50, 56, 56, 60, 69, 88, 91, 92, 93], [8, 14, 19, 24, 24, 26, 32, 36, 38, 42, 43, 46, 51, 52, 57, 61, 64, 70, 70, 71, 89, 94], [8, 10, 14, 25, 27, 29, 29, 41, 41, 43, 43, 46, 55, 58, 82, 85, 85, 89, 92, 95, 96, 96], [1, 1, 8, 11, 21, 22, 27, 29, 30, 41, 57, 58, 59, 64, 64, 65, 73, 76, 79, 80, 83, 94], [1, 4, 5, 20, 22, 28, 29, 30, 32, 36, 39, 41, 44, 48, 55, 56, 59, 62, 64, 79, 98, 99], [1, 2, 5, 6, 9, 11, 13, 33, 34, 35, 42, 42, 52, 62, 63, 66, 69, 72, 79, 81, 88, 98], [2, 2, 3, 7, 9, 13, 29, 32, 37, 40, 41, 48, 55, 59, 64, 68, 69, 71, 75, 89, 91, 92], [3, 3, 6, 9, 9, 10, 17, 18, 27, 35, 38, 47, 53, 53, 63, 65, 67, 68, 73, 91, 93, 96], [1, 4, 6, 30, 42, 45, 57, 58, 59, 60, 64, 66, 67, 69, 70, 77, 80, 85, 91, 93, 96, 97], [9, 14, 18, 18, 27, 27, 32, 37, 38, 43, 43, 45, 56, 58, 59, 66, 66, 73, 86, 90, 91, 92], [1, 6, 17, 20, 21, 23, 25, 31, 31, 43, 43, 48, 50, 51, 52, 56, 57, 65, 77, 80, 81, 88], [1, 3, 6, 20, 25, 25, 31, 31, 32, 37, 44, 45, 46, 53, 55, 59, 61, 62, 72, 73, 87, 94], [1, 3, 5, 5, 7, 14, 17, 21, 21, 28, 30, 31, 31, 39, 47, 56, 60, 61, 72, 78, 88, 90]],18,), ([[82, 18, 48, -34, -4, 28, -34, -74, 62, -92, 38, 38, 22, 64, 70, -20, -14, 74, -90, 74, 82, -90, -48, -88, 30, -52, -32, -26, -2, -6, -66, -26, -98, -46, 70, -26, 6, 64, -64, -72], [-60, -8, 88, -42, -42, -98, -10, -58, 96, -84, 70, 10, -84, -24, 44, 98, 62, 26, -70, 92, -70, -22, 92, 12, 82, -58, -90, 26, -70, -66, -44, 96, -56, 66, 56, 64, 74, -6, -8, -64], [74, 66, 66, -58, -42, 74, -4, 26, 88, 72, -30, 94, -54, -92, -46, 68, 26, 58, 4, 84, 8, 0, 72, -54, -44, -42, -14, -22, 78, -16, 78, -74, 66, 0, 70, -80, -30, -56, 36, -74], [76, -46, 72, -72, 4, -28, -96, -80, 64, 94, -70, 32, -20, -94, -36, -88, -90, 12, 46, -74, -98, -28, 14, -94, -78, -96, -32, 38, 48, -6, -32, -52, 28, 76, -68, -84, 24, 24, -58, -86], [-22, -48, -76, -12, 68, -94, -4, -18, -38, 22, 44, -12, 48, -94, 46, 84, 46, 60, -82, -20, -32, -44, -26, -44, -80, -72, 14, 34, -82, 96, -68, 84, -72, -80, -80, 80, 2, 10, 4, -98], [-54, -18, 4, -28, 24, -8, 98, 36, 48, 68, -90, 8, 10, -64, 82, 42, 28, 40, 80, -14, 0, -98, 48, -46, 78, -38, -54, -38, 50, 62, 84, 54, 78, 28, 18, 94, -28, 98, 40, 22], [26, -50, -24, -34, -96, 40, 70, -28, -38, -36, 4, -2, -4, -32, -88, 46, 64, 38, 6, 2, 52, -38, 42, -42, -4, 22, -34, -76, -12, -64, -8, -14, 66, 58, -18, 58, -98, 36, -18, -30], [16, 32, -58, -64, 70, 38, 34, -80, -60, -92, 52, 86, 44, 8, 60, -96, -24, 24, 74, -20, -64, -96, 92, -26, 78, 24, -88, 52, -12, -54, 74, -86, -74, -4, -72, -10, 36, 82, -84, -74], [-98, -10, 58, -24, 8, -50, 14, 36, -68, 24, -24, -26, 40, -84, 82, 0, 76, -10, 72, -92, -18, 78, -74, -98, 26, 48, 22, -58, -46, 54, -38, -12, -4, 0, -10, 34, 36, 34, 2, 2], [74, -22, 88, 68, -52, 22, -62, 38, -10, 84, -90, 36, -68, -52, 12, 36, 36, -50, -16, -88, 92, 46, 94, 20, 54, -26, -10, -72, -6, -24, -82, -58, 2, -8, 6, 74, -26, 78, -54, 76], [70, 88, 18, 88, 56, 70, 74, -72, 22, -90, 58, 22, 18, -14, 74, 8, 72, -92, -68, 96, 72, -60, 12, -48, 28, 36, 60, -80, 24, -38, 82, -12, 48, 16, -54, -44, -18, -90, -96, 54], [16, -70, -24, 18, -30, 76, 48, 4, -84, -86, -92, -40, 38, 32, 10, 48, -92, 2, -70, 34, 8, -82, -2, 36, 68, -92, 10, 0, -66, -60, 18, -84, 6, -58, 2, 26, 58, 24, 76, 34], [-48, 78, -72, 76, 68, 18, -72, 60, 48, 80, -14, -4, 42, 30, -22, -84, -38, -94, 58, -10, 50, -56, 24, 74, 46, -2, -46, 4, 14, 92, 50, 28, -50, 2, 18, -76, -48, 24, -90, -16], [-8, 10, -68, 94, 10, 94, 42, -40, -50, -20, 0, 80, -56, 84, -8, -74, 46, 16, -76, 6, -14, 52, 22, 90, 44, 52, -68, -4, 32, 30, -84, -88, 24, -70, -84, -48, 36, 48, -96, -54], [-16, -16, -38, -80, -30, 16, -36, -26, -90, 10, 74, 0, -72, 16, 96, -42, 80, -16, -42, 42, -74, 52, -48, -38, 36, -52, 96, 64, -36, 28, 6, 86, 22, -94, 18, -28, -26, -86, -94, 54], [54, 4, 32, -22, 88, 66, -50, 8, 30, 98, 76, -50, -80, 16, 38, 70, -70, 56, -36, 0, -96, -42, -52, -44, 94, 76, -30, -96, 48, -32, 2, -28, 92, -38, 82, 36, 32, -50, 58, -24], [-36, 30, -34, 48, -72, -30, -4, -80, -82, 94, -64, 82, -14, 86, 82, -54, -70, 84, 78, 50, 76, -4, -94, -56, 56, -68, 60, -94, 66, -26, -18, 58, 94, -2, 34, 6, 96, 44, -80, -4], [-6, -32, 62, 4, -32, 98, 18, 92, 8, 44, 48, -78, -78, -70, 26, 8, -60, 66, 2, -18, 52, 48, 64, -60, 90, -86, 44, -88, 2, -58, 92, -56, 6, -18, 40, 60, -48, -34, 60, 54], [-72, -94, -86, 58, 76, 20, 54, 24, 64, 10, 72, 6, -2, -30, 26, -70, 28, -28, -92, 10, 32, -6, 68, 10, 46, -20, 8, -48, -6, -94, 78, -24, 56, -80, -62, 0, -64, 28, 30, -72], [-60, -6, -28, 64, 36, -48, 34, 14, 92, -72, -26, 54, -6, -88, 68, 94, 46, -58, 10, -66, 84, 52, 70, 14, 32, 0, 76, 32, 26, -64, -32, 34, 96, 90, -36, 0, 10, 76, -54, -74], [16, -4, -52, -34, 60, -70, -76, 82, 8, -88, 72, 0, -70, 82, -12, -40, 54, -86, 6, 54, -42, 90, 46, -70, -42, 38, 46, -62, -42, 16, -30, 42, 10, -62, 42, 76, -20, 76, 38, -74], [-76, 88, 18, -90, 54, -42, 16, -24, -80, 0, 94, -56, 72, -24, 74, 54, -44, 62, -98, 64, -80, 82, -88, -6, 48, -56, -80, 76, -38, -22, -4, -90, -18, -8, 14, 44, 82, 98, 94, 0], [-60, 78, -52, -22, -58, 6, 80, -66, -40, 0, 12, -32, -52, -24, -38, 94, -40, 30, 42, 90, -88, 14, 82, -24, -8, -52, 42, -52, 74, -18, -78, -26, 88, 46, -44, 24, 42, -2, -10, 46], [-8, 48, 14, 60, 82, -68, -46, -2, 96, -16, -62, 22, 14, 36, -72, -40, 76, -70, 36, -74, -94, 58, 30, -44, 70, 76, 26, 94, -86, -2, 98, -74, -52, 16, -14, -52, -62, 38, 8, 32], [-96, 68, 58, 40, -4, 48, 60, 34, 4, 12, -70, 2, 6, 0, 70, -72, 72, 42, -2, 48, -60, 66, 80, 26, -4, 84, -36, -52, 74, 16, -74, 82, -76, -38, -66, 6, 74, 2, 88, 46], [-16, -42, -68, -2, 60, -14, 86, 18, -8, 62, -64, 42, 50, 28, 92, 64, 38, -70, -4, -8, 94, 26, 74, -42, 76, -80, -98, 72, -42, -18, -82, -4, -20, 12, 26, -88, 10, -78, -58, 64], [-54, -78, 78, 90, 34, -34, -18, -18, 88, -30, -86, -90, 70, 0, -74, 12, 86, -82, 20, -58, -8, -82, -66, -12, -74, -66, -84, 94, 42, -8, 46, -68, 28, -64, -24, 54, 42, -32, 88, -82], [94, 0, -66, 32, -96, -86, -12, 10, 66, -98, 22, 46, -54, 36, -26, 84, -50, 0, -36, 0, 92, -58, 0, 0, -62, -80, -22, -80, -60, 96, 96, -42, 44, 80, 86, 96, 42, -86, -84, -98], [34, 76, -46, 66, 28, 40, 92, -34, 14, 34, 38, 78, 32, -18, 58, -6, 90, -66, 68, -46, -40, -44, 72, -32, -92, -38, 34, 40, -8, 44, 30, 94, -42, 38, 92, -74, 22, 48, 76, 54], [40, -4, -22, 58, -32, 76, 32, 74, -38, -38, 74, 82, -12, -26, 88, -54, -12, -4, -78, 22, -42, 42, 24, 92, -42, -12, 30, 42, 98, -28, 98, 4, -90, 92, 70, -88, -38, 58, 34, -46], [46, 18, 42, 66, -98, 66, 14, -28, 60, -92, 46, -98, -72, -28, 32, -4, -80, -32, -80, 72, 6, -22, -20, 20, -84, 58, 68, 92, -96, -6, -26, -42, -60, -20, -58, -80, -68, -58, 70, 84], [40, 78, 86, 26, -80, -58, -28, -10, 22, 18, -30, 24, -14, -8, -2, 24, -98, 12, 56, 96, -54, -10, 92, -10, 96, -10, -92, -92, 74, -38, -20, 0, 96, 4, 28, -78, -28, 32, 40, -36], [-70, 56, 30, 70, -60, 82, 78, 24, -66, -2, 22, 46, -56, 24, -30, 32, 30, 54, 14, 28, 6, 32, -98, 22, 58, 46, -14, 88, 14, -38, 18, 66, 84, 50, -72, -24, 42, -34, 92, 10], [-38, -54, -12, 70, -28, 14, -22, -64, 2, 94, -56, 64, 40, 50, 96, -98, 16, -28, -26, -62, -38, -32, -76, 68, 40, 82, 22, -92, 18, -68, 58, -24, -94, -42, 26, -92, 46, -38, 82, -96], [-32, -98, -6, -54, 44, 32, 86, 38, -28, 10, 46, 50, 72, 50, 10, 94, 50, 8, -12, 96, -68, -86, -94, -52, -42, 96, -20, 62, 70, -16, 28, 0, 74, 52, 72, 56, 36, 96, 48, -8], [-50, 10, 52, -4, 68, 8, 44, 90, 42, -56, 96, 28, -44, -58, 2, -10, -58, 52, -4, -30, 68, -42, -54, -98, -68, -88, -34, 92, 80, 46, 84, 52, 60, 16, 28, 48, -22, -86, -54, 32], [60, -56, -40, 24, 0, -88, 42, 98, 92, -88, -92, 60, 12, -92, 86, -8, 66, -60, -26, 22, -76, -6, 84, -24, -26, 10, -22, -4, 38, -48, -8, -86, -52, -92, 92, -58, -18, -82, 80, -34], [64, -44, -62, 36, 56, -56, -32, -56, -12, 4, 26, 80, -50, 52, 58, -56, 80, 88, -44, -50, -58, 24, -86, -28, -52, -66, 6, 90, 66, -44, 48, -62, 42, 16, 68, 58, 74, -2, 48, -80], [10, 78, 20, -28, 76, -84, 10, 52, 48, -92, -84, -44, 66, 12, 30, 56, -84, 28, 58, 54, -14, 62, -16, -86, -12, 88, -6, 34, -70, -24, 14, 40, 58, -66, -16, 54, -66, -68, -44, -34], [-4, -40, 90, 16, 90, 38, -30, 64, 12, 90, 86, -48, 6, 0, -94, -76, 86, 68, 4, -60, 44, 46, 48, -78, 6, 52, -62, -36, 46, 56, 54, 0, -88, 70, -52, 60, 50, -40, -72, 44]],26,), ([[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [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], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]],8,), ([[25, 54, 3, 17, 45, 3, 71, 59, 56, 45, 81, 38, 41, 72, 5, 93, 14, 17, 25, 10, 73, 43, 80, 46, 80, 94, 90, 10, 7, 73, 86, 88, 90, 1, 34, 68, 55, 90, 35, 81], [66, 24, 31, 76, 50, 79, 80, 57, 65, 96, 85, 24, 98, 79, 66, 40, 52, 10, 49, 95, 3, 42, 7, 65, 32, 35, 4, 76, 43, 26, 83, 27, 58, 65, 37, 14, 28, 12, 77, 33], [63, 49, 75, 57, 90, 73, 29, 2, 70, 15, 59, 83, 44, 19, 62, 64, 62, 36, 62, 8, 96, 82, 5, 42, 51, 43, 51, 22, 99, 91, 93, 29, 24, 90, 75, 2, 11, 34, 69, 21], [7, 86, 1, 42, 54, 81, 96, 35, 80, 67, 89, 97, 67, 43, 43, 23, 89, 22, 58, 92, 93, 40, 72, 85, 57, 55, 22, 15, 22, 22, 56, 36, 70, 53, 56, 71, 14, 73, 96, 37], [6, 18, 59, 51, 84, 24, 44, 56, 37, 50, 80, 96, 74, 36, 67, 82, 14, 80, 34, 94, 60, 26, 79, 51, 29, 49, 29, 94, 79, 27, 56, 6, 81, 34, 4, 38, 12, 56, 72, 99], [21, 48, 93, 18, 65, 75, 50, 47, 88, 90, 51, 93, 64, 12, 67, 1, 35, 56, 20, 30, 12, 13, 25, 71, 65, 51, 26, 4, 94, 15, 91, 14, 20, 39, 94, 20, 72, 28, 50, 99], [72, 73, 97, 25, 24, 24, 49, 44, 99, 26, 64, 47, 32, 37, 41, 96, 94, 35, 3, 81, 84, 40, 60, 44, 5, 24, 97, 83, 1, 27, 41, 55, 68, 65, 5, 31, 65, 13, 13, 3], [20, 20, 50, 24, 67, 3, 57, 59, 17, 35, 60, 55, 39, 64, 45, 87, 44, 42, 19, 90, 60, 91, 34, 16, 55, 68, 12, 48, 89, 31, 40, 53, 23, 81, 21, 47, 62, 50, 3, 11], [69, 29, 45, 98, 6, 13, 33, 69, 42, 74, 83, 33, 69, 53, 28, 53, 52, 26, 39, 69, 25, 58, 47, 4, 23, 37, 5, 68, 72, 54, 10, 86, 57, 97, 97, 85, 32, 58, 99, 53], [82, 50, 40, 21, 91, 90, 85, 87, 46, 20, 21, 24, 92, 22, 71, 72, 98, 56, 82, 58, 12, 18, 43, 92, 7, 53, 13, 21, 60, 83, 57, 34, 90, 63, 94, 59, 53, 73, 49, 32], [54, 91, 7, 24, 5, 3, 42, 92, 94, 57, 60, 74, 44, 26, 94, 71, 45, 40, 97, 85, 29, 97, 68, 79, 25, 89, 57, 99, 86, 84, 34, 42, 61, 60, 35, 85, 94, 65, 2, 96], [80, 66, 19, 92, 68, 33, 54, 39, 73, 24, 50, 46, 96, 58, 84, 52, 23, 3, 84, 22, 17, 1, 9, 31, 77, 4, 80, 61, 85, 16, 55, 70, 57, 9, 87, 30, 66, 18, 57, 93], [74, 78, 97, 26, 45, 54, 85, 18, 4, 58, 11, 76, 32, 70, 1, 79, 25, 25, 24, 13, 94, 16, 26, 84, 79, 69, 27, 47, 14, 82, 80, 5, 64, 6, 69, 3, 99, 59, 39, 12], [97, 48, 47, 48, 47, 70, 21, 29, 25, 73, 99, 31, 10, 31, 81, 74, 32, 94, 73, 48, 55, 41, 26, 14, 53, 81, 40, 37, 60, 36, 51, 48, 2, 42, 85, 8, 5, 65, 32, 56], [68, 3, 8, 72, 96, 52, 9, 95, 45, 81, 1, 18, 87, 49, 58, 63, 23, 5, 8, 36, 48, 52, 38, 26, 98, 37, 32, 92, 29, 80, 39, 60, 14, 37, 99, 89, 81, 60, 75, 61], [44, 90, 78, 95, 10, 64, 42, 12, 62, 33, 27, 40, 10, 54, 21, 88, 90, 85, 17, 81, 51, 26, 11, 22, 87, 24, 26, 77, 5, 68, 58, 21, 51, 49, 17, 49, 93, 2, 17, 96], [97, 90, 13, 69, 26, 82, 62, 83, 23, 40, 18, 41, 42, 52, 98, 23, 81, 1, 67, 4, 14, 20, 29, 26, 12, 27, 87, 25, 67, 4, 46, 45, 35, 56, 84, 74, 24, 27, 89, 9], [34, 26, 2, 72, 95, 99, 95, 92, 94, 92, 15, 52, 44, 38, 27, 70, 28, 46, 54, 97, 54, 30, 45, 29, 90, 14, 43, 28, 89, 71, 64, 91, 64, 12, 83, 99, 21, 37, 47, 48], [89, 83, 86, 31, 31, 4, 2, 37, 92, 62, 48, 18, 20, 9, 35, 40, 87, 23, 33, 10, 35, 37, 35, 20, 45, 40, 53, 41, 90, 80, 57, 1, 95, 66, 7, 58, 59, 1, 31, 76], [26, 36, 25, 45, 73, 82, 10, 78, 57, 90, 54, 25, 36, 20, 8, 18, 22, 79, 54, 89, 96, 75, 11, 26, 36, 7, 15, 50, 75, 12, 79, 72, 39, 99, 82, 8, 79, 11, 21, 79], [57, 39, 52, 5, 93, 59, 58, 85, 3, 21, 71, 84, 70, 21, 49, 24, 13, 52, 33, 80, 78, 1, 7, 97, 37, 29, 47, 28, 24, 42, 99, 3, 23, 90, 84, 48, 39, 38, 16, 17], [69, 37, 18, 85, 60, 13, 12, 27, 82, 27, 83, 82, 52, 51, 24, 68, 71, 22, 15, 92, 70, 67, 12, 99, 63, 93, 77, 16, 32, 11, 91, 16, 21, 93, 67, 7, 72, 26, 84, 14], [25, 62, 51, 27, 80, 74, 2, 1, 74, 34, 8, 80, 66, 81, 44, 11, 83, 47, 87, 19, 8, 72, 86, 8, 33, 69, 19, 44, 84, 18, 36, 61, 25, 79, 91, 45, 91, 86, 24, 45], [83, 16, 91, 93, 86, 29, 91, 33, 20, 99, 52, 23, 17, 2, 32, 16, 5, 18, 78, 39, 14, 30, 98, 20, 2, 74, 43, 48, 15, 54, 78, 13, 77, 32, 60, 59, 64, 13, 26, 99], [13, 23, 50, 79, 78, 31, 73, 23, 2, 68, 38, 54, 90, 72, 49, 38, 23, 22, 60, 41, 4, 69, 46, 10, 49, 13, 50, 28, 82, 48, 49, 35, 18, 30, 82, 81, 45, 38, 45, 53], [33, 18, 94, 94, 14, 89, 47, 49, 5, 91, 33, 91, 42, 42, 95, 71, 20, 76, 1, 48, 89, 57, 31, 25, 72, 62, 48, 5, 50, 11, 28, 72, 51, 40, 15, 96, 21, 33, 20, 94], [76, 8, 66, 95, 64, 49, 10, 20, 23, 8, 11, 25, 60, 41, 51, 55, 40, 84, 76, 90, 51, 7, 36, 79, 38, 45, 44, 29, 3, 74, 5, 56, 65, 24, 66, 2, 35, 42, 56, 93], [17, 79, 40, 44, 43, 84, 61, 56, 7, 81, 73, 39, 69, 11, 55, 76, 99, 95, 71, 1, 42, 29, 53, 86, 32, 46, 75, 31, 86, 97, 95, 38, 78, 54, 48, 47, 65, 39, 81, 74], [39, 45, 47, 9, 35, 28, 83, 1, 42, 95, 35, 93, 92, 84, 25, 54, 13, 72, 58, 90, 58, 28, 15, 81, 18, 13, 67, 46, 10, 78, 55, 85, 44, 77, 72, 12, 48, 20, 45, 84], [32, 89, 44, 33, 78, 99, 77, 24, 84, 58, 51, 10, 79, 18, 57, 37, 15, 54, 86, 40, 46, 92, 78, 95, 49, 98, 62, 16, 42, 4, 50, 87, 81, 32, 22, 33, 81, 60, 99, 46], [82, 32, 98, 6, 7, 70, 13, 84, 44, 30, 64, 68, 81, 79, 23, 53, 84, 34, 21, 99, 88, 92, 71, 68, 67, 56, 88, 79, 64, 92, 49, 24, 4, 32, 53, 43, 16, 46, 15, 39], [41, 19, 23, 96, 19, 99, 83, 71, 50, 31, 13, 13, 50, 4, 35, 83, 14, 44, 20, 36, 42, 35, 55, 97, 2, 22, 6, 30, 29, 44, 24, 2, 1, 84, 65, 77, 87, 77, 20, 28], [76, 21, 9, 96, 37, 67, 50, 75, 95, 53, 51, 77, 70, 88, 29, 70, 62, 4, 98, 23, 97, 64, 81, 6, 28, 11, 97, 1, 8, 7, 42, 45, 10, 32, 58, 67, 30, 28, 16, 3], [97, 75, 26, 29, 93, 32, 32, 27, 66, 68, 54, 26, 78, 1, 5, 32, 77, 94, 82, 59, 87, 81, 88, 61, 7, 29, 4, 20, 17, 11, 20, 16, 90, 96, 15, 94, 24, 38, 38, 57], [65, 80, 59, 17, 55, 24, 50, 84, 94, 41, 49, 60, 65, 91, 35, 25, 64, 23, 68, 98, 30, 54, 31, 14, 74, 44, 8, 97, 61, 15, 52, 95, 57, 15, 10, 23, 10, 97, 3, 98], [30, 30, 18, 54, 42, 62, 14, 2, 90, 61, 72, 86, 86, 76, 78, 17, 47, 20, 76, 66, 2, 47, 64, 60, 9, 69, 3, 43, 10, 92, 14, 62, 99, 71, 47, 63, 76, 91, 59, 20], [11, 48, 61, 47, 85, 35, 15, 70, 58, 45, 76, 28, 34, 74, 39, 45, 63, 37, 82, 44, 87, 14, 85, 42, 71, 69, 43, 73, 30, 19, 50, 73, 9, 69, 20, 15, 43, 24, 77, 18], [52, 81, 27, 80, 83, 11, 74, 17, 1, 94, 99, 81, 34, 99, 43, 51, 29, 79, 57, 49, 78, 28, 64, 46, 91, 69, 61, 19, 96, 97, 34, 98, 79, 42, 49, 98, 79, 84, 15, 37], [51, 71, 13, 41, 98, 83, 65, 63, 44, 15, 12, 7, 88, 11, 46, 89, 43, 57, 97, 65, 84, 54, 89, 66, 34, 22, 71, 53, 15, 21, 12, 55, 93, 37, 74, 15, 28, 97, 46, 43], [43, 82, 46, 8, 32, 41, 95, 29, 77, 24, 32, 35, 24, 75, 27, 23, 11, 39, 76, 28, 76, 97, 4, 14, 97, 24, 53, 4, 42, 74, 56, 6, 32, 24, 33, 42, 44, 50, 21, 44]],29,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_FLIP_REQUIRED_MAKE_BINARY_MATRIX_SYMMETRIC.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( x , y ) : if ( y == 0 ) : return 0 if ( y > 0 ) : return ( x + f_gold ( x , y - 1 ) ) if ( y < 0 ) : return - f_gold ( x , - y ) #TOFILL if __name__ == '__main__': param = [ (18,94,), (23,36,), (24,22,), (75,92,), (25,43,), (57,32,), (31,57,), (8,17,), (12,76,), (74,70,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MULTIPLY_TWO_NUMBERS_WITHOUT_USING_MULTIPLY_DIVISION_BITWISE_OPERATORS_AND_NO_LOOPS.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(n, k): if (n + 1 >= k): return (k - 1) else: return (2 * n + 1 - k) #TOFILL if __name__ == '__main__': param = [ (90, 74,), (86, 36,), (92, 38,), (72, 71,), (25, 57,), (11, 53,), (94, 80,), (91, 75,), (66, 58,), (34, 88,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_FREQUENCY_K_MATRIX_SIZE_N_MATRIXI_J_IJ.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , k ) : max1 = max ( arr ) res = 0 for i in range ( 0 , n ) : if ( ( max1 - arr [ i ] ) % k != 0 ) : return - 1 else : res += ( max1 - arr [ i ] ) / k return int ( res ) #TOFILL if __name__ == '__main__': param = [ ([4, 7, 19, 16],4,3), ([4,4,4,4,4],5,3), ([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,1,1,1,1,1,1,1,1],39,1), ([85,36,52,8,52,15,16],5,6), ([-10,-5,-5,-20,10,30],6,5), ([0,1,0,0,1,1,1,0,0,0,0,1,1,0,0,1,0],10,15), ([1,5,5,9,11,12,12,13,13,14,16,18,26,26,28,28,30,31,32,37,37,38,40,43,44,45,47,47,55,58,60,62,63,64,69,78,83,84,92,96,96,99],26,33), ([76,-78,92,-98,16,44,86,96,-8,2,-96,74,-28,12,54,-40,-64,-12,4,48,68,-82,8,0,-4,88,48,-54,90,62,-84,76,-48,62,-80,-94,38,-4,36],34,3), ([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,1,1,1,1,1],39,10), ([62,99,29,23,55,30,79,63,1,88,59,8,11,80,23,51,97,32,80,48,84,36,73,59,1,34,92,10],18,1), ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_INCREMENT_K_OPERATIONS_MAKE_ELEMENTS_EQUAL.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : s = dict ( ) count , maxm , minm = 0 , - 10 ** 9 , 10 ** 9 for i in range ( n ) : s [ arr [ i ] ] = 1 if ( arr [ i ] < minm ) : minm = arr [ i ] if ( arr [ i ] > maxm ) : maxm = arr [ i ] for i in range ( minm , maxm + 1 ) : if i not in s.keys ( ) : count += 1 return count #TOFILL if __name__ == '__main__': param = [ ([1, 4, 5, 5, 11, 11, 12, 14, 16, 20, 23, 23, 25, 27, 29, 33, 33, 35, 37, 39, 39, 44, 44, 45, 47, 51, 51, 53, 55, 65, 73, 73, 75, 78, 79, 79, 80, 82, 86, 86, 87, 87, 88, 90, 91, 91, 94],26,), ([-38, 20, -94, -68, -96, 36, 48, 32, 44, -56, 72, -28, -6, 22, -54, -46, 58, -60, -80, 28, -34, 60, -12, -26, -32, 28, 72, -50, 66, -36, 28, 30, 10, 14, 0, -78, 94, -24, -42, -60, 66, -12, 92, 54, -34, -58, 56],31,), ([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],20,), ([73, 69, 12, 82, 65, 55, 93, 93, 88, 52, 33, 94, 62, 75, 61, 81, 48, 43, 29, 8, 28, 60, 60, 58, 54, 44, 25, 36, 46, 88, 54, 36, 83, 46, 34, 44, 71, 90, 68, 75, 42],31,), ([-98, -94, -88, -80, -74, -70, -70, -56, -50, -48, -40, -24, -22, -14, 0, 2, 2, 6, 12, 22, 30, 32, 32, 40, 48, 52, 52, 58, 64, 66, 66, 68, 70, 72, 74, 76, 78, 94, 98, 98],22,), ([1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1],18,), ([1, 2, 3, 4, 7, 11, 12, 13, 14, 15, 20, 21, 22, 25, 25, 28, 32, 32, 35, 36, 37, 38, 42, 42, 45, 48, 48, 48, 54, 67, 70, 70, 71, 74, 80, 81, 82, 82, 85, 94],24,), ([-90, 92, 28, -32, 76, 94, 48, 80, 52, -12, -6, 22, 40, 26, -18, -84, 90, 16, -76, 52, 10, -56, 6],11,), ([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],14,), ([4, 21, 34, 35, 71, 10, 88, 44, 82, 13, 79, 92, 35, 73, 28, 91, 33, 9, 12, 76, 40, 91, 4, 22, 90, 53, 98, 7, 30],17,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/ELEMENTS_TO_BE_ADDED_SO_THAT_ALL_ELEMENTS_OF_A_RANGE_ARE_PRESENT_IN_ARRAY_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : if ( n <= 0 ) : return 0 fibo = [ 0 ] * ( n + 1 ) fibo [ 1 ] = 1 sm = fibo [ 0 ] + fibo [ 1 ] for i in range ( 2 , n + 1 ) : fibo [ i ] = fibo [ i - 1 ] + fibo [ i - 2 ] sm = sm + fibo [ i ] return sm #TOFILL if __name__ == '__main__': param = [ (9,), (50,), (7,), (21,), (21,), (91,), (11,), (25,), (62,), (4,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SUM_FIBONACCI_NUMBERS.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : return int ( 1 + n * ( n + 1 ) / 2 ) #TOFILL if __name__ == '__main__': param = [ (46,), (68,), (4,), (12,), (56,), (14,), (81,), (29,), (26,), (40,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/PIZZA_CUT_PROBLEM_CIRCLE_DIVISION_LINES.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( A , N , M ) : ans = 0 h = [ 0 ] * M for i in range ( 0 , N ) : A [ i ] = A [ i ] % M h [ A [ i ] ] = h [ A [ i ] ] + 1 for i in range ( 0 , M ) : for j in range ( i , M ) : rem = ( M - ( i + j ) % M ) % M if ( rem < j ) : continue if ( i == j and rem == j ) : ans = ans + h [ i ] * ( h [ i ] - 1 ) * ( h [ i ] - 2 ) / 6 elif ( i == j ) : ans = ans + ( h [ i ] * ( h [ i ] - 1 ) * h [ rem ] / 2 ) elif ( i == rem ) : ans = ans + h [ i ] * ( h [ i ] - 1 ) * h [ j ] / 2 elif ( rem == j ) : ans = ans + h [ j ] * ( h [ j ] - 1 ) * h [ i ] / 2 else : ans = ans + h [ i ] * h [ j ] * h [ rem ] return ans #TOFILL if __name__ == '__main__': param = [ ([6, 7, 13, 16, 19, 20, 21, 25, 28, 31, 36, 38, 42, 44, 50, 54, 55, 56, 63, 63, 63, 65, 65, 65, 67, 71, 73, 73, 76, 78, 87, 90, 91, 99],27,21,), ([28, -8, -86, -6, -28, 74, 82, 88, -62, -24, -14, 68, 36, -54, -16, -52, -78, -24, 68, -2, 30, -56, 30, -86, -54, 54, 62, -30, -82, 66, 94, 12, 10, 4, 40, -72, 20, -2, -90, -90],29,21,), ([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, 1, 1, 1, 1, 1, 1, 1],29,43,), ([45, 14, 91, 37, 91],3,4,), ([-88, -78, -74, -50, -44, -34, -26, -22, 14, 46, 48, 80, 82, 86, 88],13,12,), ([1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1],11,15,), ([9, 14, 16, 18, 23, 36, 37, 58, 78],7,4,), ([-56, 86, 58, -58, 46, -62, 8, -22, 80, 96, -74, -94, -94, -2, -4],13,14,), ([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],37,34,), ([62, 36, 66, 84, 20, 43, 93, 47, 85, 70, 50, 96, 3, 8, 38, 96, 15, 31, 97, 90, 1, 69, 77, 20, 68, 11, 2, 92, 50, 8, 23, 83, 76, 6, 32, 43, 92],18,35,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SUBSEQUENCES_SIZE_THREE_ARRAY_WHOSE_SUM_DIVISIBLE_M_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : return ( ( n << 3 ) - n ) #TOFILL if __name__ == '__main__': param = [ (41,), (42,), (62,), (4,), (31,), (75,), (5,), (75,), (85,), (19,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/EFFICIENT_WAY_TO_MULTIPLY_WITH_7.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( str ) : one_count = 0 zero_count = 0 n = len ( str ) for i in range ( 0 , n , 1 ) : if ( str [ i ] == '1' ) : one_count += 1 else : zero_count += 1 if ( one_count % 2 == 0 ) : return zero_count return one_count #TOFILL if __name__ == '__main__': param = [ ('KfcTJNP',), ('05312505872',), ('100111',), ('tDEEhKxrQ',), ('50824233019',), ('10001110010',), ('T SEZaNm MYQ',), ('838415739',), ('01110100',), ('WYQiAey H',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/WAYS_REMOVE_ONE_ELEMENT_BINARY_STRING_XOR_BECOMES_ZERO.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : A = [ 0 ] * ( n + 1 ) B = [ 0 ] * ( n + 1 ) A [ 0 ] = 1 A [ 1 ] = 0 B [ 0 ] = 0 B [ 1 ] = 1 for i in range ( 2 , n + 1 ) : A [ i ] = A [ i - 2 ] + 2 * B [ i - 1 ] B [ i ] = A [ i - 1 ] + B [ i - 2 ] return A [ n ] #TOFILL if __name__ == '__main__': param = [ (29,), (13,), (25,), (65,), (27,), (42,), (19,), (50,), (59,), (13,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : table = [ 0 ] * ( n + 1 ) for i in range ( n + 1 ) : table [ i ] = n - i for i in range ( n , 0 , - 1 ) : if ( not ( i % 2 ) ) : table [ i // 2 ] = min ( table [ i ] + 1 , table [ i // 2 ] ) if ( not ( i % 3 ) ) : table [ i // 3 ] = min ( table [ i ] + 1 , table [ i // 3 ] ) return table [ 1 ] #TOFILL if __name__ == '__main__': param = [ (59,), (7,), (90,), (78,), (49,), (15,), (45,), (56,), (7,), (70,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_STEPS_MINIMIZE_N_PER_GIVEN_CONDITION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b , n ) : s = 0 for i in range ( 0 , n ) : s += a [ i ] + b [ i ] if n == 1 : return a [ 0 ] + b [ 0 ] if s % n != 0 : return - 1 x = s // n for i in range ( 0 , n ) : if a [ i ] > x : return - 1 if i > 0 : a [ i ] += b [ i - 1 ] b [ i - 1 ] = 0 if a [ i ] == x : continue y = a [ i ] + b [ i ] if i + 1 < n : y += b [ i + 1 ] if y == x : a [ i ] = y b [ i ] = 0 if i + 1 < n : b [ i + 1 ] = 0 continue if a [ i ] + b [ i ] == x : a [ i ] += b [ i ] b [ i ] = 0 continue if i + 1 < n and a [ i ] + b [ i + 1 ] == x : a [ i ] += b [ i + 1 ] b [ i + 1 ] = 0 continue return - 1 for i in range ( 0 , n ) : if b [ i ] != 0 : return - 1 return x #TOFILL if __name__ == '__main__': param = [ ([4, 9, 16, 18, 20, 23, 24, 25, 25, 26, 29, 30, 35, 40, 41, 43, 44, 46, 53, 53, 56, 56, 58, 60, 62, 70, 80, 80, 80, 82, 86, 90, 92, 92, 95],[3, 15, 16, 16, 18, 26, 30, 32, 32, 35, 37, 41, 42, 43, 48, 49, 49, 54, 55, 57, 65, 66, 67, 67, 68, 83, 85, 89, 89, 90, 91, 93, 96, 97, 99],29,), ([-24, 70, -74, -90, 72, 50, -94, 86, -58, -68, 42, 0, 98, -70, -14, -32, 6, 74, 64, -78, 86, -42, -56, 2, -34, -46, 70, -62, 50, -58, -58, 42, 86, 96, -8, 8, -22, -14, -14, 98, 2, 98, -28],[-26, 36, 48, 48, -38, -86, 90, -62, 30, -4, 82, 16, 32, -6, 58, 82, -66, -40, 52, -78, 94, -70, -80, -68, -58, -26, 50, -78, -90, -48, -28, 48, 56, 50, 72, -22, -2, 8, -94, 92, -44, -66, -30],34,), ([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, 1, 1, 1, 1, 1, 1, 1, 1],13,), ([98, 18, 50, 36, 88, 75, 2, 40, 74, 19, 63, 82, 77, 5, 59, 97, 70, 50, 71, 90, 90, 61, 63, 99],[93, 25, 16, 42, 55, 61, 69, 68, 95, 28, 40, 90, 1, 86, 76, 40, 13, 47, 71, 4, 64, 54, 84, 45],16,), ([-80, -64, -64, -64, -64, -62, -54, -48, -44, -44, -38, -30, -30, -26, -14, -12, -10, -6, -6, 6, 22, 22, 22, 26, 28, 50, 52, 70, 86, 86, 88, 90],[-96, -94, -80, -74, -64, -56, -52, -32, -30, -24, -12, -12, -8, -2, 4, 8, 16, 20, 24, 24, 24, 48, 50, 54, 60, 64, 74, 80, 88, 90, 92, 92],22,), ([0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1],[1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1],20,), ([59, 61, 64],[22, 59, 85],1,), ([98, 92, 28, 42, -74, -36, 40, -8, 32, -22, -70, -22, -56, 74, 6, 6, -62, 46, 34, 2],[-62, -84, 72, 60, 10, -18, -44, -22, 14, 0, 76, 72, 96, -28, -24, 52, -74, -30, 16, 66],18,), ([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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],34,), ([72, 97, 79, 21, 83, 2, 31, 59, 6, 11, 79, 97],[27, 71, 87, 36, 73, 37, 80, 34, 57, 17, 88, 52],9,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SCHEDULE_JOBS_SERVER_GETS_EQUAL_LOAD.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , dep , n ) : arr.sort ( ) dep.sort ( ) plat_needed = 1 result = 1 i = 1 j = 0 while ( i < n and j < n ) : if ( arr [ i ] < dep [ j ] ) : plat_needed += 1 i += 1 if ( plat_needed > result ) : result = plat_needed else : plat_needed -= 1 j += 1 return result #TOFILL if __name__ == '__main__': param = [ ([8, 24, 28, 64, 75, 86, 93, 95],[19, 30, 41, 51, 62, 68, 85, 96],6,), ([2, -30, -8, -78, 58, -42, -94, 84, -58, 14, 78, 34, 30, 6, -18, -92, 0, 94, -54, 58, 0, -86, 66, 86, 8, -26, 50, 16, -30, -68, 98, -28, -4, -6],[40, 22, -24, 80, -76, -4, -8, -34, 96, -98, 16, 28, 14, 52, 10, -10, -62, 64, -48, 10, -64, -90, -52, 46, 34, 50, 50, -84, 68, -12, -44, 28, -22, 78],18,), ([0, 0, 0, 0, 0, 0, 1],[0, 0, 0, 0, 0, 1, 1],6,), ([51, 5, 48, 61, 71, 2, 4, 35, 50, 76, 59, 64, 81, 5, 21, 95],[67, 84, 86, 43, 50, 90, 49, 8, 40, 67, 5, 51, 40, 28, 31, 47],8,), ([-64, -52, 44, 52, 90],[-62, -16, 22, 26, 58],3,), ([0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1],[0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],17,), ([2, 15, 25, 55, 72, 96, 98],[3, 6, 11, 19, 26, 37, 39],6,), ([-60, 30, -58, 52, 40, 74, 74, 76, -72, -48, 8, -56, -24, -40, -98, -76, -56, -20, 30, -30, -34, 4, -34],[-96, -40, -76, 52, -20, -28, -64, -72, 36, 56, 52, 34, 14, 8, -50, 6, -82, -98, -8, 18, -76, -66, -22],20,), ([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, 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, 1, 1, 1],22,), ([37, 84, 20, 34, 56, 1, 87, 72],[68, 62, 84, 54, 15, 29, 70, 96],6,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_NUMBER_PLATFORMS_REQUIRED_RAILWAYBUS_STATION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : jumps = [ 0 for i in range ( n ) ] if ( n == 0 ) or ( arr [ 0 ] == 0 ) : return float ( 'inf' ) jumps [ 0 ] = 0 for i in range ( 1 , n ) : jumps [ i ] = float ( 'inf' ) for j in range ( i ) : if ( i <= j + arr [ j ] ) and ( jumps [ j ] != float ( 'inf' ) ) : jumps [ i ] = min ( jumps [ i ] , jumps [ j ] + 1 ) break return jumps [ n - 1 ] #TOFILL if __name__ == '__main__': param = [ ([2, 5, 9, 9, 12, 13, 13, 13, 15, 16, 17, 18, 20, 20, 20, 25, 28, 30, 30, 33, 34, 34, 37, 42, 45, 49, 50, 52, 52, 54, 65, 68, 72, 74, 75, 82, 85, 87, 91, 91, 94, 95],22,), ([-28, 90, 30, -80, -10, 26, -12, 24, 12, 44, -38, 20, 26, 38, -8, -40, 88, 26],9,), ([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],37,), ([74, 37, 37, 71, 85, 89, 44, 72, 55, 8, 5, 98, 54, 37, 7, 76, 93, 74, 84, 51, 18, 37],20,), ([-68, 14, 76],1,), ([0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1],27,), ([3, 4, 6, 6, 7, 14, 28, 36, 37, 44, 46, 47, 50, 51, 52, 55, 55, 61, 68, 69, 70, 73, 74, 77, 86, 90, 90, 91, 98, 99],23,), ([-4, -24, -84, -76],2,), ([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],32,), ([78, 88, 1, 98, 26, 31, 56, 12, 71],8,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_NUMBER_OF_JUMPS_TO_REACH_END_OF_A_GIVEN_ARRAY_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : multiTerms = n * ( n + 1 ) // 2 sm = multiTerms for i in range ( 2 , n + 1 ) : multiTerms = multiTerms - ( i - 1 ) sm = sm + multiTerms * i return sm #TOFILL if __name__ == '__main__': param = [ (41,), (50,), (67,), (18,), (60,), (6,), (27,), (46,), (50,), (20,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SUM_PAIRWISE_PRODUCTS_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , x ) : for i in range ( 0 , n - 1 ) : if ( arr [ i ] > arr [ i + 1 ] ) : break ; l = ( i + 1 ) % n r = i while ( l != r ) : if ( arr [ l ] + arr [ r ] == x ) : return True ; if ( arr [ l ] + arr [ r ] < x ) : l = ( l + 1 ) % n ; else : r = ( n + r - 1 ) % n ; return False ; #TOFILL if __name__ == '__main__': param = [ ([3, 8, 10, 15, 18, 19, 20, 20, 21, 22, 26, 30, 32, 34, 43, 45, 50, 50, 51, 52, 53, 56, 57, 58, 62, 63, 65, 82, 86, 91, 91, 92, 92, 93, 97],17,30,), ([30, -34, 86, -30, -26, 2, 90, 8, 26, -8, -8, 0, -86, 68, 22, 72, -76, 48, -24, 90, -22, -58, -54, 90, -12, -12, 88, 72, -58, 68, 84, 22, 60, 66, -52, -38, -90, 62, 30, -26, 88, -36, 92, 32, -32, -42, -90, -40, -10],41,10,), ([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],26,1,), ([20, 68, 40, 19, 74, 69],4,88,), ([-98, -94, -94, -94, -90, -88, -88, -78, -74, -70, -68, -66, -64, -62, -54, -50, -40, -40, -40, -40, -28, -22, -22, -18, -14, -12, 0, 6, 6, 8, 12, 20, 22, 26, 28, 36, 42, 44, 48, 52, 56, 60, 68, 84],28,94,), ([1, 1, 0],2,60,), ([12, 22, 38, 76, 80, 86],4,3,), ([-36, -10, -26, 34, -50, 66, -2, -14, -62, 60, -48, 94, -70, 6, -60, -90, 28, -4, -20, -52, 40, -76, -92, -14, 54, 4, -58, 38, -74, -96, -88, 86, -54, 98, 48, 68, 78, -28, -80, -46],26,37,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],17,20,), ([69, 99, 25, 52, 41, 51, 7, 33, 42, 91, 85, 57, 91, 89, 86, 11, 70, 67, 30, 92, 81, 23, 51, 98, 85, 5, 50, 44],21,27,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/GIVEN_A_SORTED_AND_ROTATED_ARRAY_FIND_IF_THERE_IS_A_PAIR_WITH_A_GIVEN_SUM.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : if ( n == 0 ) : return 0 else : return ( n & 1 ) + f_gold ( n >> 1 ) #TOFILL if __name__ == '__main__': param = [ (43,), (94,), (72,), (86,), (42,), (33,), (8,), (74,), (29,), (34,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_SET_BITS_IN_AN_INTEGER_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : max1 = max ( arr ) min1 = min ( arr ) m = max1 - min1 + 1 if ( m > n ) : return False visited = [ 0 ] * m for i in range ( 0 , n ) : visited [ arr [ i ] - min1 ] = True for i in range ( 0 , m ) : if ( visited [ i ] == False ) : return False return True #TOFILL if __name__ == '__main__': param = [ ([2, 4, 19, 25, 65, 72, 75, 83, 90, 92],8,), ([46, 2, 28, -44, 74, -36, -8, 30, -96, 60, 52, -58, 16, -38, 78, 38, -28, 16, 26, -42, 48, 40, 6, 72],14,), ([0, 1, 1, 1],2,), ([50, 21, 9, 29, 86, 2, 82, 49, 34, 18, 77, 83, 44, 67, 85, 58, 15, 85, 22, 3, 39, 67, 42, 37, 6, 35, 18, 57, 41, 32, 39, 30, 41, 68, 84, 36, 64, 36],23,), ([-92, -82, -80, -78, -66, -66, -62, -58, -54, -52, -48, -30, -26, -22, -20, -20, -18, -14, -2, 12, 20, 24, 26, 26, 28, 28, 32, 36, 42, 48, 50, 52, 56, 64, 70, 72, 72, 80, 82, 84, 86, 92],26,), ([1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0],43,), ([18, 19, 21, 23, 30, 33, 38, 40, 45, 56, 63, 68, 93, 96],8,), ([20, -90, -42, 48, 18, -46, 82, -12, -88, 82, 62, 24, 20, 64, -68, -34, -38, 8, -54, -20, -92, 34, -90, 78, 18, 8, -6, 10, 98, -24, 72, -92, 76, -22, 12, -44, 2, 68, -72, 42, 34, 20, -48],34,), ([0, 0, 0, 0, 0, 1, 1, 1, 1],8,), ([81, 25, 50, 48, 35, 38, 49, 21, 47, 94, 94, 55, 23, 45, 92, 23, 93, 33, 64, 9, 90, 64, 81, 17, 2, 73, 8, 7, 35, 36, 72],27,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_ARRAY_CONTAINS_CONTIGUOUS_INTEGERS_DUPLICATES_ALLOWED.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( num ) : sum = 0 i = 2 while ( i * i <= num ) : while ( num % i == 0 ) : sum += i num /= i i += 1 sum += num return sum #TOFILL if __name__ == '__main__': param = [ (83,), (88,), (60,), (6,), (26,), (98,), (38,), (90,), (76,), (66,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_MINIMUM_SUM_FACTORS_NUMBER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( num ) : if num < 0 : return f_gold ( - num ) if ( num == 0 or num == 7 ) : return True if ( num < 10 ) : return False return f_gold ( num / 10 - 2 * ( num - num / 10 * 10 ) ) #TOFILL if __name__ == '__main__': param = [ (0,), (-21,), (7,), (63,), (84,), (73,), (81,), (-10,), (47,), (23,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/DIVISIBILITY_BY_7.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : if ( n == 0 ) : return 1 return n * f_gold ( n - 1 ) #TOFILL if __name__ == '__main__': param = [ (77,), (62,), (42,), (16,), (82,), (37,), (29,), (32,), (82,), (91,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/TAIL_RECURSION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : if ( n == 1 ) : return True arr.sort ( ) d = arr [ 1 ] - arr [ 0 ] for i in range ( 2 , n ) : if ( arr [ i ] - arr [ i - 1 ] != d ) : return False return True #TOFILL if __name__ == '__main__': param = [ ([1,4,64,16],4,), ([0, 12, 4, 8],4,), ([-2, 2, 0, 4, 6],5,), ([0,0,0,0,0,0,0,0,0,0,0,0],7,), ([66,56,86,76,46],5,), ([66,56,56,86,76,46],6,), ([7, 9, 11, 21, 44, 45, 61, 67, 78, 97, 98, 99],11,), ([66, -28, -26, 50, -18, 54, 84, -2, -70, -74, 6, -34, 44, -36, -4, 36, 14, 24, 64, 74, 86, -96, 54, -68, -84, -62, -36, 34, -36, 70, -50, 6, 62, -50, -34, -38, -28, 74, 78, -2, -12, -4],33,), ([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, 1, 1, 1, 1],33,), ([18, 93, 79, 20, 44, 36, 69, 37, 33, 82, 19, 51, 32, 22, 1, 54, 89, 20, 58, 35, 70, 70, 61, 63, 61, 57, 3, 95, 99, 45, 15, 17, 15, 5, 86, 46, 11, 64, 92, 14, 39, 67],40,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_WHETHER_ARITHMETIC_PROGRESSION_CAN_FORMED_GIVEN_ARRAY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : if ( n == 0 or n == 9 ) : return True if ( n < 9 ) : return False return f_gold ( ( int ) ( n >> 3 ) - ( int ) ( n & 7 ) ) #TOFILL if __name__ == '__main__': param = [ (96,), (85,), (54,), (14,), (47,), (11,), (49,), (99,), (28,), (82,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/DIVISIBILITY_9_USING_BITWISE_OPERATORS.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b , c ) : if ( a + b <= c ) or ( a + c <= b ) or ( b + c <= a ) : return False else : return True #TOFILL if __name__ == '__main__': param = [ (29,19,52,), (83,34,49,), (48,14,65,), (59,12,94,), (56,39,22,), (68,85,9,), (63,36,41,), (95,34,37,), (2,90,27,), (11,16,1,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_WHETHER_TRIANGLE_VALID_NOT_SIDES_GIVEN.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : ans = 0 for i in range ( 0 , n ) : for j in range ( i + 1 , n ) : if ( arr [ i ] == arr [ j ] ) : ans += 1 return ans #TOFILL if __name__ == '__main__': param = [ ([4, 6, 9, 16, 16, 21, 36, 41, 58, 60, 62, 73, 77, 81, 95],12,), ([-86, -72, -26, -34, 18, -62, -66],3,), ([1],0,), ([16],0,), ([-88, -80, -72, -68, -64, -26, 4, 14, 16, 22, 30, 32, 60, 74, 82],11,), ([0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1],9,), ([3, 9, 10, 12, 17, 23, 27, 29, 42, 44, 59, 61, 71, 76, 78, 82, 84, 84, 89, 90, 93, 93, 97, 97],15,), ([68, -40, -46, -20, -64, 90],5,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,), ([99, 17, 94, 43, 97, 17, 11, 58, 75, 94, 37, 22, 54, 31, 41, 4, 55, 69, 92, 80, 45, 97, 16, 33, 36, 17, 43, 82, 81, 64, 22, 65, 85, 44, 47, 14],23,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_INDEX_PAIRS_EQUAL_ELEMENTS_ARRAY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( A , B , n ) : sorted ( A ) sorted ( B ) result = 0 for i in range ( n ) : result += ( A [ i ] * B [ n - i - 1 ] ) return result #TOFILL if __name__ == '__main__': param = [ ([31, 85],[18, 33],1,), ([22, -6, 84, 70, 84, 6, 28, -74, -14, 68, 22, 90, -10],[2, -48, -36, -4, -22, -98, -74, -92, -72, -4, 48, -32, 94],6,), ([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],14,), ([12, 33, 93, 2, 83, 9, 61, 84, 9, 69, 2],[85, 92, 92, 1, 54, 31, 69, 4, 39, 81, 52],7,), ([-92, -88, -84, -78, -78, -76, -66, -54, -52, -48, -46, -44, -40, -34, -32, -24, -20, -14, -6, -4, 2, 6, 10, 10, 22, 26, 32, 36, 36, 40, 46, 48, 56, 58, 64, 76, 80, 80, 80, 84, 84, 84, 92],[-98, -90, -82, -80, -76, -66, -62, -62, -62, -50, -50, -50, -32, -30, -14, -12, 4, 6, 12, 14, 16, 30, 30, 30, 32, 34, 40, 42, 50, 52, 56, 58, 60, 62, 62, 64, 66, 68, 78, 82, 86, 90, 94],26,), ([1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0],[0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1],32,), ([4, 6, 6, 20, 22, 23, 26, 39, 40, 47, 50, 68, 68, 70, 73, 77, 80, 82, 85],[2, 3, 15, 21, 22, 26, 35, 37, 37, 38, 57, 59, 62, 63, 64, 76, 81, 85, 91],17,), ([78, 60, -8, 46, -12],[-72, -80, -30, 16, -38],2,), ([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],[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],17,), ([60, 66, 84, 99, 85, 89, 28, 97, 85, 71, 53, 93, 23, 9, 45, 26, 49, 95, 64, 33, 70, 34, 10, 1, 68, 39, 53, 12],[37, 33, 33, 77, 78, 34, 28, 1, 63, 15, 51, 50, 90, 22, 71, 23, 68, 55, 2, 22, 31, 54, 76, 36, 2, 27, 96, 89],15,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMIZE_SUM_PRODUCT_TWO_ARRAYS_PERMUTATIONS_ALLOWED.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( x ) : m = 1 ; while ( x & m ) : x = x ^ m m <<= 1 x = x ^ m return x #TOFILL if __name__ == '__main__': param = [ (96,), (66,), (67,), (13,), (75,), (78,), (1,), (83,), (27,), (65,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/ADD_1_TO_A_GIVEN_NUMBER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( s ) : if ( s == " " ) : return "a" i = len ( s ) - 1 while ( s [ i ] == 'z' and i >= 0 ) : i -= 1 if ( i == - 1 ) : s = s + 'a' else : s = s.replace ( s [ i ] , chr ( ord ( s [ i ] ) + 1 ) , 1 ) return s #TOFILL if __name__ == '__main__': param = [ ('amKIRzPiqLTIy',), ('68',), ('100',), ('f',), ('802205375',), ('0111',), ('GRjRYIvYwgua',), ('8139910006809',), ('100101',), ('rw',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/LEXICOGRAPHICALLY_NEXT_STRING.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( s , c ) : oneSeen = False i = 0 n = len ( s ) while ( i < n ) : if ( s [ i ] == c ) : if ( oneSeen == True ) : return False while ( i < n and s [ i ] == c ) : i = i + 1 oneSeen = True else : i = i + 1 return True #TOFILL if __name__ == '__main__': param = [ ('gILrzLimS','m',), ('307471222','2',), ('110','0',), ('GcAB','v',), ('113','3',), ('011110010','0',), ('wcwob','w',), ('74571582216153','1',), ('100000011','0',), ('ryPErkzY','q',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_OCCURRENCES_CHARACTER_APPEAR_TOGETHER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : sum = 0 ; while ( n > 0 ) : sum += ( n % 10 ) ; n //= 10 ; if ( sum == 1 ) : return 10 ; return sum ; #TOFILL if __name__ == '__main__': param = [ (2,), (39,), (31,), (45,), (35,), (94,), (67,), (50,), (4,), (63,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMIZE_THE_SUM_OF_DIGITS_OF_A_AND_B_SUCH_THAT_A_B_N.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(mat, m, n): rowSum = [0] * m for i in range(0, m): sum = 0 for j in range(0, n): sum += mat[i][j] rowSum[i] = sum max_diff = rowSum[1] - rowSum[0] min_element = rowSum[0] for i in range(1, m): if (rowSum[i] - min_element > max_diff): max_diff = rowSum[i] - min_element if (rowSum[i] < min_element): min_element = rowSum[i] return max_diff #TOFILL if __name__ == '__main__': param = [ ([[1, 5, 5, 6, 6, 7, 7, 11, 12, 15, 17, 24, 25, 27, 30, 33, 35, 36, 38, 41, 42, 44, 44, 46, 50, 53, 53, 56, 58, 67, 71, 71, 77, 78, 85, 85, 87, 87, 89, 91, 94, 96, 97, 98, 99, 99], [1, 3, 3, 6, 7, 12, 18, 19, 21, 21, 23, 25, 25, 26, 33, 37, 38, 39, 39, 39, 41, 42, 43, 46, 49, 50, 54, 56, 57, 60, 66, 67, 67, 68, 69, 71, 75, 76, 85, 86, 88, 90, 91, 93, 98, 98], [2, 2, 3, 9, 15, 18, 21, 21, 23, 24, 27, 28, 28, 28, 30, 34, 36, 38, 40, 43, 45, 46, 46, 49, 53, 53, 55, 58, 66, 66, 67, 68, 70, 72, 73, 73, 75, 77, 78, 80, 83, 84, 88, 89, 95, 98], [1, 3, 6, 6, 7, 7, 8, 11, 15, 21, 21, 24, 28, 28, 29, 30, 31, 31, 33, 34, 36, 46, 47, 49, 51, 58, 64, 65, 69, 70, 70, 76, 78, 81, 86, 86, 87, 89, 90, 92, 93, 94, 97, 97, 97, 99], [10, 11, 12, 12, 17, 19, 23, 24, 25, 26, 28, 31, 31, 33, 35, 39, 41, 42, 42, 45, 49, 50, 53, 56, 57, 60, 60, 62, 63, 64, 64, 65, 66, 68, 71, 77, 77, 80, 80, 81, 84, 84, 86, 86, 90, 92], [2, 2, 3, 7, 8, 10, 11, 12, 13, 19, 20, 22, 24, 24, 27, 29, 30, 32, 34, 35, 37, 37, 37, 38, 39, 39, 39, 44, 54, 54, 57, 62, 63, 64, 64, 70, 72, 73, 84, 84, 85, 87, 89, 94, 95, 95], [1, 1, 4, 4, 6, 7, 20, 22, 24, 25, 26, 31, 31, 35, 38, 41, 41, 42, 47, 48, 48, 50, 51, 56, 56, 57, 57, 58, 61, 62, 67, 68, 72, 75, 75, 77, 80, 81, 83, 83, 84, 87, 88, 97, 97, 98], [2, 3, 10, 13, 16, 23, 26, 27, 29, 30, 35, 35, 36, 39, 41, 42, 45, 48, 49, 49, 56, 56, 59, 59, 59, 60, 60, 61, 62, 64, 67, 67, 71, 73, 76, 78, 81, 83, 86, 87, 87, 88, 89, 92, 97, 99], [8, 13, 14, 15, 16, 16, 19, 25, 25, 28, 29, 30, 30, 34, 36, 38, 40, 41, 41, 43, 46, 48, 49, 49, 49, 50, 53, 55, 57, 63, 64, 64, 66, 70, 74, 74, 77, 77, 78, 83, 84, 92, 93, 93, 96, 99], [2, 3, 5, 5, 6, 6, 6, 8, 8, 14, 15, 19, 22, 23, 27, 28, 31, 32, 33, 34, 34, 36, 38, 42, 43, 49, 55, 57, 58, 68, 71, 71, 74, 77, 81, 85, 85, 87, 90, 91, 92, 94, 96, 97, 97, 98], [1, 4, 5, 8, 9, 9, 16, 16, 19, 20, 21, 24, 25, 25, 26, 29, 30, 34, 38, 39, 40, 46, 48, 49, 55, 56, 57, 57, 59, 62, 63, 64, 64, 69, 70, 73, 77, 78, 78, 85, 85, 91, 92, 93, 95, 97], [1, 5, 11, 11, 15, 15, 15, 23, 30, 31, 34, 37, 39, 39, 44, 44, 46, 47, 47, 47, 48, 49, 50, 53, 54, 58, 62, 64, 66, 67, 68, 69, 73, 74, 80, 82, 82, 84, 85, 89, 91, 91, 93, 96, 97, 98], [2, 3, 5, 7, 8, 9, 9, 10, 14, 18, 20, 21, 25, 28, 31, 33, 33, 34, 34, 39, 45, 47, 48, 49, 49, 54, 58, 64, 71, 74, 74, 75, 78, 82, 82, 83, 84, 88, 92, 92, 93, 94, 95, 95, 98, 99], [1, 2, 6, 9, 9, 9, 15, 15, 17, 17, 24, 25, 26, 27, 28, 28, 30, 30, 33, 34, 36, 39, 41, 42, 46, 46, 53, 59, 62, 65, 68, 69, 70, 71, 72, 74, 76, 78, 83, 84, 90, 92, 96, 98, 98, 99], [1, 1, 3, 5, 7, 8, 8, 10, 11, 18, 18, 18, 21, 30, 35, 36, 43, 51, 51, 53, 54, 57, 58, 58, 58, 59, 60, 60, 60, 61, 63, 68, 70, 74, 76, 82, 83, 87, 87, 87, 91, 91, 92, 93, 97, 99], [3, 3, 3, 6, 11, 13, 13, 14, 16, 16, 22, 28, 29, 29, 32, 35, 38, 51, 51, 52, 53, 57, 58, 62, 67, 70, 71, 73, 73, 76, 76, 76, 80, 80, 83, 84, 84, 86, 87, 91, 92, 95, 95, 96, 96, 99], [1, 3, 7, 7, 7, 9, 9, 10, 16, 21, 23, 23, 24, 24, 26, 27, 36, 37, 43, 44, 48, 50, 51, 52, 53, 56, 57, 58, 59, 66, 68, 69, 72, 73, 74, 76, 77, 77, 80, 81, 81, 81, 84, 84, 90, 98], [1, 1, 2, 6, 10, 12, 13, 14, 15, 16, 20, 22, 22, 22, 24, 25, 26, 30, 34, 35, 35, 37, 38, 39, 43, 43, 43, 49, 50, 56, 57, 62, 64, 66, 67, 68, 71, 78, 82, 84, 86, 86, 89, 90, 94, 96], [2, 5, 6, 7, 7, 9, 9, 12, 20, 21, 23, 25, 30, 32, 37, 40, 41, 43, 43, 45, 45, 45, 57, 60, 61, 61, 61, 63, 66, 67, 67, 68, 69, 70, 73, 74, 75, 78, 82, 83, 84, 87, 89, 90, 99, 99], [8, 11, 12, 16, 22, 23, 23, 27, 28, 29, 31, 38, 39, 41, 42, 42, 48, 48, 52, 52, 57, 58, 60, 60, 63, 66, 66, 67, 69, 72, 74, 75, 75, 76, 76, 78, 79, 80, 84, 86, 92, 92, 94, 94, 96, 98], [2, 3, 4, 6, 6, 14, 14, 16, 17, 20, 22, 23, 26, 28, 28, 29, 29, 31, 32, 32, 38, 40, 42, 45, 51, 52, 54, 56, 62, 65, 66, 68, 73, 79, 80, 81, 87, 87, 88, 89, 89, 89, 91, 93, 96, 97], [4, 6, 9, 12, 13, 14, 16, 17, 18, 23, 25, 25, 26, 27, 29, 33, 34, 45, 45, 46, 49, 51, 51, 51, 52, 53, 59, 59, 64, 66, 67, 67, 70, 71, 72, 77, 77, 78, 82, 82, 84, 90, 93, 94, 96, 99], [1, 2, 7, 8, 9, 11, 19, 20, 23, 23, 24, 29, 29, 34, 41, 46, 48, 51, 51, 53, 54, 59, 61, 65, 67, 72, 74, 76, 76, 77, 80, 81, 81, 84, 87, 88, 90, 91, 92, 92, 93, 95, 96, 96, 97, 99], [ 1, 3, 4, 6, 8, 9, 9, 9, 9, 10, 15, 23, 24, 24, 25, 32, 34, 35, 38, 42, 43, 44, 45, 45, 48, 49, 53, 57, 57, 60, 60, 68, 70, 72, 72, 73, 74, 76, 76, 77, 79, 80, 83, 85, 94, 96], [2, 5, 7, 11, 12, 12, 14, 15, 16, 18, 20, 21, 25, 25, 26, 29, 35, 41, 43, 44, 47, 47, 50, 52, 52, 55, 57, 58, 60, 62, 67, 68, 69, 73, 74, 76, 78, 85, 86, 87, 87, 87, 90, 91, 94, 96], [1, 3, 5, 7, 7, 8, 10, 11, 13, 17, 24, 25, 26, 29, 30, 32, 33, 35, 36, 40, 41, 43, 44, 47, 49, 51, 54, 57, 59, 65, 69, 73, 74, 80, 80, 82, 82, 82, 84, 85, 85, 87, 90, 94, 95, 97], [1, 4, 6, 8, 13, 13, 13, 17, 17, 18, 22, 23, 23, 24, 24, 30, 32, 33, 36, 36, 36, 39, 40, 41, 43, 43, 45, 49, 51, 55, 55, 56, 57, 61, 63, 65, 65, 68, 69, 71, 72, 72, 77, 80, 96, 99], [1, 2, 3, 6, 7, 8, 10, 12, 13, 14, 17, 18, 19, 22, 23, 25, 28, 29, 31, 33, 34, 36, 36, 38, 41, 42, 42, 45, 48, 49, 49, 49, 50, 53, 54, 62, 70, 72, 77, 79, 84, 85, 92, 92, 93, 99], [1, 1, 6, 7, 11, 14, 17, 17, 21, 28, 29, 31, 32, 37, 40, 43, 44, 46, 47, 52, 56, 58, 59, 60, 63, 65, 68, 70, 75, 81, 81, 81, 82, 84, 85, 85, 88, 92, 92, 93, 94, 95, 95, 95, 99, 99], [1, 4, 4, 7, 9, 11, 12, 14, 14, 14, 19, 24, 26, 28, 29, 31, 36, 39, 41, 45, 45, 46, 47, 49, 58, 60, 60, 62, 63, 71, 72, 76, 76, 76, 77, 78, 80, 81, 83, 84, 84, 85, 89, 94, 97, 98], [1, 7, 10, 13, 15, 16, 16, 18, 19, 22, 26, 28, 33, 35, 36, 37, 38, 40, 41, 42, 42, 45, 46, 47, 48, 54, 54, 54, 58, 64, 65, 66, 67, 67, 68, 70, 71, 72, 74, 77, 78, 84, 85, 88, 88, 93], [2, 2, 2, 5, 8, 8, 20, 22, 27, 28, 30, 31, 32, 33, 34, 36, 37, 38, 39, 41, 42, 50, 50, 55, 59, 63, 65, 66, 71, 73, 74, 76, 78, 81, 86, 89, 90, 91, 93, 94, 94, 94, 95, 96, 98, 98], [1, 1, 2, 3, 5, 5, 7, 7, 7, 9, 10, 10, 14, 16, 20, 24, 26, 31, 36, 40, 44, 46, 49, 50, 50, 50, 54, 56, 58, 60, 62, 62, 63, 66, 67, 74, 75, 75, 79, 82, 90, 91, 91, 93, 93, 95], [3, 7, 9, 9, 10, 13, 15, 16, 19, 20, 22, 24, 28, 32, 36, 37, 39, 40, 42, 43, 43, 43, 45, 46, 50, 50, 52, 57, 58, 61, 69, 70, 71, 72, 74, 76, 78, 83, 83, 87, 87, 89, 91, 96, 98, 99], [1, 8, 8, 9, 16, 17, 18, 20, 20, 20, 22, 27, 28, 29, 29, 30, 31, 34, 36, 41, 43, 47, 51, 52, 55, 56, 58, 66, 67, 67, 68, 70, 71, 75, 76, 78, 79, 80, 80, 85, 87, 90, 94, 94, 95, 96], [4, 4, 5, 7, 7, 18, 19, 21, 22, 24, 24, 26, 29, 31, 33, 36, 37, 38, 47, 50, 50, 51, 51, 52, 53, 53, 53, 53, 55, 55, 55, 57, 58, 73, 76, 76, 80, 81, 83, 85, 86, 87, 89, 90, 91, 97], [1, 3, 5, 12, 15, 18, 18, 20, 22, 26, 26, 27, 28, 29, 31, 32, 32, 35, 36, 39, 40, 42, 47, 47, 49, 51, 51, 51, 51, 57, 62, 62, 64, 66, 70, 71, 72, 73, 74, 84, 84, 88, 89, 94, 96, 97], [10, 11, 13, 15, 15, 17, 17, 18, 21, 22, 24, 24, 26, 28, 32, 33, 34, 35, 39, 40, 45, 46, 48, 50, 54, 55, 55, 56, 57, 60, 62, 62, 63, 63, 67, 67, 68, 68, 71, 72, 78, 79, 80, 90, 97, 98], [1, 5, 7, 7, 9, 11, 14, 22, 25, 26, 28, 31, 34, 37, 38, 44, 46, 47, 47, 48, 48, 52, 52, 53, 54, 54, 54, 57, 60, 61, 67, 74, 75, 77, 78, 80, 80, 81, 81, 86, 91, 92, 94, 97, 98, 99], [2, 3, 11, 15, 15, 16, 22, 22, 24, 31, 32, 32, 32, 33, 33, 35, 36, 41, 43, 44, 46, 46, 47, 50, 54, 55, 55, 57, 59, 65, 67, 67, 68, 70, 70, 73, 74, 79, 82, 84, 84, 86, 87, 87, 94, 97], [1, 2, 2, 3, 5, 7, 9, 12, 12, 12, 13, 16, 19, 19, 22, 23, 23, 27, 30, 32, 33, 38, 43, 47, 47, 47, 50, 53, 53, 56, 57, 59, 60, 64, 67, 70, 73, 78, 81, 82, 88, 88, 92, 95, 97, 98], [2, 3, 3, 5, 6, 8, 20, 23, 24, 26, 27, 28, 35, 38, 38, 40, 43, 44, 44, 46, 47, 49, 51, 53, 56, 58, 59, 63, 63, 64, 65, 67, 68, 68, 69, 70, 76, 80, 82, 85, 86, 87, 88, 92, 92, 96], [1, 1, 2, 2, 4, 5, 8, 10, 11, 14, 15, 17, 17, 18, 23, 31, 35, 36, 42, 44, 48, 49, 51, 52, 52, 61, 64, 66, 67, 68, 70, 72, 75, 77, 78, 81, 84, 85, 87, 95, 97, 98, 98, 98, 98, 99], [2, 6, 6, 7, 9, 11, 16, 17, 26, 26, 28, 35, 36, 43, 44, 46, 48, 50, 51, 53, 53, 54, 56, 57, 58, 67, 68, 68, 68, 73, 73, 74, 75, 77, 78, 78, 78, 79, 80, 85, 86, 91, 92, 92, 98, 99], [3, 9, 9, 12, 15, 19, 19, 30, 31, 34, 35, 35, 39, 40, 47, 49, 49, 53, 58, 58, 59, 61, 61, 63, 64, 66, 67, 69, 70, 70, 71, 74, 77, 77, 78, 82, 84, 90, 90, 90, 91, 92, 92, 94, 95, 97], [3, 4, 8, 8, 8, 9, 10, 23, 27, 27, 31, 31, 36, 38, 38, 39, 40, 41, 41, 41, 46, 48, 51, 54, 55, 55, 65, 65, 67, 74, 74, 77, 79, 83, 83, 84, 86, 87, 89, 89, 90, 92, 93, 97, 98, 99]], 41, 32,), ([[-38, -60, 88, -62, 64, -80, -6, -2, 92, 70, -90, 90, -48, 12, -90, 38, -32, -62, -64, -86, 28, -72, 42, -56, 42, 72, 80, 40, -20, -2, 36, -74, 70, -76, -98, 2, 2, 12, -4, -36, 48, -60, -36, -94], [46, -60, -56, -72, 84, 42, -58, 20, 94, 42, 40, 18, -48, 34, -40, -64, 38, 80, 64, -96, -94, 34, -24, -30, 0, -82, -70, 56, -30, -12, -86, -34, 18, 62, 46, 90, -82, -60, -60, 8, 52, 58, 76, -18], [-36, -60, -48, 96, -22, -96, 16, -16, 94, 20, 52, -14, 94, -12, -62, -10, 24, 86, -40, -92, 30, -6, -74, 60, 42, -84, 30, -38, 70, 30, -2, -96, 96, -68, 54, -38, 38, 94, -62, -54, 0, 32, -86, 76], [18, 52, -66, -96, -56, 10, 14, 40, -96, -58, 72, 30, -24, 80, -22, 46, 0, -88, -10, 0, -82, -76, -70, -38, -52, 72, -60, 40, -92, 30, 18, 70, -58, 76, -60, 98, 98, 42, -70, -66, 26, -18, -24, 0], [6, -98, 22, -4, 8, 84, 52, -72, 34, -68, -86, -4, -92, 92, -74, 76, 46, 30, 0, -10, -4, -28, 62, 72, 78, 84, 96, -12, 30, 12, -56, 46, 66, -12, 96, -52, -26, -52, -62, 68, -8, -84, 68, -98], [-90, 42, 78, -70, -6, -82, 68, 26, 20, 18, 30, 64, 12, -98, -90, 22, -64, -60, -34, -24, -30, -76, -62, 28, 6, -58, -70, -52, 34, -72, 80, -6, -66, 58, 28, 30, -38, 80, -58, 26, 72, -46, -18, -74], [-2, -40, -52, -68, -80, 86, -78, 18, -60, -18, -94, -50, -30, -22, -40, -76, 58, 4, -88, -82, 32, -52, 76, 62, -22, 6, 76, -80, 38, 34, 82, -50, 18, -4, -96, 72, -46, 22, -66, 46, -50, -34, 28, 2], [-18, 94, 94, -92, -96, 64, 60, 94, 8, 10, -14, 74, 12, 28, 58, 18, -68, -66, 20, -84, 6, -54, 88, 76, -72, -94, -84, -28, 22, -84, -50, -22, 66, 86, -12, -52, 66, -82, -24, 0, 62, -74, 58, 10], [86, 26, -24, -10, -46, 42, 86, -76, -42, 0, -74, -86, -32, 88, -50, 12, -14, -88, -94, 8, 38, -72, -26, -8, 56, -36, 82, -80, -12, 42, -86, 96, -90, -34, -6, -86, -72, 52, -42, 80, 86, 26, -72, 8], [-26, -10, 44, -70, -22, -40, 4, 82, 40, -18, -64, 72, 10, 36, -76, 78, 52, -58, 4, -60, -52, -32, -58, -68, 32, -82, 82, -80, 6, 58, 44, 26, -44, -48, -98, -42, -48, -46, 4, 48, -36, -84, 10, 0], [50, -64, 98, 0, -90, 80, 80, -24, -84, -22, -84, -6, 76, 26, 36, -82, -46, -92, 86, 54, -18, 22, 76, 98, 16, 64, -32, 62, 84, 58, -16, -22, 46, -76, -58, 40, 26, 28, -62, -66, -60, -20, 72, -68], [-20, 14, -4, -90, 14, 86, 22, 26, 20, -80, 96, -20, -90, 50, -94, 10, -96, 46, -74, 58, 84, 24, -60, 64, -28, -58, 18, -52, -64, -54, 52, -26, 78, -50, -80, -8, -4, -30, 78, -2, 32, 70, 84, -60], [22, 98, 26, -72, 6, -24, 98, 74, -48, -48, 76, -12, -88, 48, -56, -52, 78, -58, 58, -72, 86, -78, -70, 36, 26, 4, -98, -32, 90, -96, -42, -18, 90, -8, -84, -4, 72, 24, -6, 60, 38, -72, 14, -2], [-24, -10, -16, -92, -52, 6, -44, -84, 0, 98, 88, -4, 58, 4, -20, 28, -58, 32, 64, 68, -66, 96, 36, 16, -74, 42, -96, 70, -92, 48, -52, -58, 40, -46, 82, -36, -68, -10, 94, -62, -34, -86, -6, 4], [32, 96, 22, 22, -82, -14, -58, -78, 44, -70, -30, -62, -56, -52, 42, 26, -48, 18, 18, 80, -82, 50, -12, 90, 20, 6, 72, -30, -80, -56, 72, 68, 0, -70, -28, 52, -52, -64, 86, 36, -38, -30, 24, -64], [22, -74, -30, 54, 76, 58, -88, 56, -30, -48, 4, 18, -28, 54, 42, -2, 8, -32, -20, 4, -40, -74, 78, 42, 6, 26, 94, 50, 94, -78, -16, 54, 36, -42, -6, -10, -70, 84, 62, 68, -76, -12, -46, -30], [56, -8, 86, -22, -80, 28, 8, -10, -40, -4, 0, -70, -70, 26, -70, -70, -84, -24, -10, -84, -12, 72, 8, -46, 38, 2, 86, -46, 48, -62, 60, -36, -18, -56, -84, 98, 6, -24, -22, 12, 2, 72, 34, 40], [12, -4, -66, -10, -20, -4, 96, 2, 76, 72, 40, 64, -6, 48, 32, -76, 18, 42, 66, 22, 12, 62, 34, -50, 10, 68, 94, -2, 82, 20, 8, 26, 22, -48, 42, 28, -70, -58, 88, -18, 12, 14, -46, -96], [70, -32, 42, -72, 54, 54, -92, -62, 30, -58, 50, -96, 68, -32, 40, -64, 76, -54, 88, 98, 86, 74, 62, 28, -62, 0, 60, -94, 24, 52, 70, 44, 76, -24, -46, -50, 74, -2, 40, 36, -52, -40, 46, 88], [46, -14, -6, 56, -94, -18, -24, -36, -2, 98, 28, -40, 36, -36, 82, -62, 88, -46, -70, -64, -30, 34, -14, 18, -20, 52, -96, -80, -20, -68, -62, -24, 60, 54, 66, 40, 14, 6, 20, -90, -20, 46, 66, 56], [4, 14, -78, -26, -16, 10, 40, -74, 60, -80, 46, 28, 80, -66, -28, 76, -4, 50, -4, 66, -38, 0, 46, 52, 98, 14, -4, 92, 92, -14, 24, 24, 90, -66, -86, 20, -44, 80, -26, -50, 92, 92, 86, -38], [-44, -74, 44, -46, -32, -50, 52, 94, -86, 46, 8, 56, 6, 12, 54, 66, -22, 18, -74, -54, -88, 42, 16, 8, -22, 96, -78, 98, 18, -16, 72, 44, -46, 36, 4, 72, -70, -68, -64, 20, -60, -50, 84, -64], [8, 82, 24, - 46, -62, 78, -72, 94, -8, 42, 18, 74, -40, -94, -86, 70, -34, -20, 58, 32, -14, -42, -46, -14, 6, 2, 74, 16, 92, 20, 6, -62, 40, -40, 88, -12, 82, 18, -22, 22, 38, -88, 28, 90], [82, -92, 96, 88, -64, 38, 14, -22, 56, -84, 2, -16, -88, -4, -50, -74, -10, -36, 68, 22, -92, 50, -12, 54, -84, -24, -50, -72, 12, 38, 74, -32, -26, -96, 38, 14, -50, 94, 74, -78, -56, 96, -68, 14], [-22, 46, -52, 16, 28, -22, -48, -96, 92, -54, -40, 86, 30, -4, -86, -92, -52, -18, -98, -78, 38, 70, -86, 98, 72, 30, 90, -28, 36, 58, 14, 12, 98, -54, 36, -32, -16, -76, 88, 32, -28, -4, 52, 30], [38, -90, 44, 54, -2, 16, -16, -66, 62, 98, 32, -82, -12, 12, -66, 54, -72, 64, -10, 30, 40, 0, -90, 90, -54, -92, -48, 58, 10, -4, -24, -86, -68, 70, 24, -38, -56, -78, -16, 56, 70, 88, 0, 54], [-50, 2, 18, -6, -12, 64, -12, 64, -44, 16, -16, 20, 72, 32, -54, -22, -12, 56, 84, -48, -60, -90, -70, -12, -4, -72, -78, 16, 22, 12, 48, -2, -82, -94, 48, 30, 76, -12, 94, -8, -10, -8, -46, -22], [96, 56, -22, -44, -30, 92, -56, 26, -42, 60, -2, 58, 52, 8, -48, 70, -38, -32, -92, 14, 26, 76, 48, 84, -96, 42, 32, 38, 6, -70, -58, 4, 58, 86, -54, -4, 80, 94, 18, 28, -82, 4, -14, -80], [-70, -4, 88, 20, -96, 64, -64, -66, -44, 50, -72, -56, 90, 38, 46, -84, 68, 66, -42, 52, 2, -6, 94, 78, -48, 84, -78, 82, -78, 96, 24, -12, -78, 60, 54, 26, -20, -80, -26, -42, 66, -40, -8, -74], [-60, -36, -16, 18, 24, 54, -52, -28, -48, 10, -16, -28, -26, -44, 72, 38, -56, 70, 28, 42, -38, 66, -34, -92, -42, 66, -18, 6, -64, 72, -22, -72, 82, 4, -14, -98, 20, -92, 84, 98, 84, -92, -96, 20], [-66, 8, -92, 76, -24, -36, -18, -62, -62, 12, 26, -12, -64, -26, -16, -42, 2, 82, -16, -74, -60, 8, 62, -8, 0, -66, -52, -44, -54, 58, 16, 94, -90, -60, -2, -14, 18, 16, -22, -88, -60, -16, 26, -18], [-22, -42, 20, -58, 72, 86, 2, -94, 32, -16, -68, -96, 10, -74, 40, -78, 96, -92, -94, 6, -26, -50, -28, -34, 62, 10, 74, -82, 0, 4, 58, -62, 28, 14, 26, 2, -40, -68, 42, 42, 80, 4, -48, -74], [-40, 26, -68, -60, -22, -50, 70, -42, 54, 30, -40, -70, 66, -8, -66, 24, 28, -46, 68, 8, -4, 84, 66, 54, 22, -80, -20, -28, 2, 6, 24, 88, -70, -80, 22, -96, -50, 60, -76, -32, 26, -58, 6, 6], [-60, 28, -56, -4, -8, -32, -12, 48, 48, 94, 18, 30, -56, 72, -70, 68, -26, -48, 22, 18, 64, 78, 38, -90, 18, -34, 90, -98, 82, -26, -80, -34, -22, 72, 58, 82, -96, -20, -80, 16, -50, -4, 24, 64], [-18, -62, 54, 32, 82, -22, 70, 16, 88, -34, 70, 16, -6, -80, 34, -42, 78, 30, -36, 96, 96, -62, 22, -96, -6, 0, -60, -70, 40, -62, 8, -92, -62, 90, -88, -78, 86, -38, 26, 18, 82, -96, -42, 30], [-48, -20, -42, -34, 76, 64, 2, 4, 6, 8, 56, -98, -50, -16, 68, -12, 78, -88, 62, 46, 22, 28, 36, 36, -46, 78, -86, -78, -10, -98, -24, -48, -62, -26, -4, 78, -84, -56, -48, -74, -2, 72, -86, 14], [-42, -74, 54, -28, -16, 94, 40, 44, -22, 10, 42, 38, 46, 68, 72, 32, 84, -6, -30, -54, -62, 30, 94, 36, -18, -30, 66, 52, 18, -24, -16, -60, -56, -2, -78, 80, -60, 20, -72, -24, -48, -86, -16, -12], [46, -38, -28, -72, 80, -8, -28, 28, -28, 4, -84, 56, -48, 28, -54, 34, 84, 28, -52, 38, -34, 20, 84, -10, 36, -60, 54, -66, -8, -54, -44, -82, 56, -78, -76, -94, 24, 30, 30, -78, -22, -48, 22, 44], [-10, -84, 66, 60, 40, -56, 86, 16, 44, -50, -62, 34, -44, 30, -62, 96, 76, -98, -50, -50, 36, -74, 42, -82, 44, -32, -48, 58, 22, 82, 82, 94, -70, -92, -96, -78, -70, 84, -44, -70, 82, -92, -96, -50], [40, -86, 66, 64, 98, 86, 18, 20, 54, -92, -26, 56, -96, -28, 16, 52, 42, 36, -64, 44, -96, -56, 78, 94, -54, 24, -62, 82, -36, -90, -40, 50, -72, -54, 80, 12, -24, 30, -48, 2, -64, 96, -66, 94], [80, 4, -82, -24, 18, 24, -78, -4, -14, 38, -10, -70, -78, -26, 6, 46, 78, 16, -48, 94, 4, 46, 54, -84, -56, -76, -50, -30, -94, -58, -96, 32, -2, -16, 76, -94, 54, -96, 96, -18, 80, 60, -82, 74], [12, -4, -66, 54, 82, 24, -84, 62, -58, -52, 8, -74, -62, 56, 86, -82, 30, 86, 46, 78, 94, 24, 44, 2, 62, -48, 58, 34, -74, -52, 32, 46, 92, 28, 72, -36, -14, -98, 68, -92, 12, 56, -40, -64], [-48, -98, 52, -92, 88, 30, 42, 90, 56, 76, 44, -58, -72, -28, -54, 26, -36, -28, -54, 64, 22, 2, -58, 30, 12, -92, 40, 46, 54, -16, -74, -2, 30, 72, 56, 96, -86, 76, -28, -26, 76, 32, -46, -22], [6, 16, 74, -22, -20, -12, 50, 50, 16, 50, 58, -16, -76, 68, 66, 36, -52, 98, 64, 84, -50, 88, -40, -22, -2, -94, 48, 70, 46, -36, 20, 74, -10, 20, -98, -26, -58, 80, 78, -66, -66, -28, 46, -40]], 30, 35,), ([[0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1]], 10, 9,), ([[73, 62, 15, 20, 30, 7, 64, 47, 16, 52, 55, 87, 49, 78, 88, 59, 29, 62, 70], [8, 6, 26, 49, 12, 22, 62, 79, 79, 7, 38, 44, 68, 23, 38, 35, 52, 91, 46], [48, 26, 67, 1, 45, 46, 37, 11, 25, 35, 79, 3, 10, 87, 65, 22, 99, 20, 7], [56, 58, 1, 24, 66, 45, 43, 71, 43, 66, 51, 46, 95, 72, 38, 13, 53, 70, 70], [91, 38, 39, 29, 88, 50, 81, 47, 29, 64, 26, 76, 37, 24, 1, 30, 70, 93, 99], [66, 67, 92, 20, 36, 5, 28, 62, 57, 94, 9, 89, 81, 64, 55, 68, 36, 44, 41], [85, 37, 47, 87, 73, 77, 56, 49, 73, 35, 94, 62, 26, 95, 59, 96, 77, 71, 21], [89, 38, 3, 80, 35, 75, 1, 39, 92, 10, 94, 55, 60, 95, 22, 42, 85, 98, 19], [52, 99, 43, 54, 60, 70, 15, 4, 25, 58, 45, 28, 5, 9, 40, 41, 53, 63, 35], [76, 43, 87, 77, 58, 81, 44, 99, 64, 16, 55, 17, 76, 20, 81, 74, 1, 61, 10], [14, 44, 60, 78, 72, 24, 31, 26, 86, 50, 77, 35, 64, 87, 57, 13, 79, 7, 51], [6, 35, 77, 25, 14, 30, 30, 88, 60, 63, 60, 30, 97, 14, 44, 75, 15, 82, 74], [16, 3, 1, 29, 70, 16, 42, 45, 86, 16, 77, 93, 69, 19, 20, 93, 14, 62, 84], [9, 40, 39, 99, 39, 51, 6, 26, 71, 73, 41, 40, 29, 69, 48, 8, 98, 81, 45], [52, 50, 89, 89, 99, 72, 84, 49, 86, 70, 48, 34, 35, 25, 79, 21, 47, 68, 99], [15, 71, 84, 46, 30, 57, 73, 52, 96, 40, 99, 16, 68, 51, 58, 48, 65, 7, 29], [55, 2, 13, 73, 91, 76, 24, 80, 39, 2, 34, 62, 90, 81, 96, 67, 31, 37, 34], [56, 7, 51, 88, 69, 1, 28, 68, 19, 8, 26, 36, 27, 96, 80, 49, 55, 8, 79], [74, 90, 52, 48, 12, 13, 9, 94, 61, 8, 7, 49, 53, 79, 99, 71, 81, 18, 55]], 17, 10,), ([[-92, -78, -78, -52, -46, -42, -38, -24, -18, -6, 2, 8, 14, 20, 58, 80, 84], [-86, -76, -66, -42, -26, -24, -18, -12, 2, 4, 10, 10, 14, 56, 62, 78, 80], [-82, -76, -60, -40, -40, -34, -22, -8, 0, 10, 16, 24, 56, 64, 68, 80, 92], [-86, -74, -72, -60, -58, -30, -12, -4, 2, 10, 24, 30, 34, 58, 64, 84, 96], [-88, -88, -88, -84, -66, -48, -32, -32, -18, -18, -12, 2, 12, 40, 58, 72, 86], [-80, -70, -64, -50, -48, -44, -26, -24, -20, -16, -8, 16, 24, 26, 48, 48, 76], [-96, -94, -94, -66, -50, -46, -34, -34, -10, 0, 2, 20, 24, 40, 82, 84, 98], [-90, -78, -66, -34, -20, -10, -10, 0, 10, 20, 36, 44, 58, 58, 80, 80, 84], [-96, -92, -56, -46, -44, -20, 16, 20, 24, 28, 34, 40, 42, 48, 60, 78, 90], [-98, -54, -46, -46, -44, -40, -34, -26, -24, -16, 2, 18, 24, 24, 38, 64, 82], [-80, -68, -66, -56, -46, -28, -24, -22, -16, 18, 20, 22, 24, 52, 64, 82, 98], [-90, -46, -44, -32, -20, -16, 12, 28, 32, 52, 54, 66, 70, 70, 72, 86, 88], [-98, -84, -78, -64, -58, -18, -8, 4, 38, 42, 46, 46, 56, 62, 62, 86, 90], [-98, -52, -52, -36, -8, -6, 22, 24, 26, 38, 40, 44, 56, 60, 66, 80, 94], [-88, -80, -72, -58, -50, -22, -20, -10, -6, 4, 4, 8, 24, 48, 70, 78, 80], [-88, -70, -60, -58, -50, -42, -36, -24, -6, 2, 14, 20, 44, 58, 74, 78, 80], [-76, -50, -46, -40, -30, -24, -10, 4, 10, 14, 28, 36, 40, 40, 46, 56, 60]], 8, 10,), ([[0, 0, 1, 0, 0, 1], [1, 1, 1, 0, 0, 0], [0, 1, 0, 1, 0, 1], [ 1, 0, 1, 1, 0, 0], [1, 0, 0, 1, 0, 0], [1, 1, 0, 1, 0, 1]], 5, 3,), ([[6, 13, 16, 17, 27, 30, 43, 43, 44, 49, 55, 60, 66, 68, 74, 75, 77, 84], [5, 17, 22, 32, 34, 38, 40, 43, 54, 57, 60, 61, 63, 66, 84, 86, 87, 91], [4, 4, 14, 19, 27, 29, 29, 34, 34, 44, 46, 51, 53, 59, 64, 77, 80, 82], [3, 8, 13, 18, 19, 28, 34, 35, 40, 52, 53, 53, 61, 73, 81, 83, 89, 98], [1, 5, 11, 19, 25, 34, 35, 37, 41, 50, 71, 74, 74, 76, 87, 95, 97, 99], [1, 4, 12, 17, 29, 30, 44, 48, 49, 54, 54, 59, 60, 64, 74, 78, 82, 96], [6, 15, 16, 17, 17, 23, 26, 28, 36, 37, 40, 47, 48, 51, 52, 56, 81, 94], [7, 9, 9, 43, 47, 51, 52, 56, 60, 65, 68, 74, 82, 88, 91, 97, 98, 98], [1, 4, 10, 17, 18, 24, 31, 45, 51, 51, 56, 65, 68, 70, 73, 77, 94, 95], [ 1, 1, 12, 13, 26, 27, 33, 37, 39, 39, 40, 41, 46, 51, 61, 67, 74, 87], [4, 6, 14, 15, 16, 17, 20, 22, 23, 45, 55, 56, 79, 80, 85, 85, 98, 99], [16, 17, 23, 23, 38, 43, 43, 49, 51, 66, 69, 69, 69, 72, 81, 84, 90, 97], [18, 23, 25, 26, 26, 29, 35, 37, 45, 59, 67, 73, 73, 76, 79, 80, 81, 85], [2, 6, 7, 8, 15, 18, 24, 33, 36, 46, 53, 54, 54, 66, 85, 91, 91, 96], [2, 9, 17, 23, 28, 28, 35, 36, 39, 48, 67, 69, 74, 75, 80, 85, 89, 96], [8, 15, 16, 19, 20, 31, 33, 43, 52, 63, 72, 79, 86, 88, 91, 92, 97, 99], [4, 5, 10, 14, 34, 37, 41, 44, 45, 49, 72, 74, 81, 84, 85, 93, 96, 99], [1, 2, 19, 20, 25, 27, 31, 33, 40, 48, 55, 61, 63, 69, 76, 81, 83, 84]], 10, 13,), ([[4, 12, -60, -76], [-56, 66, -84, 68], [-8, 14, 44, -74], [54, 50, 78, 0]], 2, 3,), ([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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], [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]], 19, 18,), ([[52, 7, 95, 62, 93, 89, 91, 56, 59, 16, 68, 28, 66, 67, 28, 60, 62, 73, 99, 50, 82, 60, 6, 98, 1, 16, 98, 77, 24, 53, 93, 41, 57, 64], [58, 70, 84, 33, 17, 25, 71, 88, 18, 52, 3, 82, 29, 21, 92, 7, 30, 32, 22, 70, 23, 3, 82, 10, 51, 58, 16, 8, 18, 58, 88, 12, 38, 24], [54, 57, 1, 87, 51, 44, 43, 24, 90, 50, 11, 30, 50, 76, 32, 99, 28, 10, 31, 90, 34, 90, 96, 39, 7, 22, 87, 72, 49, 31, 41, 71, 37, 64], [3, 91, 36, 83, 54, 80, 5, 44, 86, 45, 3, 33, 82, 92, 49, 96, 66, 97, 22, 43, 39, 12, 57, 97, 19, 99, 14, 20, 18, 24, 21, 62, 50, 8], [84, 52, 2, 31, 27, 92, 11, 4, 45, 39, 71, 95, 86, 19, 93, 93, 78, 35, 49, 66, 63, 57, 92, 20, 42, 19, 42, 71, 3, 58, 8, 30, 46, 36], [93, 21, 64, 42, 14, 39, 41, 71, 53, 68, 17, 46, 20, 66, 31, 24, 84, 63, 33, 58, 77, 56, 25, 61, 18, 26, 1, 10, 17, 24, 68, 39, 32, 23], [39, 54, 68, 4, 79, 78, 80, 94, 47, 18, 88, 9, 5, 24, 15, 19, 75, 50, 92, 23, 95, 90, 45, 21, 75, 70, 54, 12, 91, 15, 19, 73, 95, 20], [6, 50, 7, 65, 67, 87, 75, 68, 30, 89, 55, 31, 22, 42, 81, 71, 16, 4, 53, 3, 36, 69, 60, 45, 57, 85, 97, 99, 86, 11, 62, 76, 73, 7], [90, 92, 37, 24, 45, 10, 86, 79, 95, 62, 61, 70, 52, 84, 32, 62, 51, 31, 84, 58, 69, 85, 96, 74, 78, 11, 5, 73, 22, 89, 95, 86, 96, 1], [23, 83, 80, 6, 93, 80, 51, 87, 21, 29, 58, 92, 79, 80, 57, 76, 85, 49, 52, 32, 38, 83, 90, 14, 46, 83, 68, 76, 22, 58, 79, 43, 78, 42], [3, 51, 5, 9, 20, 68, 89, 22, 21, 39, 84, 36, 23, 70, 93, 33, 38, 76, 43, 3, 87, 9, 33, 50, 52, 91, 42, 76, 80, 82, 96, 10, 16, 98], [79, 84, 65, 45, 18, 45, 8, 42, 13, 1, 62, 95, 46, 53, 7, 32, 43, 19, 26, 63, 12, 58, 56, 52, 73, 50, 6, 41, 14, 85, 4, 35, 28, 20], [81, 20, 82, 93, 57, 57, 3, 8, 93, 17, 80, 34, 23, 21, 71, 46, 52, 77, 76, 62, 67, 70, 12, 99, 71, 1, 4, 21, 70, 56, 60, 19, 79, 92], [39, 69, 98, 82, 21, 26, 68, 89, 17, 8, 60, 21, 36, 55, 81, 44, 96, 62, 87, 14, 47, 14, 39, 76, 49, 38, 58, 84, 93, 14, 15, 30, 13, 16], [92, 70, 11, 57, 19, 22, 3, 39, 96, 86, 46, 55, 19, 40, 16, 37, 50, 75, 63, 50, 49, 95, 89, 38, 47, 8, 78, 15, 64, 57, 5, 8, 32, 54], [53, 2, 4, 76, 12, 39, 65, 40, 70, 13, 15, 42, 62, 15, 23, 16, 69, 47, 6, 35, 54, 8, 37, 53, 15, 16, 62, 74, 58, 31, 17, 42, 50, 9], [55, 92, 37, 74, 80, 67, 21, 31, 51, 10, 73, 43, 54, 26, 57, 40, 40, 39, 67, 64, 71, 4, 36, 33, 85, 86, 35, 97, 2, 56, 25, 94, 89, 29], [ 76, 13, 35, 51, 17, 13, 31, 6, 83, 31, 5, 71, 92, 2, 49, 11, 89, 83, 61, 82, 8, 48, 91, 71, 95, 55, 19, 60, 85, 89, 66, 25, 15, 30], [54, 94, 58, 73, 99, 27, 74, 6, 89, 46, 3, 16, 70, 44, 6, 30, 37, 50, 92, 17, 79, 77, 82, 69, 19, 57, 95, 39, 10, 13, 79, 50, 20, 96], [78, 2, 85, 80, 62, 28, 17, 28, 51, 37, 91, 31, 99, 98, 3, 19, 3, 91, 12, 37, 33, 18, 5, 39, 93, 21, 57, 71, 47, 62, 76, 35, 79, 6], [1, 90, 92, 4, 33, 68, 68, 31, 76, 18, 81, 20, 50, 97, 17, 8, 38, 80, 85, 56, 36, 76, 20, 57, 20, 5, 56, 61, 2, 14, 22, 8, 86, 14], [71, 45, 94, 34, 98, 3, 65, 8, 88, 17, 20, 98, 19, 63, 11, 89, 34, 62, 54, 26, 94, 7, 27, 28, 28, 12, 7, 4, 77, 12, 9, 24, 65, 85], [70, 14, 10, 88, 9, 7, 56, 53, 18, 17, 22, 82, 79, 89, 26, 52, 39, 74, 21, 57, 70, 71, 78, 67, 27, 37, 65, 90, 73, 28, 78, 31, 94, 91], [10, 99, 56, 64, 46, 65, 8, 74, 81, 76, 44, 82, 37, 84, 31, 30, 93, 45, 79, 35, 37, 61, 51, 99, 67, 19, 59, 8, 28, 9, 82, 88, 62, 4], [37, 6, 2, 45, 24, 60, 77, 78, 78, 25, 73, 25, 46, 56, 99, 26, 2, 59, 50, 86, 18, 32, 3, 82, 45, 96, 88, 90, 53, 91, 72, 52, 20, 24], [51, 11, 26, 53, 77, 33, 83, 46, 32, 63, 22, 48, 64, 5, 29, 95, 28, 16, 5, 51, 43, 27, 38, 22, 5, 29, 54, 54, 23, 13, 80, 45, 96, 85], [26, 54, 77, 95, 90, 59, 70, 7, 96, 65, 33, 29, 88, 79, 15, 74, 52, 36, 74, 56, 63, 4, 42, 8, 98, 55, 24, 60, 68, 99, 18, 86, 46, 92], [16, 81, 86, 22, 79, 79, 30, 7, 77, 68, 77, 50, 98, 76, 98, 27, 59, 10, 95, 53, 55, 91, 11, 18, 12, 5, 22, 48, 84, 3, 83, 41, 7, 72], [62, 72, 56, 90, 49, 13, 25, 29, 85, 47, 6, 30, 59, 30, 74, 55, 98, 86, 75, 7, 50, 34, 92, 71, 28, 27, 73, 76, 96, 92, 67, 78, 73, 36], [68, 91, 8, 18, 61, 91, 37, 26, 32, 81, 77, 7, 72, 88, 4, 29, 67, 61, 5, 23, 72, 50, 79, 24, 23, 72, 88, 90, 51, 74, 8, 2, 7, 82], [75, 25, 11, 60, 42, 36, 10, 26, 11, 97, 13, 77, 14, 25, 39, 48, 22, 39, 70, 85, 42, 47, 79, 96, 45, 15, 10, 79, 6, 93, 50, 67, 66, 99], [43, 58, 67, 95, 47, 79, 13, 66, 90, 52, 35, 18, 87, 7, 99, 6, 17, 5, 84, 25, 23, 46, 49, 71, 23, 5, 97, 50, 30, 12, 99, 58, 45, 19], [66, 54, 34, 82, 61, 60, 61, 18, 71, 81, 67, 2, 10, 90, 31, 66, 54, 27, 82, 58, 69, 16, 30, 78, 62, 66, 30, 79, 86, 98, 49, 43, 46, 74], [60, 3, 19, 15, 90, 29, 28, 90, 96, 62, 51, 37, 3, 88, 71, 77, 44, 40, 92, 41, 96, 69, 53, 41, 82, 42, 49, 99, 79, 21, 56, 28, 7, 46]], 17, 27,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MAXIMUM_DIFFERENCE_SUM_ELEMENTS_TWO_ROWS_MATRIX.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , n , l , r ) : count = 0 for i in range ( l , r ) : if ( a [ i ] == a [ i + 1 ] ) : count += 1 return count #TOFILL if __name__ == '__main__': param = [ ([4, 13, 13, 16, 16, 19, 39, 41, 48, 52, 57, 62, 65, 67, 76, 84, 88, 91, 95, 96, 97, 98],18,12,17,), ([62, 76, 86, -8, 84, -6, 72, 84, 6, -50, -18, -94, 54, 90, -74, -64, -26, -14, -32, 62, 10, 4, 70, -28, 8, 18, 4, -62, -76, 84, -78, -4, 84, 98, 58, -68, 42, -6, 34, -38, 52, -84, 78],32,38,23,), ([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],10,6,6,), ([11, 75, 98, 29, 62, 53, 48, 91, 86, 66, 48, 94],8,6,6,), ([-94, -84, -70, -70, -40, -40, -36, -24, 10, 48, 62, 74],11,7,8,), ([1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0],36,40,37,), ([1, 2, 6, 7, 10, 11, 13, 19, 19, 25, 29, 30, 32, 34, 35, 45, 45, 46, 47, 48, 48, 53, 58, 61, 64, 65, 67, 75, 76, 81, 81, 84, 84, 85, 86, 94, 94, 96, 99],25,19,37,), ([-56, 42, -34, -12, -86, 82, -96, -66, 30, 16, -40, 72, 84, 94, -48, -30, 26, 50, 42, -44, -50, 22, -38, 8, 34, 94, 2, 16, -32, 18, -58, 12, -26, 28, -62],21,30,26,), ([0, 0, 0, 0, 1, 1, 1],4,5,5,), ([6, 29],1,1,1,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/NUMBER_INDEXES_EQUAL_ELEMENTS_GIVEN_RANGE.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , size ) : Hash = dict ( ) for i in range ( size ) : Hash [ arr [ i ] ] = Hash.get ( arr [ i ] , 0 ) + 1 ; for i in Hash : if ( Hash [ i ] % 2 != 0 ) : return i return - 1 #TOFILL if __name__ == '__main__': param = [ ([49, 90],1,), ([-96, 94, 92, -24, 48, 54, -30, -86, 28, -18, 12, -64, -36, 68, 68, -78, -6, 30, -84, 20, 52, -36, 40, -62, 90, -48, 86, 98, 12, 44, 98, -66, 52, 34, 36, 76, -50, -20, -20, -20],39,), ([0, 1],1,), ([79, 55, 18, 99, 38, 93, 19, 49, 21, 74, 16, 76, 82, 52, 86, 17, 42, 9, 6, 63, 1, 40, 75, 59, 41, 81],23,), ([-90, -84, -82, -68, -66, -66, -60, -60, -48, -44, -36, -34, -30, -16, -14, -12, -10, -6, 2, 10, 10, 14, 22, 26, 30, 34, 46, 50, 52, 62, 64, 64, 66, 72, 74, 78, 78, 82, 84, 88, 92],23,), ([1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1],18,), ([2, 4, 5, 7, 7, 18, 18, 23, 23, 25, 25, 31, 41, 43, 45, 46, 52, 52, 55, 64, 69, 69, 80, 81, 84, 90, 91, 93, 94, 94, 94, 94, 96, 98, 99],20,), ([86, 66, -8, 2, -18, -22, 38, 4, -38, -54, 78, 64, 78, 20, -32, 84, -70, 66, -46, 12, -12, 8, 44, 14, 20],20,), ([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],21,), ([11, 4, 98, 38, 20, 41, 1, 8],7,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_THE_NUMBER_OCCURRING_ODD_NUMBER_OF_TIMES_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( digits , n ) : count = [ 0 ] * ( n + 1 ) ; count [ 0 ] = 1 ; count [ 1 ] = 1 ; for i in range ( 2 , n + 1 ) : count [ i ] = 0 ; if ( digits [ i - 1 ] > '0' ) : count [ i ] = count [ i - 1 ] ; if ( digits [ i - 2 ] == '1' or ( digits [ i - 2 ] == '2' and digits [ i - 1 ] < '7' ) ) : count [ i ] += count [ i - 2 ] ; return count [ n ] ; #TOFILL if __name__ == '__main__': param = [ (['B', 'C', 'E', 'E', 'F', 'F', 'G', 'J', 'K', 'K', 'L', 'L', 'M', 'O', 'O', 'P', 'Q', 'R', 'V', 'X', 'Z', 'a', 'a', 'a', 'c', 'c', 'c', 'd', 'e', 'g', 'g', 'k', 'k', 'k', 'l', 'm', 'm', 'n', 'p', 't', 'y', 'z'],31,), (['0', '9', '5', '0', '2', '6', '5', '4', '4', '5', '2', '6', '8', '2', '0', '3', '1', '9', '0', '1', '5'],13,), (['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'],19,), (['x', 'a', 'R', 'O', 'S', 'r', 'g', 'e', 'Y', 'Z', 't'],5,), (['0', '1', '1', '1', '2', '2', '2', '2', '2', '2', '2', '3', '3', '4', '4', '5', '5', '5', '5', '5', '6', '6', '7', '7', '7', '7', '8', '8'],21,), (['1', '1', '1', '1', '1', '1'],4,), ([' ', ' ', ' ', 'B', 'B', 'C', 'D', 'F', 'H', 'I', 'J', 'K', 'L', 'O', 'P', 'V', 'W', 'W', 'Z', 'Z', 'a', 'c', 'h', 'i', 'q', 's', 'x'],26,), (['0', '9', '1', '5', '2', '4', '9', '3'],5,), (['0', '0', '0', '1', '1', '1'],4,), (['w', 't', 'U', 'R', 'a', 'c', 'G'],5,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_POSSIBLE_DECODINGS_GIVEN_DIGIT_SEQUENCE_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( low , high ) : fact = 1 x = 1 while ( fact < low ) : fact = fact * x x += 1 res = 0 while ( fact <= high ) : res += 1 fact = fact * x x += 1 return res #TOFILL if __name__ == '__main__': param = [ (57,79,), (57,21,), (31,37,), (62,87,), (49,98,), (82,76,), (31,45,), (5,52,), (76,43,), (55,6,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_FACTORIAL_NUMBERS_IN_A_GIVEN_RANGE.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import sys def f_gold ( arr , n ) : res = - sys.maxsize for i in range ( 0 , n ) : curr_sum = 0 for j in range ( 0 , n ) : index = int ( ( i + j ) % n ) curr_sum += j * arr [ index ] res = max ( res , curr_sum ) return res #TOFILL if __name__ == '__main__': param = [ ([11, 12, 16, 26, 29, 40, 54, 59, 65, 70, 71, 73, 78, 81, 87, 87, 88, 90, 95, 97],11,), ([-46, -32, 54, 96, -72, -58, -36, -44, 26, -2, -68, 42, 90, 26, -92, -96, 88, -42, -18, 46, -70, 24, 0, 24, 34, 34, -52, 50, 94, -60, 64, 58],22,), ([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, 1, 1, 1],33,), ([48, 2, 79, 98, 28, 17, 41, 47, 61, 76, 82, 5, 74, 4, 80, 51, 22, 45, 91, 75, 91, 93, 42, 45, 69, 98, 76, 74, 83, 17, 30, 88, 53, 25, 35, 19, 26],20,), ([-88, -84, -82, -74, -44, -34, -32, -20, -20, -14, 6, 6, 10, 12, 16, 24, 32, 34, 38, 46, 54, 54, 56, 60, 82, 88, 90, 94, 98],24,), ([0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1],7,), ([10, 14, 14, 14, 19, 20, 22, 26, 35, 36, 40, 53, 54, 55, 55, 57, 57, 67, 72, 72, 77, 78, 83, 84, 95, 96],16,), ([-80, 18, -76, 48, -52, -38, 52, -82, 40, -44, -90, 86, -86, -36, -32, -2, 56, -12, -88, 14, -16, 8, 52, 24, 46, 56, 84, -36, 84, -60, 72, -46, 32, -16, -20, 68, -86, -62, 58, 8, 78, -52, 22, -28, -22, -42, 12, -48],30,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],14,), ([20, 94, 36, 2, 50, 62, 84, 50, 66, 75, 1, 18, 41, 48, 72, 61, 86, 22, 54, 6, 71, 46, 92, 68, 59, 51, 89, 31, 58, 78, 82, 84],25,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : sum = 0 while ( n > 0 ) : sum += int ( n % 10 ) n = int ( n / 10 ) return sum #TOFILL if __name__ == '__main__': param = [ (50,), (92,), (49,), (94,), (7,), (30,), (88,), (98,), (94,), (23,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/HOW_CAN_WE_SUM_THE_DIGITS_OF_A_GIVEN_NUMBER_IN_SINGLE_STATEMENT_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from queue import Queue def f_gold ( pages , n , capacity ) : s = set ( ) indexes = Queue ( ) page_faults = 0 for i in range ( n ) : if ( len ( s ) < capacity ) : if ( pages [ i ] not in s ) : s.add ( pages [ i ] ) page_faults += 1 indexes.put ( pages [ i ] ) else : if ( pages [ i ] not in s ) : val = indexes.queue [ 0 ] indexes.get ( ) s.remove ( val ) s.add ( pages [ i ] ) indexes.put ( pages [ i ] ) page_faults += 1 return page_faults #TOFILL if __name__ == '__main__': param = [ ([4, 4, 6, 7, 8, 11, 13, 18, 26, 35, 36, 37, 45, 46, 46, 47, 48, 49, 51, 52, 53, 56, 61, 74, 75, 77, 80, 83, 85, 86, 87, 90, 93, 95, 97, 98, 99, 99],36,37,), ([78, -48, 50, -20, -6, 58, -8, 66, 72, 68, 4, 80, 58, -26, -82, -56, 92, 76, 20, 82, -46, 86, 38, 60, -62, -48, 76, 8, -66, -4, -98, -96, -52, 92],33,23,), ([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],19,13,), ([98, 78, 94, 42, 62, 83, 7, 62, 60, 94, 16, 28, 50, 15, 18, 71, 86, 47, 62, 89],15,11,), ([-82, -70, -68, -56, -50, -44, 4, 18, 28, 30, 30, 42, 66, 78, 80],9,11,), ([1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0],25,25,), ([4, 5, 13, 15, 18, 28, 32, 40, 46, 46, 55, 57, 61, 63, 65, 68, 77, 79, 79, 96],17,18,), ([-2, 82, 2, -74, -6, -24, 54, -74, -98, 8, -94, -60, -42, -38, 36, -38, -58, -70, -28, -34, 70, -6, -2, -76, -40, -4, 0, -4, 76, 48, -34, -26, -48, -58, -88, -44, 20, -22, 78],31,24,), ([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],26,24,), ([4, 90, 28, 71, 69, 45, 92, 63, 72, 76, 47, 85, 36, 59, 88, 46, 28, 19, 50, 31, 63, 13],15,12,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/PROGRAM_PAGE_REPLACEMENT_ALGORITHMS_SET_2_FIFO.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b , c , x1 , y1 ) : temp = - 2 * ( a * x1 + b * y1 + c ) / ( a * a + b * b ) x = temp * a + x1 y = temp * b + y1 return ( x , y ) #TOFILL if __name__ == '__main__': param = [ (3732.666168699511,6717.4319776458415,8487.605110792734,3122.488414306167,7288.495313569254,), (-6160.28797099689,-9526.951282445563,-2727.4586614461805,-7534.755781098465,-8258.639928049572,), (9707.663226287044,3545.24083205238,7876.511569086982,1470.811329180811,6452.68041640754,), (-6911.228913076611,-2028.0397959113661,-9156.730104961494,-9225.561292876928,-1370.1493253417884,), (2437.324652060757,6351.663596100777,9309.29692624503,9217.775327187837,124.92622868105929,), (-9772.988102067504,-7037.832078976599,-1106.0784469214657,-9822.961372946284,-9850.889686793544,), (962.3813406727966,2636.211531080329,3803.337776332597,8968.88804348246,768.6415184062179,), (-5295.715793735837,-1371.1549844447245,-4574.9652965175055,-5723.073256651608,-3979.742641311409,), (8277.666437028653,3894.6319227476024,1927.1038244370075,8277.958654483882,4293.94644558483,), (-8233.422168737996,-5956.055383069726,-5624.546627814419,-4024.7562734644903,-3480.155957748129,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_MIRROR_IMAGE_POINT_2_D_PLANE.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( num ) : num = list ( num ) n = len ( num ) rightMin = [ 0 ] * n right = 0 rightMin [ n - 1 ] = - 1 ; right = n - 1 ; for i in range ( n - 2 , 0 , - 1 ) : if num [ i ] > num [ right ] : rightMin [ i ] = right else : rightMin [ i ] = - 1 right = i small = - 1 for i in range ( 1 , n ) : if num [ i ] != '0' : if small == - 1 : if num [ i ] < num [ 0 ] : small = i elif num [ i ] < num [ small ] : small = i if small != - 1 : num [ 0 ] , num [ small ] = num [ small ] , num [ 0 ] else : for i in range ( 1 , n ) : if rightMin [ i ] != - 1 : num [ i ] , num [ rightMin [ i ] ] = num [ rightMin [ i ] ] , num [ i ] break return ''.join ( num ) #TOFILL if __name__ == '__main__': param = [ ('ncYltuhSxEfG',), ('26615541616459',), ('0101',), ('hK',), ('422162103899',), ('0010',), ('zfcSh',), ('92',), ('0',), ('v',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FORM_SMALLEST_NUMBER_USING_ONE_SWAP_OPERATION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( rows , columns , numbers ) : k = 0 arr = [ [ 0 for i in range ( columns ) ] for j in range ( rows ) ] for i in range ( rows ) : if ( i % 2 == 0 ) : j = 0 while j < columns and numbers [ k ] > 0 : arr [ i ] [ j ] = k + 1 numbers [ k ] -= 1 if numbers [ k ] == 0 : k += 1 j += 1 else : j = columns - 1 while j >= 0 and numbers [ k ] > 0 : arr [ i ] [ j ] = k + 1 numbers [ k ] -= 1 if numbers [ k ] == 0 : k += 1 j -= 1 for i in arr : for j in i : print ( j , end = " " ) print ( ) #TOFILL if __name__ == '__main__': param = [ (20,31,[1, 6, 11, 14, 14, 15, 23, 24, 26, 28, 30, 35, 40, 45, 47, 50, 52, 54, 56, 57, 59, 60, 61, 66, 70, 77, 78, 80, 80, 87, 88, 97],), (20,29,[10, 6, -38, -32, -36, 24, 62, 66, 34, 24, 82, -46, 46, -48, -24, 28, 74, 40, -96, 60, 82, 12, -14, 52, 98, 28, 82, 62, 18, 42, -80],), (18,18,[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],), (23,27,[32, 41, 8, 32, 66, 68, 56, 11, 71, 44, 62, 19, 27, 42, 82, 3, 79, 47, 82, 28, 7, 29, 79, 3, 33, 65, 55, 34, 41, 63, 29],), (28,34,[-96, -94, -90, -88, -84, -78, -76, -60, -60, -58, -42, -40, -36, -36, -28, -24, -8, 2, 4, 8, 10, 22, 26, 30, 32, 36, 36, 40, 48, 48, 52, 64, 68, 70, 74, 74, 78, 90, 92, 94],), (14,15,[1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0],), (20,18,[1, 5, 12, 18, 23, 30, 31, 34, 40, 45, 48, 51, 52, 53, 55, 58, 58, 59, 60, 63, 67, 69, 74, 78, 85, 97, 99, 99],), (46,28,[-18, 32, -54, -44, -24, -78, -98, -66, 34, 4, -12, 8, -76, -20, 72, 58, 76, 96, -70, -26, -98, 90, -40, 6, -30, -90, -8, -64, -22, 4, 82, 16, 18, 22, 30, 10, -14, 26, -48, 74, -38, -28, 62, 98, -32, 78, -22, -38, -70],), (39,46,[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, 1, 1, 1, 1, 1, 1, 1, 1],), (13,19,[60, 96, 34, 69, 96, 9, 58, 59, 59, 68, 14, 53, 68, 89, 2, 5, 42, 31, 1, 33, 62, 1, 91, 85, 70, 68, 18],) ] filled_function_param = [ (20,31,[1, 6, 11, 14, 14, 15, 23, 24, 26, 28, 30, 35, 40, 45, 47, 50, 52, 54, 56, 57, 59, 60, 61, 66, 70, 77, 78, 80, 80, 87, 88, 97],), (20,29,[10, 6, -38, -32, -36, 24, 62, 66, 34, 24, 82, -46, 46, -48, -24, 28, 74, 40, -96, 60, 82, 12, -14, 52, 98, 28, 82, 62, 18, 42, -80],), (18,18,[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],), (23,27,[32, 41, 8, 32, 66, 68, 56, 11, 71, 44, 62, 19, 27, 42, 82, 3, 79, 47, 82, 28, 7, 29, 79, 3, 33, 65, 55, 34, 41, 63, 29],), (28,34,[-96, -94, -90, -88, -84, -78, -76, -60, -60, -58, -42, -40, -36, -36, -28, -24, -8, 2, 4, 8, 10, 22, 26, 30, 32, 36, 36, 40, 48, 48, 52, 64, 68, 70, 74, 74, 78, 90, 92, 94],), (14,15,[1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0],), (20,18,[1, 5, 12, 18, 23, 30, 31, 34, 40, 45, 48, 51, 52, 53, 55, 58, 58, 59, 60, 63, 67, 69, 74, 78, 85, 97, 99, 99],), (46,28,[-18, 32, -54, -44, -24, -78, -98, -66, 34, 4, -12, 8, -76, -20, 72, 58, 76, 96, -70, -26, -98, 90, -40, 6, -30, -90, -8, -64, -22, 4, 82, 16, 18, 22, 30, 10, -14, 26, -48, 74, -38, -28, 62, 98, -32, 78, -22, -38, -70],), (39,46,[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, 1, 1, 1, 1, 1, 1, 1, 1],), (13,19,[60, 96, 34, 69, 96, 9, 58, 59, 59, 68, 14, 53, 68, 89, 2, 5, 42, 31, 1, 33, 62, 1, 91, 85, 70, 68, 18],) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/GIVEN_1S_2S_3S_KS_PRINT_ZIG_ZAG_WAY.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : if n < 3 : return - 1 arr.sort ( ) return max ( arr [ 0 ] * arr [ 1 ] * arr [ n - 1 ] , arr [ n - 1 ] * arr [ n - 2 ] * arr [ n - 3 ] ) #TOFILL if __name__ == '__main__': param = [ ([5, 8, 14, 15, 18, 21, 21, 21, 27, 29, 30, 33, 34, 34, 35, 37, 40, 41, 44, 44, 46, 49, 54, 58, 60, 61, 61, 63, 66, 69, 69, 70, 81, 82, 82, 90, 90, 90, 91, 92, 92, 96, 97, 99],39,), ([72, -32, -2, -76, -56, 70, -52, 12, -50, 32, -98, 48, -32, -90, -66, -98, 56, -58, -88, 50, -22, 18, -60, 68, 70, 28],18,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],17,), ([38, 69, 18, 72, 99, 49, 17, 76, 86, 53, 6, 94, 66, 5, 2, 62, 99, 5, 31, 81, 63, 91, 95, 74, 76, 18, 77],21,), ([-92, -58, -8, 20, 24, 24, 42, 98],4,), ([0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0],38,), ([46, 64, 81],1,), ([4, -26, 20, 34, -4, -40, 76, 94, -14, -80, 42, 60, 92, -96, 44, 58, 34, 68, 96, -8, -18, -92],17,), ([0, 0, 0, 1, 1, 1, 1, 1],7,), ([61, 17, 28, 18, 52, 58, 41, 75, 98, 79, 1, 97, 73, 17, 79, 4, 46, 70, 6, 83, 23, 94, 1],19,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_MAXIMUM_PRODUCT_OF_A_TRIPLET_IN_ARRAY_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : return 1 if ( n == 1 or n == 0 ) else n * f_gold ( n - 1 ) ; #TOFILL if __name__ == '__main__': param = [ (57,), (28,), (23,), (79,), (52,), (42,), (79,), (77,), (99,), (70,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/PROGRAM_FOR_FACTORIAL_OF_A_NUMBER_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : leftMax = [ None ] * n leftMax [ 0 ] = float ( '-inf' ) for i in range ( 1 , n ) : leftMax [ i ] = max ( leftMax [ i - 1 ] , arr [ i - 1 ] ) rightMin = float ( 'inf' ) for i in range ( n - 1 , - 1 , - 1 ) : if leftMax [ i ] < arr [ i ] and rightMin > arr [ i ] : return i rightMin = min ( rightMin , arr [ i ] ) return - 1 #TOFILL if __name__ == '__main__': param = [ ([4, 24, 30, 33, 56, 67, 87, 90],4,), ([72, -48, 12, 4, 46, 36, 2, 58, 82, -88, -14, 56, 90, 76, 18, -6, -28, 18, 88, 90, 40, -68, -10, -82, -28, 16, 32, -90, 12, -86, -16, 78, -98, -52, -26, 80, 6, 50, 40, -12, 52, 38, -92, 94, -32, 14, -80, -88, 48],28,), ([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],30,), ([51, 87, 46, 76, 2, 89, 56, 34, 49, 61, 44, 73, 14, 60, 89],11,), ([-90, -90, -80, -72, -68, -64, -62, -62, -60, -46, -44, -44, -44, -42, -42, -32, -22, -22, -18, -2, 4, 6, 10, 12, 14, 30, 34, 34, 40, 56, 56, 56, 58, 68, 74, 78, 78, 82, 84, 86, 88, 90, 92],29,), ([0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0],26,), ([7, 8, 11, 12, 15, 17, 28, 34, 57, 61, 66, 76, 92],9,), ([-22, -96, -78, -60, 34, -18, 86, -42, -78, 76, 8, 28, -80, 80, 6, -72, 34, 66, 84, 50, -4, 18, 72, -66, -68, -24, 56, -12, -70, 24, -82],19,), ([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],9,), ([79, 81, 55, 6, 78, 93, 81, 33, 29, 1, 27, 49, 21, 58, 22, 65, 44, 95, 6, 51, 75, 42, 14, 55, 79, 82, 90, 8, 15, 15, 53, 98, 76, 43, 33],30,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_THE_ELEMENT_BEFORE_WHICH_ALL_THE_ELEMENTS_ARE_SMALLER_THAN_IT_AND_AFTER_WHICH_ALL_ARE_GREATER_THAN_IT.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import math def f_gold ( r ) : if ( r <= 0 ) : return 0 result = 4 for x in range ( 1 , r ) : ySquare = r * r - x * x y = int ( math.sqrt ( ySquare ) ) if ( y * y == ySquare ) : result += 4 return result #TOFILL if __name__ == '__main__': param = [ (34,), (56,), (90,), (47,), (36,), (63,), (21,), (76,), (18,), (75,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CIRCLE_LATTICE_POINTS.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : if ( n == 0 or n == 1 ) : return n f1 , f2 , f3 = 0 , 1 , 1 while ( f3 <= n ) : f1 = f2 ; f2 = f3 ; f3 = f1 + f2 ; return f2 ; #TOFILL if __name__ == '__main__': param = [ (54,), (71,), (64,), (71,), (96,), (43,), (70,), (94,), (95,), (69,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/ZECKENDORFS_THEOREM_NON_NEIGHBOURING_FIBONACCI_REPRESENTATION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , k ) : result = + 2147483647 arr.sort ( ) for i in range ( n - k + 1 ) : result = int ( min ( result , arr [ i + k - 1 ] - arr [ i ] ) ) return result #TOFILL if __name__ == '__main__': param = [ ([1, 1, 2, 7, 8, 14, 16, 20, 20, 23, 24, 24, 29, 30, 32, 34, 35, 37, 38, 43, 44, 46, 50, 52, 55, 57, 61, 71, 79, 86, 86, 89, 91, 91, 95],33,17,), ([78, -4, 76, 0, -62, 54, -70, 62, 90, -80, -68, 90, -34, -66, -46, 34, -18, -74, -66, 34, 34, -28, 6, 80, 58, -50, -60, 54, 8, -52, -60, 68, 42, 16, 42, 72, 54, 88, 44, 46, 84, -34],33,33,), ([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],8,13,), ([32],0,0,), ([-96, -78, -76, -72, -72, -70, -54, -46, -40, -34, -30, -26, -24, -22, -18, -16, -6, -4, -4, 2, 6, 14, 16, 18, 30, 30, 36, 54, 54, 58, 66, 72, 78, 80, 80, 82, 88, 98],26,25,), ([0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1],39,41,), ([3, 13, 14, 18, 23, 32, 67, 72, 75, 76, 87, 95],10,8,), ([8, 30],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],27,33,), ([31, 15, 19, 41, 73, 29, 67, 36, 87, 74, 95, 27, 36, 83, 37, 33, 30, 86, 94, 93, 9, 42, 3, 95, 3, 69, 67, 63, 16, 53, 35, 52, 2, 57, 57, 25, 21, 7, 72, 52, 78, 40],36,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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/K_NUMBERS_DIFFERENCE_MAXIMUM_MINIMUM_K_NUMBER_MINIMIZED.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( X , Y , m , n ) : res = 0 X.sort ( reverse = True ) Y.sort ( reverse = True ) hzntl = 1 ; vert = 1 i = 0 ; j = 0 while ( i < m and j < n ) : if ( X [ i ] > Y [ j ] ) : res += X [ i ] * vert hzntl += 1 i += 1 else : res += Y [ j ] * hzntl vert += 1 j += 1 total = 0 while ( i < m ) : total += X [ i ] i += 1 res += total * vert total = 0 while ( j < n ) : total += Y [ j ] j += 1 res += total * hzntl return res #TOFILL if __name__ == '__main__': param = [ ([1, 9, 9, 16, 18, 20, 22, 22, 23, 25, 25, 26, 28, 32, 33, 33, 33, 34, 37, 40, 44, 46, 46, 52, 53, 56, 58, 58, 59, 60, 61, 67, 67, 69, 70, 70, 73, 75, 77, 83, 87, 87, 87, 90, 90, 93, 97, 98],[2, 3, 9, 10, 13, 16, 17, 19, 20, 23, 25, 27, 29, 30, 30, 35, 37, 39, 39, 45, 47, 50, 55, 55, 55, 56, 59, 60, 62, 63, 67, 70, 70, 71, 72, 73, 73, 74, 77, 86, 87, 88, 91, 92, 95, 96, 97, 99],25,27,), ([-52, 66, 66, -4, -74, 78, 52, -72],[-40, 30, -34, -76, 84, 88, -78, 72],6,7,), ([0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,19,), ([58, 78, 48, 44, 63, 37, 89, 76, 66, 83, 52, 97, 19, 28, 67, 38, 54, 77, 2, 96, 28, 87],[37, 36, 26, 5, 83, 75, 33, 33, 72, 63, 91, 94, 75, 92, 9, 19, 79, 29, 40, 47, 63, 36],13,14,), ([-84, -78, -76, -72, -68, -62, -62, -60, -58, -44, -34, -10, -8, -4, -2, -2, 14, 16, 20, 26, 26, 32, 70, 78, 86, 90, 96],[-98, -98, -86, -82, -76, -62, -60, -48, -32, -32, -24, -18, -10, -4, 0, 16, 16, 26, 36, 42, 48, 50, 64, 66, 78, 92, 98],15,24,), ([0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0],[1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0],25,26,), ([30, 75],[10, 39],1,1,), ([70, 78, -60, -10, -8, 46, 38, 60, -54, -68, 16, 10, 36, -10, 38, -96, -52, -82, -56, 22, -56, 0, 96, -60, 24, 70, 40, 62, -20, -36, 74, 32, 44, 14, -18, 50, 58],[64, -42, -50, -76, 46, 32, -66, 86, -6, 46, 94, 70, -62, 90, 78, 4, 6, -20, 92, -18, -34, -96, 92, -24, -90, -94, 62, 40, -14, -28, 80, -86, -86, -56, 40, -92, -22],19,19,), ([0, 0, 0, 1],[0, 1, 1, 1],2,2,), ([81, 40, 29, 74, 13, 67, 10, 25, 24, 81, 90],[51, 45, 23, 7, 53, 14, 49, 58, 25, 75, 74],8,10,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_COST_CUT_BOARD_SQUARES.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n , p ) : if n >= p : return 0 result = 1 for i in range ( 1 , n + 1 ) : result = ( result * i ) % p return result #TOFILL if __name__ == '__main__': param = [ (85,18,), (14,13,), (83,21,), (30,35,), (96,51,), (55,58,), (82,71,), (12,74,), (38,3,), (46,73,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COMPUTE_N_UNDER_MODULO_P.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( h ) : MOD = 1000000007 dp = [ 0 for i in range ( h + 1 ) ] dp [ 0 ] = 1 dp [ 1 ] = 1 for i in range ( 2 , h + 1 ) : dp [ i ] = ( dp [ i - 1 ] * ( ( 2 * dp [ i - 2 ] ) % MOD + dp [ i - 1 ] ) % MOD ) % MOD return dp [ h ] #TOFILL if __name__ == '__main__': param = [ (75,), (50,), (93,), (87,), (35,), (25,), (43,), (61,), (54,), (91,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_BALANCED_BINARY_TREES_HEIGHT_H.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : ans = 0 maxele = max ( arr ) for i in range ( 2 , maxele + 1 ) : count = 0 for j in range ( n ) : if ( arr [ j ] % i == 0 ) : count += 1 ans = max ( ans , count ) return ans #TOFILL if __name__ == '__main__': param = [ ([10, 18, 22, 22, 22, 29, 30, 32, 33, 34, 37, 39, 40, 41, 44, 47, 49, 50, 50, 51, 53, 67, 69, 70, 71, 71, 73, 75, 78, 80, 81, 82, 91, 91, 93, 97, 97, 99],35,), ([-42, 62, 6, 98, 38, -4, -38, 72, 42, 4, -22, -94, 78, -90, 14],10,), ([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, 1, 1, 1],23,), ([89, 92, 96, 71, 24, 27, 18, 19, 41, 1, 45, 8],7,), ([-98, -94, -92, -90, -82, -80, -76, -76, -72, -62, -60, -58, -56, -52, -42, -36, -32, -32, -24, -22, -20, -10, -10, -10, -8, -2, -2, 0, 2, 4, 6, 6, 8, 10, 14, 18, 22, 26, 30, 46, 46, 62, 68, 74, 78, 82, 86, 86],40,), ([1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1],41,), ([4, 8, 10, 10, 11, 17, 18, 25, 32, 33, 34, 37, 40, 41, 44, 47, 47, 52, 63, 77, 85, 87, 89, 89, 91, 95, 96, 98],23,), ([-86, 52, -48, 70, 10, -94, 16, 14, 38, 62],9,), ([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],30,), ([95, 32, 87, 37, 86, 71, 30, 88, 96, 52, 88, 92, 79, 86, 19, 5, 74, 67],13,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/LARGEST_SUBSEQUENCE_GCD_GREATER_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b ) : s = str ( b ) i = 0 while i < ( len ( s ) ) : if ( s [ i ] != '9' ) : break i += 1 result = 0 if ( i == len ( s ) ) : result = a * len ( s ) else : result = a * ( len ( s ) - 1 ) return result #TOFILL if __name__ == '__main__': param = [ (31,91,), (72,85,), (23,49,), (42,32,), (13,7,), (93,5,), (33,32,), (94,76,), (60,60,), (11,26,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_OF_PAIRS_SATISFYING_THE_GIVEN_CONDITION.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( s ) : b_count = 0 res = 0 for i in range ( len ( s ) ) : if s [ ~ i ] == 'a' : res = ( res + b_count ) b_count = ( b_count * 2 ) else : b_count += 1 return res #TOFILL if __name__ == '__main__': param = [ (['L', 'k', 'y'],), (['1', '0', '9', '5', '7', '4', '6', '0', '4', '8', '0', '1', '4', '1', '8', '9', '1', '5', '4', '4', '8', '0', '5', '8', '9', '8', '1', '9', '7', '0', '4', '2', '5', '2', '4', '6', '6', '5', '3', '1', '1', '0', '6'],), (['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'],), (['A', 'L', 'a', 'l', 'G', ' ', 'p', 'b'],), (['0', '1', '1', '1', '2', '2', '4', '5', '5', '5', '6', '6', '6', '7', '9'],), (['0'],), ([' ', 'A', 'B', 'B', 'B', 'B', 'D', 'G', 'G', 'H', 'H', 'H', 'I', 'I', 'J', 'J', 'J', 'L', 'M', 'N', 'O', 'Q', 'U', 'U', 'X', 'Y', 'Y', 'Z', 'Z', 'c', 'c', 'e', 'f', 'h', 'k', 'o', 'p', 'q', 'q', 's', 'v', 'z'],), (['2', '5', '7', '5', '2', '3', '9'],), (['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'],), (['a', 'z', 'M', ' ', 'l', 'X', 'x', 'B', 'i', 'j'],) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_OPERATIONS_MAKE_STRINGAB_FREE.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(k, n): f1 = 0 f2 = 1 i = 2 while i != 0: f3 = f1 + f2 f1 = f2 f2 = f3 if f2 % k == 0: return n * i i += 1 return #TOFILL if __name__ == '__main__': param = [ (50, 60,), (52, 45,), (42, 17,), (2, 68,), (37, 43,), (48, 46,), (31, 4,), (9, 64,), (78, 14,), (64, 80,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/NTH_MULTIPLE_NUMBER_FIBONACCI_SERIES.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : for i in range ( n ) : arr [ i ] = i + 1 #TOFILL if __name__ == '__main__': param = [ ([3, 3, 6, 7, 9, 11, 15, 15, 17, 19, 21, 23, 26, 27, 37, 48, 48, 51, 53, 53, 59, 64, 69, 69, 70, 71, 72, 84, 93, 96],19,), ([66, -28, 6, 25, -65, 19, -86, -86, -90, 40, -62],8,), ([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, 1, 1, 1, 1, 1, 1, 1],26,), ([85, 84, 8, 36, 93, 76, 14, 54, 85, 86],9,), ([-90, -82, -80, -73, -67, -62, -62, -61, -58, -56, -56, -52, -50, -49, -49, -43, -43, -30, -26, -26, -15, -14, -13, -4, 10, 19, 20, 22, 26, 29, 34, 35, 37, 45, 49, 52, 54, 66, 67, 80, 84, 87, 89, 90],31,), ([1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1],29,), ([10, 11, 13, 19, 19, 30, 33, 36, 40, 42, 44, 47, 49, 52, 53, 58, 66, 68, 72, 82, 87, 89, 90, 94],21,), ([-46, -35, 40, -76, -66, -47, 36, -82, -43, 12, -95, 54, 58, 82, -87, -17, -71, -97, -10, 4, 23, 86, -24],12,), ([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],6,), ([88, 76, 16, 23, 40, 60, 73, 32, 15, 13, 5, 75, 74, 52, 77, 41, 53, 50, 15, 7, 40, 28, 32, 99, 15, 85],18,) ] filled_function_param = [ ([3, 3, 6, 7, 9, 11, 15, 15, 17, 19, 21, 23, 26, 27, 37, 48, 48, 51, 53, 53, 59, 64, 69, 69, 70, 71, 72, 84, 93, 96],19,), ([66, -28, 6, 25, -65, 19, -86, -86, -90, 40, -62],8,), ([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, 1, 1, 1, 1, 1, 1, 1],26,), ([85, 84, 8, 36, 93, 76, 14, 54, 85, 86],9,), ([-90, -82, -80, -73, -67, -62, -62, -61, -58, -56, -56, -52, -50, -49, -49, -43, -43, -30, -26, -26, -15, -14, -13, -4, 10, 19, 20, 22, 26, 29, 34, 35, 37, 45, 49, 52, 54, 66, 67, 80, 84, 87, 89, 90],31,), ([1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1],29,), ([10, 11, 13, 19, 19, 30, 33, 36, 40, 42, 44, 47, 49, 52, 53, 58, 66, 68, 72, 82, 87, 89, 90, 94],21,), ([-46, -35, 40, -76, -66, -47, 36, -82, -43, 12, -95, 54, 58, 82, -87, -17, -71, -97, -10, 4, 23, 86, -24],12,), ([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],6,), ([88, 76, 16, 23, 40, 60, 73, 32, 15, 13, 5, 75, 74, 52, 77, 41, 53, 50, 15, 7, 40, 28, 32, 99, 15, 85],18,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/SORT_ARRAY_CONTAIN_1_N_VALUES.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( num1 ) : l = len ( num1 ) ; num = list ( num1 ) ; i = l - 1 ; while ( i >= 0 ) : if ( num [ i ] == '0' ) : num [ i ] = '1' ; break ; else : num [ i ] = '0' ; i -= 1 ; num1 = ''.join ( num ) ; if ( i < 0 ) : num1 = '1' + num1 ; return num1 ; #TOFILL if __name__ == '__main__': param = [ ('DXh',), ('48703586411816',), ('0001',), ('yWg WvjNKS',), ('8408568459',), ('01',), ('DFECZ CWtN',), ('37742236',), ('001101',), ('LDxERLmYn',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/BINARY_REPRESENTATION_OF_NEXT_NUMBER.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , n , k ) : result = 0 for i in range ( n ) : if ( a [ i ] != 1 and a [ i ] > k ) : result = ( result + min ( a [ i ] % k , k - a [ i ] % k ) ) else : result = result + k - a [ i ] return result #TOFILL if __name__ == '__main__': param = [ ([3, 7, 27, 32, 36, 37, 44, 48, 50, 64, 86],5,10,), ([-22, 6, -20, 60, -74, 98, 52, -22],5,4,), ([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],23,29,), ([77, 11, 51, 11, 84, 79, 43, 12, 14, 50, 15, 6, 85, 32, 74, 49, 7, 2, 58],9,17,), ([-90, -66, -64, -58, -46, -44, -32, -30, -30, -22, -18, -14, 12, 12, 18, 34, 44, 60, 70, 70, 74, 76, 86, 98, 98],12,22,), ([1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1],36,31,), ([9, 22, 27, 27, 37, 53, 53, 56, 63, 73, 76, 81, 82],10,11,), ([-46, 60, 80, 80, 42, -98, 30, -48, 4, -32, -78, 40, 52, 26, 88, 4, 22, 62, 88, -94, 2, 0, 58, 38, 52, -50, -52, 58, -62, 30, -38, -8, -82, -66],18,19,), ([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],19,22,), ([42, 69, 93, 82, 8, 23, 73, 1, 77, 39, 49, 4, 95, 85],12,13,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_OPERATIONS_MAKE_GCD_ARRAY_MULTIPLE_K.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( s , t , n , k ) : last = 0 cnt = 0 new_last = 0 size = 0 string = 'zyxwvutsrqponmlkjihgfedcba' for ch in string : cnt = 0 for i in range ( last , n ) : if s [ i ] == ch : cnt += 1 if cnt >= k : for i in range ( last , n ) : if s [ i ] == ch : t [ size ] = ch new_last = i size += 1 last = new_last #TOFILL if __name__ == '__main__': param = [ ([' ', 'A', 'A', 'C', 'C', 'D', 'D', 'E', 'E', 'F', 'F', 'H', 'L', 'L', 'O', 'P', 'T', 'U', 'V', 'W', 'Z', 'a', 'b', 'f', 'f', 'h', 'h', 'i', 'j', 'q', 'y', 'y', 'z'],[' ', ' ', 'B', 'D', 'F', 'G', 'H', 'I', 'K', 'K', 'L', 'P', 'P', 'R', 'R', 'U', 'V', 'Y', 'Z', 'Z', 'e', 'g', 'h', 'j', 'l', 'o', 'p', 'q', 'r', 't', 'v', 'y', 'z'],25,21,), (['8', '7', '8', '1', '3', '8', '8', '1', '7', '0', '6', '8', '8', '7', '3', '1', '0', '9', '6', '1', '9', '2', '6', '6', '3', '1', '9', '7', '5', '5', '0', '0', '0', '7', '6', '4', '9', '7', '3', '0', '7', '0', '8'],['0', '2', '1', '1', '8', '9', '6', '0', '1', '7', '0', '2', '1', '8', '7', '9', '9', '8', '0', '2', '7', '9', '1', '6', '8', '1', '3', '4', '7', '8', '0', '2', '4', '2', '6', '9', '1', '1', '4', '2', '4', '7', '4'],22,22,), (['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', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],30,34,), (['x', 'H', 'h', 'z', 'X', 'S', 'f', 'h'],['H', 'f', 'Q', 'b', 'H', 'X', 'l', 'u'],4,7,), (['0', '1', '1', '2', '3', '3', '4', '4', '4', '5', '5', '6', '7', '7', '8', '8', '8', '8', '8', '8', '9', '9', '9', '9', '9'],['0', '0', '0', '1', '2', '2', '2', '2', '3', '3', '4', '6', '6', '6', '6', '7', '7', '8', '8', '8', '9', '9', '9', '9', '9'],20,13,), (['1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '1'],['0', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1'],10,12,), (['A', 'B', 'B', 'C', 'E', 'E', 'E', 'F', 'L', 'M', 'M', 'M', 'M', 'O', 'O', 'P', 'P', 'Q', 'S', 'T', 'W', 'Y', 'Z', 'a', 'a', 'b', 'd', 'e', 'f', 'i', 'k', 'l', 'l', 'n', 'n', 'n', 'p', 'p', 'q', 'r', 'r', 't', 'u', 'u', 'u', 'u', 'u', 'x', 'x'],[' ', 'B', 'B', 'C', 'C', 'D', 'E', 'I', 'K', 'K', 'O', 'Q', 'Q', 'T', 'T', 'X', 'X', 'X', 'a', 'b', 'c', 'd', 'h', 'h', 'i', 'k', 'k', 'l', 'n', 'o', 'o', 'p', 'p', 'q', 'q', 'r', 'r', 's', 'u', 'u', 'u', 'v', 'w', 'x', 'x', 'x', 'x', 'y', 'z'],39,46,), (['7', '2', '9', '3', '7', '3', '4', '5', '7', '6', '6', '3', '3', '7', '1', '3', '2', '1', '9', '5', '9', '9', '3', '8', '8', '6', '6', '2', '7', '1', '9', '9', '4', '1', '4', '1', '3', '5'],['6', '3', '7', '2', '9', '2', '6', '4', '4', '7', '6', '4', '5', '5', '9', '0', '0', '4', '2', '3', '6', '7', '6', '2', '6', '7', '8', '6', '6', '5', '2', '6', '4', '4', '1', '8', '3', '0'],26,27,), (['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'],['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'],16,19,), (['n', 'T', 't', 'o', 'i', 'p', 'f', 'R', 'x', 'I', 'p', 'E', 'C', 'm', 'r', 'c', 'U', 'e', ' ', 'o', 'e', 'J', 'C', 'd', 'G', 'l'],['b', 'u', 'F', 'm', 's', 'x', 'T', 'm', 'x', 'o', 'i', 'U', 'd', 'N', 'h', 'z', 'I', 'u', 'g', 'J', 'u', 'f', 'e', 'Q', 'H', 'y'],16,21,) ] filled_function_param = [ ([' ', 'A', 'A', 'C', 'C', 'D', 'D', 'E', 'E', 'F', 'F', 'H', 'L', 'L', 'O', 'P', 'T', 'U', 'V', 'W', 'Z', 'a', 'b', 'f', 'f', 'h', 'h', 'i', 'j', 'q', 'y', 'y', 'z'],[' ', ' ', 'B', 'D', 'F', 'G', 'H', 'I', 'K', 'K', 'L', 'P', 'P', 'R', 'R', 'U', 'V', 'Y', 'Z', 'Z', 'e', 'g', 'h', 'j', 'l', 'o', 'p', 'q', 'r', 't', 'v', 'y', 'z'],25,21,), (['8', '7', '8', '1', '3', '8', '8', '1', '7', '0', '6', '8', '8', '7', '3', '1', '0', '9', '6', '1', '9', '2', '6', '6', '3', '1', '9', '7', '5', '5', '0', '0', '0', '7', '6', '4', '9', '7', '3', '0', '7', '0', '8'],['0', '2', '1', '1', '8', '9', '6', '0', '1', '7', '0', '2', '1', '8', '7', '9', '9', '8', '0', '2', '7', '9', '1', '6', '8', '1', '3', '4', '7', '8', '0', '2', '4', '2', '6', '9', '1', '1', '4', '2', '4', '7', '4'],22,22,), (['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', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],30,34,), (['x', 'H', 'h', 'z', 'X', 'S', 'f', 'h'],['H', 'f', 'Q', 'b', 'H', 'X', 'l', 'u'],4,7,), (['0', '1', '1', '2', '3', '3', '4', '4', '4', '5', '5', '6', '7', '7', '8', '8', '8', '8', '8', '8', '9', '9', '9', '9', '9'],['0', '0', '0', '1', '2', '2', '2', '2', '3', '3', '4', '6', '6', '6', '6', '7', '7', '8', '8', '8', '9', '9', '9', '9', '9'],20,13,), (['1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '1'],['0', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1'],10,12,), (['A', 'B', 'B', 'C', 'E', 'E', 'E', 'F', 'L', 'M', 'M', 'M', 'M', 'O', 'O', 'P', 'P', 'Q', 'S', 'T', 'W', 'Y', 'Z', 'a', 'a', 'b', 'd', 'e', 'f', 'i', 'k', 'l', 'l', 'n', 'n', 'n', 'p', 'p', 'q', 'r', 'r', 't', 'u', 'u', 'u', 'u', 'u', 'x', 'x'],[' ', 'B', 'B', 'C', 'C', 'D', 'E', 'I', 'K', 'K', 'O', 'Q', 'Q', 'T', 'T', 'X', 'X', 'X', 'a', 'b', 'c', 'd', 'h', 'h', 'i', 'k', 'k', 'l', 'n', 'o', 'o', 'p', 'p', 'q', 'q', 'r', 'r', 's', 'u', 'u', 'u', 'v', 'w', 'x', 'x', 'x', 'x', 'y', 'z'],39,46,), (['7', '2', '9', '3', '7', '3', '4', '5', '7', '6', '6', '3', '3', '7', '1', '3', '2', '1', '9', '5', '9', '9', '3', '8', '8', '6', '6', '2', '7', '1', '9', '9', '4', '1', '4', '1', '3', '5'],['6', '3', '7', '2', '9', '2', '6', '4', '4', '7', '6', '4', '5', '5', '9', '0', '0', '4', '2', '3', '6', '7', '6', '2', '6', '7', '8', '6', '6', '5', '2', '6', '4', '4', '1', '8', '3', '0'],26,27,), (['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'],['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'],16,19,), (['n', 'T', 't', 'o', 'i', 'p', 'f', 'R', 'x', 'I', 'p', 'E', 'C', 'm', 'r', 'c', 'U', 'e', ' ', 'o', 'e', 'J', 'C', 'd', 'G', 'l'],['b', 'u', 'F', 'm', 's', 'x', 'T', 'm', 'x', 'o', 'i', 'U', 'd', 'N', 'h', 'z', 'I', 'u', 'g', 'J', 'u', 'f', 'e', 'Q', 'H', 'y'],16,21,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/LEXICOGRAPHICALLY_LARGEST_SUBSEQUENCE_EVERY_CHARACTER_OCCURS_LEAST_K_TIMES.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( mat , n ) : principal = 0 secondary = 0 ; for i in range ( 0 , n ) : for j in range ( 0 , n ) : if ( i == j ) : principal += mat [ i ] [ j ] if ( ( i + j ) == ( n - 1 ) ) : secondary += mat [ i ] [ j ] print ( "Principal Diagonal:" , principal ) print ( "Secondary Diagonal:" , secondary ) #TOFILL if __name__ == '__main__': param = [ ([[44, 54, 93], [12, 13, 78], [25, 30, 47]],1,), ([[-8, 60, 16, 52], [52, 4, -64, -74], [-28, -52, -80, -94], [32, 76, 38, -40]],3,), ([[0, 0, 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, 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, 0, 0, 0, 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, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 0, 0, 0, 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]],20,), ([[75, 8, 74, 8, 9, 79, 65, 46, 52, 13], [4, 64, 20, 34, 65, 64, 1, 46, 27, 79], [67, 74, 12, 49, 67, 62, 69, 29, 18, 97], [14, 19, 80, 82, 21, 37, 57, 58, 85, 78], [4, 52, 20, 70, 69, 77, 64, 86, 60, 3], [7, 74, 86, 36, 48, 71, 8, 32, 47, 31], [57, 9, 84, 51, 96, 53, 44, 60, 98, 31], [52, 46, 95, 87, 13, 53, 28, 37, 66, 14], [75, 24, 45, 51, 74, 88, 74, 55, 97, 3], [69, 50, 90, 51, 44, 28, 34, 64, 91, 99]],7,), ([[-98, -84, -80, -80, -74, -66, -52, -50, -46, -44, -40, -32, -28, -22, -16, -12, 0, 4, 14, 18, 18, 20, 28, 28, 34, 40, 46, 48, 50, 52, 66, 68, 68, 68, 70, 74, 82, 84, 84, 84, 88, 90], [-98, -86, -86, -78, -76, -66, -62, -58, -54, -50, -50, -48, -44, -34, -22, -22, -16, -14, -6, 2, 2, 2, 14, 18, 22, 22, 26, 26, 26, 34, 38, 48, 54, 54, 58, 70, 70, 70, 80, 90, 94, 98], [-94, -92, -90, -84, -74, -68, -66, -64, -64, -60, -60, -56, -52, -50, -46, -42, -30, -28, -26, -26, -24, -22, -20, -20, -16, -12, -4, -4, -4, 6, 8, 12, 24, 36, 52, 62, 74, 84, 92, 92, 94, 98], [-98, -98, -96, -88, -88, -78, -74, -70, -68, -62, -60, -58, -54, -40, -36, -34, -30, -26, -18, -6, -4, -2, -2, 0, 10, 20, 26, 32, 38, 50, 50, 60, 60, 62, 64, 66, 70, 76, 76, 82, 84, 86], [-98, -96, -94, -92, -88, -82, -72, -72, -56, -52, -48, -40, -32, -18, -16, -14, -8, -4, 4, 18, 18, 20, 22, 26, 36, 38, 42, 44, 48, 48, 52, 52, 54, 56, 60, 62, 64, 66, 66, 82, 86, 90], [-96, -94, -88, -86, -72, -70, -60, -58, -48, -46, -44, -40, -38, -36, -30, -24, -22, -20, -16, -10, -8, -8, 4, 6, 10, 12, 16, 18, 30, 34, 38, 42, 48, 48, 62, 68, 74, 80, 80, 90, 96, 96], [-98, -96, -86, -84, -80, -78, -74, -72, -70, -66, -64, -60, -58, -52, -52, -50, -50, -42, -42, -22, -20, -20, -14, -12, -12, -10, -6, 4, 4, 6, 40, 42, 60, 60, 62, 64, 82, 84, 88, 88, 96, 98], [-98, -92, -82, -82, -76, -72, -70, -56, -54, -48, -46, -40, -36, -36, -34, -32, -28, -28, -22, -16, -8, -6, -2, -2, 12, 14, 16, 16, 20, 20, 22, 22, 34, 50, 54, 62, 70, 76, 88, 90, 98, 98], [-96, -82, -76, -66, -62, -58, -48, -46, -42, -32, -32, -26, -22, -18, -14, -4, 16, 16, 18, 20, 22, 26, 30, 32, 34, 38, 46, 60, 68, 70, 70, 70, 72, 72, 74, 76, 84, 94, 94, 94, 96, 98], [-94, -86, -84, -74, -70, -60, -54, -48, -48, -48, -42, -40, -36, -34, -34, -32, -30, -26, -10, -10, -8, -6, -4, -2, 0, 4, 4, 18, 18, 26, 30, 30, 36, 44, 58, 58, 58, 62, 66, 70, 76, 94], [-98, -94, -84, -80, -78, -78, -72, -70, -68, -58, -54, -54, -38, -34, -30, -26, -12, -10, -8, -2, 4, 4, 8, 8, 12, 16, 20, 40, 44, 50, 50, 52, 64, 66, 70, 80, 82, 84, 90, 94, 96, 96], [-94, -88, -78, -76, -76, -70, -64, -62, -62, -54, -50, -34, -22, -18, -18, -16, -4, 0, 0, 2, 4, 16, 20, 24, 28, 32, 40, 42, 42, 48, 56, 56, 58, 60, 70, 76, 76, 78, 82, 86, 86, 90], [-92, -92, -88, -86, -84, -80, -80, -74, -72, -72, -70, -68, -62, -60, -58, -52, -52, -44, -42, -36, -26, -12, -12, -10, -8, -4, 4, 6, 10, 10, 38, 40, 46, 46, 64, 70, 72, 74, 76, 84, 90, 94], [-82, -76, -76, -70, -60, -60, -48, -48, -46, -44, -40, -38, -34, -24, -18, -18, -14, -12, -6, -6, -6, -4, -4, 0, 2, 6, 16, 18, 24, 30, 44, 52, 52, 58, 62, 64, 64, 64, 72, 72, 84, 86], [-80, -80, -56, -50, -50, -48, -44, -38, -34, -28, -26, -20, -20, -8, -8, -6, 0, 4, 8, 10, 10, 12, 22, 24, 36, 38, 40, 44, 46, 48, 62, 64, 66, 68, 68, 68, 72, 74, 74, 76, 88, 98], [-82, -80, -74, -72, -68, -68, -68, -56, -50, -46, -46, -44, -44, -36, -28, -26, -26, -16, -12, -10, -4, -2, 0, 6, 18, 18, 20, 24, 26, 28, 32, 32, 32, 36, 54, 62, 66, 68, 74, 78, 88, 90], [-94, -92, -86, -82, -72, -64, -62, -62, -62, -60, -60, -58, -56, -54, -52, -48, -48, -44, -32, -30, -28, -28, -22, -20, -16, -16, 12, 12, 20, 34, 36, 36, 40, 42, 44, 46, 52, 54, 74, 78, 94, 96], [-98, -82, -78, -74, -68, -68, -68, -64, -62, -58, -56, -54, -50, -48, -46, -44, -44, -38, -32, -28, -24, -16, -16, -6, -4, -2, 8, 8, 30, 38, 50, 60, 64, 72, 76, 84, 88, 88, 92, 96, 98, 98], [-98, -98, -94, -90, -90, -86, -82, -78, -74, -64, -60, -50, -48, -40, -32, -28, -26, -20, -16, -12, -10, -10, -10, -4, 8, 8, 10, 12, 20, 22, 30, 32, 34, 34, 40, 42, 46, 60, 80, 86, 88, 90], [-96, -88, -82, -76, -74, -72, -68, -68, -60, -60, -60, -54, -52, -48, -46, -40, -22, -16, -16, -6, 6, 14, 14, 26, 28, 28, 30, 34, 44, 48, 50, 54, 54, 56, 70, 76, 76, 76, 84, 84, 88, 96], [-96, -92, -88, -72, -54, -50, -46, -44, -42, -32, -32, -28, -24, -24, -14, -12, -4, 2, 2, 6, 8, 8, 16, 18, 26, 26, 28, 30, 30, 38, 38, 40, 40, 42, 46, 50, 50, 56, 58, 62, 66, 88], [-98, -90, -82, -76, -62, -48, -44, -42, -40, -40, -20, -20, -18, -16, -16, -8, -2, 2, 8, 10, 20, 28, 34, 40, 42, 44, 46, 48, 48, 50, 54, 64, 66, 66, 66, 66, 72, 76, 78, 82, 82, 92], [-98, -94, -80, -76, -74, -70, -66, -62, -58, -56, -52, -50, -48, -40, -28, -28, -28, -26, -24, -22, -12, 0, 0, 2, 8, 14, 14, 20, 38, 40, 50, 52, 52, 52, 60, 70, 72, 76, 88, 92, 94, 96], [-80, -78, -76, -72, -66, -64, -62, -54, -46, -40, -34, -34, -24, -18, -4, 0, 6, 10, 10, 10, 12, 12, 18, 22, 32, 34, 34, 38, 40, 40, 40, 42, 44, 44, 46, 58, 66, 76, 82, 82, 88, 96], [-96, -94, -92, -86, -82, -82, -70, -70, -64, -60, -56, -46, -46, -46, -46, -44, -38, -8, -6, -4, 0, 0, 2, 6, 8, 12, 30, 34, 34, 36, 36, 38, 56, 62, 72, 74, 76, 82, 82, 88, 90, 98], [-96, -96, -90, -86, -76, -74, -72, -66, -66, -62, -60, -56, -56, -46, -42, -40, -38, -38, -28, -28, -20, -18, -16, -10, -8, -4, -2, 2, 12, 36, 38, 40, 44, 44, 48, 52, 64, 78, 80, 86, 90, 92], [-90, -78, -78, -74, -74, -66, -64, -62, -42, -42, -42, -38, -36, -34, -30, -22, -20, -16, -10, -6, -2, 0, 2, 6, 8, 10, 10, 10, 18, 22, 22, 38, 40, 42, 44, 48, 54, 56, 58, 58, 84, 94], [-94, -92, -90, -90, -86, -72, -72, -72, -66, -66, -56, -52, -50, -46, -40, -30, -24, -20, -20, -10, -6, 0, 2, 4, 10, 16, 18, 20, 22, 26, 26, 36, 40, 40, 48, 54, 60, 62, 70, 86, 88, 96], [-98, -92, -84, -80, -76, -70, -58, -52, -50, -50, -44, -38, -28, -28, -24, -24, -22, -12, -12, -10, -6, -4, -2, 2, 4, 6, 10, 16, 16, 18, 32, 34, 34, 40, 40, 48, 48, 52, 62, 64, 90, 92], [-94, -92, -84, -84, -82, -76, -66, -62, -56, -54, -46, -40, -40, -36, -34, -28, -22, -18, -12, -10, -10, -8, 12, 12, 14, 14, 20, 22, 24, 30, 34, 42, 46, 48, 58, 58, 64, 64, 72, 88, 88, 98], [-94, -92, -82, -66, -60, -52, -50, -44, -40, -36, -34, -28, -22, -18, -18, -14, -4, -4, 4, 10, 12, 14, 16, 22, 24, 28, 36, 38, 44, 44, 46, 50, 52, 64, 74, 82, 82, 84, 88, 90, 92, 98], [-90, -86, -86, -82, -82, -78, -74, -68, -66, -48, -48, -44, -38, -34, -32, -26, -18, -6, -4, -2, 0, 0, 0, 8, 18, 24, 26, 34, 48, 50, 52, 54, 60, 64, 72, 76, 82, 88, 92, 92, 94, 94], [-96, -94, -90, -86, -54, -54, -52, -50, -48, -46, -40, -36, -28, -28, -22, -20, -18, -14, -10, 0, 0, 4, 8, 8, 8, 22, 30, 36, 36, 46, 50, 52, 64, 68, 72, 74, 74, 78, 82, 82, 84, 88], [-98, -94, -82, -76, -74, -66, -56, -46, -42, -40, -40, -38, -36, -28, -26, -20, -10, -4, 0, 10, 28, 28, 30, 32, 34, 38, 40, 42, 46, 52, 52, 54, 54, 70, 72, 80, 80, 82, 84, 90, 92, 92], [-86, -82, -80, -78, -78, -74, -74, -66, -66, -66, -58, -58, -54, -46, -42, -32, -30, -28, -24, -24, -12, -10, -8, -2, 12, 14, 26, 34, 34, 36, 36, 38, 52, 58, 58, 62, 64, 64, 74, 86, 88, 94], [-98, -96, -92, -78, -76, -72, -70, -64, -58, -56, -50, -50, -50, -48, -42, -30, -26, -26, -14, -10, -8, -4, 4, 4, 8, 12, 26, 30, 30, 34, 36, 38, 46, 46, 46, 52, 54, 60, 68, 70, 76, 84], [-90, -76, -76, -74, -70, -66, -50, -42, -38, -34, -34, -30, -20, -16, -16, -14, -2, 0, 8, 8, 14, 18, 18, 26, 30, 34, 38, 38, 42, 46, 46, 48, 50, 50, 62, 68, 70, 72, 76, 76, 94, 96], [-94, -64, -62, -62, -56, -54, -54, -42, -40, -38, -34, -28, -26, -24, -22, -20, -12, -10, -6, -6, -2, -2, 0, 4, 8, 12, 28, 32, 44, 46, 52, 56, 60, 68, 72, 74, 86, 88, 90, 94, 94, 98], [-98, -92, -90, -82, -70, -68, -68, -66, -66, -64, -58, -50, -48, -44, -42, -30, -30, -24, -24, -20, -16, -14, -10, -6, 4, 12, 14, 20, 24, 26, 42, 46, 50, 62, 68, 72, 74, 84, 84, 86, 88, 94], [-90, -90, -88, -88, -72, -68, -64, -56, -52, -38, -38, -36, -32, -26, -26, -12, -8, 8, 12, 14, 22, 34, 42, 42, 50, 54, 54, 56, 58, 60, 60, 70, 72, 72, 74, 78, 78, 80, 84, 84, 90, 92], [-88, -64, -60, -56, -54, -50, -46, -44, -44, -42, -32, -32, -26, -24, -24, -22, -14, -4, 0, 2, 12, 14, 14, 20, 24, 30, 38, 38, 42, 44, 46, 60, 68, 70, 72, 80, 82, 82, 84, 88, 90, 96], [-98, -98, -94, -90, -86, -86, -86, -84, -84, -78, -74, -74, -72, -66, -58, -58, -54, -46, -46, -14, -10, 0, 0, 6, 6, 12, 22, 24, 42, 44, 48, 50, 50, 56, 58, 58, 70, 72, 82, 88, 90, 96]],21,), ([[0, 1, 0, 1, 0, 1], [1, 1, 0, 1, 1, 0], [0, 1, 1, 0, 0, 0], [0, 1, 1, 0, 0, 0], [1, 0, 0, 1, 0, 0], [0, 0, 1, 0, 1, 0]],5,), ([[10, 18, 38], [20, 82, 98], [58, 78, 92]],1,), ([[90, 72, 66, -20, -64, 22, -28, -64, 42, -56, -78, 82, -96, 14, -84], [-8, 50, -76, -78, 66, 24, -24, 92, 40, 74, 12, 22, -96, -38, 2], [38, -50, 68, 22, -58, 18, 80, -62, 24, 98, -90, 56, -62, -50, -86], [34, 72, 72, 58, -32, -18, 42, -2, 54, 24, -94, 98, -26, 84, -50], [-88, -86, 44, 92, 0, 6, -28, -18, 50, 58, 30, -96, -70, -40, -56], [-78, 46, 32, 66, -14, 68, 22, -6, 66, 58, 16, -78, -8, -14, -2], [-98, -98, 76, 82, -2, -74, -98, 80, -56, -56, -74, -54, -36, 94, 26], [20, -94, 40, 66, 6, -16, 86, -32, -64, 84, 42, -72, -62, 12, -78], [88, -60, 64, -44, -40, 66, -44, 88, -68, 20, 40, 50, -86, -2, -46], [-64, -62, 86, -6, 64, -92, -66, -42, 44, -62, 50, 78, -36, -26, 60], [88, 0, 74, 8, 68, 58, -98, -62, 70, 48, -48, -60, -38, -48, 48], [-80, -64, -40, 62, -94, -10, 60, -38, 80, 12, -32, -42, -40, 46, -62], [44, -84, -62, -64, -80, -40, 20, -54, -10, 22, 30, -38, 28, -14, 34], [-10, 36, 52, -84, 14, 94, -58, -78, 62, -36, -24, 86, -74, -28, 0], [82, 58, -20, -16, 32, 20, -28, -48, 48, -72, -82, -86, -40, 76, 88]],9,), ([[1]],0,), ([[22, 52, 13, 45, 52, 31, 82, 11, 41, 97, 10, 4, 59, 41, 33, 57, 21, 88, 74, 37, 3, 21, 69, 70, 82, 24, 67], [53, 28, 86, 51, 99, 34, 83, 79, 72, 88, 14, 5, 77, 28, 1, 92, 73, 81, 80, 68, 41, 37, 80, 99, 16, 18, 85], [12, 77, 44, 25, 33, 66, 11, 86, 81, 5, 29, 78, 95, 6, 59, 79, 80, 56, 93, 37, 86, 24, 56, 6, 54, 67, 2], [67, 1, 57, 81, 92, 69, 7, 93, 81, 36, 19, 2, 46, 4, 83, 10, 4, 17, 16, 84, 74, 52, 65, 51, 75, 33, 22], [34, 77, 98, 42, 77, 49, 15, 73, 93, 89, 71, 75, 52, 39, 35, 17, 65, 23, 75, 88, 35, 31, 12, 49, 97, 25, 53], [61, 98, 92, 37, 5, 47, 6, 79, 80, 96, 63, 73, 39, 54, 12, 4, 43, 98, 23, 84, 81, 5, 29, 11, 25, 56, 17], [47, 5, 3, 23, 94, 7, 44, 5, 40, 40, 97, 69, 58, 91, 40, 48, 6, 23, 11, 64, 75, 2, 94, 36, 46, 76, 95], [98, 43, 1, 22, 15, 17, 28, 57, 81, 10, 28, 67, 49, 83, 50, 84, 71, 78, 9, 29, 17, 41, 94, 95, 78, 79, 59], [71, 82, 52, 75, 8, 8, 99, 9, 86, 56, 42, 51, 74, 87, 23, 15, 79, 90, 22, 36, 31, 30, 28, 37, 80, 17, 63], [64, 41, 61, 54, 10, 32, 32, 6, 59, 96, 48, 47, 24, 78, 73, 17, 77, 21, 12, 60, 3, 62, 57, 2, 41, 81, 61], [47, 21, 45, 34, 87, 24, 43, 73, 21, 77, 79, 74, 73, 5, 69, 19, 34, 20, 7, 9, 54, 98, 24, 94, 73, 97, 91], [44, 31, 57, 15, 59, 50, 12, 31, 21, 18, 17, 33, 14, 15, 61, 48, 29, 47, 9, 62, 47, 18, 8, 80, 35, 95, 99], [47, 14, 94, 75, 56, 97, 77, 64, 52, 44, 80, 52, 45, 48, 96, 79, 31, 75, 20, 23, 6, 36, 35, 55, 19, 17, 36], [41, 77, 31, 91, 9, 98, 95, 95, 77, 30, 40, 5, 59, 67, 48, 82, 20, 96, 75, 21, 36, 22, 39, 54, 99, 88, 8], [96, 43, 48, 65, 60, 67, 21, 95, 99, 13, 52, 28, 20, 55, 1, 94, 97, 45, 59, 65, 8, 65, 66, 58, 52, 63, 84], [66, 43, 33, 40, 51, 33, 59, 64, 10, 22, 62, 5, 20, 43, 7, 54, 89, 33, 41, 17, 23, 34, 17, 58, 66, 87, 14], [73, 38, 15, 91, 54, 59, 54, 88, 89, 63, 22, 5, 40, 61, 59, 69, 98, 21, 68, 56, 31, 90, 7, 51, 42, 92, 86], [63, 11, 30, 97, 61, 15, 38, 66, 75, 54, 49, 76, 92, 94, 68, 53, 42, 71, 96, 99, 64, 40, 37, 98, 3, 4, 58], [31, 83, 87, 38, 13, 60, 70, 16, 76, 25, 59, 54, 31, 88, 72, 42, 32, 2, 61, 46, 22, 12, 9, 40, 74, 68, 35], [62, 37, 42, 33, 63, 73, 99, 1, 8, 18, 35, 87, 54, 98, 52, 57, 40, 52, 68, 9, 20, 53, 72, 74, 80, 12, 69], [8, 92, 7, 67, 41, 27, 10, 19, 52, 37, 86, 12, 11, 48, 99, 58, 78, 98, 45, 33, 75, 48, 88, 15, 30, 41, 78], [69, 89, 58, 78, 42, 17, 42, 91, 35, 68, 12, 73, 12, 12, 85, 52, 70, 44, 45, 10, 30, 10, 38, 27, 26, 97, 50], [23, 68, 7, 18, 45, 79, 28, 40, 39, 65, 25, 14, 38, 22, 36, 14, 96, 79, 18, 66, 54, 64, 80, 29, 98, 29, 85], [70, 35, 75, 61, 89, 55, 86, 20, 9, 55, 86, 32, 46, 26, 76, 58, 27, 48, 23, 99, 99, 73, 3, 80, 28, 1, 68], [31, 89, 14, 95, 93, 53, 5, 27, 52, 68, 35, 17, 9, 51, 43, 47, 31, 90, 46, 28, 85, 15, 45, 85, 19, 51, 15], [35, 40, 79, 82, 37, 8, 33, 80, 90, 4, 28, 62, 2, 1, 27, 82, 53, 75, 26, 41, 9, 46, 34, 61, 50, 19, 25], [44, 24, 15, 94, 82, 22, 25, 50, 55, 46, 62, 98, 47, 39, 95, 21, 65, 66, 47, 15, 45, 87, 56, 84, 63, 3, 55]],22,) ] filled_function_param = [ ([[44, 54, 93], [12, 13, 78], [25, 30, 47]],1,), ([[-8, 60, 16, 52], [52, 4, -64, -74], [-28, -52, -80, -94], [32, 76, 38, -40]],3,), ([[0, 0, 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, 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, 0, 0, 0, 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, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 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]],20,), ([[75, 8, 74, 8, 9, 79, 65, 46, 52, 13], [4, 64, 20, 34, 65, 64, 1, 46, 27, 79], [67, 74, 12, 49, 67, 62, 69, 29, 18, 97], [14, 19, 80, 82, 21, 37, 57, 58, 85, 78], [4, 52, 20, 70, 69, 77, 64, 86, 60, 3], [7, 74, 86, 36, 48, 71, 8, 32, 47, 31], [57, 9, 84, 51, 96, 53, 44, 60, 98, 31], [52, 46, 95, 87, 13, 53, 28, 37, 66, 14], [75, 24, 45, 51, 74, 88, 74, 55, 97, 3], [69, 50, 90, 51, 44, 28, 34, 64, 91, 99]],7,), ([[-98, -84, -80, -80, -74, -66, -52, -50, -46, -44, -40, -32, -28, -22, -16, -12, 0, 4, 14, 18, 18, 20, 28, 28, 34, 40, 46, 48, 50, 52, 66, 68, 68, 68, 70, 74, 82, 84, 84, 84, 88, 90], [-98, -86, -86, -78, -76, -66, -62, -58, -54, -50, -50, -48, -44, -34, -22, -22, -16, -14, -6, 2, 2, 2, 14, 18, 22, 22, 26, 26, 26, 34, 38, 48, 54, 54, 58, 70, 70, 70, 80, 90, 94, 98], [-94, -92, -90, -84, -74, -68, -66, -64, -64, -60, -60, -56, -52, -50, -46, -42, -30, -28, -26, -26, -24, -22, -20, -20, -16, -12, -4, -4, -4, 6, 8, 12, 24, 36, 52, 62, 74, 84, 92, 92, 94, 98], [-98, -98, -96, -88, -88, -78, -74, -70, -68, -62, -60, -58, -54, -40, -36, -34, -30, -26, -18, -6, -4, -2, -2, 0, 10, 20, 26, 32, 38, 50, 50, 60, 60, 62, 64, 66, 70, 76, 76, 82, 84, 86], [-98, -96, -94, -92, -88, -82, -72, -72, -56, -52, -48, -40, -32, -18, -16, -14, -8, -4, 4, 18, 18, 20, 22, 26, 36, 38, 42, 44, 48, 48, 52, 52, 54, 56, 60, 62, 64, 66, 66, 82, 86, 90], [-96, -94, -88, -86, -72, -70, -60, -58, -48, -46, -44, -40, -38, -36, -30, -24, -22, -20, -16, -10, -8, -8, 4, 6, 10, 12, 16, 18, 30, 34, 38, 42, 48, 48, 62, 68, 74, 80, 80, 90, 96, 96], [-98, -96, -86, -84, -80, -78, -74, -72, -70, -66, -64, -60, -58, -52, -52, -50, -50, -42, -42, -22, -20, -20, -14, -12, -12, -10, -6, 4, 4, 6, 40, 42, 60, 60, 62, 64, 82, 84, 88, 88, 96, 98], [-98, -92, -82, -82, -76, -72, -70, -56, -54, -48, -46, -40, -36, -36, -34, -32, -28, -28, -22, -16, -8, -6, -2, -2, 12, 14, 16, 16, 20, 20, 22, 22, 34, 50, 54, 62, 70, 76, 88, 90, 98, 98], [-96, -82, -76, -66, -62, -58, -48, -46, -42, -32, -32, -26, -22, -18, -14, -4, 16, 16, 18, 20, 22, 26, 30, 32, 34, 38, 46, 60, 68, 70, 70, 70, 72, 72, 74, 76, 84, 94, 94, 94, 96, 98], [-94, -86, -84, -74, -70, -60, -54, -48, -48, -48, -42, -40, -36, -34, -34, -32, -30, -26, -10, -10, -8, -6, -4, -2, 0, 4, 4, 18, 18, 26, 30, 30, 36, 44, 58, 58, 58, 62, 66, 70, 76, 94], [-98, -94, -84, -80, -78, -78, -72, -70, -68, -58, -54, -54, -38, -34, -30, -26, -12, -10, -8, -2, 4, 4, 8, 8, 12, 16, 20, 40, 44, 50, 50, 52, 64, 66, 70, 80, 82, 84, 90, 94, 96, 96], [-94, -88, -78, -76, -76, -70, -64, -62, -62, -54, -50, -34, -22, -18, -18, -16, -4, 0, 0, 2, 4, 16, 20, 24, 28, 32, 40, 42, 42, 48, 56, 56, 58, 60, 70, 76, 76, 78, 82, 86, 86, 90], [-92, -92, -88, -86, -84, -80, -80, -74, -72, -72, -70, -68, -62, -60, -58, -52, -52, -44, -42, -36, -26, -12, -12, -10, -8, -4, 4, 6, 10, 10, 38, 40, 46, 46, 64, 70, 72, 74, 76, 84, 90, 94], [-82, -76, -76, -70, -60, -60, -48, -48, -46, -44, -40, -38, -34, -24, -18, -18, -14, -12, -6, -6, -6, -4, -4, 0, 2, 6, 16, 18, 24, 30, 44, 52, 52, 58, 62, 64, 64, 64, 72, 72, 84, 86], [-80, -80, -56, -50, -50, -48, -44, -38, -34, -28, -26, -20, -20, -8, -8, -6, 0, 4, 8, 10, 10, 12, 22, 24, 36, 38, 40, 44, 46, 48, 62, 64, 66, 68, 68, 68, 72, 74, 74, 76, 88, 98], [-82, -80, -74, -72, -68, -68, -68, -56, -50, -46, -46, -44, -44, -36, -28, -26, -26, -16, -12, -10, -4, -2, 0, 6, 18, 18, 20, 24, 26, 28, 32, 32, 32, 36, 54, 62, 66, 68, 74, 78, 88, 90], [-94, -92, -86, -82, -72, -64, -62, -62, -62, -60, -60, -58, -56, -54, -52, -48, -48, -44, -32, -30, -28, -28, -22, -20, -16, -16, 12, 12, 20, 34, 36, 36, 40, 42, 44, 46, 52, 54, 74, 78, 94, 96], [-98, -82, -78, -74, -68, -68, -68, -64, -62, -58, -56, -54, -50, -48, -46, -44, -44, -38, -32, -28, -24, -16, -16, -6, -4, -2, 8, 8, 30, 38, 50, 60, 64, 72, 76, 84, 88, 88, 92, 96, 98, 98], [-98, -98, -94, -90, -90, -86, -82, -78, -74, -64, -60, -50, -48, -40, -32, -28, -26, -20, -16, -12, -10, -10, -10, -4, 8, 8, 10, 12, 20, 22, 30, 32, 34, 34, 40, 42, 46, 60, 80, 86, 88, 90], [-96, -88, -82, -76, -74, -72, -68, -68, -60, -60, -60, -54, -52, -48, -46, -40, -22, -16, -16, -6, 6, 14, 14, 26, 28, 28, 30, 34, 44, 48, 50, 54, 54, 56, 70, 76, 76, 76, 84, 84, 88, 96], [-96, -92, -88, -72, -54, -50, -46, -44, -42, -32, -32, -28, -24, -24, -14, -12, -4, 2, 2, 6, 8, 8, 16, 18, 26, 26, 28, 30, 30, 38, 38, 40, 40, 42, 46, 50, 50, 56, 58, 62, 66, 88], [-98, -90, -82, -76, -62, -48, -44, -42, -40, -40, -20, -20, -18, -16, -16, -8, -2, 2, 8, 10, 20, 28, 34, 40, 42, 44, 46, 48, 48, 50, 54, 64, 66, 66, 66, 66, 72, 76, 78, 82, 82, 92], [-98, -94, -80, -76, -74, -70, -66, -62, -58, -56, -52, -50, -48, -40, -28, -28, -28, -26, -24, -22, -12, 0, 0, 2, 8, 14, 14, 20, 38, 40, 50, 52, 52, 52, 60, 70, 72, 76, 88, 92, 94, 96], [-80, -78, -76, -72, -66, -64, -62, -54, -46, -40, -34, -34, -24, -18, -4, 0, 6, 10, 10, 10, 12, 12, 18, 22, 32, 34, 34, 38, 40, 40, 40, 42, 44, 44, 46, 58, 66, 76, 82, 82, 88, 96], [-96, -94, -92, -86, -82, -82, -70, -70, -64, -60, -56, -46, -46, -46, -46, -44, -38, -8, -6, -4, 0, 0, 2, 6, 8, 12, 30, 34, 34, 36, 36, 38, 56, 62, 72, 74, 76, 82, 82, 88, 90, 98], [-96, -96, -90, -86, -76, -74, -72, -66, -66, -62, -60, -56, -56, -46, -42, -40, -38, -38, -28, -28, -20, -18, -16, -10, -8, -4, -2, 2, 12, 36, 38, 40, 44, 44, 48, 52, 64, 78, 80, 86, 90, 92], [-90, -78, -78, -74, -74, -66, -64, -62, -42, -42, -42, -38, -36, -34, -30, -22, -20, -16, -10, -6, -2, 0, 2, 6, 8, 10, 10, 10, 18, 22, 22, 38, 40, 42, 44, 48, 54, 56, 58, 58, 84, 94], [-94, -92, -90, -90, -86, -72, -72, -72, -66, -66, -56, -52, -50, -46, -40, -30, -24, -20, -20, -10, -6, 0, 2, 4, 10, 16, 18, 20, 22, 26, 26, 36, 40, 40, 48, 54, 60, 62, 70, 86, 88, 96], [-98, -92, -84, -80, -76, -70, -58, -52, -50, -50, -44, -38, -28, -28, -24, -24, -22, -12, -12, -10, -6, -4, -2, 2, 4, 6, 10, 16, 16, 18, 32, 34, 34, 40, 40, 48, 48, 52, 62, 64, 90, 92], [-94, -92, -84, -84, -82, -76, -66, -62, -56, -54, -46, -40, -40, -36, -34, -28, -22, -18, -12, -10, -10, -8, 12, 12, 14, 14, 20, 22, 24, 30, 34, 42, 46, 48, 58, 58, 64, 64, 72, 88, 88, 98], [-94, -92, -82, -66, -60, -52, -50, -44, -40, -36, -34, -28, -22, -18, -18, -14, -4, -4, 4, 10, 12, 14, 16, 22, 24, 28, 36, 38, 44, 44, 46, 50, 52, 64, 74, 82, 82, 84, 88, 90, 92, 98], [-90, -86, -86, -82, -82, -78, -74, -68, -66, -48, -48, -44, -38, -34, -32, -26, -18, -6, -4, -2, 0, 0, 0, 8, 18, 24, 26, 34, 48, 50, 52, 54, 60, 64, 72, 76, 82, 88, 92, 92, 94, 94], [-96, -94, -90, -86, -54, -54, -52, -50, -48, -46, -40, -36, -28, -28, -22, -20, -18, -14, -10, 0, 0, 4, 8, 8, 8, 22, 30, 36, 36, 46, 50, 52, 64, 68, 72, 74, 74, 78, 82, 82, 84, 88], [-98, -94, -82, -76, -74, -66, -56, -46, -42, -40, -40, -38, -36, -28, -26, -20, -10, -4, 0, 10, 28, 28, 30, 32, 34, 38, 40, 42, 46, 52, 52, 54, 54, 70, 72, 80, 80, 82, 84, 90, 92, 92], [-86, -82, -80, -78, -78, -74, -74, -66, -66, -66, -58, -58, -54, -46, -42, -32, -30, -28, -24, -24, -12, -10, -8, -2, 12, 14, 26, 34, 34, 36, 36, 38, 52, 58, 58, 62, 64, 64, 74, 86, 88, 94], [-98, -96, -92, -78, -76, -72, -70, -64, -58, -56, -50, -50, -50, -48, -42, -30, -26, -26, -14, -10, -8, -4, 4, 4, 8, 12, 26, 30, 30, 34, 36, 38, 46, 46, 46, 52, 54, 60, 68, 70, 76, 84], [-90, -76, -76, -74, -70, -66, -50, -42, -38, -34, -34, -30, -20, -16, -16, -14, -2, 0, 8, 8, 14, 18, 18, 26, 30, 34, 38, 38, 42, 46, 46, 48, 50, 50, 62, 68, 70, 72, 76, 76, 94, 96], [-94, -64, -62, -62, -56, -54, -54, -42, -40, -38, -34, -28, -26, -24, -22, -20, -12, -10, -6, -6, -2, -2, 0, 4, 8, 12, 28, 32, 44, 46, 52, 56, 60, 68, 72, 74, 86, 88, 90, 94, 94, 98], [-98, -92, -90, -82, -70, -68, -68, -66, -66, -64, -58, -50, -48, -44, -42, -30, -30, -24, -24, -20, -16, -14, -10, -6, 4, 12, 14, 20, 24, 26, 42, 46, 50, 62, 68, 72, 74, 84, 84, 86, 88, 94], [-90, -90, -88, -88, -72, -68, -64, -56, -52, -38, -38, -36, -32, -26, -26, -12, -8, 8, 12, 14, 22, 34, 42, 42, 50, 54, 54, 56, 58, 60, 60, 70, 72, 72, 74, 78, 78, 80, 84, 84, 90, 92], [-88, -64, -60, -56, -54, -50, -46, -44, -44, -42, -32, -32, -26, -24, -24, -22, -14, -4, 0, 2, 12, 14, 14, 20, 24, 30, 38, 38, 42, 44, 46, 60, 68, 70, 72, 80, 82, 82, 84, 88, 90, 96], [-98, -98, -94, -90, -86, -86, -86, -84, -84, -78, -74, -74, -72, -66, -58, -58, -54, -46, -46, -14, -10, 0, 0, 6, 6, 12, 22, 24, 42, 44, 48, 50, 50, 56, 58, 58, 70, 72, 82, 88, 90, 96]],21,), ([[0, 1, 0, 1, 0, 1], [1, 1, 0, 1, 1, 0], [0, 1, 1, 0, 0, 0], [0, 1, 1, 0, 0, 0], [1, 0, 0, 1, 0, 0], [0, 0, 1, 0, 1, 0]],5,), ([[10, 18, 38], [20, 82, 98], [58, 78, 92]],1,), ([[90, 72, 66, -20, -64, 22, -28, -64, 42, -56, -78, 82, -96, 14, -84], [-8, 50, -76, -78, 66, 24, -24, 92, 40, 74, 12, 22, -96, -38, 2], [38, -50, 68, 22, -58, 18, 80, -62, 24, 98, -90, 56, -62, -50, -86], [34, 72, 72, 58, -32, -18, 42, -2, 54, 24, -94, 98, -26, 84, -50], [-88, -86, 44, 92, 0, 6, -28, -18, 50, 58, 30, -96, -70, -40, -56], [-78, 46, 32, 66, -14, 68, 22, -6, 66, 58, 16, -78, -8, -14, -2], [-98, -98, 76, 82, -2, -74, -98, 80, -56, -56, -74, -54, -36, 94, 26], [20, -94, 40, 66, 6, -16, 86, -32, -64, 84, 42, -72, -62, 12, -78], [88, -60, 64, -44, -40, 66, -44, 88, -68, 20, 40, 50, -86, -2, -46], [-64, -62, 86, -6, 64, -92, -66, -42, 44, -62, 50, 78, -36, -26, 60], [88, 0, 74, 8, 68, 58, -98, -62, 70, 48, -48, -60, -38, -48, 48], [-80, -64, -40, 62, -94, -10, 60, -38, 80, 12, -32, -42, -40, 46, -62], [44, -84, -62, -64, -80, -40, 20, -54, -10, 22, 30, -38, 28, -14, 34], [-10, 36, 52, -84, 14, 94, -58, -78, 62, -36, -24, 86, -74, -28, 0], [82, 58, -20, -16, 32, 20, -28, -48, 48, -72, -82, -86, -40, 76, 88]],9,), ([[1]],0,), ([[22, 52, 13, 45, 52, 31, 82, 11, 41, 97, 10, 4, 59, 41, 33, 57, 21, 88, 74, 37, 3, 21, 69, 70, 82, 24, 67], [53, 28, 86, 51, 99, 34, 83, 79, 72, 88, 14, 5, 77, 28, 1, 92, 73, 81, 80, 68, 41, 37, 80, 99, 16, 18, 85], [12, 77, 44, 25, 33, 66, 11, 86, 81, 5, 29, 78, 95, 6, 59, 79, 80, 56, 93, 37, 86, 24, 56, 6, 54, 67, 2], [67, 1, 57, 81, 92, 69, 7, 93, 81, 36, 19, 2, 46, 4, 83, 10, 4, 17, 16, 84, 74, 52, 65, 51, 75, 33, 22], [34, 77, 98, 42, 77, 49, 15, 73, 93, 89, 71, 75, 52, 39, 35, 17, 65, 23, 75, 88, 35, 31, 12, 49, 97, 25, 53], [61, 98, 92, 37, 5, 47, 6, 79, 80, 96, 63, 73, 39, 54, 12, 4, 43, 98, 23, 84, 81, 5, 29, 11, 25, 56, 17], [47, 5, 3, 23, 94, 7, 44, 5, 40, 40, 97, 69, 58, 91, 40, 48, 6, 23, 11, 64, 75, 2, 94, 36, 46, 76, 95], [98, 43, 1, 22, 15, 17, 28, 57, 81, 10, 28, 67, 49, 83, 50, 84, 71, 78, 9, 29, 17, 41, 94, 95, 78, 79, 59], [71, 82, 52, 75, 8, 8, 99, 9, 86, 56, 42, 51, 74, 87, 23, 15, 79, 90, 22, 36, 31, 30, 28, 37, 80, 17, 63], [64, 41, 61, 54, 10, 32, 32, 6, 59, 96, 48, 47, 24, 78, 73, 17, 77, 21, 12, 60, 3, 62, 57, 2, 41, 81, 61], [47, 21, 45, 34, 87, 24, 43, 73, 21, 77, 79, 74, 73, 5, 69, 19, 34, 20, 7, 9, 54, 98, 24, 94, 73, 97, 91], [44, 31, 57, 15, 59, 50, 12, 31, 21, 18, 17, 33, 14, 15, 61, 48, 29, 47, 9, 62, 47, 18, 8, 80, 35, 95, 99], [47, 14, 94, 75, 56, 97, 77, 64, 52, 44, 80, 52, 45, 48, 96, 79, 31, 75, 20, 23, 6, 36, 35, 55, 19, 17, 36], [41, 77, 31, 91, 9, 98, 95, 95, 77, 30, 40, 5, 59, 67, 48, 82, 20, 96, 75, 21, 36, 22, 39, 54, 99, 88, 8], [96, 43, 48, 65, 60, 67, 21, 95, 99, 13, 52, 28, 20, 55, 1, 94, 97, 45, 59, 65, 8, 65, 66, 58, 52, 63, 84], [66, 43, 33, 40, 51, 33, 59, 64, 10, 22, 62, 5, 20, 43, 7, 54, 89, 33, 41, 17, 23, 34, 17, 58, 66, 87, 14], [73, 38, 15, 91, 54, 59, 54, 88, 89, 63, 22, 5, 40, 61, 59, 69, 98, 21, 68, 56, 31, 90, 7, 51, 42, 92, 86], [63, 11, 30, 97, 61, 15, 38, 66, 75, 54, 49, 76, 92, 94, 68, 53, 42, 71, 96, 99, 64, 40, 37, 98, 3, 4, 58], [31, 83, 87, 38, 13, 60, 70, 16, 76, 25, 59, 54, 31, 88, 72, 42, 32, 2, 61, 46, 22, 12, 9, 40, 74, 68, 35], [62, 37, 42, 33, 63, 73, 99, 1, 8, 18, 35, 87, 54, 98, 52, 57, 40, 52, 68, 9, 20, 53, 72, 74, 80, 12, 69], [8, 92, 7, 67, 41, 27, 10, 19, 52, 37, 86, 12, 11, 48, 99, 58, 78, 98, 45, 33, 75, 48, 88, 15, 30, 41, 78], [69, 89, 58, 78, 42, 17, 42, 91, 35, 68, 12, 73, 12, 12, 85, 52, 70, 44, 45, 10, 30, 10, 38, 27, 26, 97, 50], [23, 68, 7, 18, 45, 79, 28, 40, 39, 65, 25, 14, 38, 22, 36, 14, 96, 79, 18, 66, 54, 64, 80, 29, 98, 29, 85], [70, 35, 75, 61, 89, 55, 86, 20, 9, 55, 86, 32, 46, 26, 76, 58, 27, 48, 23, 99, 99, 73, 3, 80, 28, 1, 68], [31, 89, 14, 95, 93, 53, 5, 27, 52, 68, 35, 17, 9, 51, 43, 47, 31, 90, 46, 28, 85, 15, 45, 85, 19, 51, 15], [35, 40, 79, 82, 37, 8, 33, 80, 90, 4, 28, 62, 2, 1, 27, 82, 53, 75, 26, 41, 9, 46, 34, 61, 50, 19, 25], [44, 24, 15, 94, 82, 22, 25, 50, 55, 46, 62, 98, 47, 39, 95, 21, 65, 66, 47, 15, 45, 87, 56, 84, 63, 3, 55]],22,) ] n_success = 0 for i, parameters_set in enumerate(param): f_filled(*(filled_function_param[i])) f_gold(*parameters_set) if parameters_set == filled_function_param[i]: n_success+=1 print("#Results: %i, %i" % (n_success, len(param)))
CodeGen-main
data/transcoder_evaluation_gfg/python/EFFICIENTLY_COMPUTE_SUMS_OF_DIAGONALS_OF_A_MATRIX.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( N ) : B_Number = 0 cnt = 0 while ( N != 0 ) : rem = N % 2 c = pow ( 10 , cnt ) B_Number += rem * c N //= 2 cnt += 1 return B_Number #TOFILL if __name__ == '__main__': param = [ (18,), (92,), (87,), (50,), (56,), (88,), (3,), (16,), (45,), (58,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/PROGRAM_DECIMAL_BINARY_CONVERSION_2.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n , k ) : res = "" for i in range ( k ) : res = res + chr ( ord ( 'a' ) + i ) count = 0 for i in range ( n - k ) : res = res + chr ( ord ( 'a' ) + count ) count += 1 if ( count == k ) : count = 0 ; return res #TOFILL if __name__ == '__main__': param = [ (60,71,), (56,17,), (16,16,), (42,60,), (55,56,), (64,59,), (68,24,), (88,2,), (64,94,), (42,79,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/STRING_K_DISTINCT_CHARACTERS_NO_CHARACTERS_ADJACENT.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : sum = [ 0 for k in range ( n ) ] if n >= 1 : sum [ 0 ] = arr [ 0 ] if n >= 2 : sum [ 1 ] = arr [ 0 ] + arr [ 1 ] if n > 2 : sum [ 2 ] = max ( sum [ 1 ] , max ( arr [ 1 ] + arr [ 2 ] , arr [ 0 ] + arr [ 2 ] ) ) for i in range ( 3 , n ) : sum [ i ] = max ( max ( sum [ i - 1 ] , sum [ i - 2 ] + arr [ i ] ) , arr [ i ] + arr [ i - 1 ] + sum [ i - 3 ] ) return sum [ n - 1 ] #TOFILL if __name__ == '__main__': param = [ ([5, 6, 8, 9, 10, 10, 16, 17, 17, 20, 21, 22, 23, 28, 29, 32, 36, 37, 40, 41, 42, 43, 47, 47, 48, 48, 49, 49, 52, 52, 53, 59, 61, 64, 65, 79, 79, 81, 87, 91, 92, 98],35,), ([98, 76, -80, -30, 82, 52, -14, 28, 98, 18, 82, 52, 26, -62, -8],7,), ([0, 0, 0, 0, 0, 1, 1, 1, 1],7,), ([21, 26, 85, 73, 47, 10, 54, 9, 11, 70, 42, 95, 44, 91],12,), ([-94, -92, -90, -84, -76, -68, -60, -50, -34, -34, -20, -16, -6, 18, 50, 54, 66, 70, 96],9,), ([1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1],16,), ([2, 3, 4, 4, 14, 14, 18, 21, 24, 26, 29, 31, 32, 34, 36, 37, 38, 40, 42, 44, 44, 54, 63, 69, 77, 77, 82, 82, 86, 87, 90, 93, 95],31,), ([-46, 64, -44, 88, -74, 54, 40, -2, -24, 94, 40, -44, 56, -54, -60, -86, -58, 48, -90, 12, -76, -30, 94, -34, 14, 12, 80, -40, 60],22,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],7,), ([4, 32, 63, 23, 44, 57, 59, 69, 88, 61, 66, 61, 65, 33, 79, 58, 71, 2, 80, 41, 83, 12, 20, 9, 7, 40, 36, 97, 10, 98, 66, 78, 71, 37, 53],26,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MAXIMUM_SUBSEQUENCE_SUM_SUCH_THAT_NO_THREE_ARE_CONSECUTIVE.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : mpis = [ 0 ] * ( n ) for i in range ( n ) : mpis [ i ] = arr [ i ] for i in range ( 1 , n ) : for j in range ( i ) : if ( arr [ i ] > arr [ j ] and mpis [ i ] < ( mpis [ j ] * arr [ i ] ) ) : mpis [ i ] = mpis [ j ] * arr [ i ] return max ( mpis ) #TOFILL if __name__ == '__main__': param = [ ([1, 1, 4, 7, 7, 9, 12, 20, 45, 53, 58, 63, 65, 65, 86, 98, 98],12,), ([46, -58, 70, 60, 74, 42, 6, -26, 78, 32, 14, -56, -48, 86, -2, 94, -44, -62, -50, -8, -4, -36, -62, -98, -98, -78, 56, 92, 88],27,), ([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],14,), ([13, 71, 93, 68, 43, 75, 44, 15, 1, 91, 7, 9, 65, 85, 46, 87, 37, 74, 19, 30, 87, 27, 82, 92, 12, 36, 6, 27, 76, 80, 30, 83, 67, 83, 65, 28, 81, 59, 63, 11, 70],20,), ([-96, -94, -92, -88, -84, -80, -74, -70, -62, -56, -48, -46, -40, -34, -32, -26, -22, -22, -12, -10, -8, -6, -2, 0, 2, 4, 6, 18, 18, 30, 34, 34, 38, 38, 40, 48, 54, 56, 60, 84, 88, 88, 90, 94, 96],30,), ([1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],22,), ([1, 1, 5, 5, 6, 7, 18, 35, 39, 51, 64, 73, 87, 90, 91, 92],11,), ([-54, 8, -92, -28, 72, 54, -74, 36, -10, 54, -30, -16, -72, -32, -92, 38, -76, -76, -50, -92, 48],19,), ([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, 1, 1, 1, 1, 1, 1],26,), ([47, 57, 72, 40, 53, 46, 62, 51, 42, 89, 9, 91, 58, 67, 20, 91, 63, 50, 32, 6, 63, 49, 3, 89, 87, 54, 65, 72, 72, 62, 31, 6, 48, 87, 17, 95, 59, 57],30,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MAXIMUM_PRODUCT_INCREASING_SUBSEQUENCE.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , n ) : count_odd = 0 ; count_even = 0 ; for i in range ( n ) : if ( a [ i ] & 1 ) : count_odd += 1 ; else : count_even += 1 ; if ( count_odd % 2 and count_even % 2 ) : return False ; else : return True ; #TOFILL if __name__ == '__main__': param = [ ([1, 1, 1, 7, 7, 8, 10, 10, 10, 14, 15, 18, 20, 23, 24, 24, 26, 30, 32, 32, 33, 36, 42, 43, 46, 48, 51, 51, 52, 53, 58, 58, 59, 59, 59, 60, 67, 71, 72, 74, 76, 77, 83, 84, 86, 90, 91],30,), ([-90, -20, -60, -64, -24, 84, -2, -32, 28, -54, 44, -96, 52, 88, 20, -56, -2],12,), ([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, 1, 1, 1, 1, 1, 1, 1, 1],36,), ([98, 70, 24, 18, 7, 4, 78, 19, 70, 56, 99, 54, 69, 15, 88, 20, 40, 13, 19, 56, 62],19,), ([-72, -66, -58, -20, 36, 80, 92],6,), ([0, 1],1,), ([6, 13, 14, 16, 21, 26, 26, 28, 29, 35, 38, 42, 47, 47, 62, 67, 77, 81, 81, 83, 84, 88, 90, 96, 97, 98],17,), ([-48, -8, 20, 32, -90, -42, -6, -88, -72, 42, 66, -62, 82, -4, 8, 12, -22, 82, 56, 96, -54, 92, -42, 30, -18, 14, -6, -66, 34, 16, -84, -94, 48, -48, 52, -60, -92, -16],35,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],14,), ([45, 86, 53, 80, 27, 45, 1, 85, 91, 93, 92, 43, 75, 86, 81, 48, 21, 34, 5, 10, 88, 42, 7, 15, 96, 85, 62, 86, 52, 37],29,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_IF_ALL_THE_ELEMENTS_CAN_BE_MADE_OF_SAME_PARITY_BY_INVERTING_ADJACENT_ELEMENTS.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import math def f_gold ( arr , n ) : min_prefix_sum = 0 res = - math.inf prefix_sum = [ ] prefix_sum.append ( arr [ 0 ] ) for i in range ( 1 , n ) : prefix_sum.append ( prefix_sum [ i - 1 ] + arr [ i ] ) for i in range ( n ) : res = max ( res , prefix_sum [ i ] - min_prefix_sum ) min_prefix_sum = min ( min_prefix_sum , prefix_sum [ i ] ) return res #TOFILL if __name__ == '__main__': param = [ ([8, 9, 11, 17, 18, 19, 23, 24, 27, 30, 31, 31, 35, 44, 46, 47, 49, 51, 55, 58, 59, 61, 65, 67, 71, 71, 71, 71, 78, 78, 82, 91, 98],20,), ([-82, -28, -66, -52, -36, 36, -88, 52, -62, 46, 42, 26, -60, 18, -52, 38, 94, -68, 44, -94, 14, 36, -70],15,), ([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],19,), ([28, 36, 42, 42, 5, 52, 74, 86, 55, 82, 59, 81, 4, 90, 24, 34, 20, 99, 86, 25, 52, 48, 62, 5, 67, 83, 60, 72, 80, 73, 38, 55, 8, 70, 95],19,), ([-92, -52, -24, 36, 56],3,), ([0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0],13,), ([1, 1, 4, 4, 7, 7, 17, 18, 20, 26, 26, 32, 37, 38, 42, 44, 44, 46, 50, 53, 57, 58, 58, 60, 61, 61, 64, 74, 75, 77, 83, 83, 84, 84, 85, 87, 88, 90, 95, 96, 97, 98, 99, 99],25,), ([-86, 2, 26, 54, -16, 16, 48, 24, 50, -10, -32, -62, 48, -12, -66],13,), ([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],14,), ([58, 14, 79, 11, 31, 28, 61, 86, 25, 27, 75, 78, 32, 55, 86, 48, 15, 51, 6, 78, 23, 82, 16, 62, 35, 51, 91, 16, 79, 38, 97, 30, 23, 58, 95, 57, 82, 35, 57, 43, 22, 41, 58, 69, 25, 65, 13, 79],39,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MAXIMUM_SUBARRAY_SUM_USING_PREFIX_SUM.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : nCr = 1 res = 1 for r in range ( 1 , n + 1 ) : nCr = ( nCr * ( n + 1 - r ) ) / r ; res += nCr * nCr ; return res ; #TOFILL if __name__ == '__main__': param = [ (52,), (75,), (25,), (80,), (18,), (17,), (33,), (8,), (99,), (8,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/COUNT_EVEN_LENGTH_BINARY_SEQUENCES_WITH_SAME_SUM_OF_FIRST_AND_SECOND_HALF_BITS_1.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( boxes , n ) : boxes.sort ( ) ans = 1 prev_width = boxes [ 0 ] prev_count = 1 curr_count = 0 curr_width = 0 for i in range ( 1 , n ) : curr_width += boxes [ i ] curr_count += 1 if ( curr_width > prev_width and curr_count > prev_count ) : prev_width = curr_width prev_count = curr_count curr_count = 0 curr_width = 0 ans += 1 return ans #TOFILL if __name__ == '__main__': param = [ ([7, 8, 11, 11, 14, 19, 25, 27, 41, 42, 46, 52, 53, 54, 55, 58, 59, 62, 63, 66, 67, 69, 74, 75, 77, 81, 83, 84, 88, 88, 93, 93, 94],22,), ([80, 72, 40, -78, -72, 20, -28, -18, -96, 14, 20, -60, -56, -92, 12, 86, 16, 76, 30, 76, 16],12,), ([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],35,), ([12, 85, 16, 78, 85, 48, 91, 1, 65, 22, 15, 84, 67, 14, 73, 19, 40, 98, 4, 33, 43, 37, 66, 27, 45, 81, 50, 95, 63, 6, 95, 67, 67, 97, 59, 13, 21, 64, 37, 80],35,), ([-98, -92, -90, -88, -88, -74, -64, -64, -64, -62, -60, -52, -48, -46, -42, -42, -38, -34, -28, -26, -20, -20, -18, -4, 0, 2, 2, 6, 18, 18, 18, 20, 24, 24, 26, 32, 40, 46, 58, 66, 74, 78, 90, 96],30,), ([1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0],21,), ([8, 12, 13, 13, 13, 16, 16, 17, 19, 20, 22, 23, 26, 29, 29, 30, 31, 37, 38, 39, 39, 41, 45, 45, 46, 49, 49, 53, 56, 62, 62, 66, 67, 68, 68, 69, 69, 73, 77, 78, 82, 85, 85, 88, 88, 97],26,), ([36, -30, -84, 4, -20, -28, -88, 72, 40, 46, -68, -8, 18, -24, 94, -64, -76, 8, 82, -6, -98, -70, 82, 60, -58, -98, 86, 34, -76, -44, -22, -26, 90, 20, -38, 16, 94, 94, -78, -42, 78, -74, 2, 8, -62],25,), ([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],26,), ([70, 54, 71, 85, 51, 28, 64, 85, 21, 88, 27, 27, 77, 50, 29, 39, 57, 92, 37, 93, 64, 48, 22, 30, 28, 23, 97, 4, 3, 61, 96],18,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/FIND_MAXIMUM_HEIGHT_PYRAMID_FROM_THE_GIVEN_ARRAY_OF_OBJECTS.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , n , m ) : sum1 = 0 sum2 = 0 for i in range ( 0 , n ) : sum1 = 0 sum2 = 0 for j in range ( 0 , m ) : sum1 += a [ i ] [ j ] sum2 += a [ j ] [ i ] if ( sum1 == sum2 ) : return 1 return 0 #TOFILL if __name__ == '__main__': param = [ ([[7, 9, 13, 14, 17, 17, 17, 19, 21, 21, 23, 25, 25, 25, 28, 29, 34, 35, 37, 39, 40, 41, 42, 49, 54, 56, 61, 64, 65, 68, 70, 74, 78, 81, 81, 83, 86, 88, 88, 88, 91, 93, 95, 98], [5, 6, 7, 8, 11, 12, 16, 19, 20, 24, 24, 28, 34, 36, 39, 41, 45, 49, 53, 56, 57, 57, 59, 62, 62, 64, 69, 71, 72, 74, 74, 75, 75, 80, 82, 86, 88, 89, 90, 91, 93, 94, 95, 99], [1, 1, 3, 8, 9, 11, 18, 19, 20, 20, 22, 23, 27, 29, 29, 31, 34, 36, 42, 46, 47, 49, 51, 51, 58, 59, 63, 65, 66, 67, 70, 70, 71, 72, 74, 76, 77, 78, 79, 83, 84, 90, 96, 99], [1, 5, 6, 7, 8, 11, 17, 28, 32, 34, 37, 39, 40, 43, 44, 44, 45, 60, 61, 63, 64, 69, 71, 71, 73, 74, 75, 78, 82, 83, 84, 84, 86, 87, 87, 89, 93, 93, 95, 95, 97, 97, 99, 99], [2, 6, 8, 9, 12, 18, 19, 21, 24, 26, 30, 36, 36, 36, 38, 39, 40, 42, 46, 47, 48, 49, 53, 54, 54, 55, 58, 62, 65, 65, 66, 67, 70, 71, 71, 73, 79, 81, 81, 87, 89, 95, 97, 99], [1, 5, 7, 10, 11, 11, 12, 14, 19, 20, 25, 28, 29, 38, 44, 45, 48, 53, 56, 63, 65, 67, 68, 71, 71, 76, 76, 80, 81, 82, 82, 85, 87, 88, 89, 90, 90, 91, 93, 94, 95, 98, 99, 99], [1, 2, 6, 7, 7, 7, 18, 26, 27, 30, 31, 33, 33, 36, 36, 37, 41, 46, 51, 52, 56, 57, 57, 61, 63, 72, 72, 73, 73, 77, 79, 82, 84, 84, 87, 88, 88, 89, 89, 92, 95, 96, 98, 98], [5, 7, 7, 13, 14, 18, 18, 18, 21, 24, 26, 27, 28, 32, 36, 37, 39, 41, 41, 42, 44, 46, 50, 51, 52, 54, 54, 57, 60, 60, 62, 64, 66, 68, 69, 72, 77, 79, 82, 89, 90, 92, 93, 94], [2, 4, 6, 10, 11, 12, 13, 16, 16, 19, 21, 23, 26, 27, 28, 31, 33, 35, 38, 40, 41, 41, 42, 45, 46, 47, 47, 48, 49, 49, 52, 53, 55, 56, 60, 64, 66, 67, 73, 75, 78, 84, 91, 96], [3, 5, 10, 11, 13, 20, 22, 23, 23, 24, 24, 28, 31, 34, 35, 35, 35, 36, 37, 41, 41, 43, 43, 45, 49, 53, 53, 57, 61, 64, 64, 64, 67, 69, 75, 76, 79, 81, 82, 83, 89, 93, 98, 99], [1, 1, 4, 9, 13, 13, 13, 15, 16, 23, 23, 25, 26, 28, 29, 30, 34, 36, 39, 40, 41, 46, 48, 54, 55, 57, 58, 62, 62, 63, 63, 65, 67, 70, 71, 71, 76, 81, 83, 84, 85, 96, 96, 96], [2, 3, 7, 11, 13, 17, 20, 27, 27, 27, 28, 30, 34, 35, 42, 44, 44, 44, 46, 49, 51, 52, 57, 61, 61, 62, 62, 63, 71, 77, 78, 78, 78, 79, 79, 83, 89, 89, 90, 93, 93, 94, 96, 98], [1, 3, 5, 6, 8, 8, 10, 10, 11, 16, 17, 18, 18, 18, 18, 21, 27, 32, 36, 38, 39, 41, 43, 43, 45, 49, 55, 57, 61, 61, 65, 71, 73, 74, 74, 76, 78, 80, 88, 90, 94, 95, 97, 98], [6, 7, 7, 7, 10, 14, 14, 19, 20, 24, 25, 26, 28, 29, 30, 30, 30, 33, 34, 36, 37, 38, 50, 53, 55, 56, 58, 62, 64, 66, 67, 74, 74, 76, 77, 81, 84, 88, 92, 93, 94, 95, 95, 97], [1, 2, 4, 13, 16, 18, 23, 25, 26, 27, 28, 29, 31, 33, 39, 44, 47, 48, 53, 54, 57, 62, 63, 64, 64, 64, 66, 68, 73, 73, 75, 77, 78, 81, 85, 94, 95, 96, 96, 96, 97, 98, 99, 99], [2, 4, 6, 13, 14, 15, 15, 26, 29, 30, 30, 31, 32, 33, 35, 37, 37, 44, 45, 45, 45, 47, 51, 54, 55, 56, 57, 58, 59, 63, 63, 64, 66, 72, 73, 75, 78, 80, 86, 92, 93, 94, 96, 97], [1, 1, 2, 3, 6, 9, 11, 12, 14, 22, 27, 31, 35, 36, 36, 38, 41, 42, 42, 45, 47, 47, 47, 49, 49, 57, 58, 59, 62, 63, 70, 70, 73, 76, 78, 82, 83, 83, 85, 91, 93, 96, 99, 99], [1, 2, 2, 6, 7, 8, 8, 11, 13, 14, 18, 19, 23, 25, 25, 29, 30, 35, 35, 39, 40, 46, 55, 55, 56, 58, 59, 61, 62, 70, 70, 71, 72, 74, 74, 75, 80, 85, 86, 89, 91, 92, 93, 97], [4, 10, 17, 17, 18, 19, 20, 24, 26, 26, 28, 35, 37, 39, 40, 41, 43, 45, 52, 53, 54, 54, 61, 63, 65, 65, 73, 73, 76, 77, 77, 78, 78, 79, 82, 83, 92, 94, 95, 96, 96, 96, 97, 99], [6, 8, 8, 9, 11, 13, 13, 17, 18, 18, 19, 21, 22, 27, 29, 29, 32, 33, 36, 38, 40, 42, 47, 47, 56, 57, 58, 66, 68, 71, 76, 77, 78, 78, 79, 81, 83, 84, 87, 91, 91, 95, 98, 99], [1, 5, 5, 6, 7, 8, 10, 10, 12, 14, 15, 17, 21, 23, 29, 33, 36, 36, 38, 40, 42, 44, 44, 46, 51, 52, 52, 54, 57, 57, 58, 59, 59, 60, 72, 76, 80, 85, 86, 88, 91, 95, 97, 99], [5, 5, 6, 8, 9, 10, 11, 14, 16, 18, 22, 24, 24, 34, 34, 40, 40, 42, 43, 52, 53, 55, 56, 57, 58, 60, 67, 67, 72, 72, 75, 76, 76, 76, 79, 80, 81, 86, 87, 88, 91, 91, 92, 98], [1, 5, 19, 19, 20, 20, 21, 23, 25, 28, 30, 31, 33, 33, 33, 33, 38, 41, 45, 48, 52, 59, 60, 64, 64, 65, 65, 66, 69, 73, 78, 79, 80, 83, 85, 85, 90, 91, 91, 92, 92, 98, 98, 99], [2, 4, 6, 10, 13, 14, 17, 21, 24, 25, 27, 29, 29, 32, 37, 39, 43, 46, 53, 53, 55, 55, 56, 56, 61, 63, 64, 66, 67, 69, 69, 70, 70, 71, 74, 74, 76, 81, 82, 85, 86, 90, 95, 98], [1, 2, 3, 4, 6, 6, 9, 10, 12, 17, 18, 19, 19, 25, 26, 30, 36, 36, 41, 49, 50, 54, 56, 59, 59, 60, 61, 62, 65, 66, 66, 70, 71, 74, 75, 76, 77, 83, 86, 90, 91, 96, 96, 97], [2, 2, 2, 4, 5, 6, 7, 8, 10, 11, 12, 18, 21, 28, 31, 36, 37, 40, 43, 44, 45, 51, 53, 54, 55, 55, 56, 56, 57, 65, 66, 67, 71, 73, 78, 80, 82, 83, 86, 86, 91, 91, 92, 95], [1, 3, 7, 10, 13, 15, 16, 18, 21, 22, 23, 26, 26, 27, 32, 36, 38, 43, 43, 47, 48, 49, 50, 51, 56, 57, 60, 62, 63, 64, 67, 68, 72, 77, 81, 81, 82, 82, 82, 85, 91, 91, 93, 95], [3, 3, 3, 9, 9, 11, 12, 13, 17, 18, 19, 20, 23, 23, 24, 25, 26, 27, 28, 29, 29, 29, 30, 32, 33, 34, 35, 37, 39, 50, 51, 53, 54, 57, 60, 64, 71, 83, 88, 89, 92, 94, 96, 98], [1, 2, 3, 3, 4, 5, 7, 9, 11, 12, 12, 18, 22, 23, 25, 33, 41, 42, 43, 46, 46, 47, 53, 57, 58, 59, 60, 63, 63, 64, 68, 68, 69, 69, 70, 73, 75, 83, 86, 90, 92, 93, 95, 96], [4, 5, 5, 11, 13, 15, 16, 16, 17, 18, 24, 25, 25, 33, 33, 35, 38, 42, 42, 45, 47, 49, 49, 50, 52, 56, 57, 59, 60, 61, 64, 64, 65, 68, 70, 70, 73, 75, 79, 84, 85, 88, 95, 96], [3, 5, 6, 6, 13, 13, 16, 23, 24, 26, 27, 28, 30, 32, 33, 33, 34, 34, 47, 48, 48, 55, 56, 57, 63, 64, 67, 68, 68, 68, 70, 75, 79, 82, 82, 87, 89, 91, 91, 93, 93, 96, 97, 99], [1, 3, 12, 15, 15, 20, 21, 22, 24, 24, 28, 28, 31, 32, 33, 36, 40, 41, 41, 42, 43, 46, 46, 49, 50, 56, 58, 61, 63, 66, 67, 68, 70, 75, 75, 75, 82, 83, 87, 96, 96, 97, 97, 99], [2, 11, 12, 12, 13, 14, 16, 17, 18, 21, 23, 27, 29, 35, 35, 36, 36, 37, 43, 48, 48, 58, 63, 65, 66, 68, 69, 70, 73, 74, 74, 76, 77, 83, 83, 86, 88, 89, 89, 91, 96, 98, 99, 99], [1, 2, 4, 5, 5, 5, 7, 15, 16, 18, 22, 28, 30, 30, 34, 34, 36, 40, 41, 41, 43, 44, 48, 50, 51, 55, 57, 59, 60, 60, 62, 63, 69, 69, 70, 78, 85, 86, 86, 88, 90, 95, 95, 99], [4, 5, 10, 11, 11, 11, 11, 12, 16, 16, 18, 19, 20, 20, 28, 28, 31, 32, 36, 36, 37, 40, 42, 45, 49, 50, 51, 55, 60, 63, 64, 72, 75, 76, 78, 78, 78, 81, 83, 84, 85, 91, 93, 93], [3, 5, 7, 8, 12, 13, 15, 15, 15, 16, 18, 20, 20, 23, 27, 28, 30, 31, 33, 34, 36, 37, 45, 47, 49, 53, 58, 58, 60, 60, 62, 62, 63, 63, 64, 71, 72, 76, 78, 79, 80, 83, 89, 98], [3, 6, 7, 12, 13, 13, 13, 17, 17, 19, 20, 20, 24, 24, 28, 31, 37, 40, 41, 43, 44, 44, 45, 49, 52, 53, 57, 58, 64, 64, 67, 71, 76, 76, 77, 79, 80, 81, 86, 91, 91, 93, 95, 99], [1, 1, 5, 5, 6, 9, 10, 10, 12, 12, 15, 16, 22, 22, 24, 30, 30, 37, 38, 38, 45, 47, 48, 49, 56, 59, 61, 63, 63, 69, 72, 74, 76, 80, 83, 83, 84, 88, 88, 89, 93, 94, 95, 98], [3, 4, 4, 9, 10, 11, 11, 17, 18, 19, 22, 22, 24, 24, 24, 25, 25, 26, 26, 28, 31, 35, 37, 38, 41, 52, 52, 54, 61, 61, 64, 69, 72, 81, 81, 83, 88, 93, 93, 95, 95, 96, 98, 99], [1, 2, 3, 6, 8, 8, 10, 10, 11, 12, 17, 20, 23, 26, 27, 29, 33, 34, 36, 41, 42, 44, 57, 57, 57, 64, 65, 67, 68, 73, 78, 78, 79, 79, 82, 86, 87, 88, 88, 93, 95, 98, 99, 99], [3, 4, 5, 8, 8, 11, 13, 16, 16, 23, 33, 34, 38, 38, 38, 39, 40, 48, 50, 51, 56, 56, 59, 66, 71, 72, 72, 74, 74, 74, 78, 78, 79, 79, 81, 83, 86, 87, 88, 88, 90, 93, 95, 99], [3, 3, 12, 16, 18, 19, 21, 24, 24, 25, 30, 31, 31, 35, 41, 42, 45, 45, 45, 46, 49, 49, 52, 53, 55, 58, 59, 61, 67, 75, 75, 76, 78, 83, 83, 84, 85, 87, 88, 93, 94, 94, 95, 97], [2, 3, 6, 10, 11, 11, 12, 12, 16, 16, 20, 21, 24, 26, 29, 32, 37, 38, 41, 45, 46, 46, 47, 48, 52, 56, 56, 57, 58, 59, 63, 63, 67, 75, 80, 82, 84, 89, 89, 95, 95, 98, 98, 99], [2, 2, 2, 3, 3, 5, 16, 16, 16, 18, 19, 20, 22, 29, 29, 31, 32, 33, 34, 34, 37, 48, 51, 51, 52, 53, 58, 68, 71, 72, 75, 75, 78, 83, 83, 84, 85, 87, 89, 90, 95, 96, 97, 97]],31,34,), ([[80, 22, -16, 10, 44, 26, -88, -6, -42, 68, 60, -60, -86, 34, 94, -28, -68, 62, 14, -60, -46, -24, -38, 30, -60, -62, -52, -86, 2, 86, 24, -46, -4, 18], [-68, 54, 30, -12, -60, -60, 70, 78, -70, -50, -92, -26, -50, -98, 0, 50, -60, 2, 50, 74, -4, 52, 20, 76, 68, 56, 28, -98, -80, -86, 22, -58, -42, -44], [-60, 64, 24, -2, 82, -58, -32, 26, 86, 88, 22, 54, -98, 98, 60, 94, 84, -16, -64, 42, -92, -96, 58, 78, 74, -66, -32, -52, -26, -64, -34, 0, 32, 94], [22, 46, -54, -58, 58, 58, 92, 62, 98, 12, 78, -98, 58, 36, 68, 54, 54, -46, 2, -20, 2, -30, -56, -98, 92, 20, -14, -38, -46, -50, 98, -90, 26, -8], [56, 18, -38, 98, -62, -38, 50, 18, -84, 74, -36, 26, 80, 74, 12, 68, 94, -34, -42, -40, -76, 40, 80, 14, -44, 96, -70, 38, -18, 68, -46, -2, -6, 48], [-84, 30, 22, -44, 36, -44, 40, 86, 76, -4, 30, -4, 12, 78, 28, 58, -30, -8, 36, 14, 84, -2, -22, 38, 56, 14, 56, 12, 48, 22, -8, 6, -48, -10], [-42, -36, 52, -14, 46, -16, -90, -68, 74, 10, 14, 38, -24, 62, -80, 76, -70, -36, -28, 28, 70, 2, -32, 18, 88, -80, -34, 32, -94, -48, -44, 80, -22, 68], [26, 58, -52, 60, -62, -34, 8, -42, 12, -40, -36, 76, -76, 38, 60, -20, -86, -98, -76, -50, 72, 46, -14, -30, -66, -54, 80, 90, 40, 32, -32, 86, -38, 90], [-60, -20, -86, 74, 86, -24, 84, -72, -88, -38, 38, -38, 12, 90, 90, -66, -28, -6, -22, 94, -42, -46, -8, 94, -92, 76, -4, -4, -68, 98, -34, -86, 60, -28], [20, 76, 74, -16, 44, -42, 66, 58, -98, -82, 22, -50, -10, 72, -36, 44, -60, 10, 16, 40, 14, -66, 88, 42, -24, 48, -52, 68, 66, 78, -26, 30, 40, -46], [-54, -18, 28, 16, 46, -94, -66, -34, 16, -12, 46, -40, 2, 10, -8, 90, -26, 70, 16, -72, 52, -74, 16, -8, 40, 12, -12, -82, -56, 86, -42, 92, 94, -30], [82, 26, -72, 30, -40, 18, -94, -62, 30, 6, -82, 50, 6, 62, 66, 72, 24, 16, -46, 58, 62, 36, 94, -56, -94, 14, -44, -4, 28, -22, -38, -80, 24, 2], [32, -14, 2, 0, 28, -36, 92, 14, 52, 26, -36, 56, -44, 60, 48, 64, -24, 46, -22, 46, 80, -10, -26, 76, -40, 40, -38, -30, -46, 44, -94, -20, -64, 12], [-56, -62, 86, 72, 18, 34, -54, 24, 70, 66, 62, 62, -26, 32, 8, 26, 74, -80, -24, 56, -24, 72, 8, -18, -80, 42, 20, -18, -30, 80, -54, 74, -68, -28], [88, 10, -12, 54, 52, 64, -52, -18, 70, 6, -20, -62, -90, -54, 96, -40, -96, 62, -48, -46, 26, 8, -16, -44, 0, 32, -36, -42, 50, 12, 98, -12, 6, -46], [-40, -64, -82, 28, 84, 78, 18, -78, -8, -14, 94, -40, -60, 22, 48, -72, -32, -30, -28, 80, -48, 44, -78, -56, -54, 42, 36, -22, -32, -24, 6, -90, 16, -50], [10, 36, -4, -64, 92, 64, 70, 96, -10, -88, 64, 32, 4, -20, -16, -66, -98, 30, 78, -38, -90, 34, 58, -12, -46, 10, -62, 72, 74, 22, 38, -14, -38, -96], [72, -44, -16, 84, 86, 4, -92, -58, -40, 74, 4, 32, -64, 18, -90, -22, 6, -72, -66, -8, -32, 54, 48, -86, 46, 64, 88, -72, -72, -20, 12, 24, 18, -36], [88, 0, 76, 44, 10, -74, -46, -38, -42, 0, -36, -50, 12, 32, 76, -46, 28, -36, 80, 84, -62, 38, -68, -60, -50, 92, -88, -44, 58, -40, 30, -70, -62, 52], [-52, 96, 68, -74, -8, -42, 40, -38, 22, 58, -8, 36, -68, -68, -70, 84, 74, -22, 38, -34, 38, 0, 98, 80, -12, -44, -50, 24, -44, -96, -30, -94, 2, 34], [92, 50, 46, -12, 88, 44, 84, 86, -50, -62, -60, -84, -42, -50, -60, -76, -98, 54, -26, 10, 32, 26, -70, -38, -58, 8, -64, -44, 34, -10, -28, -26, 26, -52], [-26, 88, 16, 62, -64, -52, 34, 94, -38, -54, 0, 24, -22, 94, -96, 8, 80, -20, 78, -78, -42, 46, 10, 50, -30, 88, -66, -54, 74, 50, 4, 86, 66, 96], [-42, 34, -84, 86, 4, -56, -50, 86, -60, 78, 14, -34, -60, -12, 78, -90, -88, 14, -8, -62, -66, 58, -24, -14, -76, 28, -38, 54, 6, -52, 98, -40, 18, 22], [18, -84, -6, 4, -82, -40, 8, 86, 22, 36, -24, 66, -2, 74, -20, -4, 38, -52, -98, -42, 44, 0, 68, 72, -16, 86, 14, -80, -20, -74, -12, -52, 74, 10], [-8, 48, -10, -88, 90, -58, 22, -28, 6, -14, 64, 6, -10, 34, 78, 8, 84, -96, -70, 82, 58, 58, 94, -32, -54, 52, -36, -64, 62, 50, 98, -56, -90, 78], [-78, 24, 86, -92, -18, 68, 56, -26, 6, 34, 22, -76, 78, -8, 38, -66, -74, -56, 10, -30, -82, -50, -20, -68, -14, 60, -72, 64, 48, 26, 76, 28, 4, 82], [10, -26, -20, 80, 64, 42, -46, 86, 82, 34, -34, -66, -48, -80, -90, -92, 56, -24, -96, 62, -96, 64, -10, 58, 38, -18, 12, 22, 36, 14, 4, -30, 12, 6], [42, 24, -16, 24, 82, -48, 34, 58, -8, -48, -32, 58, 68, -72, 60, 62, 46, -4, -88, 62, 68, -60, 80, 32, 72, 52, -16, -72, -74, -10, -8, -46, 66, -48], [68, -86, 2, 0, -10, 28, -82, 8, -80, -52, 4, -34, 82, 24, 64, -8, -40, -52, -50, 14, -20, 30, 72, 18, 96, -6, 24, -94, 58, -58, -6, -56, -84, -94], [-4, 36, -48, -46, -26, -8, -76, -60, 12, 56, -10, -78, 0, 64, 72, -8, -76, 8, 28, -12, -20, 78, -40, 76, -38, -86, -86, -88, -38, 66, -74, 14, 8, 46], [98, 60, 14, 64, 8, 92, 38, -10, 32, -52, 20, 52, 86, -4, -82, 26, 74, -2, 72, 84, -46, 74, -18, -76, 14, -54, -60, 60, 18, -72, 26, -36, 70, 42], [46, -42, -80, 28, -82, -80, -20, 94, -32, 58, -54, 76, 56, 98, -42, -64, 40, -72, 62, 42, 2, -26, -96, -68, 50, -50, -70, 52, 48, -20, 78, 40, -68, 80], [-84, 18, -24, 60, -14, 72, 2, -54, -46, 64, -46, -30, 6, 6, -4, 10, 94, -4, 38, 62, -68, 40, -4, -42, 86, -48, -10, 74, -36, -4, 22, 88, -24, 26], [86, 60, 98, 82, 14, -72, 96, 50, 68, 38, 42, 36, -30, 48, 94, -72, 94, 82, 18, -14, 76, 96, 4, -52, -96, 26, -88, 8, -46, -2, -56, 14, 44, 60]],27,19,), ([[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, 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, 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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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], [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, 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], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],15,22,), ([[79, 55, 54, 46, 90, 46, 22, 40, 22, 68, 78, 62, 54, 48, 21, 27, 32, 18, 36, 36, 9, 74, 80, 79, 75, 73, 61, 72, 22, 75, 40, 51, 21, 51, 53, 41, 39, 32, 13, 6, 19, 53, 78, 49, 43, 65], [19, 56, 2, 39, 48, 40, 43, 52, 74, 52, 96, 34, 6, 96, 19, 4, 29, 85, 87, 90, 85, 9, 61, 63, 84, 58, 48, 69, 95, 47, 15, 37, 51, 34, 63, 38, 53, 6, 85, 9, 63, 60, 43, 94, 55, 84], [21, 33, 91, 82, 31, 62, 31, 87, 25, 66, 81, 81, 66, 15, 18, 26, 6, 39, 37, 61, 64, 8, 2, 45, 71, 34, 94, 89, 16, 22, 80, 59, 22, 2, 38, 53, 82, 72, 11, 15, 77, 63, 71, 52, 3, 5], [71, 6, 63, 75, 88, 59, 93, 73, 43, 49, 93, 72, 8, 74, 72, 42, 58, 57, 72, 82, 96, 72, 33, 5, 9, 47, 13, 60, 5, 1, 73, 18, 94, 19, 6, 70, 96, 82, 35, 76, 11, 55, 25, 43, 43, 69], [12, 58, 24, 76, 11, 91, 89, 84, 14, 48, 81, 40, 96, 80, 35, 95, 72, 35, 14, 50, 6, 19, 23, 69, 32, 48, 13, 77, 70, 59, 37, 9, 15, 31, 9, 59, 45, 84, 41, 66, 10, 50, 89, 4, 84, 93], [52, 94, 97, 92, 5, 17, 90, 63, 26, 12, 98, 40, 52, 97, 10, 85, 14, 62, 25, 82, 15, 5, 67, 59, 15, 17, 74, 70, 46, 2, 22, 58, 11, 8, 44, 16, 34, 49, 60, 52, 49, 91, 12, 35, 96, 81], [91, 66, 62, 88, 2, 90, 37, 99, 33, 93, 79, 84, 41, 59, 48, 99, 70, 35, 98, 15, 11, 18, 81, 27, 52, 64, 90, 88, 23, 83, 35, 62, 76, 2, 30, 85, 3, 24, 45, 92, 12, 32, 53, 84, 10, 82], [65, 41, 34, 67, 22, 37, 4, 15, 25, 43, 34, 78, 46, 81, 33, 63, 65, 90, 36, 8, 66, 47, 53, 80, 21, 87, 83, 8, 96, 15, 75, 93, 31, 2, 52, 16, 67, 53, 26, 85, 23, 12, 75, 41, 8, 4], [62, 1, 25, 10, 75, 92, 97, 27, 58, 14, 50, 37, 81, 18, 18, 98, 80, 57, 12, 42, 43, 55, 33, 16, 88, 63, 95, 96, 22, 68, 17, 84, 87, 95, 95, 54, 65, 90, 14, 53, 65, 86, 83, 95, 74, 30], [87, 49, 20, 15, 27, 43, 71, 88, 33, 75, 84, 1, 89, 52, 35, 22, 90, 19, 87, 54, 4, 85, 59, 35, 98, 49, 59, 73, 37, 83, 85, 78, 94, 66, 47, 30, 67, 73, 82, 14, 4, 22, 83, 19, 43, 87], [6, 24, 11, 15, 33, 53, 45, 98, 21, 30, 79, 5, 21, 86, 50, 30, 55, 97, 29, 9, 3, 90, 50, 80, 60, 53, 18, 12, 52, 73, 54, 44, 15, 39, 54, 38, 33, 66, 51, 86, 67, 59, 88, 4, 51, 57], [6, 74, 35, 43, 5, 89, 14, 5, 98, 27, 21, 61, 58, 47, 17, 19, 50, 37, 86, 56, 98, 85, 93, 43, 94, 65, 16, 21, 30, 64, 99, 29, 16, 88, 46, 36, 2, 7, 35, 25, 30, 34, 43, 71, 60, 12], [72, 27, 4, 79, 45, 74, 17, 9, 92, 54, 41, 35, 95, 39, 90, 26, 36, 83, 83, 63, 19, 78, 1, 22, 27, 90, 20, 14, 25, 55, 8, 1, 96, 64, 38, 52, 48, 86, 28, 61, 11, 68, 38, 17, 63, 36], [74, 50, 68, 16, 85, 96, 17, 23, 58, 30, 55, 50, 75, 40, 68, 39, 32, 15, 67, 42, 65, 79, 8, 85, 97, 48, 51, 13, 20, 59, 43, 61, 78, 53, 30, 31, 97, 32, 51, 22, 56, 91, 61, 16, 90, 57], [14, 48, 38, 6, 3, 26, 62, 88, 44, 19, 99, 74, 26, 52, 30, 58, 82, 67, 88, 89, 98, 36, 38, 75, 42, 60, 64, 73, 32, 5, 1, 16, 58, 47, 28, 41, 16, 8, 50, 63, 11, 49, 70, 31, 14, 97], [53, 31, 76, 82, 34, 57, 44, 18, 87, 41, 97, 55, 52, 8, 92, 52, 2, 22, 39, 90, 6, 60, 54, 95, 26, 20, 19, 36, 37, 22, 97, 51, 1, 42, 21, 93, 92, 58, 81, 31, 12, 88, 1, 13, 34, 6], [17, 85, 2, 45, 17, 17, 85, 55, 42, 98, 27, 5, 43, 27, 82, 49, 36, 63, 15, 47, 17, 65, 31, 54, 91, 14, 91, 52, 8, 4, 91, 46, 37, 77, 79, 72, 63, 83, 4, 83, 67, 80, 42, 79, 73, 92], [96, 87, 4, 89, 46, 84, 69, 67, 51, 4, 8, 24, 30, 14, 7, 61, 27, 65, 71, 57, 42, 28, 20, 75, 68, 43, 69, 50, 74, 97, 19, 82, 93, 56, 84, 17, 87, 50, 34, 7, 92, 92, 36, 48, 2, 69], [7, 13, 16, 32, 93, 10, 49, 23, 5, 14, 94, 35, 14, 75, 92, 73, 64, 70, 51, 7, 70, 19, 30, 94, 44, 36, 97, 80, 36, 90, 11, 8, 15, 21, 63, 40, 9, 97, 75, 31, 45, 89, 25, 53, 93, 29], [73, 4, 5, 72, 70, 88, 46, 59, 57, 25, 23, 12, 44, 1, 48, 3, 64, 98, 19, 44, 24, 79, 13, 6, 58, 88, 65, 25, 68, 78, 79, 38, 71, 89, 91, 67, 60, 31, 6, 63, 12, 76, 63, 6, 53, 19], [1, 38, 33, 56, 3, 71, 50, 93, 36, 16, 5, 21, 89, 48, 97, 92, 14, 54, 75, 58, 20, 5, 22, 67, 42, 50, 82, 75, 3, 9, 87, 79, 14, 88, 11, 52, 59, 21, 71, 43, 4, 39, 41, 55, 90, 41], [98, 49, 84, 29, 78, 96, 32, 4, 51, 6, 99, 19, 78, 72, 44, 66, 2, 6, 6, 68, 44, 36, 87, 61, 10, 55, 73, 47, 94, 63, 89, 28, 35, 73, 59, 78, 65, 23, 87, 94, 20, 52, 53, 64, 58, 12], [89, 12, 59, 4, 32, 34, 83, 37, 6, 76, 84, 76, 98, 45, 20, 17, 73, 94, 99, 54, 65, 37, 72, 89, 64, 4, 19, 68, 99, 86, 9, 36, 18, 73, 15, 84, 94, 37, 77, 53, 40, 11, 66, 26, 23, 78], [29, 44, 83, 89, 99, 69, 45, 98, 42, 58, 62, 87, 75, 53, 98, 6, 23, 10, 37, 78, 17, 21, 44, 86, 77, 13, 84, 4, 63, 35, 97, 89, 38, 29, 45, 60, 58, 64, 19, 11, 5, 40, 88, 22, 38, 36], [79, 30, 1, 29, 64, 84, 39, 51, 73, 75, 60, 28, 59, 31, 84, 39, 32, 93, 90, 93, 5, 30, 21, 37, 92, 67, 72, 4, 65, 67, 61, 26, 40, 64, 25, 93, 7, 20, 46, 26, 98, 56, 97, 88, 52, 13], [48, 63, 48, 51, 50, 31, 20, 9, 1, 74, 21, 99, 21, 37, 71, 8, 13, 44, 90, 72, 35, 22, 96, 13, 34, 25, 1, 46, 25, 59, 14, 88, 9, 27, 78, 38, 8, 58, 35, 24, 7, 84, 84, 78, 72, 17], [51, 80, 98, 62, 23, 4, 44, 60, 96, 48, 79, 24, 19, 70, 24, 78, 70, 59, 63, 39, 33, 69, 56, 84, 4, 56, 65, 23, 46, 54, 63, 29, 77, 66, 27, 84, 79, 94, 20, 32, 20, 26, 87, 24, 71, 44], [99, 31, 66, 46, 11, 32, 56, 27, 18, 40, 5, 23, 73, 2, 72, 32, 91, 4, 30, 96, 72, 47, 15, 38, 40, 61, 88, 84, 8, 48, 52, 97, 1, 57, 30, 9, 16, 32, 57, 44, 4, 70, 83, 93, 93, 62], [11, 29, 4, 44, 79, 15, 27, 36, 49, 63, 49, 28, 17, 96, 93, 53, 99, 41, 9, 44, 68, 32, 79, 91, 57, 18, 6, 67, 98, 66, 59, 93, 30, 27, 76, 68, 92, 33, 90, 59, 2, 66, 19, 33, 24, 56], [78, 93, 43, 35, 99, 64, 52, 11, 91, 97, 80, 79, 30, 29, 38, 34, 21, 25, 82, 61, 48, 72, 47, 74, 37, 29, 64, 90, 75, 65, 83, 70, 34, 66, 36, 78, 97, 27, 22, 60, 82, 34, 58, 48, 55, 92], [7, 22, 33, 35, 82, 1, 61, 55, 59, 4, 16, 70, 30, 26, 26, 5, 52, 24, 17, 91, 22, 14, 19, 54, 11, 76, 76, 56, 42, 36, 65, 57, 94, 67, 75, 87, 62, 53, 92, 87, 5, 7, 42, 13, 20, 28], [60, 20, 60, 69, 25, 37, 86, 56, 69, 20, 51, 69, 17, 23, 24, 24, 17, 73, 15, 41, 86, 97, 55, 43, 9, 86, 36, 59, 80, 87, 7, 99, 77, 72, 1, 94, 17, 95, 78, 16, 39, 47, 93, 22, 88, 40], [83, 91, 70, 47, 42, 13, 57, 17, 9, 90, 29, 24, 59, 87, 80, 53, 64, 99, 67, 4, 8, 67, 23, 13, 22, 70, 46, 60, 55, 76, 15, 10, 68, 77, 36, 90, 99, 42, 85, 60, 31, 17, 36, 52, 6, 58], [5, 61, 35, 13, 95, 22, 40, 76, 66, 47, 15, 79, 61, 58, 72, 17, 65, 97, 35, 32, 84, 53, 81, 41, 31, 69, 3, 10, 79, 41, 17, 50, 31, 99, 24, 33, 76, 79, 63, 56, 32, 80, 76, 91, 16, 19], [87, 60, 85, 63, 93, 5, 2, 59, 28, 57, 1, 62, 58, 89, 75, 83, 82, 16, 88, 74, 45, 84, 10, 10, 21, 70, 77, 25, 17, 41, 65, 29, 71, 38, 65, 85, 67, 18, 17, 83, 6, 88, 57, 96, 52, 62], [74, 80, 61, 41, 76, 87, 32, 63, 15, 35, 24, 72, 9, 39, 9, 26, 8, 75, 90, 69, 71, 53, 96, 41, 16, 27, 19, 22, 13, 27, 86, 23, 17, 80, 98, 53, 63, 99, 53, 69, 10, 90, 51, 12, 21, 79], [8, 85, 72, 54, 76, 13, 37, 48, 90, 82, 85, 90, 68, 77, 55, 72, 26, 26, 10, 28, 87, 88, 68, 42, 37, 66, 14, 22, 78, 46, 33, 39, 42, 21, 26, 88, 38, 1, 39, 24, 34, 29, 31, 28, 42, 98], [16, 50, 73, 65, 77, 52, 54, 82, 41, 41, 71, 28, 73, 7, 4, 83, 94, 14, 8, 71, 12, 60, 24, 32, 43, 64, 2, 8, 99, 2, 38, 38, 98, 74, 44, 80, 50, 4, 67, 77, 19, 13, 84, 95, 3, 17], [24, 7, 31, 44, 60, 97, 65, 6, 24, 8, 20, 90, 1, 30, 94, 27, 59, 6, 66, 1, 59, 59, 66, 64, 97, 90, 88, 88, 90, 97, 19, 48, 44, 39, 40, 70, 80, 42, 79, 36, 31, 40, 57, 14, 17, 48], [33, 13, 74, 49, 40, 66, 15, 16, 96, 74, 71, 97, 30, 89, 22, 13, 24, 68, 11, 94, 93, 78, 24, 98, 92, 23, 51, 1, 23, 22, 43, 17, 59, 74, 56, 86, 18, 89, 11, 24, 53, 92, 13, 35, 21, 45], [9, 43, 85, 60, 97, 86, 77, 75, 37, 52, 19, 15, 17, 74, 31, 51, 45, 80, 99, 25, 32, 41, 81, 42, 42, 55, 26, 21, 16, 8, 71, 13, 81, 40, 88, 47, 3, 35, 78, 72, 52, 7, 63, 35, 40, 91], [17, 45, 22, 66, 69, 65, 10, 20, 3, 70, 6, 60, 94, 84, 38, 62, 78, 2, 25, 69, 84, 19, 1, 41, 29, 90, 78, 84, 42, 49, 53, 58, 44, 80, 96, 98, 62, 65, 56, 31, 38, 93, 60, 2, 93, 75], [81, 35, 56, 41, 61, 85, 14, 63, 47, 98, 10, 51, 22, 3, 79, 80, 16, 48, 67, 28, 66, 50, 94, 29, 22, 48, 85, 66, 25, 62, 19, 58, 89, 1, 79, 8, 35, 97, 64, 42, 68, 49, 18, 94, 38, 84], [95, 35, 38, 92, 67, 6, 64, 70, 83, 88, 13, 59, 72, 68, 99, 17, 44, 41, 31, 90, 74, 90, 14, 14, 76, 47, 38, 84, 92, 50, 13, 61, 26, 45, 49, 13, 14, 80, 42, 97, 27, 11, 57, 89, 94, 19], [84, 20, 33, 54, 90, 35, 35, 47, 42, 54, 22, 25, 6, 74, 16, 35, 38, 78, 6, 46, 86, 70, 76, 70, 26, 24, 73, 80, 8, 99, 60, 37, 2, 72, 95, 64, 73, 72, 15, 13, 31, 15, 26, 92, 78, 83], [17, 76, 86, 79, 87, 96, 79, 49, 34, 83, 71, 97, 80, 1, 88, 31, 63, 65, 49, 36, 51, 93, 15, 38, 73, 55, 90, 71, 81, 39, 7, 12, 17, 79, 82, 34, 98, 58, 92, 83, 39, 76, 80, 13, 98, 86]],41,39,), ([[-18, -4, 34, 62, 78, 90, 90, 96], [-80, -80, -72, -50, -20, -2, 52, 62], [-98, -40, -38, -12, -4, 4, 70, 78], [-86, -72, -44, -38, 20, 76, 78, 82], [-82, -38, -8, 28, 44, 44, 50, 84], [-6, 0, 10, 30, 34, 36, 42, 62], [-54, -18, -12, -8, -6, 4, 56, 76], [-68, -10, -8, -4, 0, 26, 80, 92]],7,5,), ([[0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0,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, 88, 92, 95, 96, 97, 97], [3, 9, 11, 12, 13, 13, 13, 15, 16, 17, 28, 28, 30, 31, 31, 35, 36, 39, 41, 47, 49, 49, 50, 51, 54, 54, 59, 62, 63, 64, 65, 66, 67, 68, 70, 71, 74, 75, 78, 79, 79, 84, 87, 93, 99], [3, 5, 7, 10, 11, 12, 13, 15, 15, 18, 19, 19, 26, 28, 28, 29, 33, 35, 35, 36, 39, 40, 42, 43, 53, 54, 54, 64, 69, 70, 74, 75, 76, 78, 80, 87, 89, 90, 93, 96, 96, 97, 98, 99, 99], [2, 2, 9, 9, 11, 14, 14, 16, 19, 19, 22, 23, 26, 27, 35, 37, 40, 43, 43, 44, 45, 45, 45, 46, 46, 51, 55, 56, 59, 61, 63, 65, 66, 68, 68, 75, 76, 77, 78, 84, 87, 89, 93, 94, 99], [2, 8, 9, 10, 12, 14, 19, 27, 28, 30, 30, 36, 38, 41, 41, 44, 46, 46, 47, 52, 54, 57, 57, 60, 62, 66, 66, 68, 68, 69, 69, 70, 70, 71, 73, 79, 80, 84, 88, 88, 89, 92, 93, 93, 96], [4, 9, 11, 12, 13, 21, 23, 25, 31, 31, 32, 34, 35, 37, 39, 41, 41, 42, 52, 53, 53, 55, 56, 57, 58, 59, 69, 71, 72, 75, 75, 77, 83, 84, 85, 87, 88, 89, 90, 90, 90, 95, 95, 98, 99], [14, 15, 17, 19, 19, 20, 21, 24, 25, 26, 29, 31, 35, 35, 39, 42, 43, 46, 46, 48, 54, 55, 55, 56, 62, 63, 63, 66, 67, 68, 69, 70, 72, 75, 76, 80, 82, 82, 84, 85, 87, 87, 97, 98, 98], [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 14, 18, 19, 21, 22, 26, 28, 32, 38, 40, 40, 42, 42, 43, 44, 45, 48, 48, 50, 53, 62, 75, 77, 77, 82, 84, 85, 86, 87, 92, 93, 96, 97], [1, 7, 9, 10, 11, 17, 19, 22, 23, 28, 33, 36, 37, 37, 38, 39, 43, 45, 46, 51, 52, 53, 54, 58, 58, 60, 60, 61, 61, 62, 64, 66, 69, 71, 73, 75, 77, 79, 83, 84, 90, 90, 94, 96, 98], [7, 10, 13, 14, 16, 25, 28, 29, 29, 30, 31, 31, 31, 37, 37, 37, 38, 38, 41, 41, 48, 49, 50, 52, 54, 54, 57, 59, 59, 61, 64, 65, 66, 67, 67, 70, 71, 71, 72, 72, 74, 82, 86, 89, 97], [2, 15, 18, 19, 19, 23, 25, 26, 26, 26, 29, 38, 40, 44, 47, 49, 51, 52, 53, 54, 56, 61, 61, 65, 67, 69, 69, 69, 70, 72, 73, 78, 78, 78, 83, 85, 88, 90, 91, 92, 92, 95, 95, 98, 99], [1, 3, 6, 13, 14, 14, 14, 15, 18, 19, 21, 25, 27, 28, 31, 32, 36, 38, 40, 43, 45, 50, 57, 58, 61, 62, 62, 69, 71, 71, 72, 73, 76, 77, 79, 80, 82, 83, 86, 92, 93, 93, 96, 97, 99], [1, 2, 4, 4, 8, 14, 15, 18, 21, 21, 22, 25, 26, 27, 27, 28, 32, 33, 34, 37, 38, 39, 43, 46, 47, 48, 53, 55, 57, 63, 66, 67, 70, 73, 75, 76, 76, 77, 79, 82, 87, 90, 91, 95, 99], [2, 5, 11, 13, 15, 16, 18, 22, 23, 24, 27, 27, 32, 32, 33, 34, 37, 41, 43, 45, 46, 53, 58, 60, 62, 63, 64, 65, 66, 68, 68, 71, 71, 72, 73, 74, 77, 81, 84, 89, 91, 94, 96, 96, 97], [1, 2, 3, 14, 16, 18, 22, 26, 27, 27, 30, 33, 43, 43, 44, 44, 44, 45, 47, 50, 51, 51, 55, 56, 56, 57, 58, 59, 63, 67, 68, 69, 74, 75, 79, 79, 80, 84, 87, 87, 94, 94, 95, 97, 97], [3, 8, 9, 13, 14, 15, 18, 19, 20, 21, 21, 21, 24, 25, 26, 28, 31, 35, 35, 45, 46, 46, 46, 46, 49, 52, 58, 64, 65, 68, 69, 70, 71, 74, 75, 76, 78, 80, 81, 83, 83, 85, 88, 92, 95], [3, 3, 10, 12, 12, 12, 13, 14, 14, 16, 18, 19, 22, 23, 24, 28, 30, 32, 34, 36, 37, 37, 38, 38, 45, 46, 51, 55, 56, 61, 61, 65, 67, 69, 70, 71, 74, 74, 78, 84, 87, 89, 89, 91, 98], [2, 4, 4, 5, 7, 13, 14, 17, 18, 19, 20, 21, 23, 23, 23, 27, 30, 32, 39, 40, 41, 44, 48, 49, 51, 55, 57, 59, 64, 70, 71, 71, 72, 73, 75, 77, 78, 79, 79, 80, 81, 92, 94, 96, 98], [1, 4, 4, 4, 8, 10, 10, 10, 12, 14, 16, 17, 24, 25, 25, 27, 28, 29, 33, 34, 35, 36, 39, 40, 40, 43, 44, 44, 46, 53, 54, 59, 60, 62, 63, 66, 70, 74, 77, 79, 83, 84, 90, 96, 97], [2, 10, 12, 12, 13, 15, 16, 18, 21, 29, 34, 36, 38, 41, 47, 47, 47, 48, 49, 51, 55, 56, 58, 60, 61, 63, 64, 68, 68, 71, 74, 74, 76, 77, 84, 84, 87, 87, 88, 89, 93, 93, 96, 97, 99], [1, 2, 4, 13, 14, 15, 23, 27, 30, 35, 36, 36, 38, 40, 42, 44, 46, 48, 51, 53, 54, 57, 57, 57, 61, 66, 67, 69, 69, 69, 73, 76, 76, 77, 77, 80, 82, 82, 85, 87, 88, 90, 93, 94, 96], [1, 5, 5, 8, 14, 20, 21, 29, 29, 34, 34, 34, 34, 35, 37, 37, 41, 45, 48, 48, 51, 52, 53, 54, 55, 60, 65, 65, 65, 66, 67, 68, 70, 74, 74, 76, 77, 77, 78, 83, 83, 86, 93, 94, 96], [1, 2, 2, 5, 6, 6, 7, 11, 11, 13, 13, 17, 18, 20, 22, 23, 23, 25, 32, 34, 38, 40, 45, 49, 49, 50, 57, 60, 65, 66, 67, 71, 71, 71, 76, 76, 80, 85, 89, 90, 90, 91, 92, 96, 99], [1, 2, 2, 5, 6, 8, 9, 12, 14, 17, 23, 25, 29, 32, 33, 37, 39, 39, 40, 45, 54, 54, 56, 57, 58, 60, 63, 63, 63, 66, 67, 68, 69, 70, 75, 77, 79, 80, 83, 91, 92, 93, 95, 95, 97], [5, 9, 11, 11, 15, 24, 27, 27, 27, 29, 31, 32, 35, 36, 38, 43, 44, 46, 49, 51, 53, 54, 56, 56, 58, 58, 59, 59, 59, 60, 62, 66, 67, 69, 69, 73, 77, 82, 85, 87, 89, 89, 96, 97, 99], [2, 3, 5, 5, 11, 12, 17, 20, 21, 22, 22, 23, 29, 31, 35, 35, 36, 37, 42, 43, 47, 52, 55, 57, 57, 64, 65, 67, 69, 69, 70, 70, 72, 74, 76, 79, 80, 80, 81, 84, 91, 92, 92, 93, 97], [1, 3, 3, 8, 9, 9, 12, 13, 14, 16, 16, 21, 23, 24, 27, 28, 29, 31, 33, 33, 35, 37, 45, 52, 53, 54, 55, 55, 59, 61, 61, 62, 63, 63, 69, 71, 78, 78, 80, 84, 84, 85, 86, 93, 96], [1, 4, 8, 8, 8, 9, 14, 21, 21, 22, 24, 26, 26, 27, 27, 34, 36, 37, 37, 37, 41, 42, 53, 53, 56, 60, 61, 61, 65, 65, 66, 67, 69, 70, 71, 72, 72, 81, 87, 89, 89, 91, 94, 95, 97], [3, 6, 9, 17, 18, 20, 21, 23, 24, 32, 33, 34, 34, 36, 38, 39, 39, 41, 42, 43, 45, 48, 49, 51, 52, 53, 56, 61, 63, 63, 64, 65, 66, 69, 72, 79, 79, 83, 84, 86, 88, 89, 94, 96, 99], [1, 6, 9, 13, 16, 18, 21, 21, 21, 23, 25, 30, 32, 36, 38, 44, 45, 46, 46, 48, 50, 51, 55, 60, 60, 62, 62, 65, 66, 68, 69, 70, 72, 78, 78, 84, 85, 85, 86, 87, 94, 94, 97, 98, 99], [1, 2, 5, 6, 11, 16, 20, 21, 25, 25, 28, 30, 33, 33, 36, 40, 42, 44, 44, 47, 49, 50, 52, 52, 56, 56, 57, 57, 63, 68, 71, 72, 78, 83, 87, 88, 90, 91, 94, 94, 98, 98, 98, 99, 99], [2, 2, 2, 4, 5, 7, 8, 8, 9, 10, 13, 18, 20, 22, 24, 25, 28, 28, 29, 30, 34, 35, 37, 40, 41, 45, 45, 46, 46, 46, 50, 53, 60, 71, 74, 75, 75, 81, 81, 87, 89, 93, 95, 97, 98], [3, 6, 8, 10, 14, 17, 18, 20, 21, 22, 24, 30, 31, 31, 32, 37, 39, 41, 47, 48, 51, 53, 55, 60, 62, 65, 66, 67, 67, 68, 69, 70, 71, 71, 74, 74, 75, 76, 83, 85, 88, 90, 93, 96, 99], [1, 2, 5, 13, 17, 22, 30, 33, 34, 36, 37, 39, 42, 43, 43, 43, 45, 45, 46, 48, 49, 51, 51, 53, 56, 56, 57, 64, 64, 67, 68, 68, 69, 70, 72, 74, 76, 77, 77, 88, 90, 92, 92, 95, 97], [4, 7, 7, 10, 11, 15, 18, 20, 21, 25, 26, 26, 27, 28, 28, 30, 35, 36, 40, 40, 49, 54, 59, 61, 65, 65, 70, 71, 72, 74, 75, 76, 78, 83, 83, 84, 87, 87, 87, 92, 94, 94, 96, 97, 98], [5, 7, 11, 12, 13, 16, 20, 21, 26, 30, 31, 32, 33, 37, 39, 40, 40, 42, 46, 51, 51, 51, 52, 52, 53, 55, 55, 57, 61, 64, 70, 75, 78, 78, 84, 85, 87, 90, 92, 93, 96, 96, 97, 98, 99], [1, 1, 2, 4, 5, 11, 12, 16, 17, 17, 18, 20, 21, 25, 28, 30, 32, 32, 33, 39, 39, 41, 42, 45, 45, 52, 53, 54, 56, 56, 56, 61, 61, 65, 67, 69, 69, 71, 72, 74, 78, 78, 81, 85, 88], [1, 2, 5, 5, 12, 13, 20, 20, 26, 27, 30, 33, 34, 34, 39, 42, 42, 45, 46, 46, 49, 53, 55, 56, 56, 57, 60, 60, 65, 65, 69, 72, 72, 73, 78, 79, 83, 85, 85, 86, 87, 89, 91, 95, 98], [3, 3, 8, 10, 13, 18, 22, 24, 25, 26, 26, 29, 30, 36, 38, 38, 40, 41, 42, 42, 45, 49, 50, 52, 52, 54, 55, 59, 59, 61, 64, 66, 69, 74, 77, 83, 84, 85, 86, 86, 87, 90, 90, 92, 92], [2, 3, 8, 8, 9, 10, 11, 12, 12, 19, 25, 26, 29, 30, 31, 34, 34, 38, 45, 47, 48, 49, 49, 52, 56, 59, 60, 66, 67, 69, 70, 72, 72, 73, 74, 74, 77, 79, 79, 83, 85, 87, 89, 95, 95], [4, 4, 5, 10, 15, 17, 20, 21, 21, 22, 23, 24, 31, 36, 37, 39, 40, 42, 44, 52, 53, 53, 56, 56, 61, 61, 63, 74, 77, 78, 79, 79, 80, 82, 83, 84, 85, 86, 86, 88, 94, 97, 97, 98, 99], [1, 1, 1, 3, 4, 8, 9, 11, 13, 17, 18, 21, 23, 24, 26, 30, 32, 34, 34, 34, 37, 39, 42, 46, 46, 46, 47, 50, 54, 54, 61, 71, 74, 76, 79, 81, 81, 83, 84, 86, 87, 88, 90, 97, 97], [2, 10, 10, 14, 15, 15, 18, 22, 23, 25, 29, 34, 35, 36, 37, 42, 42, 43, 45, 46, 49, 49, 53, 57, 58, 61, 62, 64, 67, 67, 69, 73, 77, 77, 80, 81, 83, 87, 90, 91, 92, 92, 93, 95, 95], [2, 9, 10, 10, 17, 19, 23, 25, 26, 26, 32, 36, 36, 39, 40, 41, 43, 44, 44, 45, 45, 50, 50, 52, 55, 57, 58, 60, 60, 61, 67, 68, 72, 75, 75, 78, 83, 85, 92, 92, 95, 97, 98, 99, 99]],26,27,), ([[-54, 56, -84, 24, -78, 86, -60, -40, 20, 96, 8, 42, 32, 74, -6, -44, 26, -66, -56], [-48, 96, 76, -98, 44, -80, 70, 78, -12, 68, 56, -88, 44, -18, 56, -80, -76, -90, -84], [40, 18, 88, 96, -96, -16, -10, -50, -14, -8, -36, -22, -48, -14, -34, -64, -76, 0, -66], [-80, 24, -62, -12, 78, -80, -84, 24, 74, 20, -12, -66, 46, -38, 6, -64, -38, 84, 66], [48, 16, 16, -96, 66, -10, -84, 78, 60, -30, -92, -76, 8, -6, -36, 94, -52, 24, -2], [-78, 52, 92, -54, -36, 32, 88, -12, 54, 44, -24, 60, 32, -86, 4, 22, 24, 94, 76], [46, -80, -44, -16, -52, 22, -14, 88, -82, 22, 16, 28, -32, 64, 46, 66, -26, 42, -26], [-44, 62, 78, -76, -92, -82, 72, -96, 18, -32, -94, -56, 26, -30, -42, -30, 96, -26, 84], [6, 14, -36, -94, 90, 44, -4, 78, -56, -96, -88, 8, -26, 48, -80, 12, 70, 26, -8], [-18, -38, 36, -76, -8, -26, -4, 88, 24, -42, -46, 86, 62, 8, -2, 24, -82, -48, -22], [-22, -82, 78, 86, -20, 74, -30, 2, 98, 8, -46, 62, 52, -2, 14, -32, 2, 36, -56], [58, 18, 34, -92, 98, 80, -68, 86, -22, -12, -24, 34, -36, -66, 0, -96, -2, -24, -60], [-34, -26, -32, -76, -96, -30, -82, -20, 0, -70, 30, 8, -84, 46, 10, 24, -16, 80, 16], [-54, 16, 4, 76, -80, 6, -26, -76, 94, 92, 20, 12, 94, 94, 2, -80, -38, 8, -76], [-70, -46, 90, -48, 76, 72, -34, 30, -26, -30, 92, -92, 60, 12, 80, -86, 76, -84, 10], [42, -80, 80, 92, -2, 56, 88, -8, 96, 16, -26, -54, 4, 52, -82, -10, -46, 80, 78], [14, 46, 22, -52, 84, 58, 42, 14, 14, 96, 34, -38, 56, 44, 90, -76, 56, 48, 22], [82, 38, -78, -48, 16, -98, -12, 78, -18, -10, 44, 88, -52, 96, -28, -42, -60, 46, 40], [2, 44, -6, 80, 98, -70, -68, 64, -10, 46, 72, -84, 32, 50, 68, 64, -90, 96, 28]],14,13,), ([[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, 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, 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 0, 0, 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], [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, 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], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],25,24,), ([[31, 48, 68, 49, 98, 47, 55, 79, 5, 20, 11, 9, 59, 53, 29, 43, 1, 50, 69, 37, 60, 89, 28, 44, 50, 90, 43, 31, 7, 79, 85, 6, 34, 25, 53, 17, 61, 5, 83, 52, 85], [70, 28, 50, 31, 1, 77, 22, 53, 9, 6, 6, 41, 39, 78, 40, 14, 38, 54, 41, 8, 33, 56, 49, 71, 36, 29, 20, 86, 79, 98, 79, 27, 92, 24, 95, 95, 25, 43, 60, 38, 8], [79, 27, 53, 17, 66, 13, 90, 3, 7, 6, 80, 2, 81, 47, 16, 65, 31, 71, 30, 63, 10, 62, 48, 45, 16, 13, 57, 39, 95, 36, 97, 59, 84, 28, 38, 27, 87, 62, 66, 46, 17], [21, 20, 37, 59, 72, 41, 27, 12, 90, 97, 40, 25, 44, 89, 44, 63, 51, 37, 82, 72, 99, 33, 54, 7, 48, 43, 56, 77, 21, 2, 21, 34, 14, 12, 13, 99, 76, 92, 19, 12, 7], [90, 44, 32, 15, 9, 55, 31, 24, 57, 39, 65, 75, 83, 45, 32, 46, 40, 28, 82, 22, 29, 66, 89, 8, 98, 80, 8, 12, 92, 38, 78, 66, 8, 58, 76, 9, 64, 61, 55, 99, 48], [51, 17, 26, 84, 15, 29, 10, 73, 12, 75, 80, 67, 86, 42, 6, 55, 79, 27, 22, 26, 96, 84, 73, 99, 29, 56, 73, 61, 12, 57, 20, 67, 34, 76, 60, 69, 47, 3, 9, 80, 40], [90, 99, 92, 54, 85, 5, 52, 80, 85, 3, 42, 28, 23, 85, 53, 44, 4, 60, 90, 80, 71, 96, 53, 8, 5, 99, 11, 66, 94, 77, 52, 50, 89, 69, 3, 57, 13, 22, 26, 15, 23], [82, 5, 43, 1, 28, 65, 42, 69, 37, 56, 77, 87, 1, 90, 35, 44, 95, 75, 3, 34, 62, 84, 42, 85, 50, 83, 22, 74, 91, 75, 41, 17, 49, 31, 16, 72, 46, 67, 78, 24, 64], [46, 82, 93, 52, 26, 92, 40, 77, 35, 72, 19, 76, 33, 89, 16, 51, 58, 68, 25, 58, 97, 97, 27, 39, 29, 69, 82, 18, 41, 44, 56, 82, 50, 14, 53, 99, 66, 33, 97, 56, 40], [82, 51, 57, 17, 43, 90, 99, 61, 40, 2, 87, 88, 88, 23, 53, 90, 45, 73, 30, 87, 17, 38, 54, 79, 81, 17, 11, 96, 15, 14, 40, 12, 73, 78, 6, 49, 19, 44, 34, 40, 28], [91, 76, 52, 21, 1, 23, 3, 66, 19, 85, 80, 9, 50, 13, 13, 74, 95, 52, 57, 55, 83, 61, 59, 71, 87, 82, 66, 35, 27, 25, 35, 24, 31, 99, 84, 7, 28, 15, 28, 54, 73], [70, 25, 50, 21, 2, 28, 82, 15, 59, 88, 77, 97, 28, 43, 53, 7, 5, 92, 59, 40, 3, 21, 31, 68, 57, 70, 26, 90, 51, 3, 52, 84, 73, 10, 39, 87, 32, 2, 38, 41, 50], [15, 30, 65, 19, 16, 95, 84, 25, 51, 82, 30, 90, 69, 19, 28, 91, 66, 6, 95, 4, 93, 52, 56, 11, 33, 7, 17, 5, 26, 42, 10, 30, 93, 38, 58, 78, 53, 15, 18, 72, 18], [11, 98, 6, 29, 26, 92, 76, 16, 20, 9, 85, 41, 79, 93, 36, 95, 60, 65, 56, 19, 59, 70, 12, 66, 40, 11, 11, 29, 24, 68, 49, 60, 88, 7, 93, 71, 6, 14, 73, 53, 34], [30, 43, 25, 96, 81, 79, 67, 27, 6, 23, 1, 29, 73, 43, 36, 43, 34, 22, 33, 29, 73, 92, 43, 39, 58, 67, 45, 50, 45, 53, 61, 94, 59, 83, 86, 23, 57, 6, 13, 85, 11], [61, 97, 61, 30, 8, 37, 41, 59, 61, 98, 87, 95, 19, 24, 51, 62, 4, 45, 90, 53, 58, 99, 33, 35, 88, 36, 14, 27, 40, 29, 99, 44, 33, 95, 65, 79, 21, 75, 47, 3, 21], [61, 97, 11, 85, 24, 99, 49, 40, 75, 37, 76, 50, 19, 65, 46, 92, 58, 17, 39, 87, 69, 51, 83, 53, 78, 1, 88, 32, 76, 52, 29, 65, 52, 7, 53, 93, 82, 97, 41, 10, 25], [66, 33, 93, 9, 83, 79, 54, 99, 80, 99, 62, 62, 78, 92, 80, 8, 32, 76, 81, 42, 63, 37, 90, 89, 17, 90, 46, 63, 45, 26, 38, 50, 8, 85, 84, 16, 76, 74, 53, 24, 22], [64, 59, 45, 43, 50, 87, 1, 65, 45, 28, 48, 5, 19, 6, 9, 91, 10, 19, 26, 65, 56, 86, 53, 64, 81, 38, 67, 6, 44, 27, 20, 40, 40, 84, 15, 82, 28, 29, 41, 57, 30], [64, 68, 41, 29, 43, 96, 96, 70, 43, 50, 38, 1, 42, 68, 10, 92, 74, 36, 80, 77, 32, 62, 39, 66, 51, 40, 30, 41, 34, 83, 13, 34, 43, 86, 42, 68, 29, 46, 67, 20, 34], [88, 50, 80, 30, 75, 87, 49, 29, 83, 98, 89, 7, 45, 85, 24, 48, 68, 10, 50, 73, 95, 75, 67, 43, 27, 74, 55, 24, 70, 37, 32, 20, 11, 16, 64, 35, 15, 72, 7, 39, 44], [27, 25, 57, 29, 4, 52, 9, 34, 73, 23, 42, 87, 48, 54, 71, 49, 42, 60, 58, 25, 11, 40, 54, 66, 57, 66, 30, 47, 90, 58, 34, 15, 9, 4, 26, 67, 4, 89, 4, 32, 86], [89, 16, 52, 90, 67, 58, 27, 16, 54, 7, 16, 18, 48, 22, 65, 89, 20, 59, 18, 1, 90, 42, 47, 80, 24, 75, 19, 26, 30, 97, 20, 58, 31, 3, 61, 65, 40, 79, 98, 74, 1], [8, 74, 8, 84, 80, 50, 63, 17, 76, 65, 30, 59, 42, 53, 27, 22, 64, 51, 49, 84, 33, 41, 43, 82, 58, 71, 99, 23, 75, 73, 23, 74, 75, 49, 13, 64, 36, 35, 87, 9, 84], [73, 48, 61, 39, 10, 27, 93, 72, 22, 89, 88, 82, 42, 37, 56, 43, 74, 25, 68, 62, 94, 63, 23, 20, 58, 24, 37, 92, 23, 11, 51, 66, 24, 52, 20, 32, 93, 85, 77, 93, 15], [66, 11, 45, 39, 5, 17, 81, 17, 58, 15, 34, 54, 90, 7, 22, 75, 66, 1, 78, 98, 76, 86, 51, 51, 70, 68, 87, 34, 95, 7, 31, 94, 59, 79, 23, 93, 91, 40, 78, 78, 91], [50, 6, 65, 92, 8, 11, 57, 39, 98, 59, 48, 89, 71, 88, 5, 54, 2, 94, 73, 35, 35, 58, 41, 20, 81, 61, 74, 68, 5, 33, 66, 13, 77, 65, 80, 52, 89, 83, 30, 33, 99], [45, 18, 39, 40, 85, 61, 55, 15, 41, 18, 83, 50, 42, 48, 74, 80, 23, 32, 87, 48, 78, 79, 76, 68, 67, 64, 37, 48, 6, 65, 40, 24, 68, 51, 10, 69, 20, 36, 32, 40, 60], [62, 42, 68, 48, 14, 19, 82, 70, 48, 37, 41, 77, 58, 36, 38, 65, 46, 50, 27, 14, 68, 67, 6, 57, 77, 14, 94, 25, 40, 48, 39, 16, 69, 48, 36, 45, 25, 41, 84, 15, 19], [24, 34, 63, 26, 30, 96, 39, 70, 47, 55, 83, 4, 18, 14, 8, 32, 15, 69, 5, 21, 12, 99, 41, 23, 28, 6, 41, 58, 88, 70, 47, 30, 81, 37, 42, 43, 4, 53, 7, 86, 52], [15, 6, 54, 2, 17, 63, 36, 56, 48, 90, 64, 88, 22, 30, 10, 16, 34, 47, 26, 4, 4, 24, 5, 1, 27, 79, 34, 82, 65, 70, 24, 26, 35, 62, 77, 67, 1, 77, 98, 31, 69], [11, 38, 9, 33, 36, 75, 12, 18, 64, 64, 71, 85, 1, 43, 74, 65, 51, 3, 28, 6, 60, 52, 8, 1, 77, 8, 12, 86, 18, 48, 89, 73, 68, 2, 41, 75, 55, 5, 24, 98, 92], [13, 76, 45, 26, 19, 90, 71, 32, 38, 26, 1, 29, 8, 74, 78, 44, 5, 58, 97, 58, 58, 93, 21, 35, 15, 8, 70, 54, 10, 36, 7, 17, 53, 8, 66, 5, 40, 77, 78, 4, 88], [74, 15, 46, 99, 53, 57, 59, 57, 43, 32, 88, 49, 45, 36, 75, 54, 83, 45, 90, 87, 13, 31, 30, 38, 20, 31, 32, 4, 46, 23, 95, 2, 82, 73, 48, 44, 45, 83, 26, 12, 81], [44, 49, 24, 76, 76, 98, 8, 15, 69, 2, 86, 38, 40, 50, 44, 53, 21, 28, 80, 50, 45, 4, 54, 38, 39, 9, 98, 30, 48, 54, 44, 90, 33, 87, 92, 80, 18, 53, 4, 32, 21], [67, 67, 7, 39, 3, 82, 1, 53, 48, 87, 86, 72, 8, 79, 79, 49, 24, 94, 42, 5, 40, 29, 44, 57, 23, 36, 62, 73, 14, 94, 64, 15, 70, 10, 35, 23, 79, 50, 98, 92, 60], [57, 99, 23, 49, 48, 12, 99, 3, 69, 84, 26, 65, 91, 44, 34, 30, 32, 4, 71, 73, 5, 29, 79, 9, 4, 53, 71, 32, 56, 75, 98, 74, 34, 92, 43, 76, 40, 71, 21, 68, 39], [40, 33, 53, 35, 87, 85, 80, 23, 79, 96, 44, 95, 9, 96, 15, 21, 95, 70, 88, 75, 37, 15, 28, 29, 63, 56, 78, 78, 88, 71, 35, 26, 68, 28, 21, 13, 2, 45, 20, 92, 82], [38, 63, 56, 59, 92, 18, 14, 52, 6, 46, 31, 64, 96, 70, 25, 41, 20, 52, 89, 79, 89, 50, 79, 8, 57, 23, 67, 75, 83, 92, 65, 45, 75, 73, 92, 76, 98, 34, 54, 10, 24], [21, 52, 25, 66, 13, 68, 25, 54, 23, 60, 26, 14, 36, 92, 70, 70, 13, 41, 45, 67, 76, 33, 47, 69, 23, 22, 43, 96, 77, 46, 94, 6, 86, 88, 33, 24, 84, 80, 78, 98, 76], [38, 83, 14, 92, 35, 2, 21, 41, 94, 49, 13, 53, 58, 63, 68, 17, 56, 48, 44, 59, 36, 11, 8, 46, 92, 83, 26, 68, 24, 43, 35, 56, 41, 81, 98, 5, 53, 50, 1, 96, 97]],40,35,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/CHECK_SUMS_TH_ROW_TH_COLUMN_MATRIX.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( s ) : aCount = 0 bCount = 0 cCount = 0 for i in range ( len ( s ) ) : if ( s [ i ] == 'a' ) : aCount = ( 1 + 2 * aCount ) elif ( s [ i ] == 'b' ) : bCount = ( aCount + 2 * bCount ) elif ( s [ i ] == 'c' ) : cCount = ( bCount + 2 * cCount ) return cCount #TOFILL if __name__ == '__main__': param = [ ('',), ('abbc',), ('abcabc',), ('agsdbkfdc ',), ('ababab',), ('aaaaaaa',), ('aabaaabcc',), ('19',), ('1001100',), ('DtAnuQbU',) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/NUMBER_SUBSEQUENCES_FORM_AI_BJ_CK.py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , x ) : curr_sum = 0 ; min_len = n + 1 ; start = 0 ; end = 0 ; while ( end < n ) : while ( curr_sum <= x and end < n ) : if ( curr_sum <= 0 and x > 0 ) : start = end ; curr_sum = 0 ; curr_sum += arr [ end ] ; end += 1 ; while ( curr_sum > x and start < n ) : if ( end - start < min_len ) : min_len = end - start ; curr_sum -= arr [ start ] ; start += 1 ; return min_len ; #TOFILL if __name__ == '__main__': param = [ ([2, 4, 5, 10, 14, 15, 16, 20, 23, 28, 31, 35, 36, 36, 43, 48, 49, 55, 57, 57, 58, 61, 64, 64, 68, 70, 70, 73, 74, 76, 76, 77, 81, 81, 82, 87, 89, 92, 99],33,28,), ([66, -20, 12, -48, 22, 28, 40, -30, -6, -96, 10, -88, 40],11,12,), ([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],42,23,), ([28, 19, 38, 31, 17, 27, 60, 35, 19, 47, 34, 51, 3, 95, 33, 29, 84, 46, 74, 87],15,15,), ([-48, -2],1,1,), ([1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1],12,15,), ([1, 4, 4, 6, 8, 10, 12, 12, 13, 15, 18, 20, 21, 23, 25, 28, 28, 33, 33, 35, 35, 36, 37, 38, 42, 44, 63, 63, 65, 65, 65, 66, 70, 74, 77, 78, 80, 80, 84, 87, 87, 89, 92, 93, 94, 97, 98, 99],42,27,), ([-82, -12, -40, 58, 22, -76, -94, -28, 42, 36, 64],10,6,), ([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],10,14,), ([76, 65, 96, 76, 1, 91, 22, 29, 95, 21, 73, 68, 30, 52, 73, 86, 52, 66, 67, 37, 76, 53, 68, 6, 95, 81, 98, 42, 63, 38, 92, 78, 59, 86, 10, 38, 18, 15, 52, 62, 16, 66],23,35,) ] 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)))
CodeGen-main
data/transcoder_evaluation_gfg/python/MINIMUM_LENGTH_SUBARRAY_SUM_GREATER_GIVEN_VALUE_1.py