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 ( mat , N ) :
dp = [ [ 0 for i in range ( N ) ] for j in range ( N ) ]
dp [ 0 ] [ 0 ] = mat [ 0 ] [ 0 ]
for i in range ( 1 , N ) :
dp [ i ] [ 0 ] = mat [ i ] [ 0 ] + dp [ i - 1 ] [ 0 ]
for i in range ( 1 , N ) :
for j in range ( 1 , min ( i + 1 , N ) ) :
dp [ i ] [ j ] = mat [ i ] [ j ] + \
max ( dp [ i - 1 ] [ j - 1 ] , dp [ i - 1 ] [ j ] )
result = 0
for i in range ( N ) :
if ( result < dp [ N - 1 ] [ i ] ) :
result = dp [ N - 1 ] [ i ]
return result
#TOFILL
if __name__ == '__main__':
param = [
([[1, 3, 17, 22, 24, 29, 36, 38, 41, 42, 44, 44, 47, 48, 49, 51, 52, 54, 64, 69, 70, 77, 79, 82, 86, 86, 87, 88, 97, 99], [5, 6, 17, 21, 27, 27, 37, 39, 47, 48, 48, 52, 53, 54, 57, 59, 61, 63, 68, 72, 75, 77, 78, 81, 88, 89, 91, 95, 95, 97], [2, 8, 10, 16, 17, 18, 18, 18, 20, 27, 33, 35, 36, 42, 48, 51, 56, 66, 72, 72, 75, 76, 76, 76, 84, 85, 91, 94, 96, 98], [1, 2, 4, 11, 12, 12, 14, 21, 24, 26, 30, 33, 37, 42, 43, 47, 54, 56, 62, 64, 67, 68, 69, 71, 72, 73, 86, 86, 90, 93], [1, 1, 3, 7, 9, 10, 11, 12, 14, 14, 15, 17, 21, 25, 26, 40, 45, 46, 46, 48, 49, 54, 56, 60, 64, 68, 68, 73, 93, 93], [8, 11, 12, 13, 13, 15, 19, 20, 24, 27, 29, 31, 32, 33, 34, 37, 39, 42, 45, 50, 51, 61, 65, 68, 75, 81, 84, 85, 87, 94], [12, 16, 17, 24, 34, 34, 35, 40, 43, 48, 50, 51, 53, 55, 60, 60, 62, 66, 68, 70, 71, 73, 77, 83, 84, 86, 88, 95, 96, 97], [1, 5, 7, 18, 18, 22, 32, 36, 38, 38, 40, 43, 46, 49, 50, 54, 58, 61, 71, 74, 78, 78, 79, 82, 86, 87, 87, 88, 90, 95], [4, 11, 22, 26, 28, 35, 35, 37, 39, 42, 45, 46, 51, 57, 60, 61, 62, 63, 65, 65, 79, 79, 79, 82, 83, 87, 89, 90, 91, 98], [6, 7, 7, 8, 9, 11, 13, 16, 18, 23, 29, 37, 38, 41, 44, 46, 50, 50, 51, 56, 58, 67, 71, 74, 77, 79, 80, 90, 91, 97], [3, 7, 10, 15, 19, 20, 22, 28, 28, 32, 33, 36, 36, 38, 41, 49, 51, 54, 63, 66, 66, 70, 72, 79, 87, 88, 89, 92, 93, 98], [3, 8, 10, 14, 21, 25, 33, 35, 37, 37, 43, 44, 45, 50, 59, 62, 63, 75, 79, 79, 79, 84, 85, 86, 87, 87, 88, 90, 91, 96], [2, 4, 7, 12, 13, 18, 23, 23, 28, 29, 32, 34, 37, 37, 37, 38, 41, 44, 45, 47, 48, 49, 59, 64, 72, 75, 87, 92, 93, 98], [2, 4, 5, 5, 11, 14, 18, 23, 24, 27, 32, 35, 35, 37, 39, 40, 45, 48, 49, 52, 60, 66, 68, 71, 72, 74, 78, 81, 91, 92], [4, 4, 4, 6, 11, 18, 20, 23, 24, 29, 32, 33, 37, 40, 42, 47, 51, 52, 58, 59, 62, 67, 68, 75, 77, 78, 80, 85, 89, 95], [5, 5, 19, 21, 22, 23, 29, 30, 32, 39, 42, 42, 44, 44, 45, 46, 52, 55, 59, 63, 65, 76, 78, 80, 81, 82, 84, 93, 94, 97], [3, 4, 6, 8, 10, 15, 15, 17, 27, 28, 34, 36, 39, 42, 53, 54, 59, 63, 65, 66, 70, 71, 72, 80, 80, 91, 92, 94, 95, 99], [1, 7, 12, 13, 16, 25, 32, 32, 36, 46, 46, 49, 52, 55, 61, 61, 67, 68, 69, 72, 74, 76, 77, 78, 79, 81, 85, 90, 90, 92], [2, 12, 12, 13, 18, 20, 25, 28, 31, 31, 34, 36, 38, 39, 42, 43, 44, 47, 54, 60, 75, 76, 77, 80, 82, 83, 86, 90, 91, 91], [3, 8, 9, 11, 12, 14, 14, 14, 19, 25, 27, 29, 43, 45, 48, 50, 50, 56, 58, 61, 63, 65, 68, 71, 73, 81, 83, 83, 86, 93], [11, 15, 15, 15, 15, 18, 28, 29, 33, 33, 36, 43, 44, 48, 50, 50, 53, 55, 59, 59, 60, 61, 62, 63, 75, 78, 81, 82, 87, 94], [4, 7, 8, 10, 11, 12, 19, 24, 31, 36, 36, 37, 40, 41, 46, 48, 49, 51, 57, 62, 73, 75, 78, 81, 82, 86, 86, 91, 97, 97], [5, 5, 7, 8, 10, 14, 15, 17, 19, 21, 22, 23, 31, 34, 36, 43, 46, 58, 60, 72, 72, 75, 77, 81, 83, 84, 86, 91, 96, 98], [6, 10, 13, 15, 22, 27, 28, 29, 30, 31, 32, 35, 35, 36, 37, 39, 39, 43, 44, 47, 55, 68, 68, 69, 77, 83, 94, 94, 98, 99], [4, 4, 5, 6, 6, 10, 18, 27, 28, 29, 31, 33, 34, 41, 43, 44, 54, 56, 63, 74, 76, 77, 80, 80, 83, 89, 89, 90, 98, 99], [2, 7, 15, 19, 23, 23, 36, 41, 44, 46, 47, 49, 53, 58, 58, 60, 60, 66, 70, 73, 76, 77, 78, 80, 80, 88, 88, 91, 93, 94], [3, 3, 9, 9, 10, 13, 15, 19, 20, 23, 25, 33, 36, 37, 47, 54, 58, 60, 60, 65, 71, 73, 81, 88, 89, 90, 92, 94, 94, 96], [6, 7, 11, 19, 22, 27, 27, 31, 31, 33, 34, 44, 46, 47, 47, 48, 49, 53, 53, 56, 60, 60, 70, 72, 79, 80, 86, 93, 94, 96], [2, 7, 7, 7, 8, 10, 13, 15, 17, 18, 27, 27, 30, 33, 33, 34, 37, 41, 43, 47, 55, 55, 59, 71, 71, 75, 78, 78, 84, 85], [5, 6, 7, 7, 14, 21, 24, 26, 29, 31, 32, 34, 40, 42, 43, 45, 46, 53, 57, 58, 67, 73, 74, 77, 81, 85, 88, 91, 91, 92]],29,),
([[62, 44, 46, 46, -20, -40, 24, 42, -66, -90, 62, -98, 60], [62, 88, -38, -30, 44, -40, 70, -70, 96, 12, 20, -46, -96], [48, 28, -90, 82, 36, -74, 62, 70, -54, 94, 0, 58, 56], [46, -26, -40, 86, -54, -32, 28, 10, 42, -82, -92, 32, 82], [-34, -36, -12, -26, 82, 84, 34, 20, 18, -28, -2, 2, -84], [0, -18, -24, 72, 56, 58, 10, 36, -64, 30, 28, -76, -18], [-16, 20, 0, 62, 66, -28, -4, 42, 46, -84, -50, -86, -84], [76, 62, 52, -38, -76, 14, 32, -76, -46, -8, -86, 22, 16], [16, -74, 6, 30, -2, -30, 88, 90, -66, 44, 34, -80, -32], [72, -92, 92, -42, -8, 50, -8, 54, 18, 22, 36, 32, -32], [72, -90, -82, -60, -58, -66, -76, 84, 64, 34, -90, 20, 6], [4, 56, -4, 80, -62, -66, 8, 36, -30, 76, -18, -74, -34], [-70, 26, -70, -38, -44, -80, 14, 42, -34, -86, -90, 80, 60]],9,),
([[0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 1, 1, 1]],4,),
([[89, 8, 34, 49, 96], [58, 75, 47, 25, 3], [45, 52, 96, 99, 96], [34, 69, 92, 92, 8], [27, 80, 63, 82, 25]],3,),
([[-98, -94, -92, -86, -86, -86, -84, -78, -76, -70, -68, -66, -64, -58, -56, -52, -42, -40, -38, -38, -36, -32, -30, -24, -20, -12, -8, 4, 4, 6, 8, 12, 18, 22, 26, 30, 32, 56, 58, 72, 76, 78, 80, 82, 88, 94, 96, 98], [-94, -94, -92, -84, -84, -82, -80, -80, -80, -78, -78, -76, -74, -68, -64, -64, -58, -54, -48, -46, -40, -38, -36, -30, -22, -22, -12, -12, -6, -2, 2, 4, 6, 22, 22, 22, 24, 24, 24, 24, 26, 42, 44, 50, 52, 54, 66, 80], [-98, -92, -92, -84, -80, -76, -76, -70, -64, -60, -60, -52, -48, -48, -46, -46, -36, -32, -30, -24, -22, -16, -14, -8, -8, -4, -2, 0, 2, 2, 2, 8, 10, 12, 22, 32, 38, 38, 40, 48, 64, 68, 76, 78, 78, 86, 96, 96], [-98, -96, -88, -86, -78, -78, -70, -68, -62, -60, -58, -42, -38, -38, -38, -36, -36, -32, -28, -26, -24, -12, -10, -4, 2, 12, 12, 18, 26, 32, 34, 36, 38, 44, 44, 50, 52, 54, 54, 56, 56, 58, 70, 74, 76, 82, 86, 90], [-98, -96, -96, -94, -90, -90, -90, -86, -82, -78, -76, -74, -72, -68, -66, -60, -52, -46, -44, -44, -38, -38, -34, -32, -22, -20, -18, -14, 8, 8, 12, 12, 12, 16, 20, 38, 40, 44, 52, 76, 78, 80, 82, 86, 90, 90, 96, 98], [-88, -84, -84, -80, -78, -70, -68, -66, -62, -62, -54, -52, -48, -42, -42, -40, -32, -30, -26, -26, -24, -24, -14, -6, -4, -2, -2, 4, 4, 8, 22, 24, 40, 42, 52, 52, 56, 56, 58, 64, 72, 72, 74, 74, 86, 92, 96, 98], [-98, -98, -92, -82, -76, -72, -68, -66, -64, -62, -56, -50, -48, -46, -46, -40, -40, -40, -38, -28, -28, -24, -22, -20, -20, -10, -6, 4, 6, 10, 12, 26, 32, 38, 38, 40, 42, 56, 60, 64, 64, 72, 72, 76, 84, 90, 94, 98], [-98, -86, -72, -72, -66, -66, -64, -58, -56, -54, -54, -50, -44, -44, -36, -32, -30, -28, -26, -18, -14, -6, -4, 6, 6, 10, 10, 14, 22, 28, 38, 40, 46, 46, 50, 52, 54, 56, 60, 68, 68, 72, 76, 90, 90, 92, 92, 98], [-90, -86, -86, -84, -76, -74, -70, -66, -58, -58, -54, -50, -48, -44, -38, -38, -36, -34, -30, -22, -22, -8, -6, 4, 6, 6, 6, 8, 10, 24, 24, 28, 32, 32, 32, 36, 44, 48, 48, 50, 52, 64, 70, 74, 76, 92, 94, 96], [-96, -94, -84, -76, -76, -70, -68, -66, -56, -50, -50, -48, -46, -42, -42, -40, -40, -38, -38, -36, -36, -34, -30, -24, -22, -6, -4, -2, 2, 4, 10, 12, 16, 24, 28, 32, 38, 46, 50, 56, 56, 62, 64, 66, 74, 74, 98, 98], [-98, -96, -92, -88, -88, -84, -82, -78, -68, -66, -54, -52, -52, -50, -44, -40, -40, -38, -34, -34, -30, -26, -26, -24, -18, -14, -10, 4, 6, 6, 16, 20, 24, 26, 26, 32, 36, 38, 56, 66, 70, 78, 78, 84, 86, 88, 88, 90], [-94, -90, -86, -86, -86, -86, -84, -82, -78, -78, -76, -72, -68, -64, -64, -62, -46, -42, -42, -28, -26, -18, -16, -10, -8, -2, 0, 10, 10, 12, 18, 18, 26, 26, 32, 34, 34, 40, 50, 54, 56, 58, 62, 66, 66, 82, 84, 94], [-98, -94, -88, -86, -84, -80, -80, -78, -78, -74, -72, -72, -70, -70, -68, -66, -66, -64, -50, -44, -28, -24, -16, -6, -4, 0, 2, 8, 12, 22, 26, 32, 38, 38, 50, 54, 58, 58, 64, 64, 66, 70, 78, 86, 88, 90, 96, 98], [-96, -94, -90, -82, -78, -76, -76, -72, -64, -62, -54, -52, -50, -46, -44, -36, -30, -28, -28, -28, -22, -14, -12, 0, 0, 2, 6, 6, 10, 18, 22, 22, 24, 28, 28, 30, 34, 36, 36, 42, 46, 48, 54, 66, 72, 76, 86, 96], [-98, -96, -92, -92, -90, -88, -86, -82, -78, -70, -68, -66, -60, -58, -48, -48, -46, -30, -26, -22, -20, -16, -12, -8, -4, -4, 4, 16, 22, 32, 34, 34, 36, 36, 40, 52, 60, 62, 64, 66, 66, 74, 74, 78, 82, 82, 86, 94], [-92, -90, -88, -84, -82, -80, -78, -76, -74, -60, -56, -48, -48, -48, -48, -42, -38, -38, -30, -28, -28, -26, -12, -12, -10, -10, -2, 14, 16, 22, 26, 34, 42, 44, 52, 54, 56, 58, 58, 60, 62, 66, 70, 82, 84, 90, 94, 96], [-96, -92, -92, -84, -80, -76, -74, -74, -72, -70, -66, -66, -62, -60, -58, -56, -56, -50, -36, -34, -26, -10, 2, 2, 10, 10, 10, 10, 12, 18, 22, 22, 34, 34, 40, 60, 62, 62, 68, 72, 76, 78, 82, 82, 82, 82, 94, 96], [-96, -96, -88, -84, -78, -72, -68, -62, -56, -56, -52, -38, -32, -24, -20, -18, -18, -16, -10, -6, 8, 8, 12, 18, 24, 24, 26, 28, 30, 30, 32, 32, 56, 62, 64, 66, 66, 72, 74, 74, 78, 84, 84, 86, 88, 92, 92, 98], [-92, -86, -78, -68, -68, -68, -64, -58, -56, -48, -44, -38, -36, -34, -26, -22, -20, -18, -8, -6, 0, 2, 4, 12, 12, 18, 20, 22, 30, 32, 36, 38, 42, 44, 46, 50, 50, 52, 56, 58, 62, 64, 68, 70, 70, 82, 90, 98], [-94, -92, -92, -90, -88, -84, -80, -76, -74, -72, -72, -68, -62, -62, -56, -54, -50, -44, -42, -42, -30, -20, -16, -6, -6, 12, 14, 16, 18, 30, 30, 40, 42, 44, 54, 58, 58, 68, 74, 74, 80, 84, 84, 86, 88, 94, 96, 96], [-90, -86, -84, -84, -78, -78, -70, -70, -64, -56, -52, -50, -48, -48, -48, -46, -42, -40, -40, -30, -30, -28, -24, -22, -18, -16, -14, -6, -2, 4, 10, 12, 14, 14, 20, 26, 32, 44, 58, 64, 68, 68, 74, 76, 76, 82, 86, 88], [-98, -84, -80, -80, -78, -78, -78, -76, -68, -62, -56, -50, -34, -30, -30, -12, -8, -4, 2, 8, 10, 12, 14, 22, 24, 26, 36, 38, 38, 44, 46, 48, 56, 58, 62, 64, 64, 66, 66, 70, 70, 74, 78, 82, 88, 90, 94, 96], [-96, -96, -96, -96, -94, -94, -90, -86, -84, -80, -78, -74, -64, -60, -56, -54, -42, -38, -38, -38, -36, -34, -18, -16, -14, -14, -10, -10, -10, -6, -4, 8, 14, 20, 32, 42, 44, 48, 54, 54, 56, 70, 70, 72, 74, 80, 84, 94], [-96, -94, -86, -84, -78, -76, -70, -66, -62, -60, -56, -56, -54, -54, -52, -52, -50, -46, -46, -34, -32, -32, -28, -16, -12, -6, 0, 16, 18, 18, 20, 20, 28, 34, 38, 40, 42, 42, 52, 56, 62, 66, 66, 70, 82, 84, 88, 98], [-86, -84, -80, -78, -62, -60, -58, -56, -54, -52, -48, -44, -40, -38, -38, -26, -26, -24, -24, -18, -10, -6, 2, 8, 12, 16, 22, 26, 32, 36, 42, 44, 46, 48, 52, 52, 52, 62, 66, 70, 78, 78, 78, 80, 84, 90, 92, 92], [-98, -96, -88, -86, -82, -78, -78, -72, -72, -70, -64, -64, -60, -58, -54, -52, -46, -42, -30, -18, -14, -2, 2, 2, 6, 12, 20, 24, 24, 28, 32, 38, 38, 48, 54, 58, 60, 66, 68, 70, 70, 74, 78, 80, 82, 84, 86, 90], [-98, -88, -82, -82, -76, -76, -74, -70, -70, -68, -66, -64, -62, -58, -56, -52, -40, -38, -38, -38, -38, -36, -30, -26, -26, -12, -2, 4, 6, 16, 20, 24, 26, 26, 28, 34, 44, 50, 60, 68, 72, 74, 78, 84, 84, 88, 90, 90], [-98, -98, -96, -94, -88, -88, -86, -82, -66, -64, -62, -62, -40, -38, -34, -20, -14, -12, -10, -8, 0, 6, 10, 10, 12, 18, 22, 26, 26, 28, 32, 36, 40, 44, 44, 46, 64, 68, 70, 72, 74, 78, 80, 82, 82, 82, 92, 96], [-94, -94, -92, -88, -88, -84, -82, -78, -78, -76, -72, -64, -60, -56, -54, -54, -50, -48, -46, -42, -32, -28, -28, -24, -22, -22, -16, -14, -12, -12, 4, 10, 16, 16, 16, 28, 30, 40, 48, 56, 62, 64, 68, 76, 88, 90, 92, 98], [-94, -90, -88, -80, -76, -76, -76, -76, -72, -72, -68, -68, -68, -68, -66, -64, -62, -62, -54, -52, -46, -44, -36, -34, -20, -20, -16, -16, -10, -8, 0, 4, 22, 24, 28, 36, 38, 44, 50, 52, 60, 64, 68, 72, 76, 84, 86, 88], [-98, -98, -96, -94, -92, -80, -74, -72, -68, -68, -66, -64, -64, -62, -54, -52, -52, -28, -28, -28, -20, -10, 2, 6, 6, 14, 16, 16, 24, 28, 28, 32, 32, 36, 38, 44, 44, 46, 50, 58, 64, 68, 78, 86, 90, 90, 96, 98], [-96, -92, -80, -78, -68, -56, -54, -54, -44, -44, -36, -34, -34, -32, -30, -26, -22, -12, -8, -2, -2, -2, 6, 8, 8, 20, 20, 24, 28, 32, 36, 36, 38, 40, 42, 44, 44, 46, 48, 52, 54, 56, 60, 68, 70, 76, 80, 86], [-96, -86, -82, -82, -78, -76, -74, -68, -62, -54, -50, -48, -40, -38, -36, -34, -32, -26, -14, -12, -12, -6, -4, 0, 8, 10, 14, 20, 20, 26, 28, 40, 44, 46, 48, 56, 58, 60, 62, 66, 68, 76, 78, 86, 88, 88, 90, 94], [-98, -96, -86, -86, -84, -76, -76, -72, -72, -70, -64, -62, -58, -58, -54, -48, -46, -42, -32, -28, -28, -26, -24, -20, -14, 0, 0, 0, 0, 2, 10, 14, 18, 48, 50, 50, 52, 56, 58, 60, 62, 68, 76, 82, 86, 88, 94, 94], [-96, -92, -86, -82, -82, -80, -80, -78, -76, -74, -72, -62, -62, -56, -56, -50, -40, -30, -28, -18, -18, -12, -10, 0, 4, 10, 12, 12, 16, 18, 18, 18, 22, 30, 34, 42, 68, 74, 82, 86, 86, 90, 90, 90, 92, 92, 94, 94], [-92, -90, -88, -82, -82, -80, -74, -70, -66, -60, -58, -54, -48, -44, -40, -38, -32, -30, -26, -4, 2, 2, 10, 16, 18, 26, 30, 32, 32, 54, 56, 56, 58, 60, 62, 64, 64, 66, 72, 76, 78, 78, 78, 80, 80, 82, 86, 92], [-82, -82, -76, -74, -70, -66, -62, -62, -56, -54, -46, -46, -42, -36, -32, -30, -30, -26, -24, -22, -20, -10, -8, 4, 8, 14, 20, 22, 26, 36, 38, 46, 46, 46, 50, 50, 52, 54, 54, 58, 68, 76, 80, 84, 86, 86, 90, 98], [-98, -92, -92, -82, -78, -76, -62, -56, -54, -50, -50, -48, -48, -46, -44, -44, -34, -26, -24, -20, -16, -2, 16, 16, 22, 28, 28, 30, 36, 36, 38, 38, 40, 42, 42, 44, 50, 56, 56, 60, 62, 74, 78, 90, 92, 94, 96, 98], [-96, -92, -92, -86, -84, -74, -56, -54, -50, -42, -38, -36, -30, -28, -24, -22, -14, -10, -10, -10, -8, -8, 0, 4, 8, 8, 10, 18, 24, 24, 30, 30, 34, 38, 38, 42, 44, 44, 50, 54, 54, 66, 72, 74, 78, 84, 92, 98], [-90, -88, -80, -70, -56, -56, -54, -54, -50, -44, -44, -42, -40, -38, -26, -22, -22, -16, -14, -8, 0, 2, 18, 20, 34, 36, 36, 40, 42, 44, 46, 46, 48, 54, 54, 54, 56, 68, 68, 72, 72, 72, 76, 84, 86, 90, 92, 96], [-98, -96, -94, -86, -82, -76, -76, -70, -70, -68, -64, -48, -38, -38, -36, -28, -28, -26, -20, -18, -6, -2, -2, 2, 4, 6, 8, 8, 12, 12, 14, 16, 26, 30, 30, 34, 44, 44, 48, 48, 56, 72, 80, 80, 84, 84, 92, 94], [-90, -88, -84, -74, -74, -72, -70, -70, -68, -68, -64, -56, -52, -50, -40, -38, -32, -28, -22, -14, -14, -12, -8, -4, -2, 8, 10, 14, 14, 18, 22, 24, 30, 32, 36, 40, 58, 62, 64, 64, 64, 68, 72, 74, 82, 94, 98, 98], [-98, -92, -88, -80, -76, -70, -70, -66, -58, -56, -56, -40, -32, -26, -18, -6, -4, -2, 0, 0, 0, 2, 2, 6, 18, 20, 26, 32, 46, 46, 48, 48, 48, 52, 66, 68, 68, 68, 70, 70, 82, 82, 84, 86, 92, 96, 96, 98], [-98, -96, -92, -92, -92, -82, -72, -68, -66, -62, -46, -44, -44, -42, -38, -34, -32, -26, -26, -16, -12, -12, -10, -6, -6, -2, 0, 0, 4, 10, 12, 12, 14, 30, 36, 42, 46, 54, 58, 58, 66, 68, 68, 70, 90, 92, 96, 98], [-92, -86, -76, -76, -76, -72, -72, -68, -68, -58, -48, -40, -40, -36, -36, -26, -18, -14, -12, -10, -8, -8, 2, 8, 12, 16, 20, 24, 26, 30, 30, 34, 42, 42, 46, 56, 60, 62, 66, 72, 78, 78, 82, 82, 88, 90, 92, 92], [-92, -90, -90, -88, -84, -78, -70, -64, -60, -54, -42, -36, -34, -32, -30, -20, -14, -10, -8, -2, 0, 8, 10, 10, 20, 24, 28, 32, 42, 42, 42, 50, 54, 56, 60, 60, 60, 68, 68, 72, 78, 78, 86, 86, 92, 92, 98, 98], [-98, -98, -96, -96, -94, -90, -88, -86, -80, -78, -76, -72, -58, -52, -48, -34, -34, -28, -28, -24, -24, -18, -16, -12, -8, -8, -6, 8, 10, 12, 12, 12, 12, 26, 30, 30, 38, 52, 52, 64, 68, 72, 74, 80, 80, 82, 88, 90], [-92, -90, -82, -80, -72, -66, -52, -44, -44, -42, -42, -36, -34, -32, -26, -24, -22, -20, -18, -18, -16, -16, -16, -2, 2, 4, 8, 10, 16, 22, 24, 36, 38, 40, 46, 50, 56, 58, 64, 66, 74, 74, 84, 84, 88, 92, 96, 98]],28,),
([[0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0], [0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1], [0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 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, 7, 7, 10, 12, 13, 13, 15, 17, 20, 21, 21, 22, 25, 31, 33, 37, 40, 41, 41, 46, 50, 53, 54, 55, 57, 61, 63, 64, 65, 68, 69, 76, 76, 81, 81, 82, 82, 84, 87, 89, 90], [1, 1, 1, 1, 4, 6, 19, 19, 19, 20, 21, 21, 22, 22, 23, 23, 25, 25, 26, 26, 29, 30, 34, 34, 35, 37, 48, 48, 50, 52, 59, 60, 62, 63, 64, 66, 68, 68, 75, 85, 88, 89, 91, 92, 94, 95, 97, 99], [2, 3, 7, 12, 15, 16, 18, 20, 20, 23, 24, 27, 29, 31, 33, 36, 36, 37, 38, 44, 47, 52, 52, 54, 55, 61, 62, 62, 64, 66, 66, 73, 74, 75, 76, 80, 81, 81, 83, 83, 84, 87, 87, 89, 92, 92, 96, 99], [1, 4, 4, 5, 6, 8, 12, 12, 14, 16, 21, 24, 24, 27, 29, 34, 35, 39, 41, 44, 44, 46, 48, 50, 52, 52, 53, 56, 60, 62, 64, 67, 72, 77, 78, 80, 81, 83, 84, 84, 85, 88, 91, 93, 93, 94, 94, 95], [3, 3, 4, 11, 11, 12, 15, 15, 17, 17, 18, 20, 24, 24, 27, 27, 29, 32, 35, 37, 39, 39, 41, 43, 43, 44, 48, 49, 53, 60, 69, 70, 73, 74, 75, 76, 76, 84, 85, 85, 85, 87, 87, 89, 90, 91, 93, 93], [1, 11, 11, 12, 15, 15, 16, 16, 17, 17, 18, 19, 20, 23, 27, 27, 31, 32, 32, 35, 37, 39, 39, 41, 43, 45, 47, 49, 49, 49, 56, 60, 61, 64, 67, 71, 73, 78, 79, 79, 81, 82, 83, 85, 87, 89, 92, 98], [5, 6, 9, 13, 14, 16, 17, 20, 20, 22, 22, 23, 28, 29, 29, 30, 32, 33, 36, 37, 45, 47, 49, 49, 50, 50, 52, 56, 60, 62, 65, 66, 69, 70, 71, 77, 78, 78, 80, 82, 83, 86, 86, 88, 88, 90, 90, 99], [3, 11, 12, 13, 14, 14, 15, 19, 19, 20, 26, 27, 28, 31, 32, 32, 32, 35, 35, 39, 39, 42, 43, 49, 54, 55, 57, 58, 59, 60, 61, 62, 62, 65, 65, 67, 73, 74, 81, 82, 83, 86, 88, 88, 93, 95, 95, 97], [1, 3, 3, 5, 7, 11, 17, 20, 20, 21, 21, 23, 24, 25, 26, 26, 30, 32, 35, 37, 38, 39, 42, 44, 47, 47, 48, 49, 51, 57, 57, 59, 60, 61, 62, 63, 66, 69, 70, 73, 78, 80, 84, 84, 89, 92, 96, 97], [1, 1, 2, 11, 12, 13, 15, 17, 19, 21, 22, 24, 27, 28, 28, 29, 30, 34, 39, 40, 40, 44, 45, 48, 57, 58, 58, 59, 61, 63, 63, 64, 66, 66, 68, 69, 70, 71, 74, 78, 79, 82, 84, 86, 89, 90, 94, 97], [2, 3, 7, 10, 10, 12, 13, 13, 17, 17, 19, 21, 36, 47, 48, 48, 51, 51, 52, 55, 57, 61, 61, 61, 65, 70, 71, 73, 74, 74, 75, 75, 76, 78, 79, 80, 80, 85, 86, 87, 87, 89, 91, 94, 95, 97, 97, 97], [1, 2, 2, 8, 9, 9, 9, 14, 16, 17, 23, 24, 27, 29, 30, 30, 34, 35, 36, 43, 44, 44, 47, 49, 50, 54, 56, 57, 58, 63, 67, 68, 69, 70, 72, 76, 77, 80, 81, 84, 84, 86, 88, 90, 93, 96, 96, 96], [2, 3, 3, 5, 5, 7, 7, 11, 18, 19, 19, 20, 23, 24, 27, 27, 28, 30, 30, 36, 38, 39, 40, 48, 50, 51, 53, 57, 57, 66, 67, 68, 73, 77, 78, 79, 82, 84, 85, 87, 88, 89, 95, 96, 97, 98, 99, 99], [3, 8, 10, 10, 12, 13, 13, 15, 16, 16, 17, 21, 21, 22, 23, 24, 26, 26, 27, 29, 32, 34, 35, 37, 42, 42, 52, 54, 61, 61, 65, 65, 66, 70, 73, 74, 76, 79, 83, 83, 85, 89, 91, 93, 94, 96, 97, 97], [3, 5, 6, 7, 9, 10, 13, 16, 16, 19, 23, 24, 24, 26, 28, 29, 30, 32, 33, 36, 37, 37, 41, 41, 41, 42, 42, 44, 45, 49, 50, 52, 55, 57, 58, 60, 61, 63, 75, 77, 77, 79, 80, 81, 86, 89, 94, 99], [1, 10, 13, 14, 15, 17, 18, 20, 21, 22, 23, 25, 26, 28, 32, 37, 39, 44, 46, 47, 47, 47, 47, 50, 51, 52, 55, 55, 58, 61, 69, 72, 73, 77, 77, 78, 80, 81, 82, 84, 88, 91, 93, 94, 95, 96, 97, 98], [1, 5, 5, 13, 13, 17, 26, 28, 30, 32, 34, 41, 43, 44, 45, 45, 46, 46, 49, 52, 53, 56, 57, 61, 61, 62, 63, 63, 63, 64, 65, 67, 69, 70, 73, 76, 77, 80, 80, 81, 82, 87, 87, 88, 89, 89, 93, 96], [5, 11, 12, 12, 18, 19, 19, 22, 24, 26, 26, 26, 30, 32, 33, 35, 35, 36, 38, 39, 42, 44, 46, 48, 52, 56, 57, 58, 59, 65, 65, 66, 67, 67, 68, 70, 73, 73, 75, 76, 77, 78, 80, 83, 84, 88, 92, 99], [5, 6, 9, 13, 17, 20, 20, 21, 22, 24, 25, 26, 30, 32, 33, 36, 37, 38, 38, 40, 44, 45, 48, 53, 55, 58, 58, 58, 59, 61, 63, 63, 63, 65, 67, 72, 75, 75, 75, 77, 77, 77, 79, 82, 88, 93, 97, 97], [9, 13, 14, 16, 17, 18, 21, 22, 22, 23, 24, 25, 33, 37, 40, 41, 42, 46, 49, 49, 51, 54, 57, 58, 58, 60, 67, 71, 73, 74, 74, 75, 77, 78, 80, 82, 85, 85, 86, 86, 86, 87, 91, 92, 93, 95, 97, 98], [1, 3, 10, 11, 14, 18, 18, 19, 23, 24, 26, 28, 33, 36, 37, 42, 42, 47, 47, 48, 48, 52, 53, 56, 57, 59, 61, 63, 63, 64, 65, 67, 69, 71, 75, 77, 78, 79, 83, 83, 83, 85, 86, 86, 92, 96, 97, 97], [3, 5, 6, 7, 7, 9, 13, 13, 18, 25, 27, 28, 29, 30, 32, 34, 37, 43, 44, 51, 52, 53, 54, 59, 63, 63, 64, 66, 68, 70, 70, 72, 72, 73, 77, 78, 80, 82, 83, 83, 84, 85, 85, 93, 95, 97, 99, 99], [4, 6, 7, 9, 9, 20, 20, 22, 31, 33, 34, 35, 35, 38, 40, 41, 42, 42, 44, 46, 47, 50, 52, 54, 57, 58, 60, 61, 62, 63, 63, 64, 65, 70, 72, 74, 80, 81, 87, 87, 88, 88, 92, 92, 95, 99, 99, 99], [3, 5, 9, 10, 10, 15, 18, 20, 21, 21, 23, 25, 28, 29, 37, 38, 40, 40, 40, 46, 51, 53, 55, 57, 59, 59, 60, 67, 68, 71, 72, 73, 75, 76, 79, 79, 81, 83, 86, 87, 88, 90, 90, 90, 92, 95, 96, 98], [5, 7, 8, 9, 9, 12, 14, 16, 18, 18, 18, 24, 25, 26, 28, 28, 29, 30, 32, 37, 38, 44, 44, 45, 46, 48, 51, 55, 55, 56, 58, 58, 62, 63, 64, 67, 71, 74, 76, 81, 86, 87, 88, 90, 90, 91, 95, 97], [4, 5, 13, 13, 16, 19, 19, 20, 22, 26, 27, 28, 30, 30, 31, 32, 33, 39, 39, 41, 41, 43, 45, 49, 50, 51, 64, 66, 67, 71, 73, 75, 78, 78, 79, 82, 84, 86, 87, 87, 88, 90, 91, 91, 92, 93, 96, 97], [2, 3, 5, 11, 16, 20, 21, 21, 25, 29, 31, 34, 36, 36, 37, 37, 38, 38, 44, 45, 46, 54, 60, 60, 61, 61, 67, 67, 67, 70, 71, 72, 76, 77, 79, 80, 83, 84, 84, 87, 87, 88, 90, 92, 93, 98, 99, 99], [1, 2, 5, 5, 12, 13, 13, 15, 18, 19, 24, 25, 25, 26, 28, 29, 30, 33, 34, 35, 35, 36, 36, 37, 38, 42, 44, 49, 50, 53, 58, 58, 58, 60, 65, 67, 72, 75, 77, 78, 81, 84, 88, 88, 90, 91, 94, 97], [5, 5, 6, 7, 8, 11, 11, 13, 19, 23, 25, 35, 37, 40, 40, 46, 47, 48, 48, 49, 51, 58, 60, 61, 63, 65, 67, 68, 71, 72, 76, 77, 79, 80, 84, 87, 88, 88, 89, 90, 92, 94, 94, 96, 96, 97, 97, 99], [1, 2, 3, 3, 5, 5, 13, 18, 19, 23, 31, 32, 34, 35, 36, 38, 39, 40, 42, 49, 51, 53, 54, 56, 62, 64, 64, 64, 66, 67, 67, 67, 69, 72, 74, 74, 80, 81, 83, 83, 84, 85, 91, 91, 94, 95, 96, 98], [1, 2, 5, 9, 10, 11, 14, 15, 16, 16, 24, 27, 30, 32, 35, 37, 39, 39, 40, 43, 48, 49, 50, 54, 57, 57, 58, 59, 60, 63, 63, 64, 64, 64, 68, 70, 76, 77, 80, 82, 85, 87, 88, 90, 91, 94, 94, 97], [10, 14, 15, 17, 17, 18, 22, 22, 28, 29, 29, 32, 32, 34, 36, 36, 38, 39, 40, 42, 43, 45, 45, 45, 54, 54, 55, 55, 59, 63, 67, 68, 74, 75, 75, 77, 77, 79, 80, 86, 86, 87, 87, 87, 87, 88, 93, 96], [2, 2, 5, 5, 9, 14, 17, 17, 20, 22, 22, 23, 25, 32, 32, 32, 35, 37, 37, 38, 39, 40, 47, 52, 55, 56, 60, 62, 63, 63, 63, 63, 64, 69, 73, 73, 74, 75, 77, 79, 82, 85, 88, 88, 90, 92, 92, 93], [3, 4, 4, 6, 8, 10, 12, 15, 16, 16, 17, 20, 21, 21, 24, 26, 27, 28, 28, 29, 30, 32, 38, 44, 49, 49, 50, 54, 59, 59, 61, 62, 64, 64, 65, 70, 70, 71, 72, 72, 73, 74, 75, 80, 83, 90, 92, 92], [4, 5, 9, 9, 13, 15, 16, 16, 17, 23, 25, 27, 28, 29, 29, 37, 37, 40, 43, 45, 49, 50, 51, 51, 53, 55, 56, 60, 61, 61, 64, 67, 68, 73, 74, 75, 76, 77, 79, 80, 85, 89, 89, 89, 91, 97, 97, 97], [2, 5, 9, 10, 11, 11, 11, 15, 15, 16, 18, 20, 21, 22, 23, 24, 40, 41, 47, 47, 48, 48, 49, 51, 53, 53, 54, 55, 61, 63, 65, 68, 70, 73, 74, 74, 77, 78, 79, 80, 82, 83, 85, 85, 86, 87, 98, 99], [1, 12, 13, 14, 16, 17, 18, 19, 20, 21, 23, 23, 27, 27, 30, 34, 36, 36, 38, 42, 43, 43, 44, 44, 48, 49, 53, 54, 55, 61, 62, 66, 67, 72, 72, 73, 73, 77, 78, 78, 86, 88, 89, 92, 93, 98, 98, 99], [1, 2, 4, 6, 9, 13, 13, 13, 17, 18, 20, 28, 28, 30, 32, 33, 37, 38, 42, 42, 44, 47, 50, 52, 53, 54, 56, 57, 59, 60, 66, 68, 70, 71, 72, 74, 76, 77, 79, 83, 83, 84, 85, 90, 94, 94, 97, 99], [1, 1, 9, 9, 10, 10, 11, 12, 12, 15, 21, 22, 24, 24, 25, 26, 26, 27, 30, 31, 34, 35, 40, 41, 43, 47, 47, 53, 53, 53, 57, 60, 61, 61, 64, 66, 68, 71, 71, 79, 82, 82, 84, 88, 88, 90, 96, 99], [4, 4, 6, 6, 6, 6, 8, 9, 11, 11, 14, 16, 21, 25, 29, 37, 38, 40, 44, 45, 50, 51, 51, 53, 53, 56, 57, 58, 59, 59, 63, 69, 71, 72, 74, 76, 79, 80, 82, 83, 87, 93, 94, 96, 98, 98, 99, 99], [2, 2, 5, 9, 10, 12, 13, 13, 13, 13, 19, 22, 27, 32, 33, 34, 34, 38, 41, 45, 46, 47, 48, 50, 51, 51, 52, 54, 54, 57, 57, 60, 61, 74, 76, 76, 77, 79, 81, 83, 85, 92, 93, 95, 96, 97, 99, 99], [4, 4, 4, 6, 7, 9, 14, 15, 16, 18, 19, 23, 27, 37, 38, 39, 40, 41, 41, 44, 45, 51, 52, 53, 54, 54, 56, 57, 58, 59, 60, 63, 65, 65, 69, 79, 85, 85, 88, 89, 90, 90, 93, 94, 95, 95, 95, 99], [6, 6, 7, 9, 10, 10, 11, 15, 15, 16, 16, 17, 19, 20, 24, 28, 30, 31, 31, 33, 35, 37, 38, 40, 40, 43, 44, 44, 45, 46, 48, 58, 59, 62, 72, 73, 74, 80, 82, 82, 83, 85, 88, 90, 91, 91, 91, 96], [2, 2, 2, 2, 3, 4, 5, 12, 12, 15, 23, 23, 24, 24, 29, 35, 36, 38, 40, 41, 47, 47, 48, 49, 51, 54, 56, 57, 60, 62, 63, 64, 70, 75, 75, 76, 77, 80, 82, 83, 87, 90, 91, 91, 92, 93, 94, 94], [3, 4, 4, 7, 8, 9, 11, 12, 15, 19, 21, 22, 23, 24, 28, 28, 31, 37, 37, 37, 39, 48, 52, 52, 55, 55, 55, 57, 61, 66, 72, 75, 76, 77, 79, 83, 84, 84, 84, 88, 90, 92, 93, 94, 98, 98, 98, 99], [2, 5, 7, 11, 13, 15, 27, 29, 29, 31, 35, 38, 41, 42, 44, 44, 46, 47, 49, 52, 52, 53, 53, 53, 54, 54, 55, 56, 58, 60, 61, 61, 63, 69, 72, 72, 77, 77, 79, 80, 84, 84, 86, 87, 90, 92, 92, 93]],44,),
([[28, 84, -76, -76, -28, -42, -78, 6, 40, 70, 48, 92, -6, -34, 62, 34, -14, -64], [48, 6, -22, 44, -32, -26, -18, 94, -2, -80, -20, -64, -50, -18, -28, -96, 66, 48], [-2, 34, 6, -62, -48, 8, 2, -50, -66, 48, 22, -8, 10, 0, 50, -78, -76, -20], [-4, 12, -84, 76, -72, 74, 12, 8, -66, -10, -90, -94, -82, 68, -60, 66, -58, 60], [-34, -90, -52, 26, 58, -48, 78, 84, -34, -64, -64, -24, -34, -46, -2, 0, -70, 54], [4, 96, 36, 98, -62, 90, -50, 52, 52, -50, -34, 20, -26, 84, -14, -82, -72, -94], [38, 12, -48, 6, -18, 64, -58, -22, 60, -54, 86, 48, 16, 38, 50, -42, 24, 6], [-10, -46, -32, -72, -18, 48, 20, -16, 2, 50, -78, -30, -62, 76, 30, 52, 22, -6], [-72, 34, 4, -36, 60, -80, -66, -20, 36, 26, -70, 94, -22, 14, -80, 42, 94, -66], [52, -66, -68, 56, -94, 2, 88, -8, 10, 98, -48, 52, -38, 62, 44, -62, 80, 36], [-70, 16, 56, -40, -4, 12, -16, -52, 4, -14, -32, 20, 66, -94, 36, -78, -74, 0], [64, -62, -12, -34, -24, -94, 98, 30, -30, -28, -24, -22, -50, 28, -74, 36, 40, 50], [-98, 44, 8, 96, -82, -28, -26, 18, -58, -60, -98, 98, 18, -44, 42, 12, -82, 30], [-28, 96, -32, 62, -36, 32, -50, 2, 26, 80, -10, -48, -58, 64, 86, 2, -52, 84], [-76, -78, -46, -54, -34, 60, 84, 84, -24, 10, 40, -16, -42, -32, 14, -94, -88, -4], [28, -74, -28, 58, 40, -34, 52, 14, 10, -74, 94, 2, 84, 6, -28, -90, -50, 62], [-26, -62, -30, -32, 8, -8, -88, 66, -98, 42, -32, 12, 66, 94, -48, -16, 82, -24], [-48, 98, 18, 68, -52, -58, 20, 80, -60, -88, 34, -80, -76, 94, -56, 24, 22, 60]],9,),
([[0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1]],5,),
([[93, 9, 33, 88, 35, 75, 39, 77, 87, 25], [80, 56, 48, 85, 10, 41, 83, 99, 59, 28], [41, 66, 51, 62, 30, 40, 40, 69, 62, 15], [3, 24, 41, 63, 48, 61, 48, 47, 56, 76], [8, 78, 18, 84, 23, 69, 65, 46, 66, 80], [69, 22, 65, 12, 19, 22, 55, 62, 51, 48], [17, 13, 28, 67, 5, 60, 15, 81, 44, 46], [29, 68, 96, 49, 43, 68, 77, 20, 18, 64], [49, 42, 12, 89, 94, 79, 36, 8, 28, 86], [60, 49, 38, 80, 58, 5, 46, 98, 75, 2]],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/MAXIMUM_WEIGHT_PATH_ENDING_ELEMENT_LAST_ROW_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 ( arr , n , x , y ) :
count = 0 ;
for i in range ( n ) :
if ( arr [ i ] >= x and arr [ i ] <= y ) :
count += 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([9, 16, 19, 24, 36, 38, 42, 49, 51, 53, 53, 57, 57, 58, 71, 78, 78, 92, 92, 93],13,12,13,),
([28, -74, -18, 10, 26, 28, -96, -80, 82, 94, 22, 50, 72, -90, 76, 50, 20, -44, -80],18,13,13,),
([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],30,21,31,),
([25, 8, 66, 90, 50, 65, 76, 90, 27],4,8,5,),
([-98, -96, -90, -82, -80, -78, -70, -66, -60, -60, -50, -48, -34, -26, -24, -16, -14, -8, -6, 4, 22, 24, 26, 30, 30, 48, 52, 56, 60, 62, 74, 76, 78, 86],32,24,24,),
([1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0],15,16,12,),
([4, 6, 17, 19, 24, 29, 30, 31, 32, 37, 37, 40, 43, 44, 44, 45, 57, 64, 69, 70, 73, 78, 86, 89, 91, 92, 94],17,21,15,),
([32, -88, 70, -6, 28, -48],4,3,4,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,12,11,),
([37, 84, 97, 74, 12, 26, 47, 10, 14, 33],5,9,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/QUERIES_COUNTS_ARRAY_ELEMENTS_VALUES_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 ( seq ) :
n = len ( seq )
if ( n >= 9 ) :
return "-1"
result = [ None ] * ( n + 1 )
count = 1
for i in range ( n + 1 ) :
if ( i == n or seq [ i ] == 'I' ) :
for j in range ( i - 1 , - 2 , - 1 ) :
result [ j + 1 ] = int ( '0' + str ( count ) )
count += 1
if ( j >= 0 and seq [ j ] == 'I' ) :
break
return result
#TOFILL
if __name__ == '__main__':
param = [
('D',),
('I',),
('DD',),
('II',),
('DIDI',),
('IIDDD',),
('DDIDDIID',),
('176297',),
('1',),
('XHkhZq',)
]
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_MINIMUM_NUMBER_FROM_GIVEN_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 ( mat , N ) :
for i in range ( N ) :
for j in range ( N ) :
if ( mat [ i ] [ j ] != mat [ j ] [ i ] ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([[29]],0,),
([[ 1, 3, 5 ], [ 3, 2, 4 ], [ 5, 4, 1 ]], 3,),
([[ 1, 2, 5 ], [ 3, 2, 4 ], [ 5, 4, 1 ]], 3,),
([[37, 56, 39, 95, 78, 69, 89, 45, 66, 99, 20, 10, 6, 33, 78, 26, 86, 61, 78, 36, 62, 23, 80, 89, 83], [42, 75, 30, 64, 25, 95, 17, 90, 6, 11, 1, 77, 16, 75, 86, 96, 67, 27, 80, 27, 99, 2, 82, 48, 25], [36, 83, 89, 85, 38, 40, 12, 29, 71, 29, 96, 75, 37, 79, 90, 66, 62, 29, 68, 98, 99, 74, 98, 88, 94], [69, 5, 52, 10, 35, 63, 75, 55, 17, 45, 65, 56, 70, 52, 61, 94, 61, 35, 13, 51, 1, 23, 77, 34, 80], [64, 11, 91, 93, 65, 22, 41, 25, 7, 85, 26, 82, 97, 51, 24, 10, 13, 95, 18, 11, 58, 32, 21, 41, 60], [90, 46, 56, 8, 17, 36, 86, 73, 5, 56, 59, 14, 45, 75, 51, 58, 95, 71, 39, 85, 57, 29, 75, 13, 44], [40, 43, 89, 50, 56, 62, 55, 30, 28, 68, 41, 84, 12, 77, 90, 38, 53, 23, 42, 84, 67, 11, 94, 10, 77], [74, 31, 44, 37, 25, 93, 21, 15, 11, 98, 75, 45, 8, 98, 26, 21, 52, 50, 24, 96, 82, 26, 41, 51, 16], [41, 52, 57, 84, 51, 59, 79, 68, 40, 16, 76, 35, 26, 73, 80, 59, 79, 84, 3, 5, 40, 55, 77, 48, 93], [71, 53, 72, 27, 73, 96, 36, 36, 39, 75, 57, 36, 7, 21, 15, 46, 88, 47, 59, 61, 41, 54, 23, 73, 12], [8, 22, 50, 34, 84, 96, 13, 20, 8, 70, 99, 97, 25, 14, 97, 59, 51, 53, 16, 67, 38, 74, 45, 97, 16], [95, 25, 78, 52, 46, 8, 73, 56, 13, 78, 63, 15, 53, 55, 5, 39, 13, 67, 97, 19, 31, 96, 53, 66, 80], [5, 30, 49, 58, 18, 36, 38, 50, 49, 28, 56, 33, 2, 2, 32, 12, 39, 51, 6, 15, 96, 47, 45, 45, 15], [10, 79, 97, 99, 12, 35, 4, 10, 84, 43, 31, 31, 31, 20, 73, 77, 37, 59, 24, 89, 59, 94, 88, 73, 29], [74, 78, 86, 45, 12, 8, 60, 67, 26, 20, 81, 31, 77, 42, 50, 32, 6, 32, 32, 43, 32, 1, 11, 12, 21], [21, 10, 9, 12, 32, 85, 18, 50, 39, 69, 5, 71, 56, 78, 22, 97, 99, 93, 79, 31, 92, 18, 8, 33, 15], [7, 35, 36, 40, 77, 41, 11, 87, 51, 23, 46, 4, 42, 34, 46, 7, 37, 20, 99, 29, 97, 36, 71, 56, 96], [5, 57, 15, 64, 45, 54, 2, 56, 40, 1, 16, 6, 72, 80, 47, 76, 6, 48, 2, 75, 61, 11, 10, 98, 75], [98, 75, 99, 62, 8, 10, 96, 52, 95, 4, 3, 45, 30, 75, 47, 34, 67, 57, 21, 41, 75, 75, 88, 53, 99], [40, 77, 89, 69, 74, 98, 68, 89, 99, 22, 23, 24, 74, 67, 11, 60, 34, 16, 26, 43, 19, 28, 48, 52, 85], [81, 50, 42, 81, 54, 72, 87, 27, 47, 26, 83, 34, 15, 4, 1, 92, 40, 74, 92, 61, 36, 18, 3, 43, 46], [80, 28, 65, 52, 79, 12, 96, 25, 80, 36, 21, 10, 76, 78, 63, 51, 27, 18, 53, 55, 98, 75, 79, 5, 37], [52, 98, 60, 25, 33, 97, 15, 1, 38, 45, 7, 12, 68, 26, 10, 72, 50, 25, 96, 64, 54, 43, 27, 16, 92], [61, 86, 67, 38, 64, 43, 82, 14, 64, 95, 63, 92, 69, 49, 72, 52, 82, 23, 32, 48, 12, 58, 24, 3, 86], [2, 88, 8, 1, 46, 4, 72, 89, 32, 16, 31, 5, 43, 13, 8, 11, 67, 33, 4, 22, 58, 60, 98, 99, 81]],21,),
([[32, 53, 61, 4, 94, 83, 17, 81, 12, 79, 93, 11, 91, 14, 15], [13, 34, 5, 70, 47, 93, 43, 97, 24, 44, 49, 93, 33, 2, 34], [94, 82, 63, 86, 67, 80, 10, 15, 76, 76, 39, 51, 15, 91, 20], [71, 90, 63, 91, 53, 14, 13, 78, 84, 44, 96, 39, 66, 80, 82], [60, 33, 64, 97, 47, 93, 89, 32, 10, 64, 77, 3, 60, 87, 26], [69, 81, 93, 32, 34, 95, 76, 38, 85, 22, 30, 53, 84, 86, 2], [71, 38, 57, 33, 49, 92, 28, 63, 54, 6, 62, 95, 36, 74, 19], [6, 34, 8, 6, 41, 89, 15, 22, 4, 73, 86, 56, 18, 24, 99], [67, 18, 89, 84, 39, 89, 61, 77, 78, 94, 44, 28, 30, 51, 33], [82, 64, 52, 28, 73, 14, 69, 99, 54, 49, 7, 44, 60, 1, 51], [99, 38, 66, 68, 74, 99, 59, 98, 62, 39, 63, 32, 21, 85, 23], [15, 1, 29, 94, 19, 33, 88, 70, 10, 46, 47, 55, 18, 71, 10], [92, 59, 34, 42, 98, 91, 42, 67, 7, 15, 35, 53, 1, 14, 90], [22, 84, 62, 36, 99, 16, 63, 6, 22, 7, 95, 17, 80, 50, 59], [42, 40, 14, 73, 80, 53, 8, 91, 78, 59, 66, 88, 72, 71, 63]],13,),
([[93, 91, 59, 11, 73, 34, 33, 29, 78, 95, 52, 61, 39, 63, 91, 82, 75, 35, 18, 71, 19, 42, 64], [92, 7, 2, 46, 32, 22, 94, 78, 67, 73, 52, 15, 70, 89, 48, 40, 60, 4, 21, 67, 60, 67, 39], [94, 67, 26, 74, 69, 58, 14, 10, 9, 3, 75, 67, 48, 38, 39, 41, 43, 78, 67, 6, 46, 78, 16], [25, 44, 27, 86, 54, 56, 75, 43, 59, 83, 83, 80, 94, 72, 94, 56, 8, 51, 29, 14, 12, 13, 12], [78, 10, 44, 59, 8, 24, 37, 43, 89, 8, 64, 77, 67, 73, 40, 74, 46, 83, 92, 18, 82, 72, 8], [59, 36, 96, 21, 3, 88, 16, 83, 55, 22, 22, 77, 12, 60, 92, 72, 9, 84, 79, 68, 24, 48, 45], [6, 64, 87, 15, 30, 84, 27, 27, 98, 97, 58, 10, 73, 72, 78, 1, 74, 4, 59, 82, 94, 41, 90], [43, 14, 29, 73, 37, 22, 88, 99, 36, 95, 58, 15, 61, 7, 99, 91, 42, 98, 25, 64, 44, 6, 4], [66, 14, 4, 35, 77, 93, 34, 26, 56, 90, 68, 78, 75, 3, 87, 8, 44, 90, 78, 5, 58, 86, 78], [12, 67, 94, 20, 3, 33, 77, 18, 75, 26, 7, 90, 3, 1, 17, 12, 73, 81, 82, 23, 91, 2, 27], [55, 15, 44, 69, 95, 49, 63, 35, 19, 53, 92, 2, 52, 20, 59, 3, 8, 40, 30, 12, 49, 17, 66], [23, 39, 27, 57, 19, 44, 66, 32, 33, 43, 23, 14, 80, 57, 98, 57, 58, 62, 40, 44, 47, 84, 46], [53, 29, 49, 53, 9, 73, 25, 47, 81, 50, 71, 16, 37, 18, 39, 78, 56, 82, 8, 57, 89, 20, 57], [1, 88, 13, 75, 52, 97, 30, 81, 57, 5, 22, 51, 79, 74, 1, 46, 79, 42, 42, 93, 64, 21, 79], [99, 69, 19, 14, 15, 51, 83, 91, 16, 83, 53, 55, 23, 36, 18, 45, 88, 71, 89, 45, 7, 69, 88], [84, 85, 20, 74, 87, 46, 33, 15, 34, 79, 5, 9, 91, 64, 60, 28, 9, 50, 36, 9, 31, 45, 55], [78, 15, 41, 66, 63, 96, 27, 64, 60, 56, 71, 14, 60, 93, 40, 20, 51, 5, 82, 72, 50, 71, 88], [60, 86, 20, 27, 20, 6, 8, 79, 22, 35, 42, 77, 92, 20, 93, 69, 3, 27, 69, 60, 20, 23, 96], [12, 55, 49, 96, 80, 27, 65, 51, 76, 77, 72, 44, 29, 39, 16, 5, 43, 57, 97, 20, 36, 96, 48], [50, 2, 12, 39, 53, 63, 12, 34, 34, 12, 17, 6, 30, 86, 37, 87, 80, 26, 48, 40, 31, 46, 66], [67, 88, 91, 37, 17, 94, 68, 59, 82, 40, 27, 95, 12, 31, 28, 26, 13, 82, 17, 41, 32, 22, 99], [80, 50, 3, 22, 59, 95, 16, 66, 40, 56, 86, 56, 78, 14, 62, 69, 27, 47, 80, 68, 87, 74, 95], [17, 27, 51, 59, 59, 79, 24, 54, 99, 13, 14, 70, 70, 52, 96, 85, 21, 30, 54, 86, 19, 59, 47]],12,),
([[1, 88, 52, 21, 60, 48, 74, 12, 87, 76, 80, 55, 3, 66, 6, 22, 67, 73, 21, 37, 33, 1, 65, 71, 37, 40, 63, 52, 76, 32, 27, 42, 52], [29, 46, 66, 46, 83, 25, 99, 65, 57, 28, 18, 63, 18, 24, 51, 29, 19, 31, 95, 86, 29, 20, 66, 68, 46, 19, 7, 42, 16, 52, 33, 39, 43], [84, 46, 4, 15, 43, 30, 39, 43, 14, 70, 86, 18, 46, 79, 21, 76, 91, 61, 75, 95, 65, 25, 89, 81, 71, 32, 48, 89, 82, 35, 90, 76, 78], [8, 22, 76, 32, 46, 13, 33, 1, 92, 67, 80, 50, 32, 10, 1, 71, 47, 7, 62, 52, 68, 4, 57, 89, 5, 71, 55, 67, 57, 99, 75, 76, 39], [80, 43, 71, 85, 10, 82, 29, 26, 30, 65, 38, 15, 89, 19, 28, 97, 15, 78, 61, 38, 99, 32, 78, 77, 41, 85, 76, 15, 88, 84, 63, 1, 43], [14, 2, 8, 11, 20, 44, 59, 17, 12, 84, 74, 21, 67, 4, 88, 54, 27, 95, 74, 68, 76, 79, 90, 34, 1, 59, 52, 45, 18, 73, 50, 34, 54], [54, 52, 30, 4, 53, 24, 50, 45, 61, 90, 7, 45, 85, 78, 34, 10, 11, 45, 49, 40, 51, 71, 99, 28, 62, 15, 38, 49, 1, 50, 14, 13, 22], [57, 85, 41, 37, 82, 73, 95, 5, 31, 65, 86, 57, 15, 90, 29, 54, 41, 91, 34, 85, 76, 35, 55, 98, 33, 42, 87, 8, 83, 99, 91, 30, 84], [92, 74, 42, 25, 14, 65, 30, 13, 89, 12, 24, 70, 73, 38, 87, 52, 70, 35, 28, 5, 42, 84, 80, 20, 22, 51, 87, 76, 47, 97, 39, 28, 68], [47, 72, 21, 48, 50, 49, 76, 62, 35, 80, 72, 5, 76, 90, 37, 73, 41, 92, 40, 58, 72, 2, 50, 86, 94, 80, 48, 24, 91, 33, 70, 94, 42], [26, 78, 95, 16, 21, 2, 59, 8, 7, 90, 21, 18, 82, 1, 91, 8, 92, 2, 22, 20, 78, 35, 60, 31, 41, 67, 72, 90, 24, 15, 38, 79, 99], [38, 81, 95, 66, 5, 2, 2, 90, 38, 37, 10, 91, 72, 74, 99, 24, 24, 95, 4, 40, 14, 26, 12, 27, 6, 27, 14, 22, 49, 20, 3, 73, 80], [73, 49, 96, 98, 25, 27, 91, 2, 22, 66, 48, 53, 1, 54, 39, 10, 12, 37, 46, 17, 3, 85, 76, 59, 27, 15, 45, 41, 67, 5, 34, 63, 98], [85, 13, 89, 14, 82, 61, 3, 3, 45, 96, 18, 32, 96, 44, 93, 37, 99, 27, 40, 24, 56, 36, 99, 6, 71, 78, 17, 61, 27, 44, 70, 3, 39], [35, 66, 83, 87, 17, 9, 9, 35, 9, 12, 67, 85, 57, 92, 97, 98, 43, 22, 60, 30, 31, 80, 99, 65, 73, 65, 87, 37, 82, 4, 10, 27, 2], [55, 68, 40, 97, 8, 15, 61, 7, 94, 24, 20, 55, 5, 7, 2, 74, 77, 21, 3, 53, 14, 53, 80, 63, 54, 72, 24, 78, 50, 6, 88, 93, 26], [34, 44, 69, 98, 98, 77, 67, 5, 86, 85, 91, 88, 39, 53, 8, 68, 36, 70, 95, 69, 6, 2, 1, 62, 29, 87, 18, 3, 80, 31, 22, 8, 22], [77, 29, 80, 10, 46, 34, 56, 59, 33, 78, 96, 23, 15, 25, 26, 12, 64, 19, 49, 19, 96, 74, 91, 23, 56, 63, 52, 64, 18, 99, 50, 13, 66], [36, 22, 84, 7, 12, 79, 93, 8, 23, 13, 97, 5, 83, 7, 68, 9, 19, 89, 65, 68, 82, 71, 83, 52, 87, 28, 93, 6, 44, 27, 46, 4, 87], [30, 45, 58, 62, 54, 24, 96, 75, 30, 90, 80, 57, 53, 70, 89, 84, 10, 1, 44, 59, 11, 76, 20, 76, 60, 44, 16, 79, 62, 90, 56, 75, 3], [2, 44, 83, 96, 87, 44, 24, 13, 1, 39, 5, 13, 8, 51, 49, 49, 48, 40, 30, 44, 92, 93, 53, 36, 84, 69, 71, 30, 38, 7, 75, 75, 84], [33, 79, 68, 51, 10, 38, 40, 3, 24, 2, 23, 51, 59, 42, 19, 8, 26, 82, 44, 48, 73, 36, 9, 97, 11, 41, 62, 88, 24, 32, 33, 81, 90], [45, 33, 2, 66, 78, 21, 87, 22, 65, 32, 29, 69, 36, 25, 22, 69, 52, 67, 24, 97, 92, 47, 85, 80, 11, 6, 51, 83, 61, 82, 44, 10, 76], [33, 64, 15, 76, 50, 5, 1, 38, 98, 12, 30, 11, 73, 44, 46, 71, 81, 52, 63, 26, 27, 97, 39, 5, 73, 87, 94, 36, 1, 52, 8, 1, 74], [7, 38, 59, 60, 67, 7, 8, 34, 40, 42, 96, 32, 69, 91, 13, 55, 12, 74, 1, 85, 7, 10, 81, 37, 48, 65, 42, 13, 23, 57, 92, 19, 32], [10, 82, 8, 16, 35, 58, 81, 48, 48, 23, 26, 55, 23, 50, 23, 54, 56, 45, 71, 12, 22, 17, 77, 48, 78, 71, 50, 83, 59, 39, 71, 60, 91], [17, 34, 75, 9, 39, 67, 23, 40, 4, 57, 16, 59, 85, 25, 5, 1, 96, 20, 11, 97, 32, 83, 39, 45, 57, 82, 36, 42, 88, 96, 9, 24, 79], [47, 46, 86, 98, 59, 10, 2, 42, 7, 1, 9, 42, 26, 79, 57, 22, 87, 3, 11, 56, 86, 62, 40, 78, 16, 98, 5, 53, 72, 66, 11, 45, 62], [87, 65, 74, 6, 67, 83, 29, 79, 87, 49, 8, 89, 88, 52, 12, 1, 4, 94, 98, 60, 43, 97, 44, 30, 40, 13, 30, 19, 20, 38, 63, 68, 23], [89, 11, 31, 76, 41, 98, 57, 30, 80, 96, 82, 8, 95, 36, 77, 82, 62, 35, 27, 6, 64, 74, 37, 47, 44, 71, 80, 66, 43, 57, 47, 89, 90], [90, 18, 20, 92, 67, 57, 1, 74, 95, 84, 56, 8, 48, 58, 64, 71, 57, 51, 99, 40, 84, 3, 63, 11, 58, 76, 46, 12, 8, 45, 86, 84, 15], [49, 31, 46, 94, 40, 31, 20, 2, 6, 78, 26, 97, 87, 89, 37, 92, 99, 71, 59, 66, 64, 17, 91, 48, 66, 12, 80, 32, 18, 62, 16, 5, 24], [49, 75, 64, 46, 42, 88, 78, 1, 90, 26, 68, 90, 4, 96, 16, 80, 40, 84, 81, 49, 84, 96, 42, 11, 62, 93, 55, 27, 85, 29, 32, 41, 12]],22,),
([[97, 17, 59, 40, 18, 53, 65, 84, 85, 42, 38, 32, 22, 61, 89, 32, 31, 99, 58, 77, 80, 56, 83, 41, 15, 46, 97, 59, 65, 51, 13, 24, 87, 93, 16, 49, 32, 16, 43, 88, 53, 21, 33, 59, 60], [27, 29, 33, 50, 32, 46, 28, 51, 26, 48, 58, 47, 63, 47, 70, 19, 79, 81, 98, 65, 19, 67, 81, 46, 78, 75, 80, 54, 94, 91, 82, 87, 49, 27, 56, 44, 75, 77, 44, 23, 90, 42, 64, 34, 99], [43, 84, 88, 96, 26, 2, 13, 3, 12, 27, 14, 74, 38, 76, 40, 75, 50, 66, 95, 62, 10, 6, 55, 42, 61, 22, 47, 19, 74, 47, 91, 92, 10, 45, 60, 17, 79, 43, 12, 84, 64, 80, 47, 84, 50], [27, 22, 91, 13, 59, 69, 81, 98, 22, 94, 67, 71, 15, 71, 3, 29, 6, 49, 91, 65, 54, 34, 58, 8, 89, 15, 38, 11, 73, 27, 77, 76, 11, 58, 35, 44, 57, 87, 21, 28, 7, 77, 95, 35, 81], [88, 86, 74, 80, 6, 12, 1, 16, 98, 63, 58, 91, 5, 83, 11, 37, 63, 75, 8, 53, 16, 95, 11, 65, 47, 81, 49, 25, 55, 26, 34, 2, 16, 31, 22, 86, 32, 70, 2, 71, 11, 10, 16, 51, 1], [35, 39, 74, 59, 99, 77, 78, 76, 44, 3, 38, 75, 98, 25, 87, 72, 64, 27, 50, 4, 62, 88, 60, 63, 13, 31, 64, 14, 84, 86, 76, 67, 96, 5, 96, 76, 92, 91, 87, 68, 69, 45, 9, 9, 93], [57, 81, 83, 66, 96, 54, 15, 2, 78, 96, 49, 90, 12, 90, 36, 76, 97, 90, 87, 13, 37, 40, 92, 34, 54, 83, 89, 99, 85, 70, 16, 24, 51, 16, 94, 28, 74, 17, 84, 48, 24, 80, 20, 55, 26], [29, 22, 20, 96, 29, 87, 57, 98, 76, 83, 17, 86, 10, 82, 69, 1, 90, 89, 77, 39, 46, 12, 20, 6, 18, 2, 73, 33, 54, 1, 75, 22, 68, 21, 29, 20, 69, 51, 27, 97, 18, 22, 41, 37, 18], [21, 6, 28, 2, 79, 11, 11, 26, 91, 43, 87, 56, 8, 63, 46, 59, 84, 98, 26, 65, 63, 88, 53, 41, 93, 11, 8, 30, 79, 82, 25, 64, 60, 11, 48, 51, 73, 32, 12, 42, 23, 88, 83, 74, 82], [15, 94, 47, 98, 42, 39, 13, 42, 23, 45, 22, 60, 27, 52, 69, 11, 40, 6, 67, 32, 74, 40, 20, 18, 98, 82, 2, 13, 56, 46, 62, 77, 47, 59, 90, 64, 12, 12, 12, 23, 18, 24, 47, 91, 70], [40, 45, 67, 62, 58, 95, 96, 92, 54, 9, 34, 60, 27, 27, 60, 25, 83, 78, 40, 83, 76, 95, 36, 25, 58, 61, 52, 6, 14, 7, 93, 90, 34, 36, 51, 75, 76, 81, 87, 31, 82, 53, 61, 26, 87], [50, 8, 23, 75, 95, 19, 22, 41, 81, 49, 57, 91, 31, 17, 17, 98, 99, 11, 84, 60, 4, 58, 3, 72, 36, 43, 83, 20, 5, 90, 86, 55, 26, 50, 74, 88, 52, 96, 61, 89, 15, 53, 34, 16, 47], [64, 74, 70, 61, 41, 85, 45, 2, 49, 19, 38, 87, 17, 6, 54, 48, 44, 59, 34, 15, 91, 22, 35, 83, 2, 44, 20, 45, 62, 61, 97, 81, 56, 56, 2, 12, 82, 23, 19, 54, 69, 21, 60, 20, 80], [6, 59, 90, 96, 99, 23, 54, 18, 42, 85, 48, 13, 28, 14, 94, 37, 99, 47, 53, 41, 40, 22, 35, 77, 9, 80, 77, 18, 53, 73, 8, 19, 80, 75, 43, 92, 32, 19, 7, 24, 23, 7, 40, 79, 23], [79, 72, 73, 91, 22, 22, 20, 21, 14, 85, 22, 33, 78, 13, 86, 90, 85, 15, 75, 12, 6, 32, 24, 17, 98, 88, 25, 60, 63, 86, 23, 86, 84, 45, 76, 81, 53, 27, 65, 45, 56, 1, 37, 78, 43], [90, 67, 47, 22, 16, 72, 11, 25, 17, 50, 89, 84, 15, 7, 22, 32, 89, 15, 10, 5, 81, 6, 3, 31, 43, 72, 33, 23, 43, 12, 10, 33, 13, 48, 6, 24, 27, 92, 63, 99, 24, 55, 10, 20, 22], [45, 52, 19, 18, 80, 74, 48, 70, 47, 13, 8, 88, 84, 89, 5, 68, 90, 35, 15, 35, 75, 33, 40, 68, 60, 21, 67, 96, 35, 1, 18, 6, 19, 31, 48, 60, 56, 49, 8, 70, 87, 68, 12, 15, 51], [68, 10, 30, 46, 76, 42, 39, 8, 59, 61, 70, 81, 87, 50, 7, 97, 53, 7, 96, 93, 30, 77, 54, 38, 82, 30, 85, 30, 18, 62, 98, 29, 49, 45, 51, 20, 31, 47, 83, 13, 77, 45, 70, 57, 87], [28, 1, 55, 6, 63, 56, 56, 97, 48, 21, 77, 81, 95, 80, 48, 64, 45, 45, 17, 72, 42, 89, 64, 95, 92, 52, 40, 64, 8, 51, 66, 73, 50, 20, 68, 99, 60, 54, 64, 43, 32, 9, 30, 49, 1], [49, 96, 37, 62, 18, 86, 55, 83, 16, 85, 49, 64, 57, 39, 68, 15, 12, 80, 64, 93, 89, 77, 20, 34, 19, 75, 93, 92, 19, 82, 49, 29, 20, 28, 8, 40, 46, 56, 99, 69, 41, 89, 84, 71, 28], [25, 56, 58, 92, 77, 94, 72, 67, 80, 80, 87, 10, 6, 83, 38, 90, 18, 91, 20, 6, 81, 30, 16, 25, 51, 16, 70, 37, 64, 71, 60, 96, 55, 52, 56, 17, 27, 3, 92, 98, 29, 4, 27, 84, 76], [99, 74, 14, 56, 22, 24, 90, 11, 84, 72, 29, 73, 38, 70, 92, 90, 9, 45, 26, 89, 52, 6, 21, 60, 59, 21, 91, 11, 20, 17, 98, 51, 64, 55, 86, 16, 85, 77, 98, 54, 54, 56, 7, 96, 13], [96, 83, 88, 44, 40, 69, 28, 81, 40, 94, 62, 59, 50, 11, 15, 60, 10, 20, 30, 35, 99, 96, 59, 51, 58, 12, 46, 7, 64, 18, 28, 11, 98, 35, 76, 76, 15, 54, 40, 19, 40, 53, 10, 72, 22], [21, 20, 69, 1, 27, 36, 33, 90, 63, 14, 86, 32, 11, 93, 93, 74, 65, 49, 84, 94, 34, 61, 56, 95, 39, 50, 30, 14, 35, 25, 53, 56, 29, 40, 65, 53, 99, 64, 21, 81, 14, 10, 74, 1, 12], [79, 15, 42, 97, 70, 30, 28, 31, 17, 97, 85, 50, 51, 87, 67, 49, 92, 28, 81, 14, 80, 89, 3, 69, 70, 95, 68, 67, 60, 68, 99, 44, 74, 55, 69, 78, 34, 2, 79, 34, 4, 12, 13, 73, 4], [31, 44, 56, 6, 71, 62, 82, 94, 22, 78, 12, 48, 46, 72, 25, 42, 75, 55, 25, 80, 81, 54, 92, 68, 98, 26, 6, 52, 85, 64, 58, 57, 72, 68, 75, 34, 2, 83, 39, 67, 73, 95, 76, 12, 73], [39, 32, 69, 72, 32, 22, 88, 51, 91, 41, 50, 17, 45, 59, 44, 32, 48, 30, 28, 83, 18, 20, 74, 11, 60, 34, 39, 38, 17, 49, 87, 71, 6, 56, 24, 60, 72, 4, 81, 66, 22, 51, 51, 16, 85], [40, 8, 71, 64, 71, 4, 25, 59, 70, 82, 79, 85, 16, 55, 24, 11, 71, 42, 3, 41, 22, 26, 4, 16, 63, 17, 19, 79, 7, 66, 55, 45, 87, 72, 1, 17, 39, 8, 57, 85, 50, 55, 26, 95, 53], [33, 30, 94, 36, 21, 41, 37, 21, 29, 8, 52, 39, 69, 14, 85, 38, 15, 30, 71, 27, 72, 35, 41, 53, 61, 95, 45, 30, 91, 1, 33, 78, 7, 62, 22, 51, 69, 85, 55, 31, 54, 27, 44, 79, 87], [60, 53, 17, 94, 36, 66, 2, 97, 20, 10, 69, 58, 81, 47, 63, 39, 62, 82, 60, 73, 74, 32, 63, 39, 18, 24, 2, 16, 79, 51, 84, 54, 56, 62, 71, 82, 89, 77, 60, 75, 72, 91, 20, 64, 98], [68, 79, 77, 49, 86, 26, 52, 61, 9, 5, 30, 4, 31, 14, 25, 28, 15, 67, 95, 77, 9, 66, 23, 48, 33, 28, 63, 8, 36, 2, 24, 22, 79, 24, 69, 91, 97, 53, 85, 81, 58, 35, 55, 26, 46], [25, 85, 11, 24, 78, 24, 73, 2, 6, 25, 81, 3, 5, 32, 48, 55, 93, 36, 36, 25, 56, 28, 35, 13, 79, 60, 27, 75, 6, 56, 27, 42, 94, 97, 38, 55, 19, 86, 13, 68, 6, 29, 94, 89, 61], [15, 12, 21, 82, 25, 38, 69, 76, 49, 29, 62, 42, 22, 95, 48, 28, 23, 53, 16, 60, 40, 97, 39, 68, 6, 47, 11, 10, 31, 71, 14, 59, 6, 58, 18, 33, 30, 84, 92, 1, 57, 81, 59, 26, 53], [18, 24, 18, 39, 79, 36, 90, 32, 84, 70, 91, 72, 39, 86, 37, 38, 71, 73, 34, 98, 28, 63, 73, 30, 41, 95, 8, 8, 78, 9, 98, 25, 9, 64, 3, 96, 27, 74, 66, 82, 59, 40, 24, 23, 41], [53, 49, 66, 61, 64, 34, 27, 64, 60, 35, 53, 72, 71, 58, 13, 76, 77, 53, 17, 57, 60, 15, 78, 19, 35, 18, 17, 84, 25, 37, 23, 23, 75, 46, 84, 7, 87, 62, 23, 91, 85, 21, 58, 96, 50], [28, 66, 93, 9, 35, 61, 68, 86, 23, 6, 84, 69, 12, 59, 65, 39, 41, 3, 42, 43, 85, 66, 96, 29, 47, 92, 97, 26, 15, 45, 90, 73, 61, 85, 20, 49, 27, 65, 9, 58, 51, 38, 84, 19, 44], [11, 78, 89, 76, 45, 7, 3, 80, 62, 1, 15, 44, 11, 1, 3, 22, 43, 6, 22, 50, 28, 78, 96, 29, 5, 35, 11, 1, 7, 3, 86, 31, 3, 17, 18, 79, 99, 80, 94, 99, 17, 79, 42, 27, 65], [30, 30, 69, 65, 4, 11, 58, 13, 10, 88, 84, 18, 87, 42, 99, 44, 62, 91, 79, 24, 30, 65, 41, 67, 24, 32, 63, 4, 98, 1, 21, 8, 46, 12, 1, 22, 78, 89, 28, 72, 64, 40, 89, 55, 87], [60, 41, 80, 59, 68, 36, 33, 94, 45, 75, 50, 47, 77, 44, 68, 88, 33, 97, 76, 21, 97, 46, 97, 73, 31, 62, 94, 16, 12, 54, 9, 35, 53, 43, 70, 89, 56, 64, 28, 87, 29, 86, 58, 24, 20], [27, 97, 19, 90, 38, 60, 3, 23, 59, 91, 91, 74, 24, 56, 52, 41, 66, 98, 22, 66, 28, 88, 38, 86, 67, 58, 37, 2, 57, 87, 77, 79, 97, 45, 53, 77, 84, 7, 77, 39, 68, 63, 46, 91, 96], [2, 15, 5, 3, 16, 49, 90, 6, 35, 38, 84, 86, 64, 85, 32, 1, 48, 23, 18, 17, 31, 93, 54, 77, 60, 66, 73, 96, 86, 18, 18, 83, 63, 31, 29, 88, 97, 83, 80, 51, 32, 21, 30, 7, 38], [12, 59, 92, 14, 71, 17, 23, 77, 20, 5, 6, 13, 3, 53, 31, 3, 8, 71, 50, 71, 75, 88, 59, 21, 20, 93, 74, 49, 80, 74, 38, 33, 69, 59, 12, 8, 70, 87, 48, 67, 38, 93, 34, 4, 7], [85, 74, 96, 89, 77, 85, 83, 59, 8, 61, 50, 84, 8, 16, 48, 62, 56, 28, 74, 21, 44, 79, 70, 41, 35, 56, 85, 17, 26, 63, 74, 34, 71, 32, 4, 10, 79, 56, 35, 33, 25, 47, 11, 34, 36], [17, 12, 80, 97, 26, 74, 13, 82, 85, 87, 87, 36, 69, 45, 79, 88, 12, 83, 97, 89, 38, 77, 88, 67, 76, 66, 20, 40, 34, 22, 15, 97, 66, 35, 98, 91, 31, 77, 53, 94, 90, 88, 57, 65, 38], [38, 86, 10, 46, 27, 42, 2, 58, 19, 62, 11, 14, 57, 33, 44, 18, 29, 30, 3, 32, 15, 49, 87, 60, 98, 46, 80, 50, 6, 80, 20, 49, 28, 26, 56, 48, 6, 53, 59, 80, 33, 12, 78, 39, 2]],34,),
([[19, 98, 9, 31, 79, 4, 63, 46, 32, 81, 5, 39, 97, 92, 13, 68, 28, 13, 92, 57, 99, 24, 9, 7, 22, 3, 72, 4, 42, 2, 53, 46, 6, 57, 86, 3, 17, 74, 88, 60, 39, 28, 45, 94], [92, 4, 82, 39, 3, 65, 97, 16, 46, 94, 40, 55, 97, 36, 60, 95, 36, 36, 47, 48, 10, 22, 28, 36, 32, 13, 34, 63, 65, 80, 91, 22, 31, 48, 93, 22, 71, 55, 40, 4, 78, 43, 81, 65], [2, 82, 3, 56, 85, 77, 49, 27, 60, 67, 69, 37, 48, 66, 94, 70, 27, 77, 5, 52, 58, 25, 91, 62, 16, 48, 71, 52, 67, 15, 81, 67, 61, 66, 69, 24, 95, 44, 71, 25, 20, 89, 66, 66], [10, 50, 70, 11, 93, 30, 85, 27, 42, 36, 45, 97, 27, 56, 37, 70, 39, 8, 76, 47, 67, 54, 9, 43, 12, 40, 3, 97, 77, 12, 37, 7, 70, 41, 4, 87, 4, 67, 38, 27, 11, 93, 93, 37], [58, 8, 32, 78, 84, 88, 93, 60, 65, 10, 19, 39, 45, 48, 18, 71, 88, 86, 16, 6, 71, 82, 99, 49, 88, 80, 19, 83, 65, 22, 31, 14, 30, 95, 51, 32, 43, 17, 92, 98, 62, 17, 61, 6], [93, 9, 31, 30, 59, 73, 10, 64, 33, 3, 93, 53, 41, 78, 15, 10, 80, 97, 92, 39, 24, 79, 13, 83, 11, 13, 40, 59, 96, 54, 61, 90, 59, 80, 17, 13, 13, 15, 11, 1, 35, 82, 44, 58], [1, 86, 52, 66, 94, 53, 82, 65, 3, 74, 48, 15, 67, 77, 62, 88, 30, 43, 32, 99, 35, 55, 15, 34, 98, 82, 99, 23, 32, 50, 50, 83, 93, 40, 44, 12, 68, 22, 43, 79, 85, 42, 99, 19], [72, 79, 4, 25, 51, 60, 37, 26, 73, 44, 55, 50, 31, 70, 25, 60, 6, 19, 5, 69, 59, 54, 5, 49, 20, 54, 77, 73, 78, 13, 97, 48, 87, 94, 63, 82, 82, 43, 78, 12, 39, 91, 57, 93], [71, 79, 83, 9, 84, 62, 22, 36, 96, 3, 82, 16, 3, 76, 88, 58, 75, 23, 33, 68, 61, 14, 38, 73, 98, 53, 61, 33, 83, 67, 56, 61, 38, 27, 40, 6, 96, 48, 18, 32, 84, 36, 79, 23], [14, 85, 46, 3, 7, 17, 68, 58, 50, 99, 70, 96, 99, 46, 59, 22, 72, 91, 28, 2, 59, 54, 66, 63, 27, 7, 12, 8, 9, 86, 18, 92, 38, 34, 70, 95, 15, 61, 68, 5, 87, 77, 61, 27], [45, 58, 95, 19, 30, 63, 94, 5, 62, 75, 74, 41, 65, 79, 85, 86, 96, 26, 77, 69, 78, 54, 55, 68, 8, 9, 95, 3, 27, 9, 93, 98, 29, 74, 77, 65, 40, 78, 96, 80, 56, 26, 33, 95], [72, 25, 97, 94, 1, 1, 27, 68, 37, 24, 44, 88, 6, 39, 65, 93, 88, 77, 92, 15, 64, 31, 86, 76, 17, 26, 77, 53, 41, 45, 81, 26, 51, 92, 38, 50, 42, 42, 32, 85, 9, 80, 5, 38], [9, 70, 79, 82, 69, 41, 74, 80, 27, 40, 53, 23, 92, 75, 4, 68, 80, 28, 29, 58, 17, 70, 18, 13, 64, 60, 61, 35, 89, 55, 35, 42, 11, 76, 54, 38, 32, 78, 25, 97, 98, 59, 70, 57], [41, 4, 7, 99, 19, 31, 20, 21, 25, 12, 98, 17, 96, 1, 79, 65, 63, 25, 71, 34, 44, 70, 1, 79, 77, 21, 77, 40, 17, 17, 76, 34, 39, 75, 14, 79, 87, 4, 33, 25, 41, 86, 32, 1], [63, 88, 53, 7, 43, 37, 70, 15, 34, 63, 65, 72, 35, 76, 46, 24, 1, 77, 79, 34, 37, 13, 16, 36, 70, 98, 76, 54, 44, 38, 47, 49, 36, 64, 63, 24, 68, 89, 11, 46, 3, 7, 54, 11], [65, 41, 55, 59, 26, 54, 14, 47, 16, 12, 93, 59, 32, 10, 93, 83, 55, 73, 89, 19, 39, 9, 17, 91, 8, 87, 55, 77, 41, 8, 13, 77, 55, 81, 20, 69, 25, 16, 43, 82, 59, 73, 35, 10], [99, 19, 13, 89, 69, 81, 34, 43, 87, 67, 10, 32, 97, 71, 13, 38, 11, 15, 87, 83, 8, 49, 88, 66, 30, 44, 54, 97, 83, 31, 24, 86, 39, 93, 34, 61, 4, 50, 53, 81, 28, 38, 4, 16], [42, 43, 64, 31, 79, 9, 68, 83, 34, 88, 11, 35, 28, 92, 11, 38, 98, 15, 61, 8, 65, 24, 50, 10, 17, 78, 1, 11, 41, 3, 17, 64, 75, 88, 33, 32, 25, 91, 47, 43, 81, 81, 57, 40], [68, 82, 75, 41, 40, 76, 37, 74, 15, 58, 58, 11, 98, 99, 8, 31, 15, 93, 79, 64, 31, 7, 94, 89, 79, 77, 74, 19, 49, 15, 3, 18, 22, 96, 95, 74, 45, 21, 34, 93, 74, 28, 54, 10], [32, 78, 32, 52, 30, 56, 72, 19, 22, 88, 28, 41, 43, 69, 73, 72, 59, 56, 82, 40, 77, 70, 16, 18, 42, 81, 2, 82, 64, 11, 55, 2, 2, 57, 18, 86, 16, 27, 17, 54, 17, 6, 97, 13], [6, 90, 83, 19, 61, 90, 86, 11, 86, 96, 7, 86, 6, 15, 38, 41, 56, 18, 35, 98, 45, 29, 69, 88, 32, 94, 5, 44, 98, 50, 82, 21, 22, 61, 39, 85, 99, 5, 33, 71, 24, 39, 72, 15], [70, 5, 87, 48, 20, 76, 21, 86, 89, 12, 66, 30, 7, 58, 18, 60, 18, 92, 48, 34, 72, 83, 6, 45, 60, 71, 84, 24, 93, 92, 69, 17, 62, 33, 62, 6, 3, 74, 54, 11, 87, 46, 4, 7], [26, 97, 35, 28, 41, 50, 99, 39, 80, 10, 71, 7, 25, 69, 90, 30, 11, 71, 39, 26, 57, 55, 22, 12, 64, 86, 66, 60, 62, 52, 62, 76, 65, 15, 40, 7, 55, 37, 86, 97, 33, 29, 19, 69], [14, 9, 5, 35, 85, 28, 45, 2, 6, 31, 32, 75, 59, 14, 74, 59, 1, 55, 31, 59, 8, 66, 99, 95, 12, 31, 99, 96, 81, 57, 8, 19, 53, 11, 57, 69, 59, 28, 2, 11, 64, 18, 47, 53], [5, 19, 5, 40, 83, 76, 92, 48, 99, 23, 55, 34, 87, 97, 58, 77, 98, 93, 30, 61, 82, 56, 99, 5, 4, 69, 39, 79, 73, 50, 72, 74, 22, 88, 24, 73, 22, 34, 48, 76, 81, 4, 57, 63], [30, 65, 97, 91, 78, 4, 35, 33, 51, 12, 68, 98, 78, 2, 91, 95, 33, 91, 45, 56, 28, 98, 30, 34, 1, 52, 13, 82, 40, 65, 9, 70, 72, 72, 88, 49, 25, 26, 26, 40, 34, 8, 2, 82], [16, 92, 72, 63, 18, 39, 42, 83, 32, 62, 32, 85, 93, 69, 84, 22, 27, 1, 13, 97, 6, 13, 78, 72, 67, 37, 76, 8, 93, 20, 62, 23, 68, 25, 32, 58, 25, 69, 10, 64, 31, 4, 57, 71], [34, 21, 83, 7, 98, 58, 33, 42, 53, 85, 55, 50, 38, 81, 46, 81, 15, 8, 49, 53, 37, 83, 93, 38, 97, 28, 61, 97, 7, 99, 72, 7, 59, 21, 25, 67, 32, 48, 55, 75, 85, 96, 66, 23], [45, 10, 78, 55, 60, 9, 83, 3, 32, 54, 87, 83, 76, 23, 14, 36, 48, 67, 10, 86, 68, 79, 52, 99, 49, 44, 5, 92, 91, 15, 94, 8, 55, 20, 77, 6, 1, 46, 42, 82, 70, 49, 90, 34], [57, 17, 89, 63, 61, 59, 92, 79, 4, 91, 33, 20, 21, 41, 74, 44, 32, 64, 37, 61, 26, 22, 40, 59, 50, 77, 96, 73, 39, 16, 98, 74, 88, 10, 45, 90, 34, 63, 68, 93, 86, 89, 11, 84], [88, 95, 25, 69, 31, 57, 87, 53, 81, 66, 56, 66, 91, 22, 81, 53, 57, 33, 5, 13, 17, 43, 84, 84, 92, 12, 84, 71, 56, 69, 29, 25, 11, 41, 11, 96, 38, 82, 62, 79, 81, 24, 44, 19], [37, 5, 4, 1, 94, 17, 43, 50, 30, 64, 82, 36, 1, 69, 82, 29, 81, 85, 66, 36, 62, 20, 83, 54, 82, 13, 47, 75, 97, 28, 55, 43, 44, 21, 94, 53, 47, 96, 87, 25, 96, 41, 31, 13], [6, 1, 8, 56, 62, 87, 69, 93, 22, 64, 69, 17, 18, 45, 54, 39, 65, 95, 88, 54, 16, 69, 32, 26, 35, 53, 43, 41, 24, 44, 79, 23, 75, 94, 45, 94, 55, 70, 69, 64, 14, 30, 4, 6], [39, 18, 51, 56, 89, 57, 59, 61, 17, 97, 38, 76, 81, 89, 37, 17, 91, 31, 14, 53, 36, 86, 5, 40, 70, 69, 88, 22, 14, 25, 84, 65, 49, 35, 52, 92, 29, 58, 72, 82, 31, 21, 6, 9], [30, 18, 30, 84, 60, 55, 10, 13, 41, 2, 5, 33, 65, 37, 61, 58, 12, 41, 28, 82, 36, 94, 42, 54, 54, 38, 85, 71, 69, 58, 99, 79, 9, 48, 18, 12, 27, 78, 77, 94, 36, 49, 9, 34], [76, 50, 89, 50, 22, 5, 15, 18, 77, 15, 89, 98, 66, 21, 87, 81, 61, 4, 48, 1, 7, 61, 53, 95, 35, 21, 60, 76, 5, 3, 59, 76, 10, 46, 50, 62, 59, 94, 17, 56, 44, 19, 18, 26], [28, 49, 32, 20, 85, 46, 58, 16, 76, 1, 46, 32, 14, 14, 83, 65, 25, 42, 13, 53, 68, 60, 84, 68, 41, 6, 26, 91, 22, 29, 40, 66, 36, 87, 19, 16, 88, 34, 63, 25, 75, 69, 84, 14], [21, 90, 44, 52, 79, 85, 80, 75, 48, 78, 85, 62, 80, 2, 42, 66, 28, 5, 8, 73, 81, 83, 42, 26, 95, 98, 93, 74, 58, 11, 97, 95, 22, 54, 93, 41, 85, 40, 12, 16, 43, 26, 94, 87], [97, 88, 6, 98, 19, 23, 25, 93, 16, 2, 93, 58, 97, 18, 44, 54, 9, 2, 55, 5, 20, 4, 5, 17, 5, 50, 72, 96, 25, 25, 89, 42, 31, 92, 47, 79, 51, 55, 60, 27, 39, 78, 13, 96], [35, 48, 14, 36, 53, 39, 5, 72, 10, 2, 95, 39, 25, 34, 79, 56, 81, 22, 33, 70, 58, 82, 30, 63, 67, 95, 12, 10, 62, 63, 36, 56, 6, 31, 33, 74, 63, 38, 26, 16, 24, 24, 73, 25], [23, 54, 67, 32, 74, 47, 35, 86, 14, 25, 59, 54, 79, 94, 95, 78, 8, 8, 95, 3, 97, 12, 32, 96, 21, 74, 41, 42, 57, 90, 77, 62, 73, 97, 95, 56, 12, 56, 58, 23, 89, 93, 33, 18], [41, 12, 62, 58, 4, 13, 31, 22, 39, 58, 30, 34, 95, 6, 90, 49, 45, 77, 93, 50, 26, 39, 86, 52, 4, 35, 5, 28, 21, 73, 10, 55, 33, 40, 5, 73, 81, 33, 81, 70, 91, 91, 78, 5], [81, 4, 71, 37, 78, 13, 29, 98, 98, 39, 48, 89, 35, 62, 20, 95, 59, 44, 54, 89, 58, 93, 52, 50, 46, 98, 10, 19, 11, 40, 40, 36, 87, 55, 44, 89, 44, 45, 85, 63, 91, 2, 6, 99], [73, 20, 55, 97, 47, 93, 27, 1, 13, 67, 65, 84, 58, 90, 76, 70, 50, 9, 55, 36, 20, 10, 10, 31, 84, 89, 45, 31, 9, 88, 4, 45, 24, 78, 72, 91, 53, 94, 78, 40, 58, 82, 77, 29]],37,),
([[91, 36, 24, 57], [88, 3, 45, 19], [49, 9, 86, 22], [55, 16, 72, 81]],3,),
([[27, 35, 35, 78, 52, 41, 22, 22, 75, 96, 91, 20, 46, 34, 83, 62, 10, 13, 92, 8, 86, 54, 92, 16, 17, 40, 49, 62, 19, 49, 38, 82, 62, 37, 93, 15, 85], [61, 56, 7, 36, 86, 37, 70, 40, 78, 17, 1, 44, 66, 42, 45, 46, 55, 21, 5, 84, 41, 86, 40, 87, 65, 13, 88, 89, 92, 68, 23, 4, 40, 61, 58, 98, 84], [17, 30, 92, 24, 95, 96, 38, 59, 63, 93, 64, 71, 52, 54, 15, 56, 70, 54, 81, 97, 61, 44, 1, 63, 59, 3, 13, 11, 61, 12, 82, 80, 33, 41, 4, 88, 47], [46, 54, 71, 9, 83, 93, 70, 36, 58, 86, 86, 38, 43, 67, 25, 78, 5, 18, 28, 30, 70, 95, 18, 25, 34, 72, 92, 71, 63, 98, 25, 65, 59, 66, 98, 96, 63], [12, 44, 54, 26, 54, 86, 31, 97, 22, 48, 8, 80, 28, 78, 68, 24, 83, 25, 47, 17, 66, 91, 8, 62, 37, 5, 46, 4, 59, 70, 29, 8, 48, 74, 99, 61, 53], [74, 64, 16, 76, 25, 79, 64, 78, 60, 70, 67, 27, 17, 89, 35, 69, 62, 94, 82, 84, 27, 44, 81, 63, 98, 56, 8, 57, 76, 61, 99, 3, 47, 14, 45, 79, 39], [67, 24, 62, 2, 69, 68, 2, 62, 11, 17, 12, 83, 77, 83, 84, 21, 56, 31, 31, 69, 40, 2, 11, 52, 24, 48, 62, 95, 2, 90, 17, 60, 55, 49, 75, 55, 42], [77, 90, 94, 20, 72, 64, 84, 75, 28, 75, 73, 36, 27, 6, 28, 13, 87, 47, 11, 85, 39, 24, 75, 45, 90, 48, 42, 84, 59, 29, 68, 82, 46, 58, 12, 32, 95], [8, 89, 11, 26, 41, 60, 19, 48, 17, 63, 10, 34, 93, 51, 45, 28, 18, 96, 36, 5, 82, 80, 3, 6, 97, 60, 80, 44, 66, 66, 69, 92, 52, 1, 5, 68, 93], [66, 79, 5, 59, 95, 26, 14, 41, 75, 83, 74, 52, 42, 81, 82, 60, 89, 15, 47, 33, 95, 37, 47, 36, 70, 46, 52, 72, 75, 26, 29, 2, 24, 18, 33, 85, 86], [33, 32, 33, 40, 62, 14, 45, 26, 27, 10, 71, 81, 43, 68, 97, 16, 24, 21, 93, 50, 79, 62, 92, 52, 18, 8, 9, 59, 44, 70, 98, 67, 18, 83, 73, 13, 40], [69, 47, 24, 37, 44, 46, 44, 75, 60, 74, 3, 17, 51, 5, 35, 82, 91, 90, 57, 31, 77, 60, 80, 50, 22, 80, 72, 32, 18, 33, 64, 45, 38, 30, 64, 42, 13], [77, 68, 42, 6, 79, 27, 96, 53, 7, 31, 88, 66, 72, 71, 65, 8, 53, 68, 30, 83, 61, 37, 84, 45, 53, 13, 32, 62, 2, 77, 8, 96, 48, 14, 85, 33, 36], [85, 59, 70, 69, 48, 30, 28, 41, 76, 58, 41, 11, 6, 20, 91, 29, 73, 48, 71, 85, 82, 15, 2, 97, 75, 53, 55, 70, 13, 44, 58, 17, 41, 25, 69, 14, 29], [52, 30, 12, 91, 95, 93, 91, 69, 9, 26, 27, 15, 79, 98, 14, 2, 46, 70, 80, 73, 80, 44, 86, 19, 72, 44, 45, 85, 67, 79, 66, 22, 17, 58, 80, 47, 14], [41, 69, 55, 21, 80, 31, 32, 80, 9, 37, 9, 21, 56, 8, 24, 80, 95, 20, 5, 50, 2, 67, 58, 96, 89, 99, 30, 15, 93, 2, 70, 93, 22, 70, 93, 62, 81], [96, 82, 25, 18, 46, 75, 69, 63, 54, 27, 44, 62, 70, 75, 29, 96, 4, 69, 60, 82, 72, 23, 38, 62, 12, 85, 22, 96, 58, 92, 61, 18, 67, 94, 77, 65, 35], [39, 26, 17, 50, 32, 22, 39, 89, 32, 88, 59, 8, 44, 30, 77, 23, 64, 77, 30, 70, 94, 98, 17, 88, 73, 54, 19, 31, 25, 97, 38, 55, 50, 37, 35, 96, 60], [86, 67, 75, 88, 98, 30, 15, 75, 84, 88, 74, 39, 99, 42, 95, 27, 5, 76, 98, 75, 29, 62, 91, 56, 43, 80, 79, 13, 97, 5, 94, 50, 49, 90, 73, 69, 99], [55, 59, 1, 67, 9, 26, 66, 92, 20, 90, 14, 2, 21, 59, 19, 46, 15, 32, 36, 78, 35, 9, 98, 95, 25, 41, 44, 74, 98, 49, 55, 15, 66, 62, 26, 42, 35], [45, 32, 62, 64, 52, 96, 43, 92, 55, 44, 91, 79, 59, 54, 88, 85, 1, 85, 87, 22, 50, 31, 50, 29, 39, 1, 65, 50, 18, 49, 75, 37, 70, 76, 35, 72, 43], [65, 43, 66, 35, 34, 42, 80, 8, 6, 40, 68, 23, 63, 14, 89, 58, 36, 34, 76, 21, 45, 58, 15, 45, 17, 50, 88, 55, 92, 31, 31, 85, 97, 10, 66, 53, 11], [56, 79, 89, 34, 87, 43, 92, 68, 3, 14, 29, 85, 17, 70, 45, 53, 50, 48, 69, 65, 74, 5, 28, 96, 71, 42, 60, 2, 22, 92, 97, 95, 98, 10, 28, 88, 78], [36, 61, 2, 51, 34, 35, 43, 11, 32, 38, 47, 81, 85, 95, 5, 64, 86, 53, 29, 1, 30, 26, 86, 10, 13, 25, 15, 1, 75, 44, 35, 13, 19, 48, 12, 73, 84], [82, 64, 25, 6, 5, 38, 12, 55, 66, 67, 26, 51, 31, 6, 30, 96, 82, 39, 9, 99, 73, 63, 70, 99, 4, 30, 45, 26, 74, 70, 31, 26, 71, 8, 61, 85, 38], [48, 62, 97, 16, 3, 62, 56, 67, 99, 87, 12, 88, 55, 13, 15, 7, 24, 13, 19, 67, 5, 50, 74, 64, 48, 49, 84, 80, 63, 7, 98, 34, 79, 5, 57, 74, 42], [72, 85, 45, 71, 40, 9, 64, 93, 60, 20, 17, 39, 63, 22, 71, 45, 28, 6, 81, 66, 61, 8, 7, 80, 66, 22, 43, 49, 71, 26, 98, 54, 39, 12, 41, 99, 2], [52, 93, 84, 53, 55, 19, 26, 37, 13, 87, 25, 58, 47, 23, 3, 51, 78, 79, 35, 78, 17, 6, 58, 84, 48, 10, 14, 27, 68, 83, 52, 51, 45, 66, 57, 27, 47], [88, 42, 63, 58, 68, 66, 46, 22, 85, 54, 78, 84, 98, 84, 33, 73, 42, 38, 77, 13, 55, 69, 97, 58, 49, 50, 46, 1, 91, 39, 6, 52, 68, 73, 63, 90, 2], [61, 24, 64, 5, 65, 50, 55, 35, 71, 4, 50, 85, 73, 90, 58, 1, 20, 75, 32, 13, 28, 10, 2, 5, 71, 97, 71, 66, 14, 85, 18, 14, 13, 83, 21, 30, 35], [96, 51, 55, 58, 82, 71, 12, 74, 38, 3, 46, 73, 57, 71, 26, 46, 48, 18, 63, 44, 57, 59, 82, 62, 46, 18, 85, 15, 6, 60, 59, 82, 23, 32, 35, 55, 35], [2, 24, 90, 62, 90, 44, 4, 22, 51, 16, 56, 30, 66, 37, 18, 19, 94, 9, 31, 82, 69, 74, 86, 49, 40, 80, 23, 94, 60, 10, 75, 92, 30, 25, 27, 72, 74], [98, 93, 17, 27, 23, 91, 74, 80, 70, 1, 89, 49, 17, 33, 32, 14, 4, 96, 62, 17, 89, 14, 6, 11, 28, 9, 72, 30, 60, 44, 38, 80, 64, 84, 74, 62, 53], [99, 7, 63, 10, 21, 94, 70, 34, 12, 75, 55, 68, 87, 33, 33, 14, 2, 3, 52, 18, 35, 68, 8, 71, 37, 44, 26, 11, 57, 81, 69, 77, 20, 99, 82, 14, 77], [86, 13, 54, 5, 89, 15, 79, 15, 86, 36, 85, 17, 13, 59, 94, 16, 60, 16, 50, 99, 49, 2, 8, 91, 69, 92, 58, 52, 5, 23, 42, 74, 26, 71, 82, 83, 2], [89, 44, 88, 67, 64, 70, 91, 85, 18, 33, 46, 80, 57, 85, 66, 51, 45, 2, 39, 3, 80, 28, 28, 97, 31, 44, 20, 11, 11, 39, 6, 64, 63, 60, 63, 31, 38], [99, 18, 9, 42, 28, 67, 23, 10, 5, 2, 25, 60, 87, 67, 53, 17, 41, 33, 92, 5, 87, 73, 70, 6, 73, 81, 13, 3, 73, 14, 67, 36, 84, 46, 82, 1, 20]],36,)
]
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_TO_CHECK_IF_A_MATRIX_IS_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 ( arr , N , K ) :
arr.sort ( )
dp = [ 0 ] * N
dp [ 0 ] = 0
for i in range ( 1 , N ) :
dp [ i ] = dp [ i - 1 ]
if ( arr [ i ] - arr [ i - 1 ] < K ) :
if ( i >= 2 ) :
dp [ i ] = max ( dp [ i ] , dp [ i - 2 ] + arr [ i ] + arr [ i - 1 ] ) ;
else :
dp [ i ] = max ( dp [ i ] , arr [ i ] + arr [ i - 1 ] ) ;
return dp [ N - 1 ]
#TOFILL
if __name__ == '__main__':
param = [
([48, 53, 67, 78, 78, 93, 95],6,4,),
([-2, 52, 18, 70, 32, 88, -70, -32, 72, 30],8,8,),
([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],37,31,),
([98, 84, 13, 61, 58, 90, 45, 89, 45, 80, 3, 5, 57, 86, 40, 80, 60, 51, 60, 73, 67, 10, 52, 56, 60, 36, 34, 60, 75, 63, 23, 86, 51, 68, 86, 13, 71, 86, 99, 6, 42, 2, 39, 82, 16, 5, 23, 47, 12],31,37,),
([-84, -56, 68, 78],3,3,),
([0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0],14,9,),
([1, 2, 3, 9, 12, 12, 16, 17, 18, 19, 20, 21, 21, 26, 29, 42, 44, 45, 48, 48, 48, 54, 54, 55, 60, 63, 63, 64, 64, 67, 67, 68, 69, 74, 78, 78, 79, 83, 95, 95, 95, 96, 97, 99],27,42,),
([40, -48, -14, 64, -58, 60, -42, -56, 54, 28, -16, -92, 42],9,8,),
([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],21,19,),
([64, 25, 96],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/MAXIMUM_SUM_PAIRS_SPECIFIC_DIFFERENCE.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 ) :
ans = 0
for length in range ( 1 , int ( math.sqrt ( n ) ) + 1 ) :
height = length
while ( height * length <= n ) :
ans += 1
height += 1
return ans
#TOFILL
if __name__ == '__main__':
param = [
(34,),
(49,),
(41,),
(17,),
(67,),
(38,),
(59,),
(64,),
(61,),
(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/NUMBER_UNIQUE_RECTANGLES_FORMED_USING_N_UNIT_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 ) :
a = [ 0 ] * n
b = [ 0 ] * n
a [ 0 ] = b [ 0 ] = 1
for i in range ( 1 , n ) :
a [ i ] = a [ i - 1 ] + b [ i - 1 ]
b [ i ] = a [ i - 1 ]
return ( 1 << n ) - a [ n - 1 ] - b [ n - 1 ]
#TOFILL
if __name__ == '__main__':
param = [
(27,),
(72,),
(13,),
(83,),
(75,),
(33,),
(57,),
(51,),
(10,),
(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/COUNT_STRINGS_WITH_CONSECUTIVE_1S.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 % 2 != 0 ) :
return 0
res = 1
for i in range ( 2 , ( int ) ( math.sqrt ( n ) ) + 1 ) :
count = 0
curr_sum = 1
curr_term = 1
while ( n % i == 0 ) :
count = count + 1
n = n // i
if ( i == 2 and count == 1 ) :
curr_sum = 0
curr_term = curr_term * i
curr_sum = curr_sum + curr_term
res = res * curr_sum
if ( n >= 2 ) :
res = res * ( 1 + n )
return res
#TOFILL
if __name__ == '__main__':
param = [
(71,),
(78,),
(39,),
(36,),
(49,),
(17,),
(53,),
(66,),
(92,),
(71,)
]
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_SUM_EVEN_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 ( a , b ) :
result = 0
rem = 0
if ( a < b ) :
a , b = b , a
while ( b > 0 ) :
result += int ( a / b )
rem = int ( a % b )
a = b
b = rem
return result
#TOFILL
if __name__ == '__main__':
param = [
(87,60,),
(18,35,),
(68,93,),
(80,20,),
(87,69,),
(64,29,),
(64,1,),
(65,95,),
(43,72,),
(97,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/PAPER_CUT_MINIMUM_NUMBER_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 , index , modulo , M , arr , dp ) :
modulo = ( ( modulo % M ) + M ) % M
if ( index == n ) :
if ( modulo == 0 ) :
return 1
return 0
if ( dp [ index ] [ modulo ] != - 1 ) :
return dp [ index ] [ modulo ]
placeAdd = f_gold ( n , index + 1 , modulo + arr [ index ] , M , arr , dp )
placeMinus = f_gold ( n , index + 1 , modulo - arr [ index ] , M , arr , dp )
res = bool ( placeAdd or placeMinus )
dp [ index ] [ modulo ] = res
return res
#TOFILL
if __name__ == '__main__':
param = [
(19,29,20,19,[1, 2, 2, 3, 6, 15, 16, 17, 20, 21, 27, 28, 28, 29, 44, 47, 53, 53, 54, 59, 60, 60, 66, 68, 78, 79, 80, 84, 87, 91, 92, 97],[[4, 7, 9, 11, 16, 22, 22, 24, 31, 35, 36, 37, 44, 46, 47, 50, 52, 56, 59, 62, 62, 63, 65, 65, 67, 67, 72, 74, 74, 79, 92, 92], [6, 10, 12, 16, 17, 21, 23, 25, 25, 25, 27, 30, 32, 39, 39, 40, 46, 47, 47, 62, 78, 79, 79, 84, 86, 87, 88, 88, 90, 91, 93, 95], [2, 3, 8, 9, 12, 12, 27, 28, 32, 33, 33, 38, 39, 40, 43, 43, 46, 47, 48, 48, 56, 58, 62, 72, 77, 77, 78, 89, 93, 94, 97, 98], [2, 3, 3, 6, 12, 13, 14, 14, 17, 19, 19, 19, 20, 23, 27, 43, 48, 52, 53, 54, 60, 65, 65, 67, 67, 67, 68, 74, 75, 78, 88, 90], [1, 3, 13, 16, 21, 23, 30, 30, 35, 37, 37, 42, 43, 47, 47, 49, 50, 52, 60, 61, 67, 68, 73, 78, 78, 79, 80, 82, 83, 89, 95, 97], [2, 4, 6, 10, 11, 16, 24, 33, 34, 35, 40, 40, 47, 50, 51, 55, 62, 64, 68, 70, 70, 73, 75, 81, 85, 85, 89, 91, 92, 93, 93, 94], [3, 5, 11, 11, 15, 19, 20, 25, 26, 27, 27, 36, 37, 44, 56, 60, 64, 64, 68, 74, 76, 76, 77, 78, 80, 84, 87, 91, 92, 94, 95, 96], [2, 2, 9, 14, 16, 20, 20, 27, 28, 29, 32, 33, 35, 46, 53, 54, 55, 57, 61, 62, 63, 63, 69, 74, 84, 87, 88, 90, 93, 93, 98, 98], [4, 5, 9, 12, 14, 20, 21, 22, 25, 26, 32, 33, 33, 35, 36, 38, 45, 51, 54, 58, 60, 61, 67, 69, 70, 75, 75, 77, 80, 89, 90, 94], [2, 8, 18, 18, 20, 23, 24, 29, 31, 32, 33, 34, 35, 41, 41, 47, 48, 49, 52, 55, 61, 65, 65, 66, 69, 69, 76, 85, 89, 91, 94, 94], [6, 10, 12, 14, 14, 32, 32, 34, 35, 39, 39, 44, 44, 50, 52, 52, 54, 56, 58, 60, 60, 62, 65, 69, 69, 71, 77, 83, 83, 86, 92, 92], [2, 8, 15, 19, 21, 27, 32, 41, 46, 47, 48, 49, 51, 51, 63, 65, 67, 72, 73, 76, 77, 77, 82, 82, 83, 85, 87, 88, 91, 92, 94, 98], [6, 7, 13, 14, 14, 14, 15, 21, 23, 29, 30, 30, 37, 44, 45, 45, 48, 48, 57, 67, 67, 68, 70, 71, 71, 72, 78, 86, 86, 91, 97, 99], [4, 5, 12, 12, 13, 14, 14, 16, 18, 20, 21, 24, 24, 25, 25, 26, 33, 40, 47, 49, 51, 61, 64, 64, 68, 74, 81, 83, 83, 87, 89, 94], [3, 8, 9, 14, 16, 17, 30, 33, 39, 40, 40, 43, 45, 46, 47, 49, 51, 54, 55, 56, 59, 60, 63, 79, 79, 83, 94, 94, 95, 98, 99, 99], [4, 6, 7, 9, 9, 10, 16, 17, 18, 21, 30, 33, 36, 37, 37, 39, 42, 53, 57, 66, 69, 70, 73, 77, 81, 82, 82, 84, 87, 88, 92, 99], [2, 2, 5, 6, 6, 7, 12, 13, 13, 17, 22, 24, 24, 27, 27, 29, 35, 36, 39, 39, 43, 44, 45, 64, 71, 72, 73, 82, 82, 85, 93, 98], [1, 5, 8, 9, 12, 13, 22, 29, 30, 31, 36, 36, 40, 40, 41, 42, 52, 55, 57, 58, 61, 61, 61, 65, 76, 78, 82, 86, 86, 89, 94, 96], [1, 3, 3, 5, 9, 10, 19, 19, 20, 24, 34, 40, 42, 42, 46, 46, 48, 53, 53, 58, 64, 68, 72, 73, 81, 86, 88, 89, 90, 92, 93, 95], [1, 1, 5, 5, 15, 19, 22, 23, 27, 29, 33, 41, 44, 44, 48, 51, 56, 56, 71, 77, 79, 79, 82, 82, 84, 86, 87, 90, 90, 91, 93, 98], [2, 4, 8, 13, 14, 22, 23, 27, 28, 29, 37, 37, 38, 41, 47, 47, 48, 50, 51, 53, 54, 55, 57, 63, 65, 69, 75, 77, 77, 79, 82, 97], [4, 9, 10, 18, 20, 23, 24, 27, 39, 40, 41, 41, 42, 43, 45, 58, 58, 64, 66, 67, 68, 69, 74, 81, 83, 83, 84, 84, 86, 87, 90, 98], [1, 8, 9, 11, 15, 15, 18, 24, 25, 31, 31, 33, 34, 35, 35, 43, 47, 52, 56, 58, 58, 67, 69, 70, 71, 74, 77, 82, 85, 89, 89, 90], [1, 3, 8, 8, 12, 12, 16, 21, 22, 25, 25, 25, 29, 31, 31, 31, 34, 34, 35, 35, 36, 37, 37, 42, 43, 55, 55, 59, 67, 72, 74, 85], [2, 4, 6, 9, 12, 14, 18, 22, 23, 23, 26, 36, 36, 41, 44, 51, 51, 53, 56, 59, 59, 59, 60, 61, 68, 68, 74, 77, 93, 94, 94, 96], [1, 2, 5, 11, 12, 14, 19, 28, 33, 34, 37, 37, 38, 38, 38, 47, 49, 59, 62, 67, 71, 73, 73, 74, 80, 83, 84, 85, 89, 90, 92, 99], [1, 5, 10, 19, 24, 36, 41, 47, 48, 57, 59, 59, 60, 62, 65, 65, 67, 70, 71, 77, 79, 79, 81, 81, 82, 83, 87, 89, 91, 91, 95, 97], [7, 10, 10, 10, 17, 18, 29, 29, 30, 31, 32, 32, 37, 38, 44, 50, 59, 59, 62, 63, 63, 73, 74, 80, 80, 81, 84, 85, 85, 89, 98, 99], [1, 7, 9, 14, 19, 22, 26, 29, 30, 34, 40, 43, 44, 45, 45, 46, 49, 58, 62, 63, 67, 76, 78, 79, 82, 84, 93, 94, 95, 97, 98, 98], [5, 6, 8, 9, 12, 14, 22, 31, 34, 36, 38, 43, 46, 47, 48, 48, 50, 52, 54, 57, 67, 68, 68, 72, 75, 77, 79, 80, 92, 96, 97, 98], [8, 10, 15, 15, 15, 19, 21, 24, 25, 27, 30, 34, 36, 43, 44, 45, 50, 51, 54, 55, 57, 58, 59, 63, 69, 69, 73, 75, 87, 94, 96, 96], [3, 4, 12, 13, 13, 16, 16, 19, 29, 32, 40, 43, 48, 49, 55, 58, 61, 64, 65, 66, 66, 69, 71, 72, 75, 83, 85, 88, 89, 90, 94, 96]],),
(14,17,13,17,[68, -86, -98, 40, -6, -16, -98, 50, 46, -34, 74, -8, -70, -18, -58, 92, 12, 98, 34, 6, 54, 70],[[-30, 10, -22, 92, -46, 58, -12, -42, 64, 12, 6, 12, -34, -20, 6, -90, -60, 78, 90, -72, -30, 2], [-72, -60, 22, -22, -12, 6, 80, -34, 8, -66, 20, -72, -34, -30, 14, -54, 86, 96, -20, -76, 34, -64], [52, 8, 28, -74, 78, -92, -78, 6, 56, -76, 98, 4, -46, 80, 36, 54, -70, 68, -88, 68, -84, -94], [94, 84, 60, 44, -46, -44, 94, 60, 14, 76, 82, 84, 56, 68, 54, 46, -42, 16, -46, 32, -76, -6], [-8, -88, 70, -48, 62, 4, 70, -62, 34, -48, 48, -82, -16, 60, 14, -10, -56, 4, -22, -96, 44, 22], [-34, -70, -16, -94, -22, 2, -20, 10, -42, 52, 18, -74, -84, -56, 72, -24, 64, -90, 68, -90, 60, -70], [28, -86, -52, -58, -2, -96, 32, -90, 88, 98, -66, 78, -44, -6, -44, 46, -16, -76, 48, -20, -68, -70], [-88, -88, -16, 24, -96, -32, 20, -92, -50, 40, 26, 12, -76, 50, -90, -96, 6, 8, -56, 74, 30, -46], [40, -74, -18, -36, -50, 82, -72, -74, -38, 16, 86, 56, 58, 80, 74, 4, -16, -14, -78, 36, -8, -16], [-44, -18, -14, 94, -4, -98, -4, -32, -84, -54, 38, 78, -74, 62, 76, 30, 22, 24, 34, 42, 94, -84], [60, -26, -12, 14, -26, 42, 60, 12, 74, -26, 66, 60, 32, 32, -70, 22, 50, 84, -14, -2, 62, 50], [-38, -28, -8, 62, 10, 18, -78, -68, 70, 88, -4, 24, 88, -32, 44, -46, 58, -90, 18, -32, 42, 32], [2, -14, 62, 84, -18, 76, -94, -66, -64, -58, -54, 40, 74, 32, -78, -46, 44, -16, -40, 32, -66, -82], [-46, 26, 92, 96, -34, -88, -84, 82, 20, -12, 62, 92, 32, 66, 38, 66, 38, -50, 68, -56, -44, 72], [-30, -40, -56, 46, 36, 12, -58, -36, -36, 66, -80, -24, 34, -96, 0, -46, -38, 88, 36, 92, -74, -40], [-10, -54, 96, -58, 80, -64, -88, 60, 24, 14, -58, 30, 74, 64, 66, 96, -66, 86, 66, 76, -90, -28], [34, 6, 60, 62, -10, -34, 58, -38, 92, -28, -88, -36, 84, 94, 2, 36, 22, -38, 66, 36, 36, 22], [92, 64, 64, -8, 14, 88, -64, 34, -26, 44, 44, 10, -2, -80, -50, -90, 70, 36, -50, 32, 18, 72], [26, 52, -88, -72, -52, 78, 64, -34, -96, -68, 76, -50, -28, -84, 22, 16, 40, 84, -16, 80, -48, 38], [16, -94, -74, 30, -82, 24, 38, 8, -68, 26, -96, -36, 90, 56, 20, 24, -42, -76, -20, 24, 76, 10], [74, 56, -46, 84, -84, 80, -26, 90, -42, 22, 78, 26, 56, -12, 62, -12, -30, -20, -52, 42, 52, -56], [34, -86, -18, -60, -64, 60, -98, 78, 34, -40, 10, -36, 48, 98, 94, 38, -32, 46, -52, 34, -74, 60]],),
(5,7,6,8,[0, 0, 0, 0, 0, 1, 1, 1, 1, 1],[[0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1]],),
(8,10,10,8,[8, 8, 80, 15, 73, 51, 44, 98, 99, 59, 73, 42],[[89, 45, 59, 5, 12, 1, 54, 1, 25, 40, 25, 45], [94, 83, 22, 94, 13, 16, 98, 46, 37, 94, 99, 59], [7, 92, 73, 68, 63, 10, 45, 75, 56, 77, 66, 79], [37, 91, 18, 45, 35, 35, 66, 75, 82, 14, 88, 88], [16, 44, 53, 11, 41, 41, 44, 53, 19, 11, 3, 99], [80, 89, 67, 90, 58, 65, 9, 15, 76, 4, 43, 8], [39, 51, 95, 87, 68, 88, 84, 27, 15, 77, 95, 84], [54, 67, 79, 17, 81, 4, 18, 10, 37, 96, 15, 42], [19, 49, 6, 4, 37, 50, 43, 83, 89, 44, 74, 21], [75, 19, 30, 32, 20, 67, 1, 85, 3, 31, 76, 78], [94, 25, 26, 97, 28, 74, 96, 81, 36, 33, 21, 25], [19, 72, 42, 88, 41, 20, 1, 18, 92, 5, 82, 18]],),
(14,12,16,19,[-88, -82, -78, -72, -70, -54, -32, -32, -10, -8, 8, 14, 16, 22, 26, 26, 28, 30, 34, 34, 62, 62, 76, 88],[[-96, -74, -68, -56, -40, -26, -22, -18, -6, -2, 6, 6, 18, 18, 20, 22, 26, 30, 32, 40, 52, 52, 70, 70], [-96, -92, -90, -90, -72, -70, -64, -52, -50, -44, -40, -32, -30, -28, -24, -18, -16, -4, 14, 18, 28, 36, 50, 70], [-96, -62, -60, -54, -52, -40, -36, -2, 6, 6, 6, 8, 12, 14, 18, 34, 36, 44, 62, 66, 66, 78, 86, 88], [-90, -78, -64, -58, -56, -50, -40, -32, -32, -12, 0, 0, 16, 18, 26, 28, 30, 38, 40, 44, 48, 72, 84, 98], [-88, -46, -34, 0, 10, 12, 16, 20, 26, 38, 48, 48, 50, 60, 60, 62, 66, 72, 72, 74, 84, 88, 94, 98], [-96, -94, -88, -80, -76, -66, -62, -36, -20, -16, -6, -6, -2, 0, 0, 18, 20, 24, 36, 40, 72, 76, 86, 98], [-66, -52, -44, -32, -28, -20, -6, -4, 10, 18, 22, 24, 26, 38, 40, 44, 44, 48, 48, 58, 84, 90, 94, 94], [-86, -78, -54, -52, -46, -38, -34, 14, 24, 26, 34, 34, 40, 46, 50, 50, 62, 72, 72, 82, 84, 86, 92, 94], [-98, -84, -70, -68, -66, -60, -28, -10, 4, 10, 16, 34, 34, 44, 46, 48, 52, 56, 56, 56, 60, 84, 84, 88], [-96, -92, -82, -80, -76, -54, -52, -46, -46, -30, -26, -26, -20, -16, -10, -10, -4, 26, 30, 32, 34, 78, 78, 86], [-92, -90, -76, -64, -50, -48, -46, -42, -36, -30, -24, -20, -14, -4, 12, 16, 22, 30, 40, 40, 48, 60, 86, 92], [-86, -82, -72, -46, -46, -42, -34, -34, -22, -20, -20, -14, -10, -2, -2, 28, 50, 50, 52, 58, 78, 80, 84, 94], [-92, -90, -74, -64, -64, -56, -52, -50, -46, -46, -32, -26, -22, -4, -2, 10, 16, 32, 34, 38, 58, 58, 60, 86], [-94, -88, -66, -58, -56, -50, -42, -30, -28, -24, -22, -12, -10, -8, 0, 16, 24, 26, 30, 38, 44, 52, 80, 98], [-98, -82, -74, -64, -60, -52, -48, -38, -36, -24, -20, -20, -18, 26, 26, 36, 44, 44, 50, 50, 54, 78, 80, 96], [-84, -68, -66, -62, -60, -52, -50, -40, -36, -28, -8, -6, 2, 18, 26, 32, 42, 50, 62, 66, 68, 72, 80, 98], [-92, -90, -82, -72, -72, -58, -54, -40, -38, -34, -28, -22, -6, -6, 0, 0, 2, 6, 18, 44, 68, 70, 72, 74], [-92, -64, -64, -60, -58, -52, -50, -12, -8, -8, -4, -2, 14, 14, 16, 18, 22, 28, 38, 38, 42, 66, 90, 90], [-72, -70, -68, -56, -42, -40, -38, -32, -32, -22, -20, -20, -10, -10, 0, 24, 24, 34, 72, 80, 88, 92, 94, 96], [-84, -80, -58, -38, -32, -30, -16, -14, 4, 10, 10, 14, 18, 20, 24, 26, 30, 34, 36, 40, 58, 70, 72, 92], [-88, -78, -68, -66, -50, -42, -36, -36, -18, -14, -10, -6, -6, -2, 2, 6, 16, 18, 40, 68, 72, 76, 86, 94], [-82, -70, -64, -56, -52, -32, -10, -4, 8, 16, 28, 40, 46, 56, 56, 58, 66, 68, 70, 74, 76, 80, 80, 86], [-98, -90, -80, -78, -76, -74, -72, -64, -62, -42, -30, -14, -8, 2, 12, 24, 42, 44, 72, 74, 76, 94, 94, 98], [-94, -90, -86, -82, -58, -50, -44, -20, -18, 0, 18, 26, 36, 38, 44, 50, 52, 54, 56, 64, 68, 78, 82, 86]],),
(16,21,17,18,[0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1],[[0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0], [1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1], [0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0], [0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0], [0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1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 3, 21, 26, 29, 31, 40, 40, 43, 51, 53, 54, 62, 62, 65, 74, 75, 77, 77, 79, 81, 81, 84, 84, 92, 95], [7, 9, 10, 12, 13, 14, 19, 27, 30, 44, 46, 47, 51, 53, 58, 59, 65, 73, 78, 84, 84, 86, 88, 91, 92, 98, 99], [5, 15, 15, 21, 24, 25, 31, 34, 47, 53, 53, 58, 60, 60, 69, 74, 75, 75, 76, 78, 79, 81, 86, 87, 88, 91, 97], [5, 16, 19, 20, 22, 25, 32, 37, 37, 40, 43, 46, 50, 55, 56, 58, 59, 60, 61, 64, 67, 72, 85, 88, 91, 91, 96], [5, 6, 10, 14, 16, 19, 22, 25, 26, 31, 38, 41, 43, 45, 52, 56, 59, 66, 69, 78, 82, 87, 87, 88, 89, 92, 99], [3, 11, 15, 18, 22, 25, 31, 37, 37, 38, 38, 44, 47, 50, 51, 52, 68, 70, 78, 81, 83, 84, 89, 90, 95, 95, 98], [3, 6, 8, 10, 13, 21, 22, 22, 22, 22, 23, 26, 33, 42, 49, 49, 50, 66, 72, 73, 75, 78, 83, 84, 92, 93, 99], [8, 10, 11, 16, 17, 26, 32, 45, 52, 53, 53, 63, 64, 65, 69, 71, 72, 72, 74, 77, 81, 82, 87, 94, 96, 96, 96], [3, 4, 8, 11, 21, 25, 26, 31, 33, 35, 35, 38, 42, 43, 48, 50, 50, 61, 62, 63, 67, 67, 70, 79, 80, 84, 97], [2, 14, 15, 16, 21, 30, 30, 32, 32, 40, 41, 41, 42, 45, 45, 46, 46, 52, 61, 63, 78, 79, 80, 81, 86, 93, 97], [4, 5, 5, 6, 7, 16, 16, 18, 20, 22, 23, 28, 30, 35, 38, 43, 63, 67, 72, 77, 82, 85, 85, 87, 87, 91, 92], [4, 8, 10, 11, 27, 30, 31, 39, 47, 49, 52, 62, 67, 69, 71, 71, 72, 75, 79, 79, 80, 84, 84, 87, 95, 95, 99], [16, 17, 21, 24, 26, 32, 43, 43, 46, 49, 53, 56, 64, 72, 81, 82, 85, 85, 90, 90, 92, 92, 93, 95, 95, 97, 99], [4, 4, 6, 12, 12, 13, 16, 26, 31, 31, 35, 40, 40, 50, 51, 54, 56, 57, 60, 62, 64, 64, 86, 90, 91, 99, 99], [13, 13, 16, 17, 18, 20, 21, 21, 23, 24, 25, 25, 27, 32, 33, 34, 45, 45, 64, 76, 77, 78, 78, 83, 88, 90, 97], [2, 4, 5, 6, 6, 11, 17, 18, 35, 36, 42, 52, 52, 54, 55, 57, 58, 70, 70, 72, 81, 86, 87, 87, 89, 97, 99], [2, 5, 5, 10, 10, 13, 25, 27, 29, 29, 29, 30, 42, 48, 48, 52, 56, 57, 62, 64, 65, 66, 68, 76, 85, 89, 91], [7, 15, 27, 32, 40, 44, 49, 49, 63, 65, 67, 69, 70, 70, 71, 71, 73, 74, 80, 84, 84, 85, 88, 89, 92, 95, 97], [4, 9, 10, 14, 27, 30, 30, 36, 37, 38, 39, 41, 44, 45, 46, 50, 52, 60, 62, 63, 68, 76, 77, 81, 82, 88, 94], [5, 6, 9, 10, 11, 19, 24, 26, 30, 31, 34, 46, 47, 54, 56, 56, 59, 62, 66, 71, 79, 87, 89, 90, 92, 99, 99], [3, 5, 6, 6, 15, 21, 23, 28, 32, 50, 50, 56, 65, 66, 75, 76, 82, 85, 85, 87, 88, 90, 93, 94, 97, 97, 99], [10, 13, 13, 15, 16, 19, 21, 26, 30, 51, 55, 59, 60, 61, 63, 66, 67, 77, 77, 83, 87, 89, 89, 90, 92, 97, 99], [8, 10, 10, 11, 12, 13, 16, 25, 31, 33, 34, 36, 36, 44, 48, 58, 62, 67, 73, 75, 76, 80, 84, 89, 91, 96, 98], [10, 12, 22, 25, 28, 29, 40, 41, 42, 47, 48, 50, 55, 58, 62, 72, 72, 72, 76, 79, 81, 82, 85, 94, 95, 98, 99], [4, 5, 6, 7, 9, 15, 22, 23, 26, 27, 31, 33, 34, 37, 47, 52, 52, 54, 54, 56, 63, 72, 84, 91, 92, 99, 99], [17, 18, 22, 25, 31, 36, 36, 36, 36, 37, 42, 45, 46, 51, 51, 62, 68, 73, 83, 87, 88, 90, 91, 92, 95, 96, 97]],),
(7,7,7,7,[-56, -66, -60, 94, 44, -92, 18, -26, -88, 46, -24, -8, -46, 78],[[32, -72, -76, -6, 4, -42, -82, -6, -52, 24, 88, 8, 78, 82], [-20, 18, -68, 48, -64, 40, -26, 22, 80, -52, -98, -28, -6, -76], [-68, 20, -52, -90, -78, 96, -20, 56, -28, -88, -80, 60, 30, 38], [-12, 58, 48, 58, -78, 14, -36, 82, -66, -52, 36, -26, 90, -90], [-76, 24, -46, -2, -76, -62, -50, -64, 72, -52, -62, 84, -20, 12], [-66, -8, 40, 20, -56, -42, 90, 32, 40, -8, -28, 78, 76, -78], [-82, 38, 28, -26, -72, -96, -60, -66, 28, 94, 10, -30, 24, -90], [66, -14, 24, 80, -38, -4, 52, -94, -40, 26, 6, 58, 40, -74], [72, 78, 62, -40, -30, -4, -82, 66, -32, 6, -72, 0, 56, 42], [74, 62, 16, -4, 36, -38, -30, -18, 32, -76, 12, -52, 40, 98], [-88, 52, -10, 96, 12, 68, -12, 86, 4, -84, -54, -90, 92, 54], [68, 44, -30, -90, 52, -96, -44, 48, -80, 2, 12, 24, 58, -74], [-78, -24, 86, 14, -76, 46, 82, 14, 6, -10, 56, -70, 20, 80], [80, 38, 10, -76, -82, 26, 32, 74, 6, 76, 14, 88, 24, 90]],),
(35,35,33,22,[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 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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, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],),
(8,5,8,6,[80, 95, 34, 51, 95, 68, 55, 65, 60],[[32, 76, 68, 57, 32, 74, 11, 94, 55], [53, 76, 86, 95, 82, 62, 51, 37, 84], [73, 35, 43, 64, 94, 53, 79, 61, 20], [25, 5, 34, 35, 84, 44, 76, 20, 21], [18, 60, 47, 2, 26, 24, 80, 29, 63], [76, 15, 47, 88, 50, 90, 57, 10, 14], [84, 17, 77, 25, 28, 1, 6, 19, 15], [22, 10, 30, 53, 32, 83, 28, 49, 62], [73, 75, 57, 84, 1, 93, 80, 44, 55]],)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
|
CodeGen-main
|
data/transcoder_evaluation_gfg/python/CHECK_VALID_SEQUENCE_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 ( s ) :
if ( len ( s ) == 0 ) :
print ( 0 )
ans = 0
o = 0
c = 0
for i in range ( len ( s ) ) :
if ( s [ i ] == '(' ) :
o += 1
if ( s [ i ] == ')' ) :
c += 1
if ( o != c ) :
return - 1
a = [ 0 for i in range ( len ( s ) ) ]
if ( s [ 0 ] == '(' ) :
a [ 0 ] = 1
else :
a [ 0 ] = - 1
if ( a [ 0 ] < 0 ) :
ans += abs ( a [ 0 ] )
for i in range ( 1 , len ( s ) ) :
if ( s [ i ] == '(' ) :
a [ i ] = a [ i - 1 ] + 1
else :
a [ i ] = a [ i - 1 ] - 1
if ( a [ i ] < 0 ) :
ans += abs ( a [ i ] )
return ans
#TOFILL
if __name__ == '__main__':
param = [
('()',),
('))((',),
('())',),
('(()',),
('(()()())',),
('))())(()(())',),
('))(())((',),
('49',),
('00001111',),
('KDahByG ',)
]
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/COST_BALANCE_PARANTHESES.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 ( M , n , m ) :
count = 0
i = 0
j = m - 1
while j >= 0 and i < n :
if M [ i ] [ j ] < 0 :
count += ( j + 1 )
i += 1
else :
j -= 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([[76, 39, 83, 83, 24, 11, 7, 97, 81, 52, 7, 81, 68, 25, 14, 54, 69, 12, 53, 38, 94, 77, 75, 28, 38, 92, 47, 46, 86], [63, 95, 96, 14, 82, 98, 75, 5, 72, 27, 71, 62, 15, 55, 63, 37, 10, 2, 68, 98, 15, 21, 25, 83, 84, 46, 93, 23, 87], [47, 23, 49, 53, 26, 14, 50, 50, 5, 3, 2, 28, 69, 14, 47, 82, 78, 48, 89, 84, 32, 28, 71, 20, 99, 66, 4, 54, 23], [43, 37, 14, 20, 36, 19, 4, 97, 53, 42, 12, 69, 48, 60, 31, 29, 97, 86, 21, 69, 78, 61, 23, 20, 99, 51, 51, 38, 72], [92, 40, 87, 23, 98, 25, 84, 79, 98, 94, 8, 33, 86, 21, 30, 52, 51, 53, 38, 72, 38, 79, 54, 5, 35, 45, 81, 61, 92], [49, 92, 94, 43, 1, 28, 43, 39, 50, 96, 28, 32, 35, 47, 6, 20, 90, 38, 92, 11, 98, 36, 51, 72, 7, 63, 92, 20, 10], [31, 26, 58, 16, 98, 43, 79, 88, 47, 23, 1, 63, 48, 54, 51, 1, 21, 74, 94, 8, 74, 80, 86, 96, 55, 36, 73, 62, 68], [32, 70, 24, 22, 91, 36, 67, 12, 17, 23, 45, 57, 51, 47, 3, 52, 44, 39, 56, 87, 35, 48, 26, 36, 91, 8, 67, 86, 25], [27, 80, 9, 11, 42, 7, 77, 83, 95, 92, 36, 23, 28, 3, 32, 75, 37, 88, 78, 53, 38, 12, 29, 25, 63, 3, 83, 85, 40], [15, 14, 11, 3, 1, 50, 70, 72, 85, 66, 75, 41, 2, 74, 5, 97, 53, 77, 69, 22, 69, 99, 93, 24, 22, 98, 83, 3, 59], [94, 54, 92, 22, 14, 71, 92, 18, 52, 75, 66, 32, 23, 84, 86, 46, 16, 15, 60, 27, 66, 14, 77, 1, 16, 93, 68, 9, 75], [72, 91, 27, 73, 33, 29, 78, 40, 83, 75, 56, 74, 48, 40, 92, 94, 72, 62, 57, 59, 70, 2, 18, 71, 28, 53, 15, 87, 22], [83, 76, 75, 55, 3, 52, 29, 64, 9, 85, 89, 13, 62, 82, 63, 57, 25, 59, 6, 18, 6, 67, 22, 2, 24, 42, 52, 5, 18], [72, 95, 58, 66, 69, 95, 23, 13, 77, 86, 34, 74, 75, 97, 90, 10, 47, 54, 23, 37, 46, 85, 81, 39, 82, 11, 98, 6, 11], [95, 58, 35, 92, 80, 58, 58, 82, 23, 29, 43, 20, 27, 55, 41, 52, 35, 29, 40, 13, 34, 52, 11, 21, 39, 56, 9, 67, 39], [5, 8, 27, 88, 80, 32, 94, 82, 25, 43, 35, 62, 26, 93, 70, 18, 22, 54, 71, 38, 85, 61, 95, 67, 58, 53, 11, 34, 65], [72, 84, 81, 42, 42, 98, 74, 18, 93, 39, 48, 88, 29, 82, 95, 13, 9, 63, 17, 54, 47, 10, 8, 47, 34, 87, 65, 32, 15], [12, 36, 98, 64, 88, 77, 1, 70, 87, 33, 46, 30, 37, 89, 99, 60, 28, 57, 74, 11, 80, 57, 66, 51, 25, 7, 93, 90, 37], [80, 99, 88, 26, 88, 80, 98, 61, 42, 1, 91, 2, 7, 68, 1, 4, 48, 2, 61, 7, 69, 70, 15, 76, 72, 22, 83, 16, 42], [47, 6, 71, 29, 60, 14, 18, 74, 48, 85, 14, 55, 34, 63, 45, 24, 7, 55, 69, 45, 72, 76, 54, 46, 89, 97, 27, 35, 21], [81, 95, 80, 69, 92, 74, 94, 2, 70, 70, 27, 61, 46, 1, 77, 6, 95, 72, 18, 25, 47, 48, 49, 43, 89, 10, 54, 74, 54], [94, 67, 23, 93, 87, 73, 68, 38, 43, 64, 35, 72, 72, 34, 30, 81, 12, 32, 8, 20, 62, 36, 63, 88, 98, 13, 7, 57, 66], [40, 20, 92, 48, 43, 19, 36, 78, 87, 17, 45, 35, 7, 36, 27, 38, 83, 33, 64, 41, 50, 37, 62, 39, 74, 74, 73, 14, 94], [97, 4, 66, 99, 57, 66, 42, 6, 32, 64, 44, 1, 34, 41, 86, 3, 78, 43, 7, 19, 68, 3, 31, 83, 50, 47, 86, 16, 87], [61, 18, 41, 10, 33, 56, 90, 62, 32, 52, 66, 56, 16, 12, 15, 5, 79, 47, 33, 44, 92, 2, 23, 63, 57, 5, 85, 23, 87], [41, 81, 24, 64, 1, 60, 10, 50, 76, 4, 24, 45, 63, 64, 25, 14, 4, 4, 35, 20, 61, 11, 8, 45, 30, 33, 32, 56, 11], [82, 93, 72, 31, 22, 62, 63, 61, 93, 62, 7, 17, 43, 39, 9, 68, 76, 15, 92, 60, 4, 16, 49, 68, 38, 61, 18, 45, 1], [3, 44, 78, 74, 33, 97, 37, 73, 10, 21, 68, 84, 77, 42, 44, 42, 18, 95, 32, 16, 56, 83, 19, 15, 61, 72, 55, 80, 99], [9, 4, 61, 31, 73, 79, 37, 60, 13, 36, 92, 62, 20, 6, 79, 82, 59, 67, 12, 43, 70, 65, 33, 16, 70, 36, 51, 38, 61]],27,27,),
([[17, 56], [68, 34]],1,1,),
([[63, 21, 24, 76, 7, 94, 21, 23, 39, 45, 23, 2, 16, 42, 23, 6, 15, 37, 47, 64, 18, 55, 99, 5, 74, 66, 9, 82, 40, 13, 2, 14, 34, 11, 47, 56], [20, 30, 34, 53, 49, 37, 11, 29, 58, 85, 94, 81, 88, 50, 61, 5, 72, 5, 58, 86, 98, 77, 72, 35, 2, 53, 11, 29, 84, 27, 25, 40, 90, 52, 69, 90], [10, 24, 96, 55, 26, 55, 47, 7, 75, 42, 43, 29, 46, 78, 74, 32, 16, 82, 42, 42, 59, 78, 68, 82, 32, 31, 8, 27, 18, 7, 22, 70, 27, 9, 86, 83], [91, 89, 31, 11, 33, 34, 47, 34, 18, 39, 82, 4, 92, 89, 8, 89, 83, 24, 56, 46, 92, 50, 76, 20, 58, 69, 17, 98, 97, 37, 38, 76, 1, 87, 2, 97], [64, 35, 17, 29, 96, 12, 57, 8, 12, 47, 65, 48, 97, 10, 26, 4, 70, 28, 10, 79, 81, 82, 60, 70, 44, 59, 83, 75, 29, 19, 27, 74, 4, 6, 67, 67], [54, 41, 10, 15, 57, 80, 50, 86, 25, 2, 45, 7, 37, 77, 55, 72, 37, 94, 93, 69, 6, 79, 95, 73, 68, 77, 47, 80, 77, 55, 38, 80, 7, 90, 60, 92], [56, 85, 53, 32, 16, 26, 43, 24, 24, 7, 47, 52, 99, 90, 76, 35, 63, 2, 48, 36, 63, 23, 14, 69, 65, 22, 90, 87, 5, 22, 35, 86, 19, 72, 97, 6], [30, 68, 46, 51, 93, 74, 58, 6, 79, 93, 31, 6, 81, 16, 29, 31, 1, 26, 82, 1, 51, 71, 89, 85, 39, 93, 6, 4, 22, 96, 94, 61, 58, 4, 40, 89], [57, 39, 35, 96, 86, 55, 55, 45, 51, 20, 67, 50, 39, 73, 73, 64, 92, 49, 89, 73, 45, 87, 46, 73, 45, 27, 23, 91, 49, 99, 21, 2, 16, 76, 14, 8], [26, 56, 59, 26, 75, 99, 7, 86, 47, 8, 90, 8, 36, 52, 76, 62, 21, 39, 12, 8, 9, 63, 29, 41, 7, 77, 28, 93, 51, 11, 87, 60, 65, 4, 28, 65], [82, 47, 44, 19, 27, 71, 36, 9, 13, 48, 5, 87, 29, 74, 88, 64, 77, 94, 82, 54, 14, 42, 93, 63, 9, 76, 70, 63, 19, 81, 19, 78, 94, 41, 52, 18], [25, 55, 1, 99, 50, 76, 42, 89, 35, 3, 55, 35, 26, 99, 47, 50, 74, 90, 61, 61, 12, 49, 87, 98, 81, 44, 46, 77, 13, 77, 75, 73, 19, 36, 14, 53], [77, 73, 1, 49, 66, 56, 54, 46, 6, 62, 67, 94, 83, 41, 65, 66, 22, 67, 66, 30, 57, 71, 19, 65, 33, 29, 72, 72, 90, 19, 82, 50, 89, 75, 81, 9], [50, 61, 36, 63, 82, 74, 2, 12, 79, 88, 25, 21, 75, 81, 25, 74, 68, 81, 24, 98, 49, 99, 35, 2, 69, 34, 57, 35, 85, 35, 98, 1, 83, 52, 32, 98], [58, 19, 70, 53, 75, 93, 19, 63, 29, 73, 69, 63, 30, 84, 56, 7, 48, 45, 41, 53, 20, 44, 97, 53, 85, 6, 35, 93, 74, 81, 58, 98, 93, 31, 7, 30], [35, 59, 63, 40, 37, 2, 79, 35, 70, 50, 29, 78, 5, 15, 34, 50, 76, 60, 39, 23, 67, 80, 62, 26, 51, 64, 83, 59, 78, 56, 52, 45, 5, 85, 56, 62], [18, 97, 81, 30, 57, 26, 64, 52, 52, 21, 18, 67, 49, 69, 40, 5, 25, 96, 19, 67, 15, 31, 52, 35, 43, 97, 74, 60, 85, 54, 58, 91, 13, 3, 2, 69], [79, 23, 13, 11, 51, 54, 53, 5, 37, 75, 81, 14, 13, 38, 93, 40, 42, 23, 81, 49, 83, 86, 99, 96, 96, 23, 68, 60, 91, 48, 7, 24, 58, 3, 54, 80], [80, 93, 37, 66, 75, 96, 96, 8, 17, 64, 40, 74, 41, 44, 41, 93, 38, 38, 77, 31, 49, 76, 23, 90, 1, 80, 70, 30, 13, 81, 44, 31, 71, 75, 33, 83], [9, 7, 91, 42, 85, 39, 95, 24, 78, 52, 37, 76, 64, 75, 65, 23, 91, 47, 98, 55, 66, 72, 14, 52, 12, 99, 80, 54, 8, 87, 56, 60, 39, 80, 2, 79], [64, 11, 70, 65, 36, 63, 89, 63, 15, 62, 56, 23, 43, 31, 3, 79, 36, 75, 69, 92, 64, 67, 48, 44, 72, 64, 84, 74, 48, 99, 53, 84, 83, 38, 43, 51], [50, 14, 8, 82, 83, 80, 14, 3, 37, 24, 75, 34, 29, 36, 87, 16, 76, 79, 64, 35, 50, 39, 88, 13, 72, 91, 60, 28, 71, 95, 68, 50, 76, 55, 68, 3], [54, 55, 22, 6, 97, 76, 3, 9, 29, 33, 54, 68, 89, 35, 36, 72, 34, 43, 29, 34, 56, 23, 65, 2, 86, 80, 78, 69, 12, 66, 52, 47, 34, 61, 54, 82], [70, 76, 28, 63, 71, 56, 43, 38, 9, 46, 20, 12, 81, 36, 1, 48, 77, 22, 57, 51, 74, 63, 18, 75, 50, 59, 8, 63, 35, 27, 79, 66, 69, 81, 11, 33], [38, 24, 37, 49, 70, 31, 11, 2, 30, 34, 86, 1, 3, 48, 71, 41, 23, 11, 4, 65, 16, 42, 48, 38, 9, 12, 50, 9, 17, 60, 58, 82, 90, 88, 82, 72], [61, 89, 15, 40, 61, 85, 26, 9, 67, 62, 73, 28, 7, 76, 13, 89, 28, 43, 41, 36, 95, 17, 25, 26, 59, 66, 83, 35, 8, 46, 86, 20, 49, 29, 73, 74], [11, 42, 44, 98, 98, 9, 24, 16, 58, 43, 28, 68, 57, 44, 94, 50, 37, 31, 44, 18, 50, 27, 50, 10, 25, 54, 43, 31, 38, 84, 20, 21, 91, 30, 63, 89], [71, 27, 83, 1, 75, 71, 77, 29, 69, 12, 45, 59, 82, 5, 30, 40, 74, 16, 69, 51, 99, 97, 93, 30, 61, 3, 23, 1, 84, 31, 69, 27, 27, 79, 66, 46], [46, 15, 23, 88, 71, 27, 77, 24, 69, 23, 36, 95, 67, 69, 15, 38, 27, 8, 69, 18, 82, 61, 28, 14, 43, 73, 46, 99, 41, 4, 66, 32, 88, 27, 21, 67], [59, 42, 75, 62, 2, 89, 77, 88, 8, 39, 42, 63, 89, 52, 41, 69, 38, 54, 64, 11, 8, 82, 10, 16, 72, 88, 16, 25, 75, 81, 8, 18, 50, 63, 78, 32], [94, 64, 54, 48, 64, 92, 80, 19, 47, 75, 25, 48, 79, 9, 84, 59, 4, 9, 98, 23, 99, 90, 4, 42, 55, 41, 5, 99, 9, 19, 19, 70, 8, 41, 21, 32], [36, 34, 6, 11, 51, 7, 72, 53, 85, 49, 55, 96, 96, 42, 22, 69, 44, 32, 30, 1, 31, 90, 51, 7, 54, 43, 80, 66, 43, 53, 68, 5, 1, 97, 88, 14], [87, 13, 21, 98, 41, 36, 79, 99, 44, 55, 94, 65, 2, 35, 28, 88, 14, 42, 28, 15, 27, 62, 72, 98, 79, 59, 58, 34, 64, 53, 18, 36, 59, 23, 76, 66], [77, 16, 17, 9, 27, 67, 43, 78, 57, 38, 50, 27, 4, 30, 8, 68, 18, 36, 4, 57, 90, 29, 37, 56, 3, 95, 8, 75, 75, 49, 63, 10, 34, 20, 67, 11], [76, 91, 51, 58, 73, 99, 42, 93, 3, 65, 79, 51, 51, 67, 90, 62, 45, 50, 67, 61, 17, 90, 85, 22, 85, 3, 3, 17, 65, 80, 89, 68, 59, 78, 16, 82], [8, 66, 57, 91, 66, 68, 17, 15, 33, 36, 37, 62, 36, 39, 99, 57, 15, 97, 46, 15, 47, 20, 87, 63, 88, 86, 66, 1, 46, 4, 78, 80, 34, 91, 17, 93]],35,28,),
([[96, 91, 61, 55], [60, 18, 48, 25], [94, 72, 84, 54], [10, 62, 23, 79]],3,2,),
([[68, 61, 12, 7, 49, 65, 57, 32, 57, 95, 64, 17, 77, 59], [38, 7, 47, 21, 69, 36, 79, 82, 23, 27, 76, 37, 43, 52], [37, 95, 8, 88, 57, 73, 4, 52, 75, 99, 7, 55, 78, 23], [45, 1, 5, 89, 89, 71, 96, 27, 86, 75, 49, 30, 91, 78], [90, 64, 33, 88, 19, 95, 21, 5, 74, 90, 65, 86, 8, 53], [96, 14, 83, 29, 23, 39, 48, 68, 97, 68, 97, 60, 19, 66], [92, 85, 40, 36, 18, 94, 53, 75, 6, 72, 63, 98, 1, 87], [31, 50, 24, 38, 46, 2, 24, 76, 34, 76, 45, 59, 90, 90], [65, 98, 95, 65, 4, 82, 85, 58, 1, 68, 69, 73, 3, 10], [39, 44, 93, 64, 97, 19, 21, 52, 70, 73, 19, 85, 83, 96], [49, 48, 54, 77, 37, 82, 64, 93, 13, 76, 14, 4, 14, 57], [67, 85, 12, 23, 33, 66, 19, 41, 19, 2, 30, 95, 84, 7], [35, 38, 97, 53, 61, 25, 80, 94, 77, 49, 86, 6, 12, 71], [39, 32, 7, 19, 13, 24, 26, 48, 79, 47, 13, 2, 48, 7]],13,13,),
([[52, 24, 47, 92, 56, 78, 13, 64, 21, 58], [97, 6, 75, 14, 88, 68, 7, 23, 39, 50], [17, 67, 52, 78, 74, 63, 61, 47, 65, 66], [45, 47, 94, 50, 82, 16, 11, 94, 83, 61], [91, 81, 3, 52, 62, 85, 27, 82, 83, 58], [90, 5, 40, 91, 76, 16, 88, 65, 94, 47], [63, 83, 38, 72, 5, 18, 89, 42, 39, 14], [23, 18, 89, 8, 80, 67, 23, 35, 69, 14], [83, 83, 45, 73, 40, 8, 26, 90, 27, 38], [36, 11, 82, 87, 50, 1, 24, 90, 52, 78]],8,8,),
([[75, 18, 92, 72, 81, 98, 29, 53, 45, 28, 6, 37, 39, 3, 30, 17, 77, 29, 56, 43, 6, 97, 35, 89, 22, 24], [53, 29, 83, 34, 63, 60, 11, 35, 84, 27, 50, 21, 52, 63, 46, 47, 43, 6, 43, 37, 56, 89, 44, 49, 78, 82], [39, 2, 47, 28, 17, 17, 92, 70, 8, 27, 34, 58, 41, 7, 54, 95, 65, 86, 74, 37, 59, 41, 38, 36, 10, 17], [53, 9, 95, 28, 34, 19, 32, 19, 70, 79, 45, 66, 16, 66, 21, 19, 57, 75, 68, 47, 68, 38, 16, 42, 10, 80], [2, 3, 13, 81, 70, 71, 94, 52, 44, 16, 80, 55, 96, 16, 88, 7, 67, 84, 9, 49, 73, 93, 59, 14, 59, 27], [11, 21, 30, 54, 74, 52, 72, 38, 99, 55, 14, 77, 9, 6, 61, 52, 64, 18, 43, 94, 82, 54, 68, 73, 63, 84], [97, 16, 69, 54, 41, 92, 65, 23, 93, 53, 95, 60, 47, 17, 42, 3, 22, 57, 56, 96, 61, 87, 77, 63, 21, 28], [76, 21, 99, 51, 78, 19, 19, 13, 89, 44, 89, 25, 76, 73, 71, 23, 48, 99, 7, 36, 26, 48, 38, 80, 58, 81], [16, 46, 97, 92, 29, 56, 53, 79, 77, 95, 13, 99, 55, 33, 65, 16, 73, 78, 38, 10, 2, 86, 31, 35, 24, 55], [14, 4, 76, 13, 89, 59, 80, 74, 13, 94, 38, 79, 59, 93, 42, 5, 12, 69, 25, 49, 86, 78, 3, 50, 54, 24], [63, 2, 29, 74, 80, 37, 35, 2, 28, 54, 39, 61, 7, 88, 66, 91, 4, 29, 37, 33, 25, 17, 66, 45, 51, 47], [54, 95, 80, 2, 12, 35, 23, 77, 37, 57, 61, 66, 12, 68, 23, 10, 78, 48, 67, 86, 9, 82, 98, 39, 78, 26], [75, 36, 19, 34, 54, 70, 36, 97, 26, 87, 62, 3, 42, 18, 71, 53, 60, 39, 32, 72, 8, 28, 79, 9, 84, 26], [6, 65, 24, 64, 86, 49, 78, 92, 53, 43, 12, 21, 74, 31, 1, 8, 16, 1, 84, 26, 36, 58, 26, 46, 62, 96], [12, 67, 58, 42, 70, 74, 31, 70, 79, 96, 72, 22, 92, 4, 70, 16, 18, 86, 95, 73, 36, 21, 20, 47, 74, 64], [26, 18, 42, 4, 41, 72, 81, 27, 96, 79, 45, 26, 39, 22, 36, 87, 15, 54, 64, 3, 74, 22, 40, 43, 98, 1], [12, 52, 15, 36, 80, 80, 75, 48, 5, 76, 62, 12, 18, 1, 3, 21, 7, 37, 35, 9, 72, 23, 63, 69, 63, 71], [76, 16, 82, 3, 77, 42, 65, 35, 17, 15, 20, 60, 98, 3, 29, 46, 75, 36, 15, 54, 40, 86, 81, 21, 12, 28], [32, 59, 65, 75, 40, 20, 82, 40, 73, 44, 78, 26, 9, 25, 92, 93, 32, 84, 8, 76, 34, 7, 49, 5, 42, 10], [23, 67, 12, 62, 81, 87, 63, 39, 2, 41, 27, 49, 19, 43, 16, 44, 24, 95, 69, 49, 34, 23, 73, 52, 18, 40], [90, 90, 98, 56, 40, 54, 31, 92, 32, 50, 25, 89, 8, 38, 88, 90, 81, 52, 56, 87, 38, 87, 78, 69, 99, 91], [54, 5, 15, 40, 9, 85, 32, 81, 37, 2, 13, 78, 55, 79, 73, 64, 16, 14, 55, 39, 32, 21, 79, 82, 17, 79], [92, 99, 79, 3, 52, 68, 58, 99, 51, 8, 28, 42, 77, 42, 19, 98, 38, 63, 31, 69, 53, 93, 81, 36, 99, 89], [73, 90, 89, 34, 63, 28, 69, 64, 87, 82, 63, 50, 50, 54, 47, 73, 94, 5, 93, 30, 34, 7, 84, 56, 97, 87], [74, 49, 31, 66, 24, 68, 50, 25, 36, 23, 38, 21, 39, 44, 40, 60, 43, 98, 47, 88, 96, 1, 56, 14, 73, 51], [76, 57, 45, 67, 84, 5, 52, 43, 40, 81, 99, 42, 83, 39, 3, 79, 43, 64, 52, 27, 21, 67, 16, 11, 81, 33]],18,15,),
([[45, 38, 43, 11, 2, 77, 3, 59, 58, 22, 6, 65, 13, 43, 52, 15], [69, 16, 25, 44, 58, 94, 54, 33, 96, 27, 86, 41, 25, 86, 66, 95], [59, 30, 24, 88, 58, 3, 79, 72, 44, 79, 74, 38, 88, 50, 67, 63], [77, 66, 59, 16, 29, 18, 24, 81, 6, 78, 40, 14, 23, 20, 86, 90], [54, 62, 50, 48, 35, 34, 91, 85, 64, 72, 50, 41, 27, 83, 70, 30], [78, 37, 23, 81, 90, 53, 11, 37, 80, 30, 45, 86, 9, 7, 6, 14], [75, 66, 60, 75, 3, 95, 96, 17, 49, 70, 85, 94, 90, 17, 48, 13], [8, 50, 36, 13, 18, 84, 71, 19, 77, 3, 97, 76, 35, 1, 9, 5], [7, 7, 26, 74, 17, 90, 16, 84, 96, 49, 25, 45, 33, 65, 73, 19], [85, 24, 39, 8, 23, 16, 31, 84, 43, 16, 92, 73, 2, 72, 69, 58], [7, 72, 1, 48, 82, 42, 84, 66, 11, 35, 70, 72, 80, 47, 71, 46], [92, 19, 1, 42, 4, 55, 31, 93, 38, 92, 22, 87, 40, 35, 10, 58], [28, 30, 44, 35, 39, 15, 99, 79, 2, 52, 67, 96, 41, 34, 68, 88], [41, 84, 68, 59, 71, 64, 79, 76, 52, 26, 16, 25, 89, 11, 39, 97], [76, 74, 93, 51, 9, 19, 66, 31, 38, 44, 41, 77, 61, 85, 72, 60], [18, 97, 93, 70, 18, 8, 55, 92, 63, 45, 19, 53, 78, 37, 76, 32]],11,11,),
([[88, 45, 19, 4, 98, 22, 59, 11, 85, 88, 3, 46, 20, 27, 14, 92, 24, 45, 89, 7, 84, 55, 54, 65, 95, 92, 10, 97, 41], [50, 92, 97, 19, 60, 78, 38, 90, 54, 69, 35, 95, 78, 27, 7, 19, 31, 16, 26, 23, 39, 21, 39, 4, 69, 3, 95, 4, 48], [50, 96, 8, 79, 99, 92, 99, 70, 68, 51, 29, 3, 56, 9, 98, 2, 24, 79, 37, 27, 86, 34, 31, 74, 23, 48, 78, 9, 70], [62, 93, 53, 48, 89, 17, 47, 17, 46, 31, 63, 63, 2, 25, 59, 59, 30, 55, 95, 32, 73, 54, 31, 7, 59, 42, 7, 45, 13], [64, 8, 35, 71, 49, 38, 83, 47, 7, 70, 53, 16, 96, 33, 97, 62, 87, 5, 16, 96, 26, 66, 73, 24, 97, 46, 77, 71, 43], [80, 43, 36, 54, 65, 85, 9, 88, 43, 53, 6, 27, 75, 32, 51, 36, 88, 79, 2, 45, 46, 59, 73, 78, 12, 66, 84, 64, 54], [61, 5, 44, 80, 52, 38, 85, 41, 91, 64, 3, 59, 12, 10, 83, 6, 91, 4, 17, 63, 78, 86, 61, 80, 60, 81, 16, 91, 56], [58, 25, 51, 21, 69, 32, 68, 5, 93, 92, 79, 17, 83, 60, 21, 11, 6, 60, 42, 13, 75, 59, 60, 70, 8, 92, 58, 12, 63], [56, 42, 60, 3, 1, 3, 21, 66, 11, 14, 77, 77, 76, 43, 64, 14, 71, 54, 9, 52, 92, 84, 21, 92, 35, 97, 18, 99, 4], [17, 46, 28, 48, 45, 50, 85, 2, 73, 1, 26, 8, 95, 42, 53, 40, 45, 94, 30, 37, 61, 16, 44, 25, 36, 9, 56, 36, 90], [90, 32, 51, 10, 22, 17, 53, 22, 37, 32, 43, 40, 26, 42, 29, 45, 70, 53, 56, 28, 58, 6, 83, 70, 40, 90, 75, 81, 28], [20, 70, 17, 6, 63, 59, 87, 3, 22, 17, 88, 45, 12, 86, 98, 42, 51, 52, 35, 3, 47, 93, 5, 46, 59, 37, 93, 36, 75], [76, 66, 33, 20, 53, 44, 81, 5, 12, 13, 78, 27, 82, 94, 6, 2, 97, 60, 13, 27, 51, 59, 34, 22, 60, 35, 16, 55, 66], [79, 89, 28, 6, 35, 23, 55, 27, 71, 89, 97, 7, 20, 41, 48, 97, 23, 83, 17, 9, 59, 34, 49, 66, 63, 47, 28, 59, 24], [98, 48, 63, 80, 29, 81, 60, 76, 22, 46, 71, 98, 18, 44, 14, 90, 12, 54, 29, 27, 23, 2, 88, 65, 75, 76, 69, 22, 34], [98, 19, 77, 51, 45, 43, 39, 81, 9, 82, 38, 43, 39, 62, 83, 94, 66, 4, 69, 14, 84, 13, 96, 71, 18, 7, 91, 2, 25], [49, 42, 78, 9, 52, 81, 43, 29, 96, 56, 71, 95, 52, 63, 70, 23, 58, 8, 50, 91, 74, 19, 54, 89, 28, 86, 8, 71, 26], [9, 42, 86, 62, 16, 55, 89, 70, 37, 4, 73, 48, 25, 75, 24, 55, 32, 84, 3, 27, 46, 63, 79, 61, 2, 88, 26, 64, 46], [14, 23, 36, 97, 88, 37, 26, 53, 96, 91, 10, 62, 34, 5, 45, 5, 25, 12, 17, 42, 47, 64, 63, 28, 70, 26, 67, 98, 12], [16, 54, 94, 32, 17, 6, 35, 73, 50, 74, 39, 45, 31, 30, 7, 13, 44, 56, 30, 33, 40, 82, 85, 52, 46, 29, 81, 31, 99], [69, 62, 61, 40, 63, 96, 52, 95, 16, 74, 74, 3, 49, 76, 88, 90, 76, 26, 33, 40, 75, 83, 11, 38, 7, 66, 57, 45, 33], [62, 48, 8, 10, 28, 79, 60, 78, 26, 82, 13, 16, 52, 99, 15, 67, 53, 15, 81, 12, 77, 83, 84, 61, 44, 40, 94, 66, 24], [51, 76, 56, 42, 98, 20, 96, 37, 32, 41, 28, 55, 65, 43, 98, 24, 28, 26, 64, 69, 48, 24, 3, 74, 68, 48, 8, 24, 7], [48, 84, 58, 83, 45, 84, 81, 27, 9, 37, 36, 80, 93, 90, 2, 43, 28, 54, 34, 5, 64, 33, 56, 20, 99, 99, 49, 29, 69], [19, 80, 60, 22, 1, 42, 35, 37, 14, 46, 87, 12, 70, 25, 54, 80, 13, 6, 98, 15, 24, 77, 80, 20, 54, 4, 22, 74, 5], [80, 3, 20, 93, 99, 9, 88, 6, 72, 99, 6, 93, 69, 27, 90, 62, 41, 38, 4, 21, 21, 33, 57, 91, 96, 10, 40, 8, 23], [56, 44, 68, 36, 33, 58, 79, 25, 13, 72, 51, 37, 92, 30, 62, 23, 13, 57, 87, 49, 3, 49, 95, 68, 36, 6, 78, 21, 58], [60, 9, 7, 99, 19, 48, 62, 8, 43, 71, 83, 35, 51, 79, 4, 59, 79, 39, 5, 91, 35, 77, 51, 30, 84, 92, 72, 16, 27], [22, 58, 62, 3, 99, 42, 88, 86, 42, 55, 9, 55, 61, 36, 11, 47, 19, 21, 82, 82, 35, 66, 70, 28, 59, 27, 75, 36, 5]],16,15,),
([[9, 7, 25, 16, 34, 78, 18, 20, 43, 67, 73, 98, 45, 20, 73, 51, 62, 62, 20, 32, 55, 72, 60, 15, 48, 49, 38, 83, 25, 87, 12, 93, 97, 52, 41, 90], [38, 97, 57, 14, 10, 64, 43, 72, 64, 96, 44, 32, 55, 79, 34, 45, 74, 76, 96, 77, 63, 97, 2, 63, 38, 96, 98, 22, 76, 9, 43, 4, 23, 56, 43, 99], [3, 97, 67, 53, 94, 92, 93, 81, 15, 34, 6, 20, 66, 44, 12, 13, 43, 15, 48, 16, 70, 83, 54, 58, 47, 3, 71, 44, 71, 10, 63, 49, 83, 4, 81, 63], [98, 64, 37, 36, 59, 47, 49, 30, 46, 75, 67, 61, 91, 63, 46, 20, 2, 85, 61, 40, 74, 60, 34, 40, 56, 21, 11, 26, 66, 5, 21, 21, 64, 37, 29, 84], [37, 20, 33, 63, 35, 85, 36, 86, 14, 55, 97, 56, 17, 52, 5, 73, 33, 92, 24, 97, 39, 94, 11, 44, 24, 45, 85, 39, 99, 65, 19, 76, 68, 82, 51, 18], [67, 46, 51, 73, 35, 35, 13, 67, 60, 46, 88, 85, 97, 91, 11, 54, 15, 66, 39, 26, 12, 85, 95, 79, 63, 94, 36, 20, 87, 54, 51, 26, 10, 35, 6, 7], [45, 34, 15, 72, 77, 92, 77, 99, 7, 44, 49, 49, 93, 4, 20, 27, 46, 7, 44, 29, 4, 4, 12, 89, 60, 54, 63, 70, 32, 78, 44, 24, 68, 96, 58, 47], [60, 71, 69, 9, 88, 29, 85, 97, 98, 87, 55, 81, 24, 93, 93, 95, 83, 88, 65, 64, 55, 68, 65, 19, 53, 16, 55, 62, 95, 2, 79, 49, 99, 89, 29, 48], [60, 6, 9, 20, 64, 81, 54, 76, 46, 22, 62, 52, 82, 31, 52, 76, 45, 66, 22, 56, 88, 32, 66, 80, 35, 54, 7, 15, 71, 89, 77, 77, 38, 89, 48, 22], [30, 66, 22, 51, 19, 60, 8, 27, 62, 66, 35, 94, 87, 14, 92, 45, 7, 78, 26, 82, 23, 80, 11, 95, 23, 99, 81, 11, 20, 64, 10, 13, 51, 64, 94, 22], [76, 49, 78, 72, 98, 66, 77, 69, 15, 17, 31, 64, 89, 99, 98, 14, 28, 5, 72, 47, 46, 11, 99, 60, 62, 17, 67, 36, 33, 81, 14, 74, 90, 36, 88, 14], [90, 77, 53, 61, 18, 38, 48, 55, 35, 41, 70, 12, 70, 48, 93, 43, 68, 50, 11, 55, 78, 95, 21, 25, 40, 16, 86, 91, 26, 70, 69, 89, 53, 61, 7, 22], [91, 94, 52, 73, 87, 70, 24, 63, 86, 9, 37, 46, 17, 28, 27, 20, 47, 93, 56, 81, 7, 84, 81, 68, 1, 14, 49, 27, 89, 42, 16, 27, 67, 83, 96, 73], [84, 24, 54, 47, 63, 22, 42, 38, 4, 66, 52, 18, 29, 94, 15, 88, 69, 22, 91, 83, 51, 55, 6, 4, 37, 38, 72, 5, 55, 12, 75, 34, 68, 8, 68, 30], [47, 74, 37, 48, 80, 45, 51, 19, 54, 94, 80, 28, 95, 20, 62, 37, 43, 4, 1, 80, 46, 99, 3, 93, 62, 32, 25, 16, 33, 83, 38, 13, 1, 88, 48, 1], [89, 58, 76, 95, 72, 66, 44, 24, 16, 51, 72, 66, 36, 15, 88, 33, 69, 84, 76, 16, 93, 99, 80, 56, 11, 13, 7, 63, 12, 38, 56, 6, 92, 11, 42, 48], [6, 8, 64, 4, 14, 59, 32, 2, 52, 18, 28, 32, 54, 56, 54, 64, 59, 19, 51, 27, 22, 63, 15, 95, 34, 73, 25, 35, 68, 97, 32, 52, 49, 99, 93, 60], [93, 53, 88, 70, 7, 70, 92, 72, 16, 59, 72, 86, 45, 9, 43, 52, 74, 58, 93, 76, 34, 94, 47, 83, 37, 15, 2, 36, 14, 59, 52, 9, 45, 94, 60, 75], [26, 28, 26, 4, 14, 74, 59, 73, 21, 49, 64, 64, 53, 20, 2, 99, 26, 39, 24, 58, 33, 10, 17, 21, 5, 76, 95, 61, 23, 77, 22, 34, 75, 51, 44, 91], [19, 37, 44, 78, 43, 76, 54, 24, 80, 72, 53, 94, 66, 82, 32, 80, 89, 20, 64, 40, 22, 93, 94, 95, 20, 8, 62, 36, 70, 1, 75, 57, 77, 23, 20, 69], [70, 58, 27, 59, 1, 90, 89, 23, 36, 85, 92, 45, 2, 93, 65, 10, 10, 83, 13, 85, 91, 33, 4, 80, 63, 76, 17, 80, 10, 6, 6, 7, 61, 63, 48, 43], [14, 15, 86, 46, 44, 37, 56, 36, 34, 12, 32, 30, 32, 35, 28, 68, 51, 72, 62, 15, 53, 58, 90, 22, 87, 34, 36, 24, 99, 95, 66, 14, 38, 72, 43, 39], [44, 35, 36, 39, 97, 34, 36, 19, 18, 46, 71, 90, 12, 87, 18, 95, 7, 53, 89, 20, 7, 50, 24, 37, 10, 25, 45, 1, 95, 87, 88, 22, 4, 92, 56, 34], [38, 84, 92, 22, 76, 71, 16, 58, 49, 39, 92, 60, 31, 32, 94, 48, 38, 42, 88, 15, 1, 94, 13, 32, 17, 75, 19, 73, 42, 97, 31, 68, 34, 16, 10, 28], [57, 76, 12, 77, 28, 88, 31, 36, 11, 40, 78, 4, 16, 57, 41, 61, 88, 70, 52, 57, 59, 57, 79, 78, 83, 97, 53, 87, 80, 74, 45, 2, 80, 65, 78, 80], [47, 70, 68, 66, 93, 33, 73, 43, 6, 64, 36, 19, 81, 73, 1, 55, 39, 48, 13, 30, 80, 41, 8, 40, 14, 48, 7, 49, 19, 31, 95, 64, 57, 88, 97, 47], [71, 54, 34, 95, 21, 31, 85, 67, 94, 53, 28, 79, 51, 18, 19, 89, 21, 1, 41, 65, 63, 85, 71, 18, 90, 13, 55, 30, 12, 55, 31, 6, 6, 91, 43, 19], [31, 93, 54, 82, 24, 21, 43, 77, 96, 18, 60, 68, 37, 7, 58, 10, 53, 80, 83, 36, 86, 76, 41, 12, 4, 51, 45, 7, 32, 2, 33, 48, 67, 65, 12, 10], [61, 57, 43, 48, 47, 9, 29, 42, 21, 67, 86, 56, 3, 61, 83, 5, 84, 77, 41, 12, 56, 79, 92, 33, 10, 35, 11, 60, 29, 73, 58, 78, 24, 11, 26, 76], [18, 74, 87, 74, 1, 61, 24, 37, 27, 86, 48, 91, 62, 91, 29, 8, 72, 26, 48, 9, 49, 54, 93, 17, 33, 1, 57, 1, 61, 21, 30, 41, 33, 37, 17, 51], [64, 66, 69, 5, 27, 17, 30, 72, 51, 88, 42, 66, 61, 58, 77, 87, 43, 64, 84, 64, 27, 19, 58, 11, 17, 14, 67, 21, 29, 45, 42, 63, 48, 54, 26, 78], [79, 62, 86, 3, 12, 45, 84, 16, 55, 93, 24, 93, 59, 12, 92, 2, 61, 9, 92, 97, 31, 15, 48, 33, 51, 49, 55, 48, 1, 9, 66, 83, 24, 54, 23, 56], [63, 57, 5, 89, 37, 4, 46, 26, 70, 75, 85, 39, 56, 6, 39, 43, 55, 93, 87, 15, 98, 77, 61, 25, 15, 52, 58, 86, 66, 57, 22, 66, 54, 46, 9, 36], [83, 65, 45, 2, 10, 81, 87, 31, 76, 58, 50, 57, 18, 89, 93, 30, 78, 35, 88, 75, 77, 26, 98, 75, 53, 68, 43, 49, 99, 98, 88, 13, 12, 97, 93, 9], [59, 15, 73, 29, 52, 78, 11, 30, 13, 1, 57, 69, 53, 53, 34, 33, 90, 85, 60, 76, 97, 42, 73, 98, 95, 64, 28, 78, 39, 91, 94, 27, 49, 48, 22, 58], [24, 52, 10, 2, 94, 13, 6, 27, 89, 82, 28, 99, 30, 20, 34, 12, 58, 96, 50, 51, 34, 85, 89, 72, 28, 77, 50, 23, 26, 27, 96, 55, 72, 66, 38, 77]],27,25,)
]
for i, p_set in enumerate(param):
param[i] = list(param[i])
param[i][0] = [[e - 50 for e in sorted(l)] for l in p_set[0]]
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_NEGATIVE_NUMBERS_IN_A_COLUMN_WISE_ROW_WISE_SORTED_MATRIX_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 ) :
n = len ( str )
count = 0
res = str [ 0 ]
cur_count = 1
for i in range ( n ) :
if ( i < n - 1 and str [ i ] == str [ i + 1 ] ) :
cur_count += 1
else :
if cur_count > count :
count = cur_count
res = str [ i ]
cur_count = 1
return res
#TOFILL
if __name__ == '__main__':
param = [
('geeekk',),
('3786868',),
('110',),
('aaaabbcbbb',),
('11',),
('011101',),
('WoHNyJYLC',),
('3141711779',),
('10111101101',),
('aabbabababcc',)
]
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_CONSECUTIVE_REPEATING_CHARACTER_STRING_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.
#
import itertools
def f_gold ( n ) :
count = 0
for curr in itertools.count ( ) :
sum = 0
x = curr
while ( x ) :
sum = sum + x % 10
x = x // 10
if ( sum == 10 ) :
count = count + 1
if ( count == n ) :
return curr
return - 1
#TOFILL
if __name__ == '__main__':
param = [
(37,),
(13,),
(51,),
(69,),
(76,),
(10,),
(97,),
(40,),
(69,),
(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/N_TH_NUMBER_WHOSE_SUM_OF_DIGITS_IS_TEN.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
return max ( ( f_gold ( n // 2 ) + f_gold ( n // 3 ) + f_gold ( n // 4 ) ) , n )
#TOFILL
if __name__ == '__main__':
param = [
(39,),
(79,),
(7,),
(76,),
(48,),
(18,),
(58,),
(17,),
(36,),
(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/RECURSIVELY_BREAK_NUMBER_3_PARTS_GET_MAXIMUM_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 ) :
for i in range ( 0 , n ) :
if ( arr [ i ] & 1 ) :
arr [ i ] *= - 1
arr.sort ( )
for i in range ( 0 , n ) :
if ( arr [ i ] & 1 ) :
arr [ i ] *= - 1
#TOFILL
if __name__ == '__main__':
param = [
([4],0,),
([8, -74, 89, 65, 51, -15, 68, 51, 23, 44, 89],8,),
([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],28,),
([51, 74, 43, 15, 38, 15, 5, 93],6,),
([-96, -75, -64, -20, -5, -2, 1, 40, 46, 64],7,),
([0, 0, 1, 0, 0, 1, 0, 0, 0],5,),
([1, 2, 4, 4, 17, 22, 23, 28, 35, 38, 39, 39, 41, 42, 42, 45, 46, 49, 49, 49, 50, 59, 62, 68, 69, 71, 73, 76, 78, 79, 80, 87, 88, 88, 90, 90, 91, 93, 95, 96, 98],34,),
([11, 68, -52, -49, -57, -2, 83, 77, 24, -20, 85, 11, 43, -73, 96, 92, 58, 64, 95, 13, -14, 14, 24, -51, -24, -45, -44, 96, -5, -56, 59],24,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],14,),
([44, 7, 44, 68, 34, 66, 69, 55, 10, 96, 42, 41, 77, 69, 10, 10, 91, 60, 51],13,)
]
filled_function_param = [
([4],0,),
([8, -74, 89, 65, 51, -15, 68, 51, 23, 44, 89],8,),
([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],28,),
([51, 74, 43, 15, 38, 15, 5, 93],6,),
([-96, -75, -64, -20, -5, -2, 1, 40, 46, 64],7,),
([0, 0, 1, 0, 0, 1, 0, 0, 0],5,),
([1, 2, 4, 4, 17, 22, 23, 28, 35, 38, 39, 39, 41, 42, 42, 45, 46, 49, 49, 49, 50, 59, 62, 68, 69, 71, 73, 76, 78, 79, 80, 87, 88, 88, 90, 90, 91, 93, 95, 96, 98],34,),
([11, 68, -52, -49, -57, -2, 83, 77, 24, -20, 85, 11, 43, -73, 96, 92, 58, 64, 95, 13, -14, 14, 24, -51, -24, -45, -44, 96, -5, -56, 59],24,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],14,),
([44, 7, 44, 68, 34, 66, 69, 55, 10, 96, 42, 41, 77, 69, 10, 10, 91, 60, 51],13,)
]
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_EVEN_NUMBERS_ASCENDING_ORDER_SORT_ODD_NUMBERS_DESCENDING_ORDER_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.
#
import sys
def f_gold ( str , l , h ) :
if ( l > h ) :
return sys.maxsize
if ( l == h ) :
return 0
if ( l == h - 1 ) :
return 0 if ( str [ l ] == str [ h ] ) else 1
if ( str [ l ] == str [ h ] ) :
return f_gold ( str , l + 1 , h - 1 )
else :
return ( min ( f_gold ( str , l , h - 1 ) , f_gold ( str , l + 1 , h ) ) + 1 )
#TOFILL
if __name__ == '__main__':
param = [
(['F', 'F', 'J', 'K', 'K', 'L', 'P', 'S', 'T', 'V', 'W', 'Y', 'b', 'd', 'j', 'l', 't', 'u', 'x', 'y'],11,11,),
(['0', '1', '8', '8', '8', '4', '4', '3', '9', '6', '5', '2', '8', '2', '0', '2', '6', '0', '7', '7', '3', '2', '4', '5', '9', '7', '2', '4', '1', '8', '7', '9', '8', '0', '8', '5', '4', '2', '3'],19,22,),
(['1'],0,0,),
(['g', 'y', 'r', 'M', 'v', 'z', ' ', 'k', 'S', 'P', 'x', 'p', 'E', 'z', 'T', 'K', 'k', 'B', 's', 'P', 'p', 'e', 'G', 't', 'r', 'M', 'p', ' ', 'H', 'a'],24,27,),
(['0', '1', '1', '1', '1', '1', '1', '2', '2', '2', '2', '3', '3', '3', '3', '3', '4', '4', '4', '5', '5', '5', '5', '5', '6', '6', '6', '6', '6', '6', '6', '7', '8', '8', '8', '9', '9'],33,34,),
(['1', '1', '0', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '1', '0'],13,8,),
([' ', ' ', ' ', 'B', 'C', 'C', 'D', 'I', 'K', 'O', 'P', 'R', 'T', 'V', 'W', 'a', 'b', 'd', 'j', 'y'],16,14,),
(['5', '0', '8', '6', '9', '3', '0', '3', '2', '0', '6', '2', '3', '7', '8', '9', '2', '0', '1', '9', '4', '1', '3', '1', '9', '2', '3', '4', '1', '2', '3', '8', '1'],31,25,),
(['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', '1'],37,35,),
(['X', 'B', 'E', 'v', 'K', 't', 'k', 'K', 'Q', 's', 'V', 'N', 'l', 'k', 'T', 'N', 'J', 'z', 'f', 'p', 'J', 'g', 'S', 'P', 'M', 'b', 'H', 'L', 'v', 'E', 'A', 'n', 'D', 'U', 'c', 's', 'M', 'Q', 'P', 'g', 'g', ' '],26,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/DYNAMIC_PROGRAMMING_SET_28_MINIMUM_INSERTIONS_TO_FORM_A_PALINDROME.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 ) :
n = len ( str )
L = [ [ 0 for x in range ( n ) ] for x in range ( n ) ]
for i in range ( n ) :
L [ i ] [ i ] = 1
for cl in range ( 2 , n + 1 ) :
for i in range ( n - cl + 1 ) :
j = i + cl - 1
if str [ i ] == str [ j ] and cl == 2 :
L [ i ] [ j ] = 2
elif str [ i ] == str [ j ] :
L [ i ] [ j ] = L [ i + 1 ] [ j - 1 ] + 2
else :
L [ i ] [ j ] = max ( L [ i ] [ j - 1 ] , L [ i + 1 ] [ j ] ) ;
return L [ 0 ] [ n - 1 ]
#TOFILL
if __name__ == '__main__':
param = [
('IVQPwMhUYLDTcO',),
('2568689919714',),
('0110011',),
('CSUPHnJs',),
('67978022339633',),
('0110011101',),
('RgR',),
('62249378',),
('000110110',),
('IRcBQAUdiyKrz',)
]
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_SET_12_LONGEST_PALINDROMIC_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 ( N ) :
if ( N == 1 ) :
return 4
countB = 1
countS = 1
for i in range ( 2 , N + 1 ) :
prev_countB = countB
prev_countS = countS
countS = prev_countB + prev_countS
countB = prev_countS
result = countS + countB
return ( result * result )
#TOFILL
if __name__ == '__main__':
param = [
(17,),
(66,),
(53,),
(97,),
(34,),
(54,),
(9,),
(99,),
(59,),
(87,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
|
CodeGen-main
|
data/transcoder_evaluation_gfg/python/COUNT_POSSIBLE_WAYS_TO_CONSTRUCT_BUILDINGS.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 , p ) :
res = 1
x = x % p
while ( y > 0 ) :
if ( ( y & 1 ) == 1 ) :
res = ( res * x ) % p
y = y >> 1
x = ( x * x ) % p
return res
#TOFILL
if __name__ == '__main__':
param = [
(45,5,68,),
(67,25,49,),
(26,91,44,),
(33,61,9,),
(35,8,13,),
(68,41,5,),
(14,76,20,),
(5,89,13,),
(23,42,45,),
(37,63,56,)
]
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/MODULAR_EXPONENTIATION_POWER_IN_MODULAR_ARITHMETIC.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 ) :
res = 0 ;
count = 0 ;
count += 1 ;
if ( count == 1 ) :
res = x ;
else :
i = random.randrange ( count ) ;
if ( i == count - 1 ) :
res = x ;
return res ;
#TOFILL
if __name__ == '__main__':
param = [
(64,),
(36,),
(21,),
(3,),
(18,),
(82,),
(76,),
(99,),
(70,),
(31,)
]
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/SELECT_A_RANDOM_NUMBER_FROM_STREAM_WITH_O1_SPACE.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 , s1 , s2 ) :
n = len ( s1 )
m = len ( s2 )
lcs = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ]
cnt = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ]
for i in range ( 1 , n + 1 ) :
for j in range ( 1 , m + 1 ) :
lcs [ i ] [ j ] = max ( lcs [ i - 1 ] [ j ] , lcs [ i ] [ j - 1 ] )
if ( s1 [ i - 1 ] == s2 [ j - 1 ] ) :
cnt [ i ] [ j ] = cnt [ i - 1 ] [ j - 1 ] + 1 ;
if ( cnt [ i ] [ j ] >= k ) :
for a in range ( k , cnt [ i ] [ j ] + 1 ) :
lcs [ i ] [ j ] = max ( lcs [ i ] [ j ] , lcs [ i - a ] [ j - a ] + a )
return lcs [ n ] [ m ]
#TOFILL
if __name__ == '__main__':
param = [
(4,'aggayxysdfa','aggajxaaasdfa',),
(2,'55571659965107','390286654154',),
(3,'01011011100','0000110001000',),
(5,'aggasdfa','aggajasdfaxy',),
(2,'5710246551','79032504084062',),
(3,'0100010','10100000',),
(3,'aabcaaaa','baaabcd',),
(1,'1219','3337119582',),
(2,'111000011','011',),
(2,'wiC oD','csiuGOUwE',)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
|
CodeGen-main
|
data/transcoder_evaluation_gfg/python/LCS_FORMED_CONSECUTIVE_SEGMENTS_LEAST_LENGTH_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 ( arr , n , x , y ) :
min_dist = 99999999
for i in range ( n ) :
for j in range ( i + 1 , n ) :
if ( x == arr [ i ] and y == arr [ j ] or y == arr [ i ] and x == arr [ j ] ) and min_dist > abs ( i - j ) :
min_dist = abs ( i - j )
return min_dist
#TOFILL
if __name__ == '__main__':
param = [
([4, 7, 7, 8, 11, 14, 16, 25, 34, 35, 36, 36, 38, 40, 41, 43, 45, 47, 57, 60, 64, 72, 73, 74, 75, 82, 83, 83, 84, 84, 84, 92],22,7,40,),
([96, 70, 88, -64, -42, 58, 92, 66, -14, 90, -66, 12, 88, -12, 48, -4, 90, 24, 98, 14, 32, 38, 98, 78, 2, 26, 12, -36, 90, 80, 40, 58, 88, 64, 16],25,58,70,),
([0, 0, 1],1,1,1,),
([46, 96, 82, 73, 30, 36, 56, 20, 5, 36, 4, 7, 89, 63, 54, 97, 80, 56, 93, 34, 90, 56, 25, 27, 75, 68, 14, 90],26,54,82,),
([-96, -88, -82, -66, -62, -52, -52, -46, -46, -40, -40, -28, -24, -12, 0, 4, 10, 24, 42, 46, 48, 48, 50, 60, 62, 64, 64, 70, 92, 98],24,0,4,),
([0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1],10,0,1,),
([1, 2, 2, 6, 10, 14, 15, 18, 19, 22, 23, 29, 30, 37, 40, 40, 41, 41, 42, 42, 44, 46, 46, 54, 56, 72, 73, 81, 83, 83, 86, 88, 93],27,1,42,),
([46, 86, -52, 18, -32, 86, 2, 38, 72, 72, -60, 70, -58, 66, -66, -72, -74, 58, 52, 58, 16, 64, 62, -62, 80, -70, -96, -44, -20, -74, -10, 14, -32, 48, 30, 76, -16, 80, 66, -46, -92, 26, -86, 28, -76, -24, -98, 54, 50],30,25,45,),
([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],38,0,0,),
([32, 65, 10, 72, 17, 58, 79, 28, 67, 36, 18, 35],7,10,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_MINIMUM_DISTANCE_BETWEEN_TWO_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 ( string , l ) :
string = list ( string )
i = - 1
j = l
while i < j :
i += 1
j -= 1
if ( string [ i ] == string [ j ] and string [ i ] != '*' ) :
continue
elif ( string [ i ] == string [ j ] and string [ i ] == '*' ) :
string [ i ] = 'a'
string [ j ] = 'a'
continue
elif string [ i ] == '*' :
string [ i ] = string [ j ]
continue
elif string [ j ] == '*' :
string [ j ] = string [ i ]
continue
print ( "Not Possible" )
return ""
return ''.join ( string )
#TOFILL
if __name__ == '__main__':
param = [
(['A', 'B', 'C', 'G', 'I', 'L', 'L', 'O', 'O', 'P', 'Q', 'S', 'W', 'Y', 'c', 'd', 'e', 'f', 'f', 'i', 'm', 'm', 'o', 'q', 'v', 'w', 'x', 'x', 'y', 'z'],27,),
(['3', '2', '3', '6', '8', '9', '0', '5', '0', '5', '8', '7', '9', '0', '3', '6', '9', '6', '2', '4', '2', '3', '1', '2', '7', '9', '1', '8', '8', '7', '1', '1', '6', '1'],30,),
(['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'],27,),
(['z', 'v', 'B', 'Y', 'n', 'K', 'h', 'C', 'T', 'L', 'g'],7,),
(['1', '2', '5', '6', '7'],4,),
(['0', '0', '1', '0'],3,),
(['D', 'n', 'r'],1,),
(['0', '9', '9', '1', '2', '1', '5', '3', '7', '5', '9', '2', '4', '4', '8', '9', '6', '4', '2', '8', '8', '5', '5', '7', '1', '7', '6', '2', '2', '2', '3', '3', '7', '9'],24,),
(['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'],21,),
(['E', 's', 'I', 'S', 'h', 'H', 'i', 'm', 'v', 'B'],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/CONSTRUCT_LEXICOGRAPHICALLY_SMALLEST_PALINDROME.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 ) :
zero = 0
two = 0
for i in range ( n ) :
if a [ i ] == 0 :
zero += 1
if a [ i ] == 2 :
two += 1
cnt = ( zero * ( zero - 1 ) ) // 2 + \
( two * ( two - 1 ) ) // 2
return cnt
#TOFILL
if __name__ == '__main__':
param = [
([9, 10, 20, 26, 26, 28, 31, 34, 35, 36, 36, 37, 39, 43, 44, 44, 46, 49, 54, 57, 58, 63, 64, 64, 65, 67, 70, 70, 74, 75, 77, 78, 79, 81, 82, 83, 84, 86, 95],31,),
([0, -10, 10, 0, 68, 4, -6, -14, 74, -80, 56, -4, 36, 56, 10, -16, 90, 84, -38, -40, 40, -86, -36, -16, -48, -76, -72, -18, -14, -40, -82, 56, -60],19,),
([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],22,),
([88, 20, 53, 21, 29, 73, 62, 91, 72, 34, 47, 42, 98, 9, 79, 80, 94, 36, 7, 67, 96, 34, 99, 56, 37, 70, 55, 36, 10, 77, 41, 51, 5, 37, 57, 29, 56, 74, 97, 31, 96, 52, 13, 29, 87, 58, 28, 31],38,),
([20],0,),
([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1],21,),
([2, 4, 9, 16, 22, 23, 25, 33, 33, 36, 39, 48, 49, 52, 53, 60, 67, 68, 76, 77, 79, 84, 84, 86, 89],24,),
([-62, 42, -88, -44, 90, 30, 52, 54, 56, -72, -76, 90, 18, 42, 62, -84, 56, -80, 72],13,),
([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,),
([22, 15, 28, 29, 32, 16, 33, 83],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/NUMBER_OF_PAIRS_IN_AN_ARRAY_HAVING_SUM_EQUAL_TO_PRODUCT.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 ) :
return b
if ( b == 0 ) :
return a
k = 0
while ( ( ( a | b ) & 1 ) == 0 ) :
a = a >> 1
b = b >> 1
k = k + 1
while ( ( a & 1 ) == 0 ) :
a = a >> 1
while ( b != 0 ) :
while ( ( b & 1 ) == 0 ) :
b = b >> 1
if ( a > b ) :
temp = a
a = b
b = temp
b = ( b - a )
return ( a << k )
#TOFILL
if __name__ == '__main__':
param = [
(37,93,),
(58,13,),
(89,27,),
(75,14,),
(59,47,),
(84,39,),
(47,76,),
(37,75,),
(83,62,),
(28,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/STEINS_ALGORITHM_FOR_FINDING_GCD.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 ( degree , n ) :
deg_sum = sum ( degree )
if ( 2 * ( n - 1 ) == deg_sum ) :
return True
else :
return False
#TOFILL
if __name__ == '__main__':
param = [
([2, 3, 1, 1, 1],5,),
([2, 2, 1, 1, 2],5,),
([2, 2, 1, 1, 1],5,),
([0,0,0,3,3,4],6,),
([-10, 12, 2],3,),
([1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0],19,),
([1, 6, 10, 13, 15, 17, 18, 23, 26, 28, 30, 32, 32, 33, 36, 39, 39, 41, 43, 50, 50, 51, 53, 54, 59, 59, 63, 63, 63, 66, 66, 71, 71, 74, 78, 89, 89, 93],30,),
([66, -96, -14, 74, -20],4,),
([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],31,),
([97, 73, 87, 45, 64, 30, 53, 50, 62, 42, 28, 58, 31, 90],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/CHECK_WHETHER_GIVEN_DEGREES_VERTICES_REPRESENT_GRAPH_TREE.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 , p1 , p2 , n ) :
set1 = ( x >> p1 ) & ( ( 1 << n ) - 1 )
set2 = ( x >> p2 ) & ( ( 1 << n ) - 1 )
xor = ( set1 ^ set2 )
xor = ( xor << p1 ) | ( xor << p2 )
result = x ^ xor
return result
#TOFILL
if __name__ == '__main__':
param = [
(95,88,97,92,),
(16,26,59,42,),
(55,56,40,41,),
(75,35,79,30,),
(90,12,59,34,),
(58,65,25,19,),
(69,64,17,94,),
(5,1,59,38,),
(36,33,97,44,),
(62,69,66,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/SWAP_BITS_IN_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(arr, n):
vis = dict()
for i in range(n):
vis[arr[i]] = 1
k = len(vis)
vid = dict()
ans = 0
right = 0
window = 0
for left in range(n):
while (right < n and window < k):
if arr[right] in vid.keys():
vid[arr[right]] += 1
else:
vid[arr[right]] = 1
if (vid[arr[right]] == 1):
window += 1
right += 1
if (window == k):
ans += (n - right + 1)
vid[arr[left]] -= 1
if (vid[arr[left]] == 0):
window -= 1
return ans
#TOFILL
if __name__ == '__main__':
param = [
([13, 39, 49, 52, 53, 69, 72, 79, 83, 96], 5,),
([-98, -98, 22, -10, -28, 0, 56, 72, 36, 88, 96, 22,
90, 74, -60, -64, 0, 2, -42, 0, 94, -82, -74], 20,),
([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], 26,),
([35, 23, 41, 58, 66, 92, 3, 33, 78, 70, 80, 86, 21, 21, 74, 19], 12,),
([-98, -80, -52, -10, 4, 76], 3,),
([1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1,
1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1], 36,),
([2, 7, 10, 17, 26, 36, 37, 85, 87, 88], 8,),
([64, -2, -94, -84, -48, 86], 5,),
([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], 20,),
([91, 49, 94, 81, 64, 5, 13, 70, 82, 9, 80, 82], 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/COUNT_SUBARRAYS_TOTAL_DISTINCT_ELEMENTS_ORIGINAL_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 ) :
return 0
else :
return 1 + f_gold ( n & ( n - 1 ) )
#TOFILL
if __name__ == '__main__':
param = [
(6,),
(58,),
(90,),
(69,),
(15,),
(54,),
(60,),
(51,),
(46,),
(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_SET_BITS_IN_AN_INTEGER_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.
#
import math
def f_gold ( n ) :
if ( n < 0 ) :
return 0 ;
if ( n <= 1 ) :
return 1 ;
x = ( ( n * math.log10 ( n / math.e ) + math.log10 ( 2 * math.pi * n ) / 2.0 ) ) ;
return math.floor ( x ) + 1 ;
#TOFILL
if __name__ == '__main__':
param = [
(56,),
(92,),
(52,),
(96,),
(96,),
(63,),
(51,),
(79,),
(70,),
(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/COUNT_DIGITS_FACTORIAL_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 , arr_size ) :
lo = 0
hi = arr_size - 1
mid = 0
while mid <= hi :
if a [ mid ] == 0 :
a [ lo ] , a [ mid ] = a [ mid ] , a [ lo ]
lo = lo + 1
mid = mid + 1
elif a [ mid ] == 1 :
mid = mid + 1
else :
a [ mid ] , a [ hi ] = a [ hi ] , a [ mid ]
hi = hi - 1
#TOFILL
if __name__ == '__main__':
param = [
([5, 6, 8, 15, 42, 47, 49, 52, 53, 54, 55, 58, 58, 60, 60, 68, 70, 86, 94, 96, 97, 99],18,),
([-87, 14, 24, 6, 58, 47, 45, 20, -37, -81, -8, -42, 83, -10, 17, -38],14,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],4,),
([1, 16, 61, 64, 63, 69, 22, 93, 67, 76, 26, 16, 51, 86, 57, 29, 78, 92, 69, 47, 94, 62, 69, 76, 16, 90, 90, 48, 85, 39, 33, 94, 23, 10, 69, 34, 52, 95, 10, 19],20,),
([-98, -96, -84, -76, -20],2,),
([1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1],15,),
([7, 8, 10, 12, 21, 23, 24, 24, 26, 29, 34, 36, 36, 36, 37, 49, 55, 58, 62, 64, 68, 73, 74, 75, 81, 82, 87, 89, 90, 90, 93, 96, 96, 99, 99],29,),
([-1, 5, -70, -83, 13, -38, -16, 12, -14, 41, 87, -81, 77, 0, 40, 89, 47, -24, -91, 99, -72, 28, -48],13,),
([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, 1, 1, 1, 1],24,),
([29, 37, 38, 83, 8],2,)
]
filled_function_param = [
([5, 6, 8, 15, 42, 47, 49, 52, 53, 54, 55, 58, 58, 60, 60, 68, 70, 86, 94, 96, 97, 99],18,),
([-87, 14, 24, 6, 58, 47, 45, 20, -37, -81, -8, -42, 83, -10, 17, -38],14,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],4,),
([1, 16, 61, 64, 63, 69, 22, 93, 67, 76, 26, 16, 51, 86, 57, 29, 78, 92, 69, 47, 94, 62, 69, 76, 16, 90, 90, 48, 85, 39, 33, 94, 23, 10, 69, 34, 52, 95, 10, 19],20,),
([-98, -96, -84, -76, -20],2,),
([1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1],15,),
([7, 8, 10, 12, 21, 23, 24, 24, 26, 29, 34, 36, 36, 36, 37, 49, 55, 58, 62, 64, 68, 73, 74, 75, 81, 82, 87, 89, 90, 90, 93, 96, 96, 99, 99],29,),
([-1, 5, -70, -83, 13, -38, -16, 12, -14, 41, 87, -81, 77, 0, 40, 89, 47, -24, -91, 99, -72, 28, -48],13,),
([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, 1, 1, 1, 1],24,),
([29, 37, 38, 83, 8],2,)
]
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_AN_ARRAY_OF_0S_1S_AND_2S.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 ) :
if ( k > n ) :
return - 1
sum = arr [ 0 ]
for i in range ( 1 , k ) :
sum += arr [ i ]
max_sum = sum
max_end = k - 1
for i in range ( k , n ) :
sum = sum + arr [ i ] - arr [ i - k ]
if ( sum > max_sum ) :
max_sum = sum
max_end = i
return max_end - k + 1
#TOFILL
if __name__ == '__main__':
param = [
([2, 5, 11, 37, 41, 49, 49, 63, 98],8,7,),
([84, -72, 12, 0, 86, -32, -18, 48, 60, 42, 8, -6, -10, -6, -52, -84, -98, 76, -10, -14, -94, -48, 94, -10, -20, 40, -52, 0, 94, -68, 44, -34, -26, -6, -94, 34, -80, -62, -40, 56, 52, -20, 74, -46, -88, -26, 22],34,43,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],11,18,),
([94, 97, 74, 88, 14, 66, 65, 50, 76, 55, 70, 93, 53, 30, 2, 60, 65, 24, 80, 73, 84, 95, 49, 32, 55, 70, 17, 26, 96, 20, 36, 2, 89, 49, 83, 67, 42, 51, 71, 11, 61, 78, 17, 78, 94, 68],35,33,),
([-98, -90, -60, -38, 38, 42],3,5,),
([1, 0, 0, 1, 1, 1, 1],3,4,),
([4, 9, 17, 17, 19, 32, 35, 36, 37, 40, 44, 45, 47, 48, 48, 56, 56, 60, 61, 65, 66, 79, 83, 91, 93, 99],22,24,),
([78, 82, -92, -46, -16, -64, 28, 60, 64, 52, 54, -84, 70, 22, 24, 0, -14, 20, -90, 30, 0, 86, 12, 72, -64, -52, 86, 16, -42],25,27,),
([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],25,20,),
([81, 77, 6, 3, 72, 24, 75, 47, 17, 29, 69, 15, 15, 50, 30, 83, 11, 7, 59, 7, 12, 82, 45, 76, 9, 48, 98, 49, 29, 66, 3, 53, 37, 13, 72, 58, 37, 87, 55],34,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/FIND_MAXIMUM_AVERAGE_SUBARRAY_OF_K_LENGTH_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 ) :
S = 0
for i in range ( 1 , n + 1 ) :
S += i * i - ( i - 1 ) * ( i - 1 )
return S
#TOFILL
if __name__ == '__main__':
param = [
(39,),
(20,),
(10,),
(39,),
(70,),
(21,),
(21,),
(80,),
(89,),
(99,)
]
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_PRINT_SUM_GIVEN_NTH_TERM.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 = ( n // 10 ) * 10
b = a + 10
return ( b if n - a > b - n else a )
#TOFILL
if __name__ == '__main__':
param = [
(31,),
(78,),
(19,),
(36,),
(77,),
(94,),
(86,),
(16,),
(95,),
(2,)
]
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/ROUND_THE_GIVEN_NUMBER_TO_NEAREST_MULTIPLE_OF_10.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 ) :
i = 0
while ( i < n ) :
if ( arr [ i ] == x ) :
return i
i = i + abs ( arr [ i ] - x )
print ( "number is not present!" )
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([8, 7, 6, 7, 6, 5, 4, 3, 2, 3, 4, 3],12,3,),
([6, 90],1,1,),
([1, 2, 3, 4, 5, 4],6,5,),
([97, 35, 60, 96, 3, 67, 72, 95, 55, 9, 69, 28, 15, 91, 31, 59],15,9,),
([-84, -78, -74, -70, -68, -60, -56, -54, -48, -46, -28, -16, -6, 0, 0, 8, 8, 8, 12, 16, 26, 30, 32, 34, 36, 40, 46, 48, 70, 70, 72, 76, 78, 78, 80, 84, 84, 86],22,31,),
([1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1],5,7,),
([55, 64, 76, 79, 93, 96],4,4,),
([66, -90, 98, -50, 0, 46, 42, 64, -96, -80, -96, 20, -10, -84],8,13,),
([0, 0, 0, 0, 0, 0, 1],6,5,),
([94, 4, 34, 87, 32, 3, 92, 68, 57, 76, 24, 33, 3, 4, 30, 70, 49, 30, 72, 82, 16, 53, 6, 24, 92, 96, 89, 28, 21, 8, 36, 9, 40, 85, 51, 1, 63, 68, 74, 26, 40, 3, 9, 32, 67, 4, 6, 73],25,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/SEARCH_AN_ELEMENT_IN_AN_ARRAY_WHERE_DIFFERENCE_BETWEEN_ADJACENT_ELEMENTS_IS_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 , k ) :
p = a ** b
count = 0
while ( p > 0 and count < k ) :
rem = p % 10
count = count + 1
if ( count == k ) :
return rem
p = p / 10 ;
#TOFILL
if __name__ == '__main__':
param = [
(11,2,1),
(41,3,3),
(5,4,3),
(1,2,4),
(24,1,5),
(5,2,3),
(66,5,8),
(7,10,3),
(77,30,10),
(60,50,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/K_TH_DIGIT_RAISED_POWER_B.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):
maxvalue = 0
i = 1
for i in range(s - 1):
j = 1
for j in range(s):
k = s - i - j
maxvalue = max(maxvalue, i * j * k)
return maxvalue
#TOFILL
if __name__ == '__main__':
param = [
(67,),
(48,),
(59,),
(22,),
(14,),
(66,),
(1,),
(75,),
(58,),
(78,)
]
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/MAXIMIZE_VOLUME_CUBOID_GIVEN_SUM_SIDES.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):
BT = [0] * (n + 1)
BT[0] = BT[1] = 1
for i in range(2, n + 1):
for j in range(i):
BT[i] += BT[j] * BT[i - j - 1]
return BT[n]
#TOFILL
if __name__ == '__main__':
param = [
(87,),
(69,),
(15,),
(11,),
(11,),
(15,),
(47,),
(65,),
(50,),
(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/NUMBER_OF_BINARY_TREES_FOR_GIVEN_PREORDER_SEQUENCE_LENGTH.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 ) :
res = 1 ;
for i in range ( n , - 1 , - 2 ) :
if ( i == 0 or i == 1 ) :
return res ;
else :
res *= i ;
#TOFILL
if __name__ == '__main__':
param = [
(88,),
(24,),
(3,),
(22,),
(53,),
(2,),
(88,),
(30,),
(38,),
(2,)
]
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/DOUBLE_FACTORIAL_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 ) :
ans = 0 ; temp = 0 ;
for i in range ( 1 , n + 1 ) :
if temp < n :
temp = i - 1
num = 1
while temp < n :
if temp + i <= n :
ans += i * num
else :
ans += ( n - temp ) * num
temp += i
num += 1
return ans
#TOFILL
if __name__ == '__main__':
param = [
(35,),
(93,),
(7,),
(81,),
(80,),
(47,),
(7,),
(41,),
(59,),
(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/SUM_MATRIX_ELEMENT_ELEMENT_INTEGER_DIVISION_ROW_COLUMN_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.
#
import math
def f_gold ( coin , n , k ) :
coin.sort ( )
coins_needed = math.ceil ( 1.0 * n // ( k + 1 ) ) ;
ans = 0
for i in range ( coins_needed - 1 + 1 ) :
ans += coin [ i ]
return ans
#TOFILL
if __name__ == '__main__':
param = [
([2, 4, 5, 9, 10, 10, 11, 14, 15, 19, 21, 22, 29, 36, 36, 38, 39, 39, 39, 41, 41, 42, 45, 45, 48, 55, 56, 57, 64, 66, 66, 66, 66, 69, 74, 76, 80, 81, 82, 82, 85, 87, 95, 95],33,27,),
([-6, -52, 20, -98, -10, 48, 36, 66, -88, 94, 68, 16],6,10,),
([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],16,16,),
([91, 62, 29, 49, 6, 11, 10, 43, 78, 35, 32, 5, 1, 48, 15, 24, 4, 71],13,17,),
([-98, -92, -88, -84, -82, -78, -74, -74, -68, -62, -62, -56, -56, -50, -46, -44, -26, -18, -14, -8, -8, -6, 8, 16, 20, 20, 22, 26, 36, 42, 44, 44, 52, 60, 66, 68, 68, 70, 76, 84],25,34,),
([1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0],32,32,),
([5, 12, 38, 39, 52, 54, 62, 81, 87, 93],6,8,),
([86, -18, -32, 70, 40, -76, -8, 8, -84, -10, 92, 94, -18, -12, -26, -40, -74, 60, 16, -70, 44, -32, 40, -24, 0, 4],25,20,),
([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],37,29,),
([86, 62, 98, 97, 61, 31, 23, 56, 63, 72, 44, 74, 58, 97],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_COST_FOR_ACQUIRING_ALL_COINS_WITH_K_EXTRA_COINS_ALLOWED_WITH_EVERY_COIN.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 False
arr.sort ( )
for i in range ( N - 2 ) :
if arr [ i ] + arr [ i + 1 ] > arr [ i + 2 ] :
return True
#TOFILL
if __name__ == '__main__':
param = [
([2, 6, 8, 10, 14, 15, 16, 19, 21, 26, 26, 26, 28, 29, 30, 33, 33, 35, 36, 36, 41, 44, 45, 45, 45, 49, 51, 54, 57, 59, 61, 64, 68, 70, 70, 72, 73, 74, 76, 78, 87, 89, 89, 91, 92, 93, 94, 95, 97],25,),
([50, -58, -44, 90, 18, -26, -74, -46, 96, 32, 72, 46, -90, 86, -10, 82, -72, 86, -64, -96, -12, -14, -36, 16, 38, 56, 54, 10, 74, -86, -64, -56, 30, -50, 46, 4, 88, -94, -4, -78, 22, -78],23,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],10,),
([80, 24, 41, 90, 24, 95],4,),
([-90, -88, -84, -82, -82, -80, -70, -66, -62, -60, -60, -48, -46, -44, -42, -20, -16, -4, 18, 26, 28, 32, 36, 46, 60, 62, 68, 72, 78, 98],21,),
([0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0],25,),
([3, 9, 14, 16, 16, 26, 30, 31, 32, 37, 42, 42, 43, 49, 51, 56, 64, 69, 76, 77, 77, 79, 85, 88, 89, 91, 94, 95],19,),
([-60, -90, -30, -42, 80, -66, 94, 60, -68, -74, -50, 42, -38, -34, -84, -58, 30, 98, -52, 6, -60, -60],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1],18,),
([24, 80, 16, 31, 5, 31, 66, 1, 13, 77, 88, 40, 34, 15, 90, 46, 8, 26, 39, 52, 22, 33, 3, 30, 49, 51, 69, 50, 39, 59],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/POSSIBLE_FORM_TRIANGLE_ARRAY_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.
#
import sys
def f_gold ( arr , arr_size ) :
if ( arr_size < 3 ) :
print ( " Invalid Input " )
return
first = arr [ 0 ]
second = - sys.maxsize
third = - sys.maxsize
for i in range ( 1 , arr_size ) :
if ( arr [ i ] > first ) :
third = second
second = first
first = arr [ i ]
elif ( arr [ i ] > second ) :
third = second
second = arr [ i ]
elif ( arr [ i ] > third ) :
third = arr [ i ]
print ( "The third Largest" , "element is" , third )
#TOFILL
if __name__ == '__main__':
param = [
([1, 1, 2, 4, 9, 9, 11, 14, 19, 26, 28, 32, 33, 34, 37, 41, 42, 42, 48, 49, 49, 52, 59, 61, 63, 66, 71, 71, 74, 76, 78, 80, 80, 87, 87, 88, 92, 96, 97],19,),
([28, -24, 54, 14, -16, -88, -74, -80, 66, -80, 64, 36, -24, 40, -54, 10, 86, -24, -68, -12, 58, -90, 30, 16, 6],14,),
([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],25,),
([7, 19, 58, 93, 76, 88, 89, 63],7,),
([-98, -92, -86, -84, -70, -66, -62, -60, -54, -52, -50, -48, -40, -38, -36, -36, -36, -36, -32, -32, -30, -22, -14, -8, 0, 0, 4, 4, 12, 14, 26, 34, 38, 46, 46, 46, 46, 48, 52, 64, 68, 76, 76, 82, 84, 88, 88, 88, 96],35,),
([0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1],23,),
([32, 63, 82, 94],2,),
([-34, -32, 20, -54, -84, 64, -86, -82, -4, 32, 20, 20, -4, 74, 36, 38, -54, -58, -48, 84, 86, -82, -44, -48, -16, -50, -50, -74],27,),
([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],29,),
([82, 3, 98, 95, 22, 77, 44, 69, 13, 34, 91, 33, 82, 60, 81, 13, 7, 93, 73, 73, 66, 67, 49, 91, 88, 13, 76, 8],25,)
]
filled_function_param = [
([1, 1, 2, 4, 9, 9, 11, 14, 19, 26, 28, 32, 33, 34, 37, 41, 42, 42, 48, 49, 49, 52, 59, 61, 63, 66, 71, 71, 74, 76, 78, 80, 80, 87, 87, 88, 92, 96, 97],19,),
([28, -24, 54, 14, -16, -88, -74, -80, 66, -80, 64, 36, -24, 40, -54, 10, 86, -24, -68, -12, 58, -90, 30, 16, 6],14,),
([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],25,),
([7, 19, 58, 93, 76, 88, 89, 63],7,),
([-98, -92, -86, -84, -70, -66, -62, -60, -54, -52, -50, -48, -40, -38, -36, -36, -36, -36, -32, -32, -30, -22, -14, -8, 0, 0, 4, 4, 12, 14, 26, 34, 38, 46, 46, 46, 46, 48, 52, 64, 68, 76, 76, 82, 84, 88, 88, 88, 96],35,),
([0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1],23,),
([32, 63, 82, 94],2,),
([-34, -32, 20, -54, -84, 64, -86, -82, -4, 32, 20, 20, -4, 74, 36, 38, -54, -58, -48, 84, 86, -82, -44, -48, -16, -50, -50, -74],27,),
([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],29,),
([82, 3, 98, 95, 22, 77, 44, 69, 13, 34, 91, 33, 82, 60, 81, 13, 7, 93, 73, 73, 66, 67, 49, 91, 88, 13, 76, 8],25,)
]
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/THIRD_LARGEST_ELEMENT_ARRAY_DISTINCT_ELEMENTS_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 ) :
mp = dict ( )
for i in range ( n - 1 ) :
for j in range ( i + 1 , n ) :
mp [ arr [ i ] + arr [ j ] ] = ( i , j )
d = - 10 ** 9
for i in range ( n - 1 ) :
for j in range ( i + 1 , n ) :
abs_diff = abs ( arr [ i ] - arr [ j ] )
if abs_diff in mp.keys ( ) :
p = mp [ abs_diff ]
if ( p [ 0 ] != i and p [ 0 ] != j and p [ 1 ] != i and p [ 1 ] != j ) :
d = max ( d , max ( arr [ i ] , arr [ j ] ) )
return d
#TOFILL
if __name__ == '__main__':
param = [
([1, 1, 5, 7, 10, 35, 35, 45, 49, 50, 57, 58, 60, 64, 69, 83, 83, 87, 88, 89, 93, 94],12,),
([94, 90, 88, 0, -90, -68, 94, -2, -50, -92, 66, 32, 10, 8, -14, -96, 80, -60, 48, -96, 46, 24, 64, 2, -30, 28],15,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],17,),
([83, 72, 91, 22, 96, 38, 71, 18, 58, 39, 7, 8, 65, 67],7,),
([-96, -92, -88, -86, -82, -80, -78, -76, -74, -72, -62, -54, -42, -40, -38, -36, -36, -34, -32, -32, -26, -26, -22, -14, -14, 2, 16, 24, 26, 32, 32, 34, 48, 48, 64, 66, 70, 74, 82, 90],28,),
([1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1],29,),
([2, 2, 4, 10, 11, 13, 15, 20, 32, 33, 33, 42, 46, 46, 50, 54, 55, 55, 56, 57, 58, 63, 68, 79, 87, 94],18,),
([58, 78, 28, 54, -10, 46, -78, -68, -44, 64, 78, 80, -54, -38, -54, 60, 26, 96],13,),
([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],28,),
([54, 55, 98, 18, 11, 55, 2, 95, 84, 14, 75, 12, 43, 54, 78, 34, 69, 24, 82, 65, 11, 49, 34, 60, 99, 71, 1, 17, 88, 12, 45, 46, 56, 28, 70, 34, 7, 55, 40, 12, 38, 56, 54, 53, 28],24,)
]
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_LARGEST_D_IN_ARRAY_SUCH_THAT_A_B_C_D_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 math import sqrt
def f_gold ( a ) :
area = ( sqrt ( 5 * ( 5 + 2 * ( sqrt ( 5 ) ) ) ) * a * a ) / 4
return area
#TOFILL
if __name__ == '__main__':
param = [
(2009.019461888707,),
(-1480.5131394215787,),
(357.7870347569567,),
(-8040.293697508038,),
(3821.882657293133,),
(-6840.635072240347,),
(1623.036598830132,),
(-9714.00706195298,),
(3916.454769669618,),
(-669.068424712943,)
]
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/PROGRAM_TO_FIND_THE_AREA_OF_PENTAGON.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 ( str1 , str2 ) :
if ( len ( str1 ) != len ( str2 ) ) :
return False
clock_rot = ""
anticlock_rot = ""
l = len ( str2 )
anticlock_rot = ( anticlock_rot + str2 [ l - 2 : ] + str2 [ 0 : l - 2 ] )
clock_rot = clock_rot + str2 [ 2 : ] + str2 [ 0 : 2 ]
return ( str1 == clock_rot or str1 == anticlock_rot )
#TOFILL
if __name__ == '__main__':
param = [
("amazon","azonam",),
("onamaz","amazon",),
("amazon","azoman",),
("ab","ab",),
('737009','239119',),
('000110','01111',),
('l','YVo hqvnGxow',),
('4420318628','52856',),
('11011111000000','10',),
(' pvFHANc','xBIDFbiGb',)
]
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_STRING_CAN_OBTAINED_ROTATING_ANOTHER_STRING_2_PLACES.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 ) :
count = 0
i = 5
while ( n / i >= 1 ) :
count += int ( n / i )
i *= 5
return int ( count )
#TOFILL
if __name__ == '__main__':
param = [
(9,),
(43,),
(50,),
(32,),
(37,),
(51,),
(33,),
(49,),
(1,),
(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/COUNT_TRAILING_ZEROES_FACTORIAL_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 ( n ) :
a , b , c = 1 , 2 , 0 ;
if ( n <= 2 ) :
return n ;
for i in range ( 3 , n + 1 ) :
c = b + ( i - 1 ) * a ;
a = b ;
b = c ;
return c ;
#TOFILL
if __name__ == '__main__':
param = [
(24,),
(1,),
(91,),
(90,),
(89,),
(29,),
(3,),
(60,),
(75,),
(14,)
]
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/FRIENDS_PAIRING_PROBLEM_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 ( blockSize , m , processSize , n ) :
allocation = [ - 1 ] * n
for i in range ( n ) :
bestIdx = - 1
for j in range ( m ) :
if blockSize [ j ] >= processSize [ i ] :
if bestIdx == - 1 :
bestIdx = j
elif blockSize [ bestIdx ] > blockSize [ j ] :
bestIdx = j
if bestIdx != - 1 :
allocation [ i ] = bestIdx
blockSize [ bestIdx ] -= processSize [ i ]
print ( "Process No.Process Size Block no." )
for i in range ( n ) :
print ( i + 1 , " " , processSize [ i ] , end = " " )
if allocation [ i ] != - 1 :
print ( allocation [ i ] + 1 )
else :
print ( "Not Allocated" )
#TOFILL
if __name__ == '__main__':
param = [
([1, 12, 63, 99, 99],2,[8, 11, 35, 64, 93],3,),
([-72, -60, 22, 88, 90, -36, 98, -42, 72, 16, -36, 30, -24, -2, 92, 50, -96, -12, -42, 14, -62, 70, -84, -30, -20, 4, -36, -8, 16, 88, 58, -92, -84, 40, -12, 50],24,[-98, 96, -92, -98, -48, -64, 16, -94, -30, 58, 0, 14, -30, -30, 70, -72, 8, -8, 84, -24, -74, 2, -24, 20, 12, 46, 30, 2, -2, -74, 82, -96, 44, -68, -58, -52],23,),
([0, 1],1,[0, 1],1,),
([50, 45, 11, 24, 93, 76, 89, 90, 63, 40, 84, 47, 9, 90, 61, 11, 46, 63, 16, 80, 99, 65],21,[64, 56, 53, 46, 97, 91, 50, 68, 32, 83, 69, 57, 59, 99, 61, 6, 90, 61, 9, 47, 93, 86],12,),
([-64, -26, 76],1,[-88, 44, 58],2,),
([0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1],40,[1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1],36,),
([1, 2, 3, 3, 8, 9, 10, 10, 11, 18, 18, 19, 22, 23, 24, 27, 27, 27, 33, 36, 38, 39, 40, 41, 48, 50, 50, 51, 59, 59, 62, 65, 68, 69, 70, 71, 72, 72, 75, 75, 76, 84, 85, 86, 88, 91, 96, 99],36,[6, 14, 14, 21, 24, 25, 27, 29, 29, 30, 33, 38, 39, 44, 49, 50, 50, 51, 52, 52, 53, 54, 56, 56, 59, 59, 63, 64, 67, 68, 70, 71, 71, 72, 73, 73, 78, 80, 83, 84, 85, 87, 90, 91, 91, 92, 94, 96],43,),
([-58, -62, 82, -88],3,[38, 92, 76, 6],3,),
([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],16,[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],18,),
([13, 37, 2, 83, 4, 55, 76, 94, 74, 33, 99, 9, 62, 32, 45, 31, 40, 67, 47, 29, 70, 42, 93, 66, 78, 57, 27, 50, 17, 32, 18, 96, 52, 50, 99, 60, 4, 68, 34, 24, 26, 41, 23, 72, 93, 93, 39, 3],43,[53, 65, 91, 70, 65, 77, 70, 52, 89, 39, 22, 76, 95, 98, 85, 11, 27, 43, 39, 56, 44, 53, 63, 86, 32, 71, 5, 71, 85, 80, 41, 27, 52, 66, 4, 64, 99, 99, 92, 82, 17, 48, 41, 18, 79, 22, 62, 40],37,)
]
filled_function_param = [
([1, 12, 63, 99, 99],2,[8, 11, 35, 64, 93],3,),
([-72, -60, 22, 88, 90, -36, 98, -42, 72, 16, -36, 30, -24, -2, 92, 50, -96, -12, -42, 14, -62, 70, -84, -30, -20, 4, -36, -8, 16, 88, 58, -92, -84, 40, -12, 50],24,[-98, 96, -92, -98, -48, -64, 16, -94, -30, 58, 0, 14, -30, -30, 70, -72, 8, -8, 84, -24, -74, 2, -24, 20, 12, 46, 30, 2, -2, -74, 82, -96, 44, -68, -58, -52],23,),
([0, 1],1,[0, 1],1,),
([50, 45, 11, 24, 93, 76, 89, 90, 63, 40, 84, 47, 9, 90, 61, 11, 46, 63, 16, 80, 99, 65],21,[64, 56, 53, 46, 97, 91, 50, 68, 32, 83, 69, 57, 59, 99, 61, 6, 90, 61, 9, 47, 93, 86],12,),
([-64, -26, 76],1,[-88, 44, 58],2,),
([0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1],40,[1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1],36,),
([1, 2, 3, 3, 8, 9, 10, 10, 11, 18, 18, 19, 22, 23, 24, 27, 27, 27, 33, 36, 38, 39, 40, 41, 48, 50, 50, 51, 59, 59, 62, 65, 68, 69, 70, 71, 72, 72, 75, 75, 76, 84, 85, 86, 88, 91, 96, 99],36,[6, 14, 14, 21, 24, 25, 27, 29, 29, 30, 33, 38, 39, 44, 49, 50, 50, 51, 52, 52, 53, 54, 56, 56, 59, 59, 63, 64, 67, 68, 70, 71, 71, 72, 73, 73, 78, 80, 83, 84, 85, 87, 90, 91, 91, 92, 94, 96],43,),
([-58, -62, 82, -88],3,[38, 92, 76, 6],3,),
([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],16,[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],18,),
([13, 37, 2, 83, 4, 55, 76, 94, 74, 33, 99, 9, 62, 32, 45, 31, 40, 67, 47, 29, 70, 42, 93, 66, 78, 57, 27, 50, 17, 32, 18, 96, 52, 50, 99, 60, 4, 68, 34, 24, 26, 41, 23, 72, 93, 93, 39, 3],43,[53, 65, 91, 70, 65, 77, 70, 52, 89, 39, 22, 76, 95, 98, 85, 11, 27, 43, 39, 56, 44, 53, 63, 86, 32, 71, 5, 71, 85, 80, 41, 27, 52, 66, 4, 64, 99, 99, 92, 82, 17, 48, 41, 18, 79, 22, 62, 40],37,)
]
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/PROGRAM_BEST_FIT_ALGORITHM_MEMORY_MANAGEMENT.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 , corner ) :
n = len ( str )
cl = len ( corner )
if ( n < cl ) :
return False
return ( ( str [ : cl ] == corner ) and ( str [ n - cl : ] == corner ) )
#TOFILL
if __name__ == '__main__':
param = [
('geeksmanishgeeks','geeks',),
('shreyadhatwalia','abc',),
('10000100','100',),
('abaa','a',),
('30645530','30',),
('0000011011001','001',),
('dkqEd','d',),
('48694119324654','654',),
('1101010010','11',),
('Ks','KsFLmngGGOmHKs',)
]
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_FIND_STRING_START_END_GEEKS.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 ) :
count = 0 ;
if ( n and not ( n & ( n - 1 ) ) ) :
return n
while ( n != 0 ) :
n >>= 1
count += 1
return 1 << count ;
#TOFILL
if __name__ == '__main__':
param = [
(74,),
(70,),
(85,),
(78,),
(71,),
(32,),
(97,),
(90,),
(64,),
(48,)
]
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/NEXT_POWER_OF_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 ) :
return ( 1 << ( n - 1 ) )
#TOFILL
if __name__ == '__main__':
param = [
(56,),
(28,),
(4,),
(24,),
(72,),
(30,),
(48,),
(32,),
(13,),
(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_SUM_EVEN_INDEX_BINOMIAL_COEFFICIENTS_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 % 15 == 0 )
#TOFILL
if __name__ == '__main__':
param = [
(30,),
(-30,),
(60,),
(90,),
(99,),
(32,),
(21,),
(65,),
(21,),
(99,)
]
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_CHECK_WHETHER_N_TH_FIBONACCI_NUMBER_MULTIPLE_10.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 ) :
variable = 1
if ( A == B ) :
return 1
elif ( ( B - A ) >= 5 ) :
return 0
else :
for i in range ( A + 1 , B + 1 ) :
variable = ( variable * ( i % 10 ) ) % 10
return variable % 10
#TOFILL
if __name__ == '__main__':
param = [
(79,84,),
(61,29,),
(39,77,),
(39,65,),
(61,78,),
(86,73,),
(7,92,),
(86,50,),
(86,63,),
(11,2,)
]
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_LAST_DIGIT_FACTORIAL_DIVIDES_FACTORIAL_B.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 ) :
diff = 10 ** 20
for i in range ( n - 1 ) :
for j in range ( i + 1 , n ) :
if abs ( arr [ i ] - arr [ j ] ) < diff :
diff = abs ( arr [ i ] - arr [ j ] )
return diff
#TOFILL
if __name__ == '__main__':
param = [
([1, 1, 2, 3, 5, 8, 10, 11, 15, 15, 16, 20, 26, 28, 30, 30, 33, 33, 39, 50, 50, 50, 54, 62, 66, 68, 69, 69, 74, 74, 75, 75, 76, 78, 82, 83, 85, 86, 86, 89, 89, 91, 91, 92, 92, 92, 93, 94, 98],32,),
([6, 6, -20, 88, -78, -18, 74, 72, 80, 76, -62, 38],11,),
([0, 1, 1, 1, 1],3,),
([75, 85, 49, 66, 44, 89, 80, 39, 64, 70, 25, 21, 81, 33, 90, 68, 51],16,),
([-96, -10, 0, 4, 54, 64],3,),
([1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0],41,),
([3, 3, 5, 5, 7, 7, 9, 11, 11, 18, 18, 18, 20, 29, 29, 31, 31, 32, 37, 43, 44, 46, 48, 50, 52, 52, 53, 63, 63, 65, 69, 72, 76, 76, 81, 84, 85, 86, 87, 87, 90, 94, 97, 97],27,),
([40, -46, 72, -28, 8, 90, 86, -90, 8, -66, -98, 6, 42, 86, 88, 42, -50, 74, -34, -16, -94, -56, -18, -18, 84, -44, 34, 80, 96, 42, -50, -92, 70, 80, 62, -38, -4, 68, 54, -14, 30, -18, -58],33,),
([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],26,),
([15, 41, 32, 19, 68, 36, 61, 59, 5, 91, 53, 95, 10, 64, 15, 32, 14, 64, 48, 70, 85, 19, 83, 2, 33, 58, 93, 88, 21, 88, 45, 45, 18, 8],24,)
]
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_DIFFERENCE_PAIR.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 ( )
return ( arr [ n - 1 ] + arr [ n - 2 ] + arr [ n - 3 ] )
#TOFILL
if __name__ == '__main__':
param = [
([6, 8, 18, 18, 27, 33, 33, 38, 42, 43, 44, 47, 52, 58, 64, 65, 67, 68, 71, 75, 85, 89, 91, 94, 94, 95, 95],26,),
([24, 24, 44, 28, -88, 18, 34, 92, -84, 94, -12, 30, -82, -58],8,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],15,),
([95, 75, 5, 51, 67, 63, 26, 47, 70, 11, 21, 9, 18, 31, 76, 66, 81, 73, 63, 55, 16, 72, 15, 28, 25, 25, 35, 79, 4, 73, 23, 87, 2, 1, 92, 94, 18, 70, 87, 27, 34, 84, 12],37,),
([-86, -86, -78, -56, -24, -14, -10, -6, 12, 12, 18, 22, 22, 26, 50, 50, 72, 78, 94],9,),
([0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0],9,),
([2, 13, 17, 19, 20, 23, 28, 28, 29, 40, 45, 51, 52, 58, 58, 68, 70, 75, 79, 81, 92, 96, 97],15,),
([94, 6, 52, 6, -78, 40, -46, -20, 64, 76, -36, -62, 50, -4, 4],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, 1, 1, 1, 1, 1, 1, 1, 1],27,),
([34, 11, 15, 42, 32, 4, 6, 25, 52, 44, 14, 57, 3, 44, 7, 89, 35, 3, 70, 66, 58, 22, 5, 17, 33, 11],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/MAXIMUM_TRIPLET_SUM_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 ( arr , n ) :
i = - 1
for j in range ( n ) :
if ( arr [ j ] < 0 ) :
i += 1
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
pos , neg = i + 1 , 0
while ( pos < n and neg < pos and arr [ neg ] < 0 ) :
arr [ neg ] , arr [ pos ] = arr [ pos ] , arr [ neg ]
pos += 1
neg += 2
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 6, 7, 8, 10, 13, 15, 15, 27, 27, 29, 29, 29, 29, 31, 33, 33, 36, 38, 38, 39, 42, 47, 47, 51, 51, 51, 52, 53, 55, 56, 57, 64, 66, 66, 67, 68, 70, 72, 74, 78, 86, 88, 94, 97, 97],26,),
([73, 30, 55, -5, 15, 64, -64, -74, -57, -73, -31, 48],8,),
([0, 0, 0, 1, 1, 1, 1, 1, 1, 1],6,),
([62, 82, 89, 97, 60, 43, 76, 68, 5, 37, 72, 92, 31],7,),
([-99, -89, -71, -60, -59, -54, -49, 1, 51],8,),
([1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1],21,),
([2, 7, 17, 22, 24, 25, 26, 28, 29, 33, 34, 38, 43, 49, 51, 52, 54, 59, 63, 70, 71, 75, 82, 88, 91, 91],14,),
([-51, 99, -19, -16, 5, 77, 48, 18, -14, -37, 89, 4, -51, -29, -99, 41, 79, 23, 84, -38, -68],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, 1, 1, 1],44,),
([88, 87, 59],1,)
]
filled_function_param = [
([5, 5, 6, 7, 8, 10, 13, 15, 15, 27, 27, 29, 29, 29, 29, 31, 33, 33, 36, 38, 38, 39, 42, 47, 47, 51, 51, 51, 52, 53, 55, 56, 57, 64, 66, 66, 67, 68, 70, 72, 74, 78, 86, 88, 94, 97, 97],26,),
([73, 30, 55, -5, 15, 64, -64, -74, -57, -73, -31, 48],8,),
([0, 0, 0, 1, 1, 1, 1, 1, 1, 1],6,),
([62, 82, 89, 97, 60, 43, 76, 68, 5, 37, 72, 92, 31],7,),
([-99, -89, -71, -60, -59, -54, -49, 1, 51],8,),
([1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1],21,),
([2, 7, 17, 22, 24, 25, 26, 28, 29, 33, 34, 38, 43, 49, 51, 52, 54, 59, 63, 70, 71, 75, 82, 88, 91, 91],14,),
([-51, 99, -19, -16, 5, 77, 48, 18, -14, -37, 89, 4, -51, -29, -99, 41, 79, 23, 84, -38, -68],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, 1, 1, 1],44,),
([88, 87, 59],1,)
]
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/REARRANGE_POSITIVE_AND_NEGATIVE_NUMBERS_PUBLISH.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 , m ) :
dp = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ]
for i in range ( 1 , n + 1 ) :
for j in range ( 0 , m + 1 ) :
if ( i > j ) :
if ( j == 0 ) :
dp [ i ] [ j ] = 1
else :
dp [ i ] [ j ] = ( ( ( i - j ) * dp [ i - 1 ] [ j - 1 ] ) + ( ( j + 1 ) * dp [ i - 1 ] [ j ] ) )
return dp [ n ] [ m ]
#TOFILL
if __name__ == '__main__':
param = [
(27,7,),
(77,34,),
(35,22,),
(26,20,),
(6,10,),
(66,47,),
(44,29,),
(26,33,),
(74,86,),
(65,97,)
]
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/EULERIAN_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 ) :
evenArr = [ ]
oddArr = [ ]
for i in range ( n ) :
if ( ( i % 2 ) == 0 ) :
evenArr.append ( arr [ i ] )
else :
oddArr.append ( arr [ i ] )
evenArr = sorted ( evenArr )
oddArr = sorted ( oddArr )
oddArr = oddArr [ : : - 1 ]
i = 0
for j in range ( len ( evenArr ) ) :
arr [ i ] = evenArr [ j ]
i += 1
for j in range ( len ( oddArr ) ) :
arr [ i ] = oddArr [ j ]
i += 1
#TOFILL
if __name__ == '__main__':
param = [
([6, 6, 6, 10, 15, 21, 38, 50, 51, 72, 79, 81, 82, 84, 85, 86, 87],15,),
([82, -36, 18, -88, -24, 20, 26, -52, 28, 2],7,),
([0, 0, 0, 1, 1, 1],3,),
([81, 47, 38, 70, 35, 43, 94, 30, 57, 55, 78, 97, 72, 1],8,),
([-80, -78, -72, -46, -26, -24, -20, 8, 16, 26, 38, 44, 54, 68, 68, 78, 86, 92],11,),
([0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0],21,),
([3, 4, 9, 12, 20, 30, 33, 34, 37, 38, 50, 51, 52, 54, 60, 69, 73, 74, 92, 93, 94, 97, 98],13,),
([86, -32, 64, -36, -36, -30, -66, -60, -76, -56, -60, -16, -60, -98, -18, 72, -14],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],29,),
([61, 11, 46, 40, 82, 35, 37, 41, 52, 76, 13, 53, 53, 3, 40, 29, 7, 51, 20, 51, 87, 1, 80, 73, 89, 93, 1, 71, 33, 50, 62, 85, 46, 1, 71, 54, 81, 85],36,)
]
filled_function_param = [
([6, 6, 6, 10, 15, 21, 38, 50, 51, 72, 79, 81, 82, 84, 85, 86, 87],15,),
([82, -36, 18, -88, -24, 20, 26, -52, 28, 2],7,),
([0, 0, 0, 1, 1, 1],3,),
([81, 47, 38, 70, 35, 43, 94, 30, 57, 55, 78, 97, 72, 1],8,),
([-80, -78, -72, -46, -26, -24, -20, 8, 16, 26, 38, 44, 54, 68, 68, 78, 86, 92],11,),
([0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0],21,),
([3, 4, 9, 12, 20, 30, 33, 34, 37, 38, 50, 51, 52, 54, 60, 69, 73, 74, 92, 93, 94, 97, 98],13,),
([86, -32, 64, -36, -36, -30, -66, -60, -76, -56, -60, -16, -60, -98, -18, 72, -14],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],29,),
([61, 11, 46, 40, 82, 35, 37, 41, 52, 76, 13, 53, 53, 3, 40, 29, 7, 51, 20, 51, 87, 1, 80, 73, 89, 93, 1, 71, 33, 50, 62, 85, 46, 1, 71, 54, 81, 85],36,)
]
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_EVEN_PLACED_ELEMENTS_INCREASING_ODD_PLACED_DECREASING_ORDER.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 ) :
n = len ( str )
dp = [ [ 0 ] * ( n + 1 ) ] * ( n + 1 )
for i in range ( 1 , n + 1 ) :
for j in range ( 1 , n + 1 ) :
if ( str [ i - 1 ] == str [ j - 1 ] and i != j ) :
dp [ i ] [ j ] = 1 + dp [ i - 1 ] [ j - 1 ]
else :
dp [ i ] [ j ] = max ( dp [ i ] [ j - 1 ] , dp [ i - 1 ] [ j ] )
return dp [ n ] [ n ]
#TOFILL
if __name__ == '__main__':
param = [
('JxZFz',),
('7648992235770',),
('11100000',),
('cRN SgYjPsctJ',),
('434',),
('1',),
('JRfZIAsbrPBZ',),
('03779368305592',),
('1111000',),
('BkULuIi',)
]
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/LONGEST_REPEATING_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 ( mat , n , x ) :
i = 0
j = n - 1
while ( i < n and j >= 0 ) :
if ( mat [ i ] [ j ] == x ) :
print ( "n Found at " , i , ", " , j )
return 1
if ( mat [ i ] [ j ] > x ) :
j -= 1
else :
i += 1
print ( "Element not found" )
return 0
#TOFILL
if __name__ == '__main__':
param = [
([[1, 9, 20, 22, 23, 33, 37, 40, 54, 63, 67, 68, 80, 81, 82, 84, 94], [11, 11, 14, 16, 28, 34, 40, 48, 49, 51, 60, 71, 81, 83, 93, 96, 98], [6, 14, 21, 22, 32, 40, 45, 47, 54, 76, 77, 80, 81, 85, 88, 90, 98], [6, 12, 20, 25, 29, 30, 36, 41, 44, 50, 76, 78, 80, 81, 90, 94, 99], [3, 5, 7, 10, 12, 14, 14, 19, 22, 28, 38, 40, 44, 46, 55, 77, 83], [1, 5, 21, 22, 27, 37, 44, 45, 48, 55, 56, 59, 64, 64, 73, 76, 83], [6, 26, 30, 31, 31, 37, 42, 57, 63, 68, 81, 85, 87, 96, 96, 97, 98], [3, 4, 22, 23, 36, 51, 54, 57, 57, 61, 70, 71, 74, 78, 79, 80, 93], [4, 4, 16, 18, 27, 52, 53, 54, 62, 64, 65, 78, 82, 83, 88, 89, 94], [2, 6, 8, 24, 34, 38, 40, 41, 43, 44, 46, 57, 59, 61, 63, 84, 93], [11, 11, 30, 45, 48, 52, 62, 64, 65, 66, 67, 75, 80, 87, 93, 96, 96], [16, 47, 56, 57, 67, 69, 77, 78, 79, 82, 83, 84, 88, 89, 91, 95, 97], [3, 9, 13, 24, 37, 48, 49, 52, 52, 68, 68, 72, 72, 78, 78, 94, 98], [3, 13, 18, 23, 23, 34, 35, 36, 36, 38, 41, 55, 57, 68, 75, 83, 87], [5, 23, 23, 31, 31, 33, 34, 45, 45, 48, 54, 60, 62, 71, 71, 73, 78], [3, 3, 4, 5, 8, 17, 19, 20, 29, 49, 61, 69, 71, 74, 86, 87, 88], [5, 12, 14, 19, 27, 28, 29, 30, 31, 33, 39, 40, 79, 80, 83, 83, 87]],10,13,),
([[94, 56, 74, -2, 26, -96, -62, 50, 58, -52, 4, 72, 98, -66, -80, -18, 12, -34, -36, 40, -48, 58, 2, -64, 14, -20, -94, 50, 58, 38, 12, 98, 18, 26, -64, 90, -48], [84, 70, 30, 22, -38, 98, 90, 42, -90, 54, 34, -44, -4, -88, 72, -70, 46, 56, 34, 96, 34, -92, 22, 94, 8, 16, 58, -36, 16, -34, 64, -20, 20, 50, 50, -30, 52], [-58, -46, 2, 58, -82, -8, 50, -82, 2, -28, -36, 12, -90, -88, -8, 86, -34, -24, 8, 4, 40, -56, 8, -12, 74, -96, 38, 50, -4, 6, -78, -36, 82, 14, 94, -74, 82], [-74, 40, -26, 24, 84, 98, -12, 98, 40, 14, -98, 44, -78, 98, 42, -34, -82, 68, 76, 40, 52, 46, -64, 26, 10, 64, -2, -84, -12, -40, -14, 82, 90, 46, -78, -4, 26], [82, -82, 32, -58, 86, 60, -4, -56, -86, -92, -58, 60, -94, -62, 44, 62, 58, 56, -16, -14, 8, -52, -26, 94, 70, -36, -16, -34, -42, 36, 94, -8, 62, -2, -30, -4, 28], [44, -90, -38, 34, -66, -90, 44, 30, 50, 14, -54, -88, -40, -22, -30, 42, -2, 70, -84, 60, -22, -4, 10, -92, 98, 90, 60, -10, 56, -16, -72, 34, 24, -2, -84, 76, -6], [76, -56, 10, 68, 2, -16, -24, 56, 80, -68, 96, 70, -42, 2, 44, -70, -24, 68, 36, -28, 84, -60, -96, 28, -64, 38, 62, 30, 86, -38, 94, 72, -22, 32, 14, -36, -54], [98, -46, -56, 48, 44, -90, 52, 14, -22, 72, 44, 80, 46, 34, -52, -64, -16, 64, -40, 18, 62, -62, 54, -2, 88, -2, -58, -86, 40, -2, 32, 90, -68, -76, 74, 48, 92], [0, -46, 38, 14, -26, 78, 16, 2, -90, -28, 92, -14, -36, -16, 32, 96, -30, 38, 32, -46, 88, 12, -6, -20, -8, 72, -50, -96, 20, -70, -50, -96, 38, -66, -36, -8, -76], [2, -98, -26, 48, 58, 58, -60, 22, -14, 30, -90, -12, 84, 28, 78, -32, 82, -12, -30, -88, -90, -32, -20, -46, -68, 16, -30, 52, 96, 84, -54, -50, -78, -44, 90, -58, -56], [78, -90, 2, 52, -8, 44, 14, -22, -12, 34, 30, -44, -66, 14, -72, -88, 38, -4, 88, 86, -52, -34, 28, 34, -46, -52, -30, -18, -94, 10, -60, 52, -34, -22, -64, 18, 22], [-54, 86, -62, -92, -58, -12, -42, -54, -42, -14, 34, -76, 50, -4, -64, 20, -88, -66, 42, -94, -54, -26, -92, -76, -6, -86, -92, 4, 82, -42, -66, -92, -74, 72, -22, -82, -98], [-80, -32, 62, -6, -48, -94, -8, 12, -98, -66, 50, -78, 42, 40, -70, -48, 86, 2, -60, 26, -24, 80, 18, -76, -20, 70, 72, -96, -56, -4, 94, -6, -2, -40, -54, -72, -22], [-76, 28, -48, -42, -50, -4, -38, -14, 26, 86, 48, -68, 90, 54, 92, -12, -60, 10, 80, 32, -80, -22, -72, 8, 24, 52, -62, -40, -20, -38, -16, -28, -70, 64, -34, -54, -20], [26, -46, 82, -76, -72, -18, 80, -96, 20, -80, 16, 12, 4, 32, -58, 94, 90, -58, 32, 38, -60, -68, 58, 58, -4, -14, 20, 22, -4, -6, 42, 18, -58, 62, 72, -86, 64], [-16, 98, 36, 58, 56, -40, -22, -60, 26, -64, 92, 96, -16, 32, 46, 32, -38, 92, -52, -78, -58, 4, -92, -68, -82, -96, -46, -52, -92, -10, 52, 90, -24, 50, -40, -4, -92], [64, 90, 14, -66, 30, -46, -74, -26, 10, -84, 84, -16, 30, 72, 40, -66, 4, 60, -52, 0, 94, -26, 68, -98, 28, 48, -50, 40, -30, 84, 58, -34, 68, 8, -58, -38, 80], [-6, 94, -38, 74, -22, 44, -8, -52, -38, 80, -30, 88, -2, 74, -64, -32, 44, 44, 92, -26, 38, 80, -10, 62, 40, -74, 50, 20, -50, 78, 30, 18, -80, 72, -80, 16, 74], [-26, -38, -90, -30, -18, 58, -76, 44, 26, -76, -50, 66, -94, 64, 42, -60, -16, -70, -28, -22, -62, 24, -60, 52, 22, 26, -94, -64, -12, 20, -16, -36, -28, 70, 52, 60, -66], [-94, -66, 82, -70, 36, 40, -54, -34, 88, -82, -18, 52, 36, 70, 40, -26, -22, 34, 84, 24, 52, -88, -74, -46, 30, 74, -58, -56, 54, 0, 48, -70, -10, -44, 70, -76, 38], [0, -24, 96, -96, 40, 24, -80, 44, -54, 36, -12, 74, -10, -60, -44, -46, -76, -14, 72, -22, -92, 50, 58, -16, -26, 68, -94, -84, -96, 84, 38, -12, -14, -48, 62, 94, 96], [-32, -96, 72, 4, 72, 46, 94, 74, 46, -52, 64, -82, -4, 6, -16, -58, -70, 26, 80, -70, 46, 48, 60, 54, -48, -28, 8, -12, 30, -34, -40, -40, 2, -80, 56, -96, -40], [-66, 64, 14, 96, -58, -42, 30, -20, 64, -96, 20, -54, -44, 42, 4, -30, -14, -8, -54, 62, -72, 34, 36, -18, -90, 36, 88, 58, -6, -96, -96, 74, -30, -44, 4, 32, 28], [-56, 14, -6, 48, 86, 2, 48, -40, 4, 20, -10, 2, 54, 8, -76, -64, -12, -54, -72, 14, -80, -64, 4, 0, -82, -76, -10, -68, -4, 4, 36, 32, -96, 28, 86, -34, 44], [40, 56, 0, -64, -82, 48, -68, 76, -28, 76, 90, 74, 68, 8, -4, -48, -62, 86, 6, 32, 54, -38, 48, -36, -50, -44, -14, 20, -50, -34, 52, 48, -82, 84, 84, -12, 14], [52, -6, -62, 90, -34, -64, -58, -76, 46, -30, -44, 4, -4, -48, -96, -52, 10, -16, -92, -58, 64, -26, -36, -2, -48, -4, -46, 40, -70, 84, 22, 84, -4, -58, 14, 44, 78], [38, 44, 36, -54, 80, -46, -52, 20, -34, 96, 18, -80, 20, 88, -2, 24, 54, 48, 86, 34, 84, -76, -58, 34, 22, -58, 54, -28, 98, 52, -42, 16, 28, 72, -60, -20, 54], [40, -80, 58, 60, 44, -66, -32, -90, -98, -8, 60, -50, 78, -70, 30, -60, 82, 34, 48, 6, -68, 6, -30, 58, -66, -20, -6, -48, -28, -8, -12, 52, -84, -22, 80, 54, -66], [16, 86, 6, 44, 36, 0, 92, 2, -92, 32, 80, 80, -88, -54, 26, -4, 50, -86, 58, -76, 44, 44, 88, -84, -22, -74, 68, 84, 44, 86, 12, -72, 56, -36, 36, 52, -38], [88, 48, 88, -78, 16, 78, 8, -60, -70, -74, -6, 96, -84, -42, 92, -26, 36, -28, -50, 96, -8, -70, 54, -60, -50, 60, 64, 22, -6, 32, -66, 22, -70, -40, 22, 92, 38], [-30, 98, -48, 58, -82, -54, 68, 88, -42, 16, -52, 42, -48, 0, 94, -92, 0, 66, -48, 66, -96, -6, -82, -98, 36, -90, 66, -68, -42, 32, 78, -8, -36, 52, 88, -46, 44], [-26, 28, 60, -74, -6, -38, -68, -14, 4, 20, 14, 84, -48, 24, -74, 4, 84, -28, -34, 2, 94, 2, 98, 44, -86, -14, 36, -94, -74, -60, 28, -98, -50, -30, 62, 38, 92], [44, -72, -38, 94, 38, -4, -58, -6, 36, 16, -74, 60, -84, -2, -58, 38, -30, 56, 18, 70, 34, 14, 70, -82, -78, -38, 50, -10, -16, -8, -98, 52, 46, 10, -80, -16, 94], [-94, -86, 86, 46, -64, -96, 60, 34, -18, 42, -52, 36, 76, 16, -48, 10, -96, -2, 52, 50, -16, 48, 0, -12, 64, -46, -32, -68, 58, 6, 50, -70, -82, 42, 0, -22, 26], [64, -8, -2, 54, 26, -62, 66, -10, 0, -20, 60, -98, -76, -72, 4, 88, 82, 82, 32, -88, -34, -16, -94, -92, -72, -72, 64, -54, -80, 52, 68, -36, -82, -20, 58, 38, 18], [-20, 26, 66, -4, -82, 56, 38, -32, -22, -50, 78, -74, 96, -44, 10, -6, -26, 44, -36, -8, 82, -86, -46, -24, -58, -50, -68, 10, 70, -68, 56, -38, -18, -14, 60, -28, 98], [98, -60, 44, -42, 78, 66, 38, -6, -78, 34, 26, 50, 26, 26, -60, -78, 86, 44, -86, 52, 56, 52, -46, 4, -24, -98, 92, -10, -80, -40, 86, 66, -66, -40, 84, -66, 16]],23,26,),
([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 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]],17,24,),
([[21, 51, 70, 93, 45, 29, 18, 47, 7, 9, 76], [23, 91, 12, 44, 91, 43, 81, 14, 49, 15, 85], [13, 4, 66, 25, 16, 75, 76, 95, 15, 78, 84], [56, 65, 67, 56, 49, 67, 52, 82, 15, 18, 89], [73, 95, 91, 73, 55, 27, 7, 43, 76, 43, 28], [80, 87, 66, 90, 96, 46, 98, 75, 70, 15, 3], [31, 46, 81, 10, 39, 57, 96, 69, 71, 64, 58], [77, 13, 14, 96, 97, 65, 21, 27, 42, 84, 99], [92, 16, 10, 81, 61, 7, 47, 86, 15, 20, 94], [9, 55, 54, 28, 7, 26, 73, 10, 63, 83, 76], [62, 59, 30, 61, 98, 3, 22, 26, 95, 47, 13]],7,9,),
([[-82, -80, -70, -56, -36, -24, -18, 12, 28, 38, 78], [-56, -34, -32, 30, 32, 40, 56, 66, 76, 86, 94], [-98, -90, -80, -64, -18, 6, 66, 66, 76, 84, 90], [-88, -74, -58, -16, -16, -8, 22, 34, 46, 68, 82], [-74, -58, -52, -46, -16, 30, 32, 40, 56, 80, 98], [-74, -70, -40, -26, -12, 6, 10, 50, 66, 74, 76], [-92, -86, -58, -30, 20, 22, 22, 24, 32, 38, 52], [-84, -64, -24, 26, 28, 38, 38, 48, 64, 82, 92], [-90, -50, -50, -42, -24, 32, 36, 60, 64, 78, 96], [-98, -76, -48, -40, -34, -6, 58, 58, 64, 70, 90], [-78, -72, -64, -34, -24, -12, -12, -2, 80, 82, 84]],6,8,),
([[0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1], [1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0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, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1], [1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0], [0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1], [1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0], [1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1], [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1]],23,19,),
([[13, 13, 18, 19, 22, 24, 25, 27, 28, 28, 29, 30, 44, 46, 52, 56, 60, 67, 75, 75, 83, 84, 87, 98], [5, 9, 11, 14, 14, 21, 21, 28, 40, 46, 55, 56, 57, 58, 58, 59, 67, 69, 75, 76, 78, 79, 87, 88], [1, 5, 6, 6, 8, 13, 20, 37, 44, 47, 54, 58, 67, 69, 73, 86, 89, 90, 91, 94, 96, 98, 99, 99], [1, 4, 12, 13, 21, 23, 26, 28, 32, 38, 43, 44, 51, 53, 55, 57, 58, 59, 60, 66, 70, 76, 82, 98], [3, 3, 4, 5, 5, 8, 11, 12, 12, 14, 16, 29, 29, 31, 41, 44, 53, 55, 61, 61, 67, 71, 84, 92], [2, 3, 4, 5, 7, 7, 11, 16, 19, 33, 36, 36, 38, 41, 48, 52, 53, 59, 65, 65, 70, 82, 82, 91], [10, 12, 13, 19, 20, 24, 25, 29, 30, 32, 34, 43, 55, 55, 56, 58, 68, 73, 73, 74, 75, 80, 87, 98], [4, 4, 7, 8, 9, 17, 20, 24, 27, 28, 32, 38, 52, 59, 65, 75, 78, 80, 81, 81, 83, 84, 85, 89], [4, 4, 5, 5, 8, 8, 11, 17, 18, 21, 35, 41, 51, 52, 56, 62, 63, 63, 63, 65, 77, 86, 90, 92], [3, 8, 10, 14, 22, 42, 46, 48, 49, 52, 55, 57, 61, 62, 64, 69, 70, 78, 80, 87, 88, 95, 96, 97], [2, 6, 6, 10, 10, 17, 19, 20, 22, 22, 24, 31, 40, 45, 47, 56, 56, 63, 79, 81, 81, 83, 84, 95], [8, 9, 11, 16, 17, 17, 21, 22, 26, 34, 35, 49, 50, 51, 56, 63, 64, 64, 70, 73, 73, 75, 78, 97], [1, 5, 5, 8, 13, 15, 18, 19, 20, 22, 27, 28, 32, 35, 38, 47, 50, 56, 72, 76, 77, 80, 96, 96], [8, 20, 31, 36, 37, 38, 39, 40, 43, 46, 46, 51, 57, 65, 69, 72, 76, 81, 83, 91, 93, 96, 97, 99], [1, 5, 5, 10, 13, 15, 18, 21, 29, 42, 43, 46, 50, 58, 62, 64, 67, 70, 74, 75, 76, 90, 91, 98], [3, 3, 7, 11, 12, 13, 24, 30, 35, 37, 37, 46, 48, 51, 58, 67, 67, 71, 72, 73, 80, 86, 86, 90], [8, 13, 15, 23, 31, 33, 36, 50, 53, 56, 64, 64, 64, 65, 76, 76, 79, 80, 82, 84, 86, 88, 90, 98], [2, 2, 4, 4, 6, 10, 11, 11, 12, 15, 17, 20, 26, 26, 27, 36, 45, 58, 60, 61, 66, 75, 90, 90], [3, 6, 15, 19, 26, 30, 32, 33, 33, 33, 35, 36, 43, 43, 45, 52, 55, 59, 78, 83, 86, 88, 89, 91], [15, 19, 23, 26, 34, 40, 49, 52, 56, 57, 61, 72, 72, 74, 76, 77, 78, 80, 80, 86, 89, 93, 99, 99], [12, 16, 21, 23, 24, 27, 32, 37, 40, 44, 47, 49, 49, 61, 64, 66, 67, 68, 71, 74, 86, 87, 93, 98], [1, 1, 2, 9, 21, 25, 26, 26, 28, 29, 30, 32, 34, 37, 47, 50, 51, 53, 58, 61, 65, 90, 94, 95], [3, 9, 10, 13, 14, 14, 18, 22, 23, 30, 30, 33, 40, 44, 45, 49, 50, 51, 58, 61, 66, 69, 71, 73], [7, 9, 11, 17, 22, 25, 31, 36, 39, 40, 54, 58, 59, 61, 64, 65, 71, 72, 73, 80, 88, 89, 96, 98]],22,13,),
([[38, -78, 50, 72, -54, 66, 16, -12, 14], [82, -86, -22, 76, -66, 84, -36, 92, -44], [92, 58, -44, 96, 14, 62, 52, -34, -32], [-72, 70, -22, 56, 86, -34, 36, 36, 36], [6, -56, 70, 42, -72, 32, 36, -12, 64], [-70, -20, -60, 74, -84, 98, 14, 22, -80], [62, -64, -64, -20, 12, -8, 32, 24, 50], [-60, -84, -6, 18, -66, -58, -62, -82, 34], [-50, 98, 58, -80, 12, 58, -88, 72, 58]],4,4,),
([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],31,19,),
([[84, 10, 44, 41, 67, 79, 29, 22, 76, 13, 25, 78, 49, 38, 41, 33, 67, 43, 72, 34, 37, 35, 1, 88, 97, 70, 29, 84, 90, 6, 26, 39, 69, 80, 82, 55, 23, 11, 56, 41, 24, 23, 44, 42, 80, 50, 66], [41, 63, 60, 11, 13, 95, 35, 38, 99, 34, 27, 51, 27, 8, 6, 65, 20, 87, 82, 6, 64, 87, 55, 43, 90, 36, 99, 91, 79, 82, 5, 91, 94, 45, 58, 80, 25, 82, 96, 50, 1, 47, 29, 45, 3, 13, 11], [67, 35, 69, 76, 5, 61, 46, 71, 66, 22, 43, 49, 82, 13, 78, 92, 46, 99, 88, 4, 12, 54, 29, 6, 92, 88, 38, 39, 10, 32, 4, 52, 50, 60, 46, 96, 80, 84, 24, 54, 6, 99, 82, 3, 90, 15, 48], [4, 14, 43, 59, 97, 81, 40, 63, 85, 87, 60, 11, 10, 73, 74, 88, 73, 5, 51, 17, 3, 89, 55, 19, 62, 54, 43, 81, 76, 31, 67, 68, 72, 22, 33, 94, 10, 7, 36, 49, 20, 67, 4, 62, 29, 97, 55], [54, 96, 20, 42, 73, 11, 59, 50, 29, 45, 10, 53, 88, 50, 27, 48, 17, 51, 58, 53, 12, 9, 4, 74, 31, 80, 98, 80, 46, 24, 52, 41, 5, 49, 54, 4, 32, 71, 78, 19, 52, 34, 18, 85, 89, 45, 88], [88, 75, 46, 96, 4, 73, 32, 55, 93, 84, 88, 61, 91, 39, 98, 2, 71, 20, 50, 22, 71, 66, 68, 19, 93, 20, 99, 89, 50, 77, 42, 5, 87, 90, 88, 94, 50, 90, 94, 17, 37, 81, 31, 78, 44, 17, 95], [60, 72, 44, 69, 75, 95, 41, 2, 54, 99, 40, 21, 4, 55, 29, 62, 13, 89, 30, 80, 27, 81, 59, 46, 35, 73, 54, 22, 16, 39, 74, 9, 60, 87, 82, 44, 99, 11, 88, 56, 57, 56, 95, 93, 25, 74, 57], [96, 48, 66, 6, 82, 66, 21, 3, 75, 51, 26, 58, 38, 54, 6, 81, 86, 50, 27, 4, 31, 65, 21, 39, 10, 38, 22, 34, 91, 94, 85, 63, 95, 24, 96, 14, 78, 36, 75, 20, 70, 53, 53, 88, 77, 44, 15], [81, 60, 57, 34, 69, 95, 47, 13, 79, 77, 39, 2, 61, 41, 88, 81, 38, 80, 62, 24, 81, 80, 53, 96, 96, 10, 55, 27, 10, 32, 38, 88, 66, 17, 84, 4, 58, 48, 94, 47, 4, 91, 78, 85, 84, 17, 53], [75, 85, 85, 64, 87, 39, 23, 36, 94, 10, 99, 38, 55, 50, 83, 78, 47, 98, 20, 24, 6, 18, 2, 26, 28, 42, 40, 88, 32, 31, 33, 58, 81, 34, 53, 43, 60, 1, 44, 55, 85, 21, 96, 33, 77, 85, 8], [10, 34, 81, 70, 60, 50, 54, 82, 53, 30, 84, 60, 92, 81, 90, 62, 46, 16, 75, 33, 53, 21, 96, 87, 79, 48, 57, 54, 59, 71, 78, 90, 28, 75, 11, 98, 76, 54, 75, 73, 98, 84, 25, 63, 51, 51, 42], [1, 64, 2, 2, 58, 39, 10, 29, 38, 95, 52, 68, 13, 82, 26, 1, 9, 93, 66, 42, 46, 54, 46, 58, 38, 68, 4, 92, 63, 17, 50, 21, 28, 74, 10, 95, 21, 50, 66, 58, 23, 51, 80, 67, 96, 7, 60], [84, 17, 10, 64, 11, 72, 15, 93, 32, 51, 15, 8, 13, 76, 58, 52, 48, 70, 30, 91, 58, 56, 73, 36, 75, 47, 90, 80, 6, 71, 24, 42, 59, 77, 56, 80, 37, 20, 82, 2, 6, 40, 56, 12, 70, 26, 25], [44, 16, 42, 51, 83, 3, 71, 30, 78, 53, 89, 99, 30, 51, 38, 76, 78, 81, 48, 73, 24, 11, 68, 68, 65, 2, 21, 92, 42, 45, 68, 95, 12, 68, 75, 45, 70, 92, 88, 16, 37, 25, 53, 56, 89, 87, 27], [82, 34, 78, 97, 29, 4, 25, 82, 78, 90, 41, 23, 29, 84, 52, 6, 46, 12, 32, 97, 30, 36, 68, 86, 25, 76, 48, 4, 39, 36, 44, 46, 3, 3, 55, 4, 64, 50, 54, 39, 82, 79, 18, 84, 39, 89, 5], [71, 39, 31, 9, 36, 51, 56, 34, 72, 65, 50, 29, 62, 26, 72, 43, 99, 85, 43, 3, 33, 88, 61, 58, 10, 38, 22, 62, 74, 2, 53, 50, 27, 65, 45, 41, 65, 2, 32, 62, 36, 89, 45, 59, 95, 4, 36], [86, 32, 63, 7, 72, 52, 79, 87, 80, 48, 12, 54, 58, 42, 61, 70, 10, 41, 81, 92, 41, 48, 41, 12, 84, 18, 57, 74, 80, 25, 88, 57, 98, 59, 99, 4, 13, 44, 45, 77, 52, 9, 6, 41, 95, 81, 1], [74, 35, 5, 73, 39, 71, 12, 65, 71, 42, 46, 93, 56, 72, 22, 14, 69, 11, 68, 31, 86, 62, 83, 69, 75, 31, 18, 37, 97, 84, 67, 5, 36, 75, 4, 26, 43, 41, 27, 2, 29, 4, 88, 23, 29, 5, 23], [35, 65, 33, 90, 99, 89, 26, 89, 61, 99, 17, 68, 1, 70, 99, 24, 11, 49, 97, 26, 72, 49, 5, 21, 3, 85, 48, 14, 7, 78, 76, 70, 56, 58, 61, 61, 71, 65, 92, 17, 39, 37, 24, 16, 32, 50, 21], [53, 52, 57, 38, 72, 57, 23, 88, 57, 43, 7, 15, 41, 33, 28, 62, 90, 50, 59, 43, 54, 92, 30, 15, 28, 50, 66, 5, 83, 5, 98, 33, 57, 37, 40, 20, 50, 70, 62, 7, 8, 91, 75, 65, 27, 68, 37], [4, 31, 38, 23, 45, 69, 99, 5, 26, 38, 11, 41, 47, 77, 28, 36, 50, 63, 32, 33, 72, 94, 76, 36, 55, 72, 73, 33, 62, 46, 60, 22, 40, 73, 56, 22, 5, 99, 85, 51, 15, 62, 24, 2, 80, 71, 82], [96, 50, 12, 21, 14, 72, 43, 56, 47, 57, 80, 17, 70, 80, 20, 40, 50, 80, 27, 45, 59, 18, 64, 79, 19, 70, 79, 38, 35, 77, 56, 35, 83, 6, 62, 32, 54, 83, 97, 3, 22, 53, 95, 39, 65, 30, 77], [84, 95, 21, 24, 16, 74, 75, 2, 87, 59, 32, 37, 39, 73, 27, 37, 79, 59, 68, 49, 28, 20, 21, 61, 74, 44, 25, 72, 32, 77, 18, 57, 32, 48, 75, 29, 35, 75, 30, 63, 88, 51, 3, 64, 90, 30, 34], [3, 68, 51, 85, 86, 63, 14, 75, 18, 2, 3, 77, 89, 51, 38, 29, 66, 51, 54, 42, 34, 11, 19, 27, 73, 57, 92, 45, 25, 47, 41, 83, 38, 33, 60, 65, 57, 54, 53, 84, 47, 25, 58, 51, 74, 28, 92], [32, 56, 38, 3, 51, 13, 26, 84, 98, 85, 45, 76, 20, 17, 38, 11, 31, 25, 22, 48, 23, 76, 70, 9, 54, 62, 49, 11, 66, 30, 64, 25, 5, 48, 82, 86, 58, 21, 89, 22, 28, 70, 55, 93, 3, 22, 27], [98, 13, 15, 32, 61, 94, 72, 63, 84, 74, 78, 31, 88, 61, 19, 84, 89, 69, 93, 89, 11, 85, 45, 38, 2, 26, 89, 27, 39, 10, 1, 90, 8, 24, 47, 75, 58, 65, 58, 98, 8, 25, 6, 72, 23, 67, 15], [32, 48, 68, 80, 20, 97, 45, 58, 75, 99, 27, 28, 85, 62, 72, 89, 75, 20, 25, 29, 48, 94, 69, 79, 40, 44, 14, 95, 45, 43, 41, 59, 74, 86, 60, 25, 67, 52, 28, 48, 6, 61, 15, 6, 53, 48, 41], [68, 83, 68, 45, 1, 20, 81, 38, 69, 15, 98, 57, 90, 59, 15, 41, 71, 93, 44, 59, 28, 35, 96, 56, 73, 31, 88, 32, 12, 76, 18, 65, 85, 7, 30, 32, 88, 10, 41, 38, 81, 2, 12, 62, 24, 97, 67], [63, 22, 74, 40, 8, 90, 97, 50, 54, 82, 91, 23, 93, 34, 2, 34, 89, 11, 30, 34, 76, 47, 58, 7, 56, 85, 61, 54, 73, 61, 50, 15, 99, 94, 66, 53, 86, 44, 5, 77, 11, 69, 83, 18, 50, 44, 60], [71, 53, 43, 3, 33, 22, 41, 93, 13, 83, 59, 80, 53, 70, 55, 59, 87, 28, 95, 33, 63, 6, 78, 91, 85, 84, 10, 43, 35, 26, 46, 90, 17, 91, 43, 55, 22, 63, 19, 56, 58, 78, 18, 15, 12, 16, 10], [22, 77, 48, 54, 93, 66, 3, 92, 1, 60, 45, 16, 96, 84, 53, 99, 57, 79, 18, 77, 87, 47, 20, 86, 80, 97, 54, 54, 13, 16, 34, 67, 61, 20, 40, 96, 92, 13, 45, 63, 45, 28, 85, 47, 17, 78, 26], [38, 88, 52, 35, 4, 85, 85, 27, 66, 45, 39, 59, 50, 38, 41, 64, 72, 2, 63, 43, 74, 55, 21, 91, 62, 98, 78, 53, 38, 79, 17, 12, 12, 66, 56, 7, 16, 24, 58, 95, 30, 37, 50, 54, 27, 90, 99], [29, 32, 35, 3, 44, 64, 80, 34, 10, 94, 70, 3, 73, 2, 48, 94, 87, 9, 32, 41, 32, 13, 68, 22, 93, 74, 43, 29, 61, 1, 20, 94, 53, 2, 50, 77, 42, 6, 90, 82, 23, 75, 67, 77, 71, 50, 53], [75, 62, 43, 96, 10, 99, 28, 61, 91, 85, 81, 13, 87, 25, 89, 47, 72, 68, 34, 82, 77, 91, 43, 84, 28, 63, 19, 13, 72, 34, 72, 9, 49, 53, 86, 16, 55, 91, 36, 44, 35, 81, 44, 40, 80, 87, 62], [62, 74, 89, 35, 2, 44, 8, 7, 41, 80, 55, 16, 55, 63, 4, 57, 43, 5, 80, 92, 64, 16, 4, 42, 36, 83, 38, 78, 81, 19, 17, 4, 42, 97, 86, 74, 29, 11, 71, 94, 61, 88, 75, 46, 35, 95, 80], [47, 23, 32, 47, 25, 17, 20, 62, 5, 96, 40, 29, 37, 47, 98, 30, 38, 60, 49, 38, 12, 99, 33, 85, 63, 6, 65, 51, 77, 48, 13, 34, 74, 35, 86, 22, 56, 13, 36, 5, 60, 30, 1, 57, 95, 31, 43], [95, 96, 48, 82, 10, 53, 29, 64, 84, 45, 16, 44, 52, 69, 73, 63, 3, 23, 84, 89, 50, 85, 2, 1, 43, 60, 45, 33, 32, 12, 8, 89, 80, 81, 46, 55, 51, 66, 8, 24, 69, 84, 74, 92, 31, 27, 56], [98, 48, 25, 59, 80, 63, 46, 61, 26, 66, 96, 56, 29, 5, 41, 63, 54, 75, 96, 50, 15, 48, 20, 51, 91, 37, 43, 31, 70, 29, 44, 36, 60, 8, 31, 37, 3, 72, 40, 99, 43, 6, 62, 91, 4, 92, 48], [76, 56, 21, 97, 47, 59, 28, 97, 5, 94, 98, 45, 69, 9, 67, 3, 62, 28, 4, 41, 68, 48, 53, 41, 18, 46, 64, 62, 49, 72, 6, 53, 17, 40, 81, 26, 14, 67, 88, 84, 61, 16, 10, 29, 72, 14, 31], [28, 54, 78, 42, 85, 78, 69, 26, 92, 67, 17, 39, 74, 5, 7, 57, 82, 48, 82, 62, 86, 4, 3, 13, 29, 93, 45, 83, 3, 58, 92, 68, 6, 30, 22, 80, 16, 17, 56, 45, 16, 1, 34, 92, 38, 35, 12], [13, 68, 72, 1, 28, 7, 74, 89, 41, 19, 5, 30, 70, 94, 74, 9, 96, 57, 25, 11, 68, 37, 90, 46, 79, 20, 5, 69, 31, 95, 83, 39, 20, 13, 69, 57, 13, 11, 35, 5, 33, 23, 85, 4, 55, 44, 13], [26, 30, 70, 63, 1, 16, 36, 98, 48, 11, 15, 97, 86, 19, 37, 78, 14, 33, 72, 22, 60, 43, 32, 69, 23, 54, 11, 52, 82, 80, 46, 34, 63, 82, 18, 93, 44, 80, 72, 97, 44, 22, 14, 91, 46, 12, 84], [34, 11, 15, 1, 99, 90, 69, 71, 4, 69, 18, 45, 62, 2, 67, 35, 33, 49, 37, 42, 80, 39, 59, 22, 87, 68, 87, 25, 20, 62, 93, 72, 59, 76, 5, 19, 42, 74, 21, 60, 33, 11, 68, 1, 1, 40, 15], [75, 49, 19, 39, 48, 35, 59, 8, 23, 61, 70, 63, 89, 32, 61, 42, 83, 44, 63, 94, 24, 26, 74, 71, 99, 58, 57, 21, 54, 40, 99, 73, 34, 14, 41, 68, 51, 6, 11, 30, 28, 72, 80, 22, 16, 21, 24], [51, 47, 70, 30, 18, 56, 48, 68, 97, 68, 75, 67, 51, 25, 97, 45, 37, 9, 75, 40, 96, 78, 7, 9, 23, 54, 29, 78, 37, 16, 99, 63, 77, 46, 75, 94, 26, 78, 3, 98, 23, 4, 36, 41, 15, 38, 70], [76, 50, 47, 76, 53, 43, 14, 38, 29, 5, 39, 85, 21, 4, 32, 19, 40, 47, 38, 82, 67, 96, 51, 14, 32, 47, 74, 81, 62, 73, 81, 42, 67, 12, 35, 33, 76, 51, 13, 17, 1, 59, 32, 98, 43, 37, 6], [92, 99, 52, 85, 57, 24, 71, 71, 63, 59, 85, 11, 15, 57, 24, 55, 34, 57, 92, 81, 60, 4, 53, 12, 12, 93, 99, 12, 94, 76, 51, 56, 71, 11, 16, 91, 91, 72, 51, 1, 37, 56, 2, 71, 53, 1, 98]],37,43,)
]
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_IN_ROW_WISE_AND_COLUMN_WISE_SORTED_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 ( x ) :
return ( x and ( not ( x & ( x - 1 ) ) ) )
#TOFILL
if __name__ == '__main__':
param = [
(1,),
(2,),
(8,),
(1024,),
(24,),
(7,),
(46,),
(61,),
(73,),
(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/WRITE_ONE_LINE_C_FUNCTION_TO_FIND_WHETHER_A_NO_IS_POWER_OF_TWO_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 ) :
l = len ( str )
count = 0
res = str [ 0 ]
for i in range ( l ) :
cur_count = 1
for j in range ( i + 1 , l ) :
if ( str [ i ] != str [ j ] ) :
break
cur_count += 1
if cur_count > count :
count = cur_count
res = str [ i ]
return res
#TOFILL
if __name__ == '__main__':
param = [
('geeekk',),
('3786868',),
('110',),
('aaaabbcbbb',),
('11',),
('011101',),
('WoHNyJYLC',),
('3141711779',),
('10111101101',),
('aabbabababcc',)
]
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_CONSECUTIVE_REPEATING_CHARACTER_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 sys
def f_gold ( arr , n ) :
arr.sort ( )
minXor = int ( sys.float_info.max )
val = 0
for i in range ( 0 , n - 1 ) :
val = arr [ i ] ^ arr [ i + 1 ] ;
minXor = min ( minXor , val ) ;
return minXor
#TOFILL
if __name__ == '__main__':
param = [
([8, 11, 12, 27, 32, 32, 36, 56, 57, 66, 68, 70, 74, 78, 82, 83, 96],10,),
([40, 48, 66, 4, -60, 42, -8, 38],7,),
([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],19,),
([98, 6, 82, 95, 87, 20, 11, 63, 78, 70, 37, 12, 57, 67, 10, 49, 38, 28, 86, 7, 61, 50, 32, 68, 91, 66, 57, 29, 2, 64, 65, 15, 16, 4, 7, 76, 44, 52, 81, 89, 3, 36, 57, 95, 48, 24],36,),
([-88, -84, -76, -58, -40, -38, -28, -24, -20, -14, -12, 16, 20, 28, 28, 30, 40, 44, 56, 58, 60, 92, 92],13,),
([0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0],20,),
([6, 6, 19, 31, 41, 45, 49, 56, 78, 96, 98],6,),
([62, -90, 22, -84, -4],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],21,),
([83, 13, 43, 99, 34, 74, 56, 20, 93, 65, 92, 58, 91, 72, 37, 10, 39, 7, 29, 69, 42, 28],14,)
]
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_XOR_VALUE_PAIR_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 , size ) :
positive = 0
negative = 1
while ( True ) :
while ( positive < size and a [ positive ] >= 0 ) :
positive = positive + 2
while ( negative < size and a [ negative ] <= 0 ) :
negative = negative + 2
if ( positive < size and negative < size ) :
temp = a [ positive ]
a [ positive ] = a [ negative ]
a [ negative ] = temp
else :
break
#TOFILL
if __name__ == '__main__':
param = [
([8, 11, 18, 23, 24, 28, 28, 34, 35, 42, 44, 53, 57, 65, 71, 72, 76, 78, 82, 82, 85, 86, 92, 93],15,),
([0, -95, -51, -2, -70, -28, 3, -37, 75, -74, 85, -63, -93, 27, 68, -8, 67, 90, 3, -47, 32, 8, 12, 53, -93, 56, 97],15,),
([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],40,),
([28, 85, 78, 33, 10, 83, 30, 22, 3, 82, 75, 48, 2, 76, 54, 6, 40, 93, 94],10,),
([-98, -94, -7, -3, 1, 11, 11, 83, 88],7,),
([0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0],35,),
([8, 35, 37, 38, 39, 46, 49, 54],6,),
([-60, -66, -4, -21, 27, -83, 61, 75, 10, -48, 18, -91, -67, 88, 13, 49, 86, -15, 97, -90, -94, 15, 21, 41, -35, -80, -43, -54],21,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1],5,),
([62, 36, 39, 53, 90, 78, 56, 1, 56, 4, 30],8,)
]
filled_function_param = [
([8, 11, 18, 23, 24, 28, 28, 34, 35, 42, 44, 53, 57, 65, 71, 72, 76, 78, 82, 82, 85, 86, 92, 93],15,),
([0, -95, -51, -2, -70, -28, 3, -37, 75, -74, 85, -63, -93, 27, 68, -8, 67, 90, 3, -47, 32, 8, 12, 53, -93, 56, 97],15,),
([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],40,),
([28, 85, 78, 33, 10, 83, 30, 22, 3, 82, 75, 48, 2, 76, 54, 6, 40, 93, 94],10,),
([-98, -94, -7, -3, 1, 11, 11, 83, 88],7,),
([0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0],35,),
([8, 35, 37, 38, 39, 46, 49, 54],6,),
([-60, -66, -4, -21, 27, -83, 61, 75, 10, -48, 18, -91, -67, 88, 13, 49, 86, -15, 97, -90, -94, 15, 21, 41, -35, -80, -43, -54],21,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1],5,),
([62, 36, 39, 53, 90, 78, 56, 1, 56, 4, 30],8,)
]
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/POSITIVE_ELEMENTS_EVEN_NEGATIVE_ODD_POSITIONS.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 , x , y ) :
min_dist = sys.maxsize
for i in range ( n ) :
if arr [ i ] == x or arr [ i ] == y :
prev = i
break
while i < n :
if arr [ i ] == x or arr [ i ] == y :
if arr [ prev ] != arr [ i ] and ( i - prev ) < min_dist :
min_dist = i - prev
prev = i
else :
prev = i
i += 1
return min_dist
#TOFILL
if __name__ == '__main__':
param = [
([4, 7, 7, 8, 11, 14, 16, 25, 34, 35, 36, 36, 38, 40, 41, 43, 45, 47, 57, 60, 64, 72, 73, 74, 75, 82, 83, 83, 84, 84, 84, 92],22,7,40,),
([96, 70, 88, -64, -42, 58, 92, 66, -14, 90, -66, 12, 88, -12, 48, -4, 90, 24, 98, 14, 32, 38, 98, 78, 2, 26, 12, -36, 90, 80, 40, 58, 88, 64, 16],25,58,70,),
([0, 0, 1],1,1,1,),
([46, 96, 82, 73, 30, 36, 56, 20, 5, 36, 4, 7, 89, 63, 54, 97, 80, 56, 93, 34, 90, 56, 25, 27, 75, 68, 14, 90],26,54,82,),
([-96, -88, -82, -66, -62, -52, -52, -46, -46, -40, -40, -28, -24, -12, 0, 4, 10, 24, 42, 46, 48, 48, 50, 60, 62, 64, 64, 70, 92, 98],24,0,4,),
([0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1],10,0,1,),
([1, 2, 2, 6, 10, 14, 15, 18, 19, 22, 23, 29, 30, 37, 40, 40, 41, 41, 42, 42, 44, 46, 46, 54, 56, 72, 73, 81, 83, 83, 86, 88, 93],27,1,42,),
([46, 86, -52, 18, -32, 86, 2, 38, 72, 72, -60, 70, -58, 66, -66, -72, -74, 58, 52, 58, 16, 64, 62, -62, 80, -70, -96, -44, -20, -74, -10, 14, -32, 48, 30, 76, -16, 80, 66, -46, -92, 26, -86, 28, -76, -24, -98, 54, 50],30,25,45,),
([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],38,0,0,),
([32, 65, 10, 72, 17, 58, 79, 28, 67, 36, 18, 35],7,10,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_MINIMUM_DISTANCE_BETWEEN_TWO_NUMBERS_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.
#
import math
def f_gold ( C , l ) :
if ( l >= C ) : return C
eq_root = ( math.sqrt ( 1 + 8 * ( C - l ) ) - 1 ) / 2
return math.ceil ( eq_root ) + l
#TOFILL
if __name__ == '__main__':
param = [
(91,29,),
(99,55,),
(11,56,),
(23,56,),
(12,97,),
(1,64,),
(18,5,),
(14,37,),
(13,55,),
(36,99,)
]
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_DAYS_TANK_WILL_BECOME_EMPTY.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 ) :
result = 1
for i in range ( 1 , n ) :
y = ( i * ( i + 1 ) ) / 2
if ( y < n ) :
result = i
else :
break
return result
#TOFILL
if __name__ == '__main__':
param = [
([8, 10, 11, 14, 14, 17, 20, 20, 22, 22, 22, 23, 25, 30, 33, 39, 39, 41, 43, 45, 46, 46, 46, 50, 51, 53, 57, 59, 60, 64, 64, 66, 72, 72, 75, 77, 85, 85, 87, 88, 90, 91, 93, 94, 94, 95],38,),
([-44, -90, 20, 4, -56, -50, -80, 74, -82, 20, 62, -26, -10, -14, -76, 82, -88, 92, 30, 44, -62, -86, -20, -96, -60, -88, -78, -40, -48, -92, 62, 58, 94, 68, 68, 44, 80, 4, 48, -92, 30, -76, -46, -20, 4],36,),
([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],28,),
([8, 34, 48, 10, 5, 12, 80, 7, 67, 1, 79, 59, 63, 13, 16, 23, 62, 56, 99, 89, 7, 80],12,),
([-88, -46, -40, -40, 38],3,),
([1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1],44,),
([8, 15, 35, 39, 49, 81, 86, 91],7,),
([-24, 56, -74, -76, -80, 86, 90, 0, -26, 18, 72, 78, -66, -28, 22, 22, 72, 78, -50, -12, 20, 12, -68, -2, -58, -44, 28, -58, 90, -28, 32, -70, -48, -66, -94, -50, 18, -12, 80, 12, 82, 56, -64, 10, -22],36,),
([0, 0],1,),
([62, 93, 69, 40, 26, 2, 29, 83, 66, 68, 67, 73, 12, 65, 89, 57, 38, 99, 42, 27, 38, 24, 43, 4, 4, 54, 72, 47, 52, 46, 53, 24, 3, 41, 64, 33, 88, 3, 1, 7, 17, 31, 20, 33, 69, 21, 9, 24, 59],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_HEIGHT_OF_TRIANGULAR_ARRANGEMENT_OF_ARRAY_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 ( s , c1 , c2 ) :
l = len ( s )
for i in range ( l ) :
if ( s [ i ] == c1 ) :
s = s [ 0 : i ] + c2 + s [ i + 1 : ]
elif ( s [ i ] == c2 ) :
s = s [ 0 : i ] + c1 + s [ i + 1 : ]
return s
#TOFILL
if __name__ == '__main__':
param = [
('IZTSMw j','W','k',),
('7288334','6','9',),
('010110000','1','1',),
('b gJX','t','P',),
('734','4','4',),
('1','1','1',),
('xCaUKdhA','X','S',),
('4370992644981','5','6',),
('01010','0','1',),
('ZNIFGshaWA','Q','x',)
]
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/REPLACE_CHARACTER_C1_C2_C2_C1_STRING_S.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 ( stri , n ) :
m = dict ( )
for i in range ( n ) :
m [ stri [ i ] ] = m.get ( stri [ i ] , 0 ) + 1
res = 0
for i in m.values ( ) :
if i == 2 :
res += 1
return res
#TOFILL
if __name__ == '__main__':
param = [
(["hate", "love", "peace", "love", "peace", "hate", "love", "peace", "love", "peace"],10,),
(["16","946613197072","532052","42780833","511552","1241934","4","3444540","47487223670074","23753","14158","4","95420017116714","16","0845","689000748","976403809728","8922","487784120896","329","611","59101","611","2131059721","53952148295020","445948587","3905249775372","4683180907","7169093","01413852276627","63","5864","40862536595","2280304422294","930028582","05","33447"],32,),
(["001000100000","1010","01011","11","011","1010"],6,),
(["Om", "Om", "Shankar", "Tripathi", "Tom", "Jerry", "Jerry"],7,),
(["2","644","2","42484637089","81578664","0778"],6,),
(["001000101","011010","1","101010011","011010","01","10111000101","0","1","00101101","0","0"],12,),
(["kl","p sH","PwCPMPu","tQoIgPpk","wtsNP WjS","kl ","TXsFWgU","kl","AD","NjjTyFGwNWZcB","jpFQslbGbDI","cEpGAgvpk","EMaDkMOm","YZuNZgfwDIjG","k","hJx jHmGpQYwQP","CIETe","RH","Pj","h","DInR","AEsqOvliQtz","NwzHTALTt LS","LwLR","WvDCzlQF","soJb","WktoldCbWyTO","pIdRJxY","BmpWxjOwTXkjjL","zmtCiQ","g","yBmDW","QhaBZrQnOJaAJ","u","MGTwCKve","UxYQrONag","xsGSz","dqNPTT","U W","ygJKvCEKDClby","M","yXJQHxjyDQDLkT","oJmaREOEk YA","zUwiwhSMdiC","jYgZEktcdgLD","fwyTAAW","GENttdzeGY "],43,),
(["938","074209","0949093096","218622476","71692175","0714","81217924991","74016430795374","52213147","338","939","798161500954","90528060774015","68715","75810","43450","8017","0193164","5945740","212","4589289","2912211026","0","49","8230114","0733435391403","5429","10070"],20,),
(["00","0","00","0101111010100","110"],4,),
(["g","h","ok","h","ok","sqozuC","ut","ZwRcG","ok","MR","jHrWyy","qaJlrokgRHuZH","LjPNzDUKszYmCq","g","ZGjLfMnyAGL","kEZoSxOMEWSFpw","IFtqNaDVnG","iJoJXl","vjrQMyWor","FTEHZqbHGlmHph","QeSdzm","nPostKHkigyJt","mOSekk"],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/COUNT_WORDS_APPEAR_EXACTLY_TWO_TIMES_ARRAY_WORDS.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 ) :
Len = len ( Str )
res = [ None ] * Len
index = 0
i = 0
s = [ ]
s.append ( 0 )
while ( i < Len ) :
if ( Str [ i ] == '+' ) :
if ( s [ - 1 ] == 1 ) :
res [ index ] = '-'
index += 1
if ( s [ - 1 ] == 0 ) :
res [ index ] = '+'
index += 1
elif ( Str [ i ] == '-' ) :
if ( s [ - 1 ] == 1 ) :
res [ index ] = '+'
index += 1
elif ( s [ - 1 ] == 0 ) :
res [ index ] = '-'
index += 1
elif ( Str [ i ] == '(' and i > 0 ) :
if ( Str [ i - 1 ] == '-' ) :
x = 0 if ( s [ - 1 ] == 1 ) else 1
s.append ( x )
elif ( Str [ i - 1 ] == '+' ) :
s.append ( s [ - 1 ] )
elif ( Str [ i ] == ')' ) :
s.pop ( )
else :
res [ index ] = Str [ i ]
index += 1
i += 1
return res
#TOFILL
if __name__ == '__main__':
param = [
('ggbsMvMZcMOVd',),
('384292670',),
('10000100',),
('fdHME',),
('09198832',),
('0011111011',),
('SnXwRS',),
('071',),
('01101',),
('xwmqxgBa',)
]
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/REMOVE_BRACKETS_ALGEBRAIC_STRING_CONTAINING_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 ) :
if ( a == b ) :
return a
if ( a == 0 ) :
return b
if ( b == 0 ) :
return a
if ( ( ~ a & 1 ) == 1 ) :
if ( ( b & 1 ) == 1 ) :
return f_gold ( a >> 1 , b )
else :
return ( f_gold ( a >> 1 , b >> 1 ) << 1 )
if ( ( ~ b & 1 ) == 1 ) :
return f_gold ( a , b >> 1 )
if ( a > b ) :
return f_gold ( ( a - b ) >> 1 , b )
return f_gold ( ( b - a ) >> 1 , a )
#TOFILL
if __name__ == '__main__':
param = [
(52,29,),
(36,94,),
(12,6,),
(69,7,),
(45,11,),
(7,51,),
(45,55,),
(62,86,),
(96,63,),
(89,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/STEINS_ALGORITHM_FOR_FINDING_GCD_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 * ( n + 1 ) / 2 ) * ( 1 << ( n - 1 ) )
#TOFILL
if __name__ == '__main__':
param = [
(76,),
(26,),
(45,),
(35,),
(34,),
(22,),
(3,),
(25,),
(22,),
(78,)
]
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_SUBSETS_SET_FORMED_FIRST_N_NATURAL_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 ( A , arr_size , sum ) :
for i in range ( 0 , arr_size - 1 ) :
s = set ( )
curr_sum = sum - A [ i ]
for j in range ( i + 1 , arr_size ) :
if ( curr_sum - A [ j ] ) in s :
print ( "Triplet is" , A [ i ] , ", " , A [ j ] , ", " , curr_sum - A [ j ] )
return True
s.add ( A [ j ] )
return False
#TOFILL
if __name__ == '__main__':
param = [
([1, 6, 8, 8, 9, 11, 13, 13, 15, 17, 21, 24, 38, 38, 42, 43, 46, 46, 47, 54, 55, 56, 57, 58, 60, 60, 60, 62, 63, 63, 65, 66, 67, 67, 69, 81, 84, 84, 85, 86, 95, 99],27,24,),
([20, -86, -24, 38, -32, -64, -72, 72, 68, 94, 18, -60, -4, -18, -18, -70, 6, -86, 46, -16, 46, -28],21,20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],17,13,),
([13, 96, 31, 39, 23, 39, 50, 10, 21, 64, 41, 54, 44, 97, 24, 91, 79, 86, 38, 49, 77, 71, 8, 98, 85, 36, 37, 65, 42, 48],17,18,),
([-86, -68, -58, -56, -54, -54, -48, -40, -36, -32, -26, -16, -14, -12, -12, -4, -4, -4, 0, 10, 22, 22, 30, 54, 62, 68, 88, 88],21,25,),
([0, 1, 1, 1, 1, 0, 0],5,3,),
([8, 8, 9, 13, 20, 24, 29, 52, 53, 96],9,8,),
([18, -92, -10, 26, 58, -48, 38, 66, -98, -72, 4, 76, -52, 20, 60, -56, 96, 60, -10, -26, -64, -66, -22, -86, 74, 82, 2, -14, 76, 82, 40, 70, -40, -2, -46, -38, 22, 98, 58],30,30,),
([1, 1, 1, 1],2,2,),
([72],0,0,)
]
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_A_TRIPLET_THAT_SUM_TO_A_GIVEN_VALUE_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 ( x , y ) :
if ( y == 0 ) : return 1
elif ( int ( y % 2 ) == 0 ) :
return ( f_gold ( x , int ( y / 2 ) ) * f_gold ( x , int ( y / 2 ) ) )
else :
return ( x * f_gold ( x , int ( y / 2 ) ) * f_gold ( x , int ( y / 2 ) ) )
#TOFILL
if __name__ == '__main__':
param = [
(46,92,),
(99,87,),
(30,32,),
(1,86,),
(26,81,),
(1,49,),
(27,46,),
(10,52,),
(26,38,),
(29,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/WRITE_A_C_PROGRAM_TO_CALCULATE_POWXN.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 1 ;
return n * f_gold ( n - 2 ) ;
#TOFILL
if __name__ == '__main__':
param = [
(52,),
(93,),
(15,),
(72,),
(61,),
(21,),
(83,),
(87,),
(75,),
(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/DOUBLE_FACTORIAL.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 ( not ( n & 1 ) )
#TOFILL
if __name__ == '__main__':
param = [
(57,),
(73,),
(79,),
(36,),
(71,),
(23,),
(41,),
(66,),
(46,),
(50,)
]
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_GIVEN_NUMBER_EVEN_ODD_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.
#
import math
def f_gold ( n ) :
return math.pow ( n , 2 )
#TOFILL
if __name__ == '__main__':
param = [
(42,),
(40,),
(67,),
(73,),
(18,),
(16,),
(74,),
(33,),
(92,),
(22,)
]
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_PRINT_SUM_GIVEN_NTH_TERM_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 ) :
prevPrev = 1
prev = 2
curr = 3
while n > 0 :
prevPrev = prev
prev = curr
curr = prevPrev + prev
n = n - ( curr - prev - 1 )
n = n + ( curr - prev - 1 )
return prev + n
#TOFILL
if __name__ == '__main__':
param = [
(76,),
(91,),
(62,),
(65,),
(83,),
(57,),
(76,),
(6,),
(2,),
(86,)
]
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_NON_FIBONACCI_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 ( mat , n ) :
row_sum = 0
col_sum = 0
for i in range ( n ) :
row_sum += mat [ n // 2 ] [ i ]
print ( "Sum of middle row = " , row_sum )
for i in range ( n ) :
col_sum += mat [ i ] [ n // 2 ]
print ( "Sum of middle column = " , col_sum )
#TOFILL
if __name__ == '__main__':
param = [
([[7, 32, 33, 35, 51, 61, 62, 68, 71, 73], [3, 10, 18, 32, 44, 56, 62, 80, 86, 91], [13, 21, 26, 31, 43, 53, 54, 59, 61, 73], [3, 9, 14, 14, 43, 46, 67, 71, 87, 99], [20, 53, 53, 72, 79, 80, 82, 84, 95, 99], [15, 21, 39, 44, 46, 48, 59, 64, 65, 70], [28, 35, 39, 41, 45, 50, 52, 61, 72, 73], [3, 15, 21, 22, 49, 49, 54, 73, 88, 98], [7, 9, 14, 16, 18, 26, 42, 45, 59, 86], [14, 21, 25, 31, 34, 45, 53, 54, 66, 82]],8,),
([[22, 92, 36, -94, -4, 6, -36, 78, -18, 12, 14, 54, 80, 4, -34, 4, -2, 24, 60, -14, 68, 88, -46, 82, -70, -2, 38, 76, -72, 70, -12, 24, -62, 58, 64, -92, 60, 96, -20, 0], [96, 42, -92, 70, 82, -74, -28, -64, -64, -50, -56, 92, -52, 84, 68, 2, -80, 60, -70, 6, 42, -16, 50, 86, -2, 56, 36, -90, 82, -38, 42, -66, -32, -88, 2, 48, 24, 56, 78, 90], [-86, 4, 8, 22, 92, -62, 88, -54, 50, 0, -32, -24, 38, 64, -22, -4, 30, -26, 82, 10, 4, 78, 78, 48, -42, 94, -14, -54, 24, 14, 36, 46, -16, -14, -72, -98, 30, 2, -28, -10], [-70, 44, 54, 6, 2, 66, -24, 6, 94, 16, 92, -78, -26, -36, 66, 56, -30, -50, -94, -64, 94, 82, -70, 74, 70, 88, -34, -24, -4, -62, 10, 18, -96, -22, -34, -52, 40, -50, -80, 22], [78, -70, -52, 58, 78, -6, -26, -16, -34, -42, 66, 12, -2, 30, -36, -28, 94, 64, 84, -86, -78, -62, -92, 16, 50, -50, 16, 64, -46, -92, -46, -48, -18, -86, -18, -84, 28, 22, 10, -58], [34, -86, 68, -10, -82, -28, -78, -18, -86, 22, -80, -14, 34, -80, -30, -50, 32, 84, -70, -32, 40, 62, -92, -76, 98, 24, -70, 24, 64, -92, 40, -28, -10, 38, -6, -6, -44, 50, -24, 98], [96, 62, 46, 90, 38, -36, -82, 70, -82, 2, -78, -84, -42, 92, 32, 54, 44, -50, -90, 94, 6, 38, 40, -6, -76, 98, -64, -90, 80, -2, -20, 28, 94, -52, 38, -38, 12, -78, -32, -64], [-28, -32, 66, 44, 28, 60, 58, 70, -56, 8, -82, 78, -94, -74, 60, 36, 64, 48, 60, -60, 82, 44, 52, -38, 26, -36, -90, -94, 44, 74, 84, 28, 76, 46, 4, 64, 16, 44, 72, 48], [28, 92, -64, 80, -84, 18, -82, 8, -28, -60, -50, 66, 76, 96, -54, 54, -4, -80, 72, 2, 74, -64, -48, 34, 6, -56, 6, 86, -26, -68, -30, -18, 70, 14, -70, -78, 68, 86, 40, -86], [58, 78, 76, -4, -68, 76, -10, -68, -78, -48, -82, -46, -80, -40, 42, 36, 96, 32, -10, -90, 6, -22, 22, -52, 32, 16, -58, -52, -78, -4, -54, -86, -16, 78, -66, -16, 68, 6, 66, -84], [-58, 30, 62, 70, -38, -22, -68, 98, -62, -54, 80, -38, -90, 38, -8, -36, -52, 48, -2, 82, -78, -72, -6, 96, 44, -34, 90, -2, 30, 92, 40, -18, -76, 46, -60, 36, 90, -54, 56, -24], [84, 34, -20, 4, 0, 80, 70, -82, -74, -12, -24, 72, 30, 16, 62, -44, 50, -64, 98, 58, 74, -64, -34, 82, -24, 20, 22, -34, 74, 4, 52, -8, 26, -8, 74, -26, 34, 60, 40, -24], [-46, -54, 22, 20, 70, -8, 32, 98, 94, 34, -94, -40, 24, 98, -56, 12, -28, 58, 84, -86, 98, 80, -40, -54, -30, 16, 6, 74, 72, -98, 78, -98, -62, 70, 40, -90, 82, 68, -36, -12], [26, -54, 66, 50, -78, -66, -18, 78, -78, -24, 22, 14, -42, -10, 34, -82, 36, 94, -98, 60, 52, 46, -60, -52, -42, -64, 94, -18, 66, -2, -20, -92, -70, 32, 14, 72, 58, 54, -62, 22], [-16, -14, -80, 20, -90, -10, 92, -54, -8, -32, -44, 6, -26, 66, -56, -38, -56, 86, 52, -38, 12, 12, 20, 24, 14, -30, -10, -70, 36, 64, -82, -46, 24, 26, -58, 96, 58, 96, -70, 58], [16, -90, -18, -40, 86, -98, -14, -92, -86, 24, -98, -84, 54, 64, -84, -50, 76, -34, 62, 26, 58, 42, 10, -72, 32, 92, 46, 50, 58, 66, -98, 26, -56, 56, -66, 26, -82, 0, -6, 34], [4, -2, -6, 8, -70, 30, -36, 2, -46, -86, 76, 4, -46, -20, -24, -60, -10, -20, 44, -8, -32, -4, -54, -68, 36, 84, 4, 86, -42, 0, -6, 76, 52, -10, 46, -76, -2, 72, 16, 34], [24, -80, -58, 26, 42, -42, 8, -70, 22, -86, -38, -12, -80, 46, 32, 84, 96, -76, -36, -26, -6, 46, 10, 84, -42, 52, -94, -76, -66, -44, -46, 64, -62, 50, -26, 96, -4, 20, -86, 12], [-42, 78, -32, -98, -86, 2, 54, -30, 68, 24, -40, 66, -92, -66, -48, -30, -98, -96, 88, -92, -40, -24, 52, 70, -54, 66, 18, 96, 22, 26, 46, 6, 76, -54, -74, 0, -82, -56, -60, 0], [-6, -70, 20, -88, 44, 42, 20, 34, -70, 36, 22, 24, 30, -82, 26, 62, -72, -96, 56, -64, 88, -42, 22, 64, 66, -40, 46, 20, -40, -86, 50, 16, 34, -84, -12, -30, -84, 96, -82, -40], [-62, 10, 36, -62, -62, -72, 14, -92, 10, 4, 14, 22, -94, -26, 88, -34, -16, 80, -28, 26, 42, 78, 92, -44, -32, 64, 18, 4, -34, -22, -54, 10, 58, 88, -90, 64, -90, -88, -30, -86], [18, -62, 22, -78, 16, -70, 26, 66, -2, -48, -74, 48, -44, -88, 12, 86, -50, 30, 14, 36, -28, 82, 64, -4, 10, 84, -88, 44, -98, -86, -22, 64, -22, 92, -80, -94, -42, 64, 66, -30], [94, -24, 96, 34, 36, -76, -58, 88, -54, -66, 22, 56, -4, 30, -70, -36, -52, 96, 14, 96, -56, 54, -64, -78, 82, 58, 16, -86, 62, -68, 20, -4, -92, 78, -76, 96, 14, -48, 88, -28], [40, 14, 6, -84, -76, -78, -54, 48, -56, -38, 4, -30, 6, 34, -54, -38, -82, 28, 74, 66, -66, 26, 92, -78, 78, -60, 66, -36, 18, 16, -36, 72, 76, -18, -24, 20, -4, -44, -36, -16], [98, -52, 12, 48, -28, 68, -94, 10, 20, -52, -32, 38, -76, -58, -16, -60, 32, 52, 70, -46, 48, -22, -26, 82, 48, -54, 66, 56, -46, -32, -20, 52, 82, -4, -80, -30, -22, -36, 8, 4], [82, -52, 66, 94, -4, -8, 2, -34, 32, -62, 90, -48, 60, -22, 14, -84, -24, -10, 36, 0, 88, -90, -66, -6, 60, -10, -12, -42, -96, 56, 28, -48, -80, 48, 22, -98, 98, 32, -10, 48], [-54, 2, -68, -46, -38, -46, -80, -62, 50, 12, -80, 0, -64, 4, -92, -64, -52, 64, 24, -46, 4, -98, -92, -90, -68, 88, -98, -54, -74, 50, 28, -30, -4, -48, -88, -44, -86, -10, 66, 64], [-72, 50, -8, 26, 66, -40, 72, -32, -72, 36, 18, 72, 12, 48, 70, -60, 68, 6, 94, -44, -10, -52, 2, -28, 86, 78, 76, 64, 2, -42, -22, 14, -94, 98, -46, -12, 34, -50, 76, 56], [-38, -6, 44, 46, -26, -62, -40, -80, 74, 48, 96, 8, -34, 56, 52, -46, -80, 68, 40, -34, 56, -58, 40, -54, -66, 68, 60, -72, -44, 12, -88, 6, -86, 70, 10, 62, -76, -20, 98, -54], [-86, -88, -24, 0, -96, -82, -34, 2, -84, -40, -2, -30, 92, 16, -42, 74, 40, 30, -34, -98, -34, -6, -46, 40, -78, 72, 74, -56, -82, 18, 60, -68, 60, -16, 88, 16, -28, -2, 84, -88], [66, 96, 92, 18, -58, 16, 18, 4, 18, 22, 42, 48, 14, -6, -60, -76, 62, 54, 40, -22, 76, -96, 6, 44, 24, -80, -26, -70, -90, -88, -62, -68, 22, 16, -32, -70, 22, -8, -70, 44], [-4, 16, -38, 36, 24, 58, 58, 10, -38, -12, -26, -10, 46, -16, -90, -36, -60, -36, 86, -92, 14, 38, 96, -98, -8, 76, -96, 48, -46, 32, -56, -62, -54, 86, -42, -28, 78, 12, 48, 76], [42, 80, 54, -62, 12, -64, 4, -98, -10, -48, -22, 64, 26, -2, -46, -50, 10, 70, 36, -66, 28, -50, 6, -24, 52, 74, 50, -4, -34, 58, 30, -48, 36, 40, 46, -18, 68, 76, 34, -56], [-70, 38, 8, -20, -70, -86, 96, 50, 10, -98, -56, 86, -6, 10, -30, 78, 24, 32, -98, 10, -88, 42, -52, 86, -56, 18, -26, -36, 10, 78, -96, -68, -38, -58, -8, -94, -74, 50, 50, -32], [-2, 6, -30, -4, 2, 42, -98, -66, -92, 52, 68, 96, 80, -68, -4, -96, 90, -56, -50, -30, 2, -40, -48, 44, 20, -22, -8, 36, 66, 30, -26, 0, 6, 80, 78, 2, 60, -72, 4, 94], [28, 52, -16, 80, 72, -54, -76, 0, 62, 32, -40, 32, -40, -72, 52, 24, -4, -80, -94, -46, 54, -54, -32, -76, -62, 78, -60, 72, -58, -86, -24, 46, 20, 90, -54, 38, 36, 64, 26, 60], [-18, -72, 82, -6, 66, 60, 14, 64, 6, 6, -58, -68, 22, 98, -28, 94, -58, -70, -10, 12, 84, 26, -38, 34, -42, -50, -38, 80, -42, 42, 74, -64, 56, -78, 42, -76, -10, -16, 54, 66], [-92, 82, -88, -70, -94, 82, 20, 78, 96, -2, -28, -18, -34, 32, -14, -86, -46, -58, 92, -80, 40, 48, 28, 30, 36, -92, 8, -18, -6, -90, 76, 88, -2, -12, -78, 90, 78, 12, -2, -6], [-52, -68, 72, 58, 52, 16, -68, 6, 50, -44, 96, -8, 66, -8, 68, -90, -24, -50, -42, -44, 60, -90, -46, -86, -52, 90, 96, -82, 66, 14, -4, 34, 8, 66, 6, 50, -52, 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 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1], [0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1], [0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0], [0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0]],31,),
([[1, 6, 6, 8, 8, 15, 19, 21, 22, 26, 29, 30, 31, 32, 35, 37, 37, 40, 41, 41, 44, 46, 48, 52, 54, 54, 55, 60, 61, 61, 67, 68, 76, 77, 78, 80, 80, 81, 81, 81, 82, 83, 85, 87, 89, 91, 97, 97], [4, 5, 6, 8, 9, 13, 14, 19, 22, 23, 29, 29, 30, 35, 36, 36, 39, 40, 41, 43, 43, 44, 45, 46, 46, 51, 51, 53, 55, 57, 58, 59, 60, 60, 61, 64, 65, 68, 69, 70, 70, 75, 76, 78, 81, 82, 88, 92], [4, 5, 5, 8, 17, 18, 19, 19, 20, 20, 21, 21, 22, 23, 29, 29, 31, 32, 33, 33, 33, 34, 38, 43, 44, 45, 47, 58, 61, 66, 72, 72, 72, 74, 75, 76, 78, 78, 80, 83, 85, 86, 88, 92, 92, 96, 97, 99], [1, 3, 4, 6, 8, 9, 14, 14, 15, 15, 16, 18, 18, 20, 21, 21, 23, 23, 24, 27, 32, 33, 35, 35, 36, 43, 44, 44, 45, 47, 48, 50, 51, 51, 55, 55, 55, 55, 66, 67, 67, 70, 86, 88, 92, 93, 94, 99], [1, 2, 4, 7, 10, 10, 11, 13, 13, 15, 16, 17, 22, 31, 32, 35, 36, 37, 37, 41, 41, 43, 45, 46, 47, 50, 51, 51, 54, 55, 58, 64, 67, 68, 70, 72, 73, 76, 77, 82, 83, 84, 84, 85, 85, 89, 93, 94], [3, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 15, 16, 17, 17, 21, 21, 23, 25, 26, 27, 29, 30, 32, 36, 40, 41, 43, 43, 49, 49, 57, 57, 61, 62, 68, 71, 73, 75, 81, 84, 89, 91, 92, 94, 95, 97, 97], [1, 1, 4, 16, 16, 16, 19, 24, 26, 26, 28, 31, 33, 34, 34, 35, 36, 37, 40, 52, 54, 56, 57, 62, 64, 64, 66, 70, 71, 72, 72, 73, 73, 74, 78, 81, 81, 83, 83, 85, 88, 90, 92, 93, 93, 94, 98, 99], [2, 4, 6, 8, 8, 9, 11, 14, 15, 17, 17, 20, 21, 22, 22, 28, 29, 30, 31, 31, 32, 36, 44, 47, 50, 50, 55, 59, 62, 62, 63, 66, 67, 70, 76, 76, 76, 78, 80, 80, 81, 83, 84, 86, 88, 91, 95, 97], [4, 6, 8, 10, 11, 13, 17, 17, 21, 22, 33, 33, 37, 41, 43, 45, 47, 48, 51, 52, 53, 58, 58, 58, 58, 58, 63, 65, 66, 67, 67, 68, 69, 71, 73, 75, 80, 81, 82, 82, 83, 89, 89, 94, 95, 97, 98, 99], [3, 5, 10, 11, 11, 12, 13, 17, 17, 18, 20, 23, 23, 24, 27, 31, 31, 34, 39, 39, 39, 43, 43, 44, 45, 46, 50, 51, 53, 55, 60, 61, 64, 68, 75, 75, 76, 78, 81, 82, 83, 86, 88, 93, 93, 96, 96, 98], [2, 2, 3, 6, 7, 13, 16, 21, 23, 23, 23, 24, 29, 30, 32, 35, 36, 36, 38, 39, 39, 39, 41, 42, 42, 44, 46, 51, 51, 52, 53, 64, 71, 73, 74, 80, 81, 84, 86, 86, 93, 94, 96, 96, 96, 96, 97, 99], [2, 4, 5, 12, 14, 16, 20, 22, 25, 26, 33, 34, 35, 35, 36, 40, 44, 49, 50, 50, 51, 51, 51, 52, 55, 58, 58, 59, 60, 61, 62, 64, 66, 66, 66, 72, 75, 76, 81, 82, 82, 84, 86, 89, 92, 93, 93, 96], [1, 2, 2, 3, 4, 5, 6, 7, 11, 13, 13, 15, 19, 20, 23, 26, 27, 29, 30, 30, 38, 39, 40, 40, 41, 43, 53, 57, 65, 70, 71, 78, 78, 79, 80, 81, 82, 82, 83, 87, 87, 93, 93, 96, 96, 97, 97, 98], [4, 11, 12, 18, 18, 21, 21, 27, 27, 28, 29, 33, 34, 37, 40, 41, 41, 45, 55, 56, 56, 57, 58, 58, 63, 63, 65, 65, 66, 68, 68, 69, 69, 73, 74, 78, 80, 82, 83, 83, 85, 87, 89, 92, 95, 95, 96, 97], [1, 4, 7, 7, 14, 15, 22, 24, 24, 27, 30, 32, 33, 34, 39, 39, 40, 41, 44, 48, 56, 56, 58, 59, 61, 61, 62, 63, 64, 65, 68, 69, 70, 72, 78, 78, 80, 80, 82, 83, 83, 84, 86, 87, 92, 93, 94, 94], [1, 1, 4, 5, 6, 6, 7, 9, 10, 10, 14, 16, 17, 19, 21, 24, 26, 30, 31, 32, 37, 37, 38, 40, 45, 49, 52, 52, 54, 54, 61, 61, 65, 67, 70, 72, 78, 79, 80, 82, 84, 85, 87, 88, 88, 92, 94, 97], [3, 6, 10, 10, 11, 12, 12, 13, 14, 15, 16, 18, 21, 23, 25, 27, 27, 27, 27, 30, 33, 35, 40, 41, 44, 48, 50, 50, 51, 52, 54, 54, 55, 58, 58, 58, 59, 62, 65, 69, 72, 72, 74, 74, 76, 79, 80, 98], [1, 2, 4, 4, 4, 5, 6, 7, 9, 9, 10, 12, 22, 23, 24, 26, 26, 28, 33, 35, 35, 38, 42, 44, 48, 48, 52, 54, 56, 60, 63, 68, 68, 68, 72, 75, 77, 79, 79, 82, 85, 88, 89, 91, 91, 91, 92, 93], [1, 8, 11, 13, 22, 23, 23, 26, 30, 31, 33, 34, 35, 35, 37, 39, 40, 44, 46, 46, 46, 47, 47, 47, 54, 59, 60, 60, 61, 62, 64, 66, 69, 74, 75, 77, 78, 79, 79, 82, 83, 86, 87, 92, 94, 96, 99, 99], [1, 1, 3, 8, 11, 14, 19, 20, 20, 20, 21, 24, 25, 25, 28, 34, 37, 38, 38, 39, 40, 47, 53, 54, 56, 57, 58, 62, 65, 69, 70, 70, 71, 71, 73, 76, 78, 78, 81, 84, 87, 92, 94, 94, 94, 96, 98, 99], [3, 4, 4, 15, 19, 21, 23, 26, 30, 31, 32, 34, 35, 37, 38, 41, 46, 46, 46, 51, 52, 53, 58, 63, 65, 68, 68, 68, 69, 70, 70, 70, 71, 72, 73, 74, 75, 75, 77, 80, 81, 84, 84, 86, 96, 96, 96, 98], [3, 4, 8, 9, 9, 11, 16, 19, 19, 20, 20, 23, 27, 27, 28, 30, 31, 34, 36, 40, 41, 43, 45, 46, 53, 53, 55, 58, 58, 59, 62, 63, 64, 65, 68, 68, 71, 72, 75, 78, 80, 87, 87, 88, 89, 94, 97, 99], [1, 3, 3, 10, 12, 12, 12, 12, 13, 15, 17, 18, 22, 24, 24, 28, 29, 31, 33, 33, 34, 34, 40, 43, 44, 48, 48, 49, 51, 55, 60, 63, 67, 68, 70, 72, 73, 75, 75, 77, 82, 85, 88, 91, 93, 94, 95, 98], [6, 6, 7, 8, 9, 14, 15, 18, 19, 26, 28, 28, 28, 30, 31, 33, 33, 36, 38, 39, 43, 44, 46, 48, 56, 57, 57, 60, 60, 61, 67, 69, 70, 71, 73, 74, 79, 80, 82, 84, 86, 86, 90, 92, 94, 95, 96, 98], [2, 2, 3, 9, 10, 14, 15, 15, 16, 19, 25, 26, 28, 31, 32, 33, 33, 34, 35, 41, 41, 42, 42, 43, 48, 48, 58, 59, 61, 66, 66, 69, 72, 73, 77, 78, 79, 79, 83, 86, 88, 92, 92, 92, 92, 95, 96, 97], [1, 6, 7, 8, 11, 14, 15, 16, 16, 18, 23, 23, 24, 25, 28, 29, 31, 32, 36, 38, 38, 41, 42, 43, 44, 46, 55, 55, 56, 59, 62, 64, 67, 69, 69, 70, 71, 72, 76, 81, 84, 86, 86, 87, 87, 89, 94, 95], [3, 3, 6, 10, 11, 15, 16, 18, 18, 27, 28, 28, 30, 30, 33, 34, 35, 35, 39, 43, 45, 48, 50, 51, 52, 53, 55, 62, 62, 62, 67, 68, 69, 70, 71, 72, 74, 74, 80, 81, 84, 85, 85, 86, 88, 88, 88, 96], [1, 2, 4, 5, 5, 5, 6, 12, 14, 14, 16, 16, 19, 28, 28, 29, 30, 32, 35, 36, 38, 39, 41, 47, 52, 57, 58, 58, 62, 64, 66, 71, 75, 76, 80, 81, 82, 83, 84, 85, 86, 87, 90, 91, 93, 96, 97, 98], [4, 7, 8, 10, 11, 12, 14, 17, 19, 19, 20, 24, 24, 28, 29, 29, 31, 31, 32, 33, 35, 36, 40, 42, 43, 47, 49, 53, 53, 53, 54, 54, 58, 58, 61, 64, 67, 72, 74, 79, 80, 80, 84, 86, 91, 91, 96, 97], [2, 4, 6, 6, 11, 12, 17, 19, 20, 21, 25, 26, 29, 30, 30, 31, 32, 39, 42, 42, 47, 48, 48, 49, 49, 49, 51, 55, 56, 59, 62, 65, 67, 67, 68, 68, 69, 73, 73, 76, 79, 82, 86, 87, 87, 88, 98, 98], [2, 3, 5, 7, 8, 16, 17, 18, 29, 29, 30, 31, 32, 33, 36, 38, 38, 40, 43, 45, 47, 56, 58, 59, 61, 63, 65, 65, 67, 68, 68, 69, 73, 74, 78, 80, 81, 82, 82, 89, 91, 92, 92, 94, 96, 97, 97, 98], [4, 8, 11, 12, 14, 15, 24, 27, 29, 32, 33, 36, 37, 38, 42, 46, 46, 47, 47, 49, 50, 53, 58, 58, 61, 64, 64, 65, 68, 69, 73, 74, 76, 79, 79, 82, 83, 84, 85, 89, 89, 90, 95, 95, 95, 97, 99, 99], [3, 3, 3, 5, 6, 7, 10, 13, 14, 16, 18, 23, 25, 26, 27, 31, 31, 35, 38, 41, 44, 46, 52, 57, 58, 62, 63, 63, 63, 64, 68, 69, 71, 72, 72, 76, 76, 78, 80, 83, 83, 88, 89, 90, 92, 94, 95, 98], [3, 8, 11, 15, 15, 26, 27, 29, 30, 32, 32, 37, 39, 42, 47, 49, 52, 52, 52, 53, 53, 54, 54, 59, 60, 61, 61, 62, 64, 65, 66, 66, 67, 67, 68, 69, 73, 74, 77, 79, 90, 90, 91, 91, 95, 98, 99, 99], [2, 4, 6, 8, 9, 10, 11, 15, 15, 16, 20, 21, 22, 23, 25, 26, 27, 27, 36, 38, 42, 45, 47, 47, 51, 53, 53, 55, 57, 59, 59, 62, 65, 66, 72, 73, 76, 82, 82, 83, 88, 90, 90, 91, 95, 96, 99, 99], [1, 2, 3, 6, 6, 7, 11, 16, 17, 19, 20, 23, 24, 24, 26, 28, 31, 33, 36, 37, 38, 39, 40, 40, 44, 46, 46, 51, 51, 53, 62, 62, 63, 64, 68, 69, 70, 73, 78, 78, 85, 87, 90, 91, 93, 93, 95, 98], [3, 9, 9, 11, 14, 16, 17, 18, 18, 22, 22, 25, 29, 30, 34, 35, 37, 37, 41, 42, 43, 45, 45, 52, 54, 55, 55, 57, 63, 64, 65, 68, 69, 70, 70, 71, 74, 75, 75, 77, 86, 86, 87, 93, 94, 95, 95, 99], [1, 3, 3, 10, 13, 14, 15, 18, 19, 20, 22, 23, 24, 25, 26, 32, 34, 40, 41, 41, 41, 44, 44, 46, 53, 57, 57, 59, 60, 61, 62, 63, 64, 70, 72, 72, 77, 78, 86, 88, 90, 92, 92, 93, 93, 94, 95, 98], [2, 4, 5, 7, 17, 20, 20, 21, 24, 24, 25, 25, 27, 28, 29, 29, 33, 35, 35, 35, 37, 38, 43, 43, 45, 48, 49, 52, 53, 59, 62, 64, 65, 70, 71, 72, 72, 75, 75, 86, 88, 89, 89, 91, 91, 93, 96, 97], [5, 6, 6, 9, 13, 16, 17, 18, 20, 21, 25, 26, 26, 31, 34, 43, 44, 45, 45, 47, 48, 48, 51, 51, 54, 56, 56, 57, 61, 61, 66, 67, 69, 69, 70, 72, 76, 76, 81, 83, 85, 90, 96, 96, 97, 98, 98, 99], [3, 4, 5, 6, 12, 13, 14, 14, 18, 20, 22, 24, 32, 35, 38, 38, 39, 41, 44, 48, 51, 52, 54, 55, 55, 57, 58, 59, 60, 60, 62, 64, 66, 69, 69, 74, 74, 76, 78, 79, 81, 82, 82, 82, 85, 86, 91, 99], [2, 6, 7, 8, 10, 14, 15, 15, 16, 16, 18, 21, 24, 30, 31, 32, 37, 38, 39, 41, 42, 42, 44, 45, 50, 51, 52, 53, 59, 60, 61, 61, 67, 67, 72, 73, 74, 75, 77, 79, 81, 88, 90, 91, 95, 95, 97, 98], [2, 3, 4, 7, 7, 7, 9, 15, 17, 18, 19, 20, 22, 24, 26, 26, 28, 29, 33, 36, 39, 40, 42, 43, 45, 49, 58, 61, 68, 68, 71, 75, 75, 75, 75, 76, 77, 78, 79, 80, 83, 86, 91, 94, 95, 98, 99, 99], [5, 6, 7, 10, 10, 11, 12, 14, 17, 19, 20, 24, 29, 31, 32, 35, 41, 44, 47, 47, 49, 50, 54, 57, 60, 61, 64, 66, 69, 70, 71, 72, 75, 75, 75, 77, 80, 81, 82, 88, 88, 90, 94, 97, 97, 97, 98, 99], [1, 1, 4, 6, 6, 7, 8, 11, 11, 14, 17, 18, 20, 21, 25, 29, 31, 31, 32, 38, 40, 41, 42, 44, 44, 45, 46, 51, 52, 58, 61, 62, 66, 67, 73, 74, 76, 79, 82, 84, 85, 86, 87, 90, 91, 92, 94, 97], [1, 1, 3, 4, 7, 7, 10, 11, 12, 13, 16, 24, 24, 27, 28, 29, 34, 36, 38, 39, 39, 42, 45, 48, 55, 57, 60, 62, 62, 63, 63, 69, 72, 76, 77, 78, 81, 81, 82, 83, 90, 93, 94, 94, 96, 98, 99, 99], [1, 1, 1, 1, 2, 2, 3, 7, 8, 14, 14, 19, 19, 23, 23, 25, 26, 27, 31, 43, 48, 49, 49, 50, 51, 51, 52, 55, 56, 57, 57, 57, 59, 62, 63, 63, 67, 71, 74, 74, 74, 76, 81, 84, 85, 87, 98, 98], [1, 1, 5, 9, 10, 12, 16, 18, 19, 20, 23, 26, 28, 35, 35, 36, 37, 40, 41, 41, 44, 44, 54, 57, 59, 60, 60, 60, 61, 63, 67, 74, 76, 79, 79, 84, 85, 86, 89, 89, 90, 91, 92, 92, 92, 95, 96, 98]],35,),
([[-18, -22, 0, 40, 84, 14, -90, 8, -52, 70, 24, 92, -22, 92, -38, -78, 76, 70, -6, -34, 68, -92, -58, -58, -58, -90, -76, 62, -46, -22, 6], [-78, 0, -42, -10, 94, -78, 26, 28, 30, 34, -68, -68, 52, 70, 86, -54, 42, 60, -34, 14, 36, 30, -64, -48, -76, -36, -78, 66, 18, 96, 2], [62, -88, 90, -32, -40, 56, 18, 96, 72, -50, 20, 72, 64, -82, 30, 66, -32, 16, 64, 96, -82, 72, -94, -48, 14, 60, 6, -78, 44, -80, 22], [-42, -86, -16, -62, 4, -30, 46, 10, 94, -12, 14, 96, -62, 68, 72, 68, -58, 2, 26, -12, 2, -16, 32, 26, 92, 64, -62, -80, -70, 76, -14], [96, 78, -4, -34, -88, 34, 50, 0, 46, 94, 14, 26, 58, -14, 82, 24, 86, 74, -8, 50, 54, -66, 46, -80, 20, 74, 2, -68, 92, -96, -2], [74, -70, -36, 76, 90, 50, 74, 78, 12, 40, 0, -8, -18, -34, -66, 86, 48, 44, 18, 96, -66, 48, 0, -36, 72, -40, 50, -32, -2, -50, 78], [18, -80, 70, -16, 34, -54, -94, -40, 60, -4, -50, -44, -56, -68, 22, -12, 54, 10, 90, -76, -28, 76, 72, -2, -78, 34, -24, 14, -80, -86, 68], [16, -88, 82, -48, -90, 36, 56, -80, -44, 40, 18, -84, -30, 40, -48, 52, 74, 18, 84, 92, 76, -26, -8, -4, 32, -92, 10, -88, -74, -58, -56], [22, 98, 12, 44, 30, 70, -60, 62, -78, -60, 80, -96, 46, 8, 26, 54, 20, -58, 80, -36, 44, -20, 18, 36, -22, 50, 90, 64, -56, 4, -28], [-6, -18, -92, -68, 20, -22, -60, -50, -72, 64, -50, 76, -36, 40, -30, 64, 96, 2, -82, 52, -50, 20, 34, 52, -24, -14, 96, 76, -48, -6, -98], [-60, 48, -82, -38, -26, 98, 56, 98, 78, -82, -92, -70, 56, -80, -46, -96, -10, -70, -88, 92, -54, 16, 88, -26, -74, 34, -56, 54, -52, 2, 72], [16, 82, -70, 42, -40, 38, 48, -86, -28, 46, -40, -30, -54, 58, 94, -54, -88, 46, 42, 84, 58, -74, 94, -2, 72, -50, 72, 36, 26, 50, -80], [-80, -34, 16, 20, -72, 86, 22, 82, -64, -38, -24, -82, -30, 2, 32, 18, -88, 82, 0, 90, -36, -92, 50, -30, -72, -20, 74, -14, -42, 52, 66], [40, 54, 42, -34, -20, 18, 88, -32, -52, -40, -8, 8, 60, 0, 22, 94, -96, -72, -76, -18, 60, -52, -98, -92, 30, 66, 76, -38, -38, 24, 70], [-82, -60, 86, 98, -42, -12, -92, -78, 92, -90, 54, 0, 8, 98, 50, 80, -24, 20, -86, 56, -86, 38, 6, -44, -24, -2, 16, -50, 36, 10, 98], [-34, 92, -52, -72, -54, 64, -48, -46, 88, -28, -56, 92, -8, -18, -70, -48, -2, -42, -76, -62, -34, 8, -22, -4, -12, -14, -26, -46, 40, 12, -84], [50, 70, -52, -86, 50, 36, -18, -82, -12, -74, -90, 14, 18, -10, 80, 24, -22, -10, -30, 92, 70, 60, 16, -18, 10, 2, 2, 18, 44, -72, -72], [54, -66, 22, 76, -34, 68, -36, -50, -32, -20, -70, 44, 56, 88, -12, -32, 42, -30, 90, -88, 30, -10, -28, -16, 40, -58, 12, -70, 12, -24, 74], [48, -36, -52, -36, 8, -20, -60, 64, 50, 94, -64, -74, -70, 40, -80, 46, 22, 94, -52, -58, -76, -36, -76, 92, -76, -92, -64, -78, -2, -20, 62], [-30, 34, 74, -48, -56, -18, -8, 88, 18, 80, -72, -52, -52, 82, -20, 58, 58, -50, 68, 26, 18, 34, -86, -8, 40, 42, 12, 92, -14, -4, -78], [-18, -80, 66, 66, -14, 16, 26, -24, 32, 24, 58, 0, 36, -76, -48, 36, 88, -18, 42, -4, 2, 48, -90, -84, 2, 92, 78, 92, -62, 4, 72], [90, -56, -48, -68, 70, -2, -94, -52, -12, 2, 64, 12, -70, 18, 28, -98, -80, 48, 34, -58, 24, 6, -60, -54, -70, 96, 88, 38, 42, -40, 18], [-2, -48, 32, 62, -42, 70, -10, -42, 20, 88, 44, -12, -46, -10, -96, 18, 44, -46, 90, -6, 74, 88, 8, -42, 26, -10, 84, -28, -12, -88, -98], [56, -64, -4, 32, 98, 12, 82, -46, 80, 16, -32, 54, 54, -28, -56, 54, 88, -46, 68, -74, 24, 4, 96, -84, 86, 14, -66, 12, -64, -86, 10], [26, -50, 72, -2, -50, -88, 96, -24, 48, 96, 26, 24, 46, 80, -70, -84, -30, 64, 44, -86, 24, -20, 12, 96, -26, 42, 88, -44, -54, -84, -66], [-28, 90, -66, 46, 16, -84, 22, -62, 20, -26, 22, 86, 40, -2, -36, 60, 90, 14, -24, 32, 66, 32, 12, 92, 22, -82, -96, 20, -64, 16, -22], [26, -80, 12, -42, -80, 72, -10, 42, 26, -32, 56, 96, -34, -14, -28, 62, -58, -36, -24, -22, -86, -48, -28, 48, -26, 26, 38, 10, -42, -8, -26], [-76, 22, 60, 88, 38, 44, -62, -68, -96, -64, 12, 42, 94, 10, 90, 68, -44, 74, -28, -86, -20, -22, -60, -78, -20, 68, -32, -40, 12, -64, 82], [60, -66, -14, -90, 40, 26, 52, -70, 92, -64, 68, 6, -84, -32, -90, -30, 18, -68, -50, 68, 54, 24, -68, -92, -32, -40, -30, 78, 60, -94, -48], [-14, -2, 72, 70, 2, 24, -54, 14, 98, -2, 70, 24, -60, -28, -72, -36, -50, -12, 60, -98, -80, -46, -88, 28, -74, -94, -28, 92, 30, -38, -8], [-78, 26, -94, -24, 14, 80, 60, -80, -28, 86, 4, 54, 88, -34, 4, -44, 18, -96, 18, -28, 90, 88, 42, 8, 66, 24, 0, -70, -78, -64, -20]],29,),
([[0, 0, 0, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],38,),
([[91, 17, 91, 54, 63, 43, 59, 7, 5, 73, 55, 46, 78, 60, 96, 32, 22, 66, 40, 34, 2, 48, 97, 26, 34, 17, 56, 88, 69, 30, 52, 87, 98], [84, 89, 34, 38, 49, 47, 99, 97, 48, 75, 43, 13, 7, 21, 76, 88, 18, 29, 86, 94, 89, 1, 40, 87, 94, 33, 12, 87, 38, 46, 54, 56, 79], [24, 21, 46, 88, 21, 31, 78, 91, 69, 62, 88, 88, 49, 37, 21, 30, 71, 57, 48, 1, 63, 46, 78, 80, 10, 57, 52, 31, 90, 13, 16, 12, 67], [48, 3, 74, 98, 23, 56, 27, 66, 4, 38, 14, 29, 20, 9, 84, 72, 25, 18, 98, 21, 37, 9, 34, 16, 42, 11, 14, 73, 4, 79, 22, 63, 37], [73, 26, 87, 85, 18, 14, 96, 87, 71, 41, 67, 71, 69, 61, 19, 8, 31, 64, 28, 6, 20, 1, 50, 9, 13, 42, 41, 99, 43, 75, 24, 34, 67], [40, 92, 49, 22, 85, 79, 3, 12, 66, 91, 64, 88, 85, 56, 1, 58, 2, 49, 46, 3, 69, 47, 39, 64, 97, 72, 36, 6, 97, 67, 47, 81, 50], [10, 22, 88, 26, 66, 41, 29, 55, 34, 86, 35, 31, 13, 31, 26, 5, 72, 45, 93, 86, 99, 99, 87, 91, 80, 40, 89, 44, 20, 33, 55, 42, 19], [88, 43, 80, 48, 35, 35, 80, 57, 89, 64, 10, 33, 55, 6, 76, 64, 59, 65, 62, 23, 32, 78, 45, 87, 41, 96, 54, 44, 82, 63, 14, 76, 34], [40, 32, 33, 4, 36, 81, 35, 1, 35, 22, 98, 37, 69, 69, 8, 4, 33, 61, 80, 37, 73, 45, 18, 17, 7, 38, 90, 59, 98, 20, 79, 21, 67], [15, 71, 7, 16, 55, 43, 65, 61, 11, 69, 87, 34, 62, 4, 30, 6, 10, 27, 22, 28, 18, 3, 28, 52, 58, 87, 70, 74, 66, 25, 68, 46, 73], [34, 89, 5, 16, 91, 93, 86, 19, 95, 4, 3, 71, 34, 25, 96, 86, 60, 86, 90, 72, 88, 2, 29, 91, 66, 92, 60, 34, 81, 22, 56, 90, 31], [83, 43, 58, 84, 38, 98, 3, 17, 5, 48, 50, 9, 84, 85, 1, 16, 23, 57, 30, 59, 47, 1, 59, 33, 33, 86, 82, 29, 2, 3, 2, 53, 57], [62, 77, 77, 80, 62, 72, 4, 41, 10, 97, 32, 85, 35, 70, 10, 18, 33, 93, 97, 96, 14, 54, 86, 31, 65, 45, 31, 3, 56, 85, 20, 35, 10], [54, 24, 10, 51, 45, 90, 47, 83, 6, 32, 60, 58, 74, 7, 15, 62, 47, 94, 99, 48, 12, 80, 13, 66, 52, 19, 62, 13, 7, 79, 20, 34, 44], [25, 76, 25, 5, 39, 26, 50, 69, 39, 35, 90, 80, 33, 78, 80, 62, 62, 35, 96, 67, 57, 44, 22, 52, 80, 6, 78, 24, 84, 64, 67, 3, 90], [10, 10, 92, 4, 17, 49, 6, 65, 56, 2, 46, 57, 4, 37, 37, 65, 18, 65, 92, 24, 36, 98, 86, 6, 63, 64, 9, 77, 40, 64, 32, 14, 67], [36, 12, 98, 90, 96, 94, 17, 26, 83, 26, 16, 89, 29, 98, 2, 59, 78, 14, 51, 40, 84, 1, 83, 50, 97, 65, 68, 20, 20, 48, 80, 15, 87], [26, 1, 56, 67, 76, 38, 19, 29, 90, 58, 62, 77, 12, 92, 22, 49, 44, 83, 84, 51, 25, 9, 61, 69, 1, 2, 83, 20, 34, 38, 70, 2, 32], [54, 28, 21, 94, 62, 51, 60, 43, 76, 13, 1, 45, 5, 84, 52, 21, 38, 39, 89, 9, 67, 56, 93, 45, 38, 79, 95, 42, 70, 68, 15, 52, 44], [46, 34, 89, 97, 46, 41, 55, 63, 5, 91, 95, 40, 3, 31, 65, 53, 35, 42, 8, 75, 24, 31, 59, 19, 84, 79, 60, 91, 63, 99, 83, 75, 23], [52, 96, 12, 22, 5, 84, 10, 69, 56, 10, 74, 27, 85, 92, 96, 77, 75, 89, 26, 81, 18, 73, 83, 37, 43, 4, 74, 39, 29, 75, 98, 91, 34], [74, 23, 95, 17, 90, 40, 71, 6, 98, 80, 53, 52, 48, 19, 40, 38, 14, 13, 24, 90, 25, 96, 51, 10, 38, 89, 16, 85, 51, 46, 84, 94, 50], [72, 34, 29, 54, 13, 1, 91, 39, 55, 7, 69, 60, 72, 10, 88, 35, 37, 62, 73, 5, 2, 15, 76, 4, 99, 5, 31, 19, 65, 29, 62, 82, 14], [70, 95, 44, 52, 30, 12, 29, 54, 6, 6, 61, 32, 5, 16, 53, 2, 16, 2, 85, 81, 63, 50, 2, 23, 41, 32, 61, 61, 64, 53, 22, 63, 92], [95, 62, 20, 58, 14, 38, 81, 30, 11, 59, 93, 72, 69, 73, 17, 15, 41, 81, 58, 84, 59, 73, 89, 15, 62, 81, 79, 76, 72, 82, 12, 42, 4], [46, 61, 24, 78, 8, 36, 91, 60, 87, 15, 35, 77, 14, 30, 64, 25, 16, 3, 57, 95, 14, 89, 30, 87, 47, 39, 90, 25, 82, 27, 85, 65, 81], [23, 53, 6, 29, 53, 66, 38, 15, 78, 59, 47, 91, 13, 12, 96, 8, 93, 65, 9, 85, 12, 55, 11, 89, 91, 6, 24, 56, 55, 98, 23, 78, 76], [78, 15, 32, 58, 70, 69, 8, 51, 64, 42, 79, 24, 73, 8, 38, 21, 18, 31, 89, 60, 60, 17, 87, 62, 56, 94, 59, 83, 39, 63, 72, 45, 41], [16, 71, 94, 55, 37, 40, 84, 88, 62, 15, 26, 52, 36, 31, 20, 70, 89, 1, 52, 15, 77, 12, 79, 26, 2, 75, 10, 53, 27, 63, 55, 76, 50], [42, 65, 39, 23, 69, 31, 84, 47, 68, 53, 28, 7, 10, 54, 62, 37, 61, 82, 24, 29, 69, 44, 44, 34, 95, 44, 31, 7, 21, 9, 64, 51, 20], [33, 74, 71, 30, 98, 92, 74, 50, 90, 23, 8, 90, 81, 38, 5, 12, 65, 22, 99, 44, 30, 1, 81, 82, 33, 13, 47, 52, 17, 88, 40, 91, 89], [69, 97, 51, 49, 71, 2, 43, 7, 51, 86, 25, 74, 91, 55, 42, 23, 83, 55, 73, 53, 55, 75, 93, 75, 69, 81, 6, 75, 2, 66, 51, 37, 19], [65, 39, 98, 7, 42, 20, 34, 4, 22, 20, 26, 80, 56, 70, 7, 95, 87, 49, 19, 17, 58, 65, 29, 22, 26, 15, 28, 93, 9, 16, 75, 76, 78]],20,)
]
filled_function_param = [
([[7, 32, 33, 35, 51, 61, 62, 68, 71, 73], [3, 10, 18, 32, 44, 56, 62, 80, 86, 91], [13, 21, 26, 31, 43, 53, 54, 59, 61, 73], [3, 9, 14, 14, 43, 46, 67, 71, 87, 99], [20, 53, 53, 72, 79, 80, 82, 84, 95, 99], [15, 21, 39, 44, 46, 48, 59, 64, 65, 70], [28, 35, 39, 41, 45, 50, 52, 61, 72, 73], [3, 15, 21, 22, 49, 49, 54, 73, 88, 98], [7, 9, 14, 16, 18, 26, 42, 45, 59, 86], [14, 21, 25, 31, 34, 45, 53, 54, 66, 82]],8,),
([[22, 92, 36, -94, -4, 6, -36, 78, -18, 12, 14, 54, 80, 4, -34, 4, -2, 24, 60, -14, 68, 88, -46, 82, -70, -2, 38, 76, -72, 70, -12, 24, -62, 58, 64, -92, 60, 96, -20, 0], [96, 42, -92, 70, 82, -74, -28, -64, -64, -50, -56, 92, -52, 84, 68, 2, -80, 60, -70, 6, 42, -16, 50, 86, -2, 56, 36, -90, 82, -38, 42, -66, -32, -88, 2, 48, 24, 56, 78, 90], [-86, 4, 8, 22, 92, -62, 88, -54, 50, 0, -32, -24, 38, 64, -22, -4, 30, -26, 82, 10, 4, 78, 78, 48, -42, 94, -14, -54, 24, 14, 36, 46, -16, -14, -72, -98, 30, 2, -28, -10], [-70, 44, 54, 6, 2, 66, -24, 6, 94, 16, 92, -78, -26, -36, 66, 56, -30, -50, -94, -64, 94, 82, -70, 74, 70, 88, -34, -24, -4, -62, 10, 18, -96, -22, -34, -52, 40, -50, -80, 22], [78, -70, -52, 58, 78, -6, -26, -16, -34, -42, 66, 12, -2, 30, -36, -28, 94, 64, 84, -86, -78, -62, -92, 16, 50, -50, 16, 64, -46, -92, -46, -48, -18, -86, -18, -84, 28, 22, 10, -58], [34, -86, 68, -10, -82, -28, -78, -18, -86, 22, -80, -14, 34, -80, -30, -50, 32, 84, -70, -32, 40, 62, -92, -76, 98, 24, -70, 24, 64, -92, 40, -28, -10, 38, -6, -6, -44, 50, -24, 98], [96, 62, 46, 90, 38, -36, -82, 70, -82, 2, -78, -84, -42, 92, 32, 54, 44, -50, -90, 94, 6, 38, 40, -6, -76, 98, -64, -90, 80, -2, -20, 28, 94, -52, 38, -38, 12, -78, -32, -64], [-28, -32, 66, 44, 28, 60, 58, 70, -56, 8, -82, 78, -94, -74, 60, 36, 64, 48, 60, -60, 82, 44, 52, -38, 26, -36, -90, -94, 44, 74, 84, 28, 76, 46, 4, 64, 16, 44, 72, 48], [28, 92, -64, 80, -84, 18, -82, 8, -28, -60, -50, 66, 76, 96, -54, 54, -4, -80, 72, 2, 74, -64, -48, 34, 6, -56, 6, 86, -26, -68, -30, -18, 70, 14, -70, -78, 68, 86, 40, -86], [58, 78, 76, -4, -68, 76, -10, -68, -78, -48, -82, -46, -80, -40, 42, 36, 96, 32, -10, -90, 6, -22, 22, -52, 32, 16, -58, -52, -78, -4, -54, -86, -16, 78, -66, -16, 68, 6, 66, -84], [-58, 30, 62, 70, -38, -22, -68, 98, -62, -54, 80, -38, -90, 38, -8, -36, -52, 48, -2, 82, -78, -72, -6, 96, 44, -34, 90, -2, 30, 92, 40, -18, -76, 46, -60, 36, 90, -54, 56, -24], [84, 34, -20, 4, 0, 80, 70, -82, -74, -12, -24, 72, 30, 16, 62, -44, 50, -64, 98, 58, 74, -64, -34, 82, -24, 20, 22, -34, 74, 4, 52, -8, 26, -8, 74, -26, 34, 60, 40, -24], [-46, -54, 22, 20, 70, -8, 32, 98, 94, 34, -94, -40, 24, 98, -56, 12, -28, 58, 84, -86, 98, 80, -40, -54, -30, 16, 6, 74, 72, -98, 78, -98, -62, 70, 40, -90, 82, 68, -36, -12], [26, -54, 66, 50, -78, -66, -18, 78, -78, -24, 22, 14, -42, -10, 34, -82, 36, 94, -98, 60, 52, 46, -60, -52, -42, -64, 94, -18, 66, -2, -20, -92, -70, 32, 14, 72, 58, 54, -62, 22], [-16, -14, -80, 20, -90, -10, 92, -54, -8, -32, -44, 6, -26, 66, -56, -38, -56, 86, 52, -38, 12, 12, 20, 24, 14, -30, -10, -70, 36, 64, -82, -46, 24, 26, -58, 96, 58, 96, -70, 58], [16, -90, -18, -40, 86, -98, -14, -92, -86, 24, -98, -84, 54, 64, -84, -50, 76, -34, 62, 26, 58, 42, 10, -72, 32, 92, 46, 50, 58, 66, -98, 26, -56, 56, -66, 26, -82, 0, -6, 34], [4, -2, -6, 8, -70, 30, -36, 2, -46, -86, 76, 4, -46, -20, -24, -60, -10, -20, 44, -8, -32, -4, -54, -68, 36, 84, 4, 86, -42, 0, -6, 76, 52, -10, 46, -76, -2, 72, 16, 34], [24, -80, -58, 26, 42, -42, 8, -70, 22, -86, -38, -12, -80, 46, 32, 84, 96, -76, -36, -26, -6, 46, 10, 84, -42, 52, -94, -76, -66, -44, -46, 64, -62, 50, -26, 96, -4, 20, -86, 12], [-42, 78, -32, -98, -86, 2, 54, -30, 68, 24, -40, 66, -92, -66, -48, -30, -98, -96, 88, -92, -40, -24, 52, 70, -54, 66, 18, 96, 22, 26, 46, 6, 76, -54, -74, 0, -82, -56, -60, 0], [-6, -70, 20, -88, 44, 42, 20, 34, -70, 36, 22, 24, 30, -82, 26, 62, -72, -96, 56, -64, 88, -42, 22, 64, 66, -40, 46, 20, -40, -86, 50, 16, 34, -84, -12, -30, -84, 96, -82, -40], [-62, 10, 36, -62, -62, -72, 14, -92, 10, 4, 14, 22, -94, -26, 88, -34, -16, 80, -28, 26, 42, 78, 92, -44, -32, 64, 18, 4, -34, -22, -54, 10, 58, 88, -90, 64, -90, -88, -30, -86], [18, -62, 22, -78, 16, -70, 26, 66, -2, -48, -74, 48, -44, -88, 12, 86, -50, 30, 14, 36, -28, 82, 64, -4, 10, 84, -88, 44, -98, -86, -22, 64, -22, 92, -80, -94, -42, 64, 66, -30], [94, -24, 96, 34, 36, -76, -58, 88, -54, -66, 22, 56, -4, 30, -70, -36, -52, 96, 14, 96, -56, 54, -64, -78, 82, 58, 16, -86, 62, -68, 20, -4, -92, 78, -76, 96, 14, -48, 88, -28], [40, 14, 6, -84, -76, -78, -54, 48, -56, -38, 4, -30, 6, 34, -54, -38, -82, 28, 74, 66, -66, 26, 92, -78, 78, -60, 66, -36, 18, 16, -36, 72, 76, -18, -24, 20, -4, -44, -36, -16], [98, -52, 12, 48, -28, 68, -94, 10, 20, -52, -32, 38, -76, -58, -16, -60, 32, 52, 70, -46, 48, -22, -26, 82, 48, -54, 66, 56, -46, -32, -20, 52, 82, -4, -80, -30, -22, -36, 8, 4], [82, -52, 66, 94, -4, -8, 2, -34, 32, -62, 90, -48, 60, -22, 14, -84, -24, -10, 36, 0, 88, -90, -66, -6, 60, -10, -12, -42, -96, 56, 28, -48, -80, 48, 22, -98, 98, 32, -10, 48], [-54, 2, -68, -46, -38, -46, -80, -62, 50, 12, -80, 0, -64, 4, -92, -64, -52, 64, 24, -46, 4, -98, -92, -90, -68, 88, -98, -54, -74, 50, 28, -30, -4, -48, -88, -44, -86, -10, 66, 64], [-72, 50, -8, 26, 66, -40, 72, -32, -72, 36, 18, 72, 12, 48, 70, -60, 68, 6, 94, -44, -10, -52, 2, -28, 86, 78, 76, 64, 2, -42, -22, 14, -94, 98, -46, -12, 34, -50, 76, 56], [-38, -6, 44, 46, -26, -62, -40, -80, 74, 48, 96, 8, -34, 56, 52, -46, -80, 68, 40, -34, 56, -58, 40, -54, -66, 68, 60, -72, -44, 12, -88, 6, -86, 70, 10, 62, -76, -20, 98, -54], [-86, -88, -24, 0, -96, -82, -34, 2, -84, -40, -2, -30, 92, 16, -42, 74, 40, 30, -34, -98, -34, -6, -46, 40, -78, 72, 74, -56, -82, 18, 60, -68, 60, -16, 88, 16, -28, -2, 84, -88], [66, 96, 92, 18, -58, 16, 18, 4, 18, 22, 42, 48, 14, -6, -60, -76, 62, 54, 40, -22, 76, -96, 6, 44, 24, -80, -26, -70, -90, -88, -62, -68, 22, 16, -32, -70, 22, -8, -70, 44], [-4, 16, -38, 36, 24, 58, 58, 10, -38, -12, -26, -10, 46, -16, -90, -36, -60, -36, 86, -92, 14, 38, 96, -98, -8, 76, -96, 48, -46, 32, -56, -62, -54, 86, -42, -28, 78, 12, 48, 76], [42, 80, 54, -62, 12, -64, 4, -98, -10, -48, -22, 64, 26, -2, -46, -50, 10, 70, 36, -66, 28, -50, 6, -24, 52, 74, 50, -4, -34, 58, 30, -48, 36, 40, 46, -18, 68, 76, 34, -56], [-70, 38, 8, -20, -70, -86, 96, 50, 10, -98, -56, 86, -6, 10, -30, 78, 24, 32, -98, 10, -88, 42, -52, 86, -56, 18, -26, -36, 10, 78, -96, -68, -38, -58, -8, -94, -74, 50, 50, -32], [-2, 6, -30, -4, 2, 42, -98, -66, -92, 52, 68, 96, 80, -68, -4, -96, 90, -56, -50, -30, 2, -40, -48, 44, 20, -22, -8, 36, 66, 30, -26, 0, 6, 80, 78, 2, 60, -72, 4, 94], [28, 52, -16, 80, 72, -54, -76, 0, 62, 32, -40, 32, -40, -72, 52, 24, -4, -80, -94, -46, 54, -54, -32, -76, -62, 78, -60, 72, -58, -86, -24, 46, 20, 90, -54, 38, 36, 64, 26, 60], [-18, -72, 82, -6, 66, 60, 14, 64, 6, 6, -58, -68, 22, 98, -28, 94, -58, -70, -10, 12, 84, 26, -38, 34, -42, -50, -38, 80, -42, 42, 74, -64, 56, -78, 42, -76, -10, -16, 54, 66], [-92, 82, -88, -70, -94, 82, 20, 78, 96, -2, -28, -18, -34, 32, -14, -86, -46, -58, 92, -80, 40, 48, 28, 30, 36, -92, 8, -18, -6, -90, 76, 88, -2, -12, -78, 90, 78, 12, -2, -6], [-52, -68, 72, 58, 52, 16, -68, 6, 50, -44, 96, -8, 66, -8, 68, -90, -24, -50, -42, -44, 60, -90, -46, -86, -52, 90, 96, -82, 66, 14, -4, 34, 8, 66, 6, 50, -52, 62, 60, 50], [-56, -58, -92, -6, 38, -54, 64, 32, 48, -68, 36, -34, 34, -50, 24, -80, -18, -44, -60, -64, -22, 72, 20, -30, -92, 46, 90, 92, -84, 88, -26, -42, -98, -98, 28, -92, 30, -30, -86, 10]],31,),
([[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, 0, 0, 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], [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,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 37, 40, 41, 41, 44, 46, 48, 52, 54, 54, 55, 60, 61, 61, 67, 68, 76, 77, 78, 80, 80, 81, 81, 81, 82, 83, 85, 87, 89, 91, 97, 97], [4, 5, 6, 8, 9, 13, 14, 19, 22, 23, 29, 29, 30, 35, 36, 36, 39, 40, 41, 43, 43, 44, 45, 46, 46, 51, 51, 53, 55, 57, 58, 59, 60, 60, 61, 64, 65, 68, 69, 70, 70, 75, 76, 78, 81, 82, 88, 92], [4, 5, 5, 8, 17, 18, 19, 19, 20, 20, 21, 21, 22, 23, 29, 29, 31, 32, 33, 33, 33, 34, 38, 43, 44, 45, 47, 58, 61, 66, 72, 72, 72, 74, 75, 76, 78, 78, 80, 83, 85, 86, 88, 92, 92, 96, 97, 99], [1, 3, 4, 6, 8, 9, 14, 14, 15, 15, 16, 18, 18, 20, 21, 21, 23, 23, 24, 27, 32, 33, 35, 35, 36, 43, 44, 44, 45, 47, 48, 50, 51, 51, 55, 55, 55, 55, 66, 67, 67, 70, 86, 88, 92, 93, 94, 99], [1, 2, 4, 7, 10, 10, 11, 13, 13, 15, 16, 17, 22, 31, 32, 35, 36, 37, 37, 41, 41, 43, 45, 46, 47, 50, 51, 51, 54, 55, 58, 64, 67, 68, 70, 72, 73, 76, 77, 82, 83, 84, 84, 85, 85, 89, 93, 94], [3, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 15, 16, 17, 17, 21, 21, 23, 25, 26, 27, 29, 30, 32, 36, 40, 41, 43, 43, 49, 49, 57, 57, 61, 62, 68, 71, 73, 75, 81, 84, 89, 91, 92, 94, 95, 97, 97], [1, 1, 4, 16, 16, 16, 19, 24, 26, 26, 28, 31, 33, 34, 34, 35, 36, 37, 40, 52, 54, 56, 57, 62, 64, 64, 66, 70, 71, 72, 72, 73, 73, 74, 78, 81, 81, 83, 83, 85, 88, 90, 92, 93, 93, 94, 98, 99], [2, 4, 6, 8, 8, 9, 11, 14, 15, 17, 17, 20, 21, 22, 22, 28, 29, 30, 31, 31, 32, 36, 44, 47, 50, 50, 55, 59, 62, 62, 63, 66, 67, 70, 76, 76, 76, 78, 80, 80, 81, 83, 84, 86, 88, 91, 95, 97], [4, 6, 8, 10, 11, 13, 17, 17, 21, 22, 33, 33, 37, 41, 43, 45, 47, 48, 51, 52, 53, 58, 58, 58, 58, 58, 63, 65, 66, 67, 67, 68, 69, 71, 73, 75, 80, 81, 82, 82, 83, 89, 89, 94, 95, 97, 98, 99], [3, 5, 10, 11, 11, 12, 13, 17, 17, 18, 20, 23, 23, 24, 27, 31, 31, 34, 39, 39, 39, 43, 43, 44, 45, 46, 50, 51, 53, 55, 60, 61, 64, 68, 75, 75, 76, 78, 81, 82, 83, 86, 88, 93, 93, 96, 96, 98], [2, 2, 3, 6, 7, 13, 16, 21, 23, 23, 23, 24, 29, 30, 32, 35, 36, 36, 38, 39, 39, 39, 41, 42, 42, 44, 46, 51, 51, 52, 53, 64, 71, 73, 74, 80, 81, 84, 86, 86, 93, 94, 96, 96, 96, 96, 97, 99], [2, 4, 5, 12, 14, 16, 20, 22, 25, 26, 33, 34, 35, 35, 36, 40, 44, 49, 50, 50, 51, 51, 51, 52, 55, 58, 58, 59, 60, 61, 62, 64, 66, 66, 66, 72, 75, 76, 81, 82, 82, 84, 86, 89, 92, 93, 93, 96], [1, 2, 2, 3, 4, 5, 6, 7, 11, 13, 13, 15, 19, 20, 23, 26, 27, 29, 30, 30, 38, 39, 40, 40, 41, 43, 53, 57, 65, 70, 71, 78, 78, 79, 80, 81, 82, 82, 83, 87, 87, 93, 93, 96, 96, 97, 97, 98], [4, 11, 12, 18, 18, 21, 21, 27, 27, 28, 29, 33, 34, 37, 40, 41, 41, 45, 55, 56, 56, 57, 58, 58, 63, 63, 65, 65, 66, 68, 68, 69, 69, 73, 74, 78, 80, 82, 83, 83, 85, 87, 89, 92, 95, 95, 96, 97], [1, 4, 7, 7, 14, 15, 22, 24, 24, 27, 30, 32, 33, 34, 39, 39, 40, 41, 44, 48, 56, 56, 58, 59, 61, 61, 62, 63, 64, 65, 68, 69, 70, 72, 78, 78, 80, 80, 82, 83, 83, 84, 86, 87, 92, 93, 94, 94], [1, 1, 4, 5, 6, 6, 7, 9, 10, 10, 14, 16, 17, 19, 21, 24, 26, 30, 31, 32, 37, 37, 38, 40, 45, 49, 52, 52, 54, 54, 61, 61, 65, 67, 70, 72, 78, 79, 80, 82, 84, 85, 87, 88, 88, 92, 94, 97], [3, 6, 10, 10, 11, 12, 12, 13, 14, 15, 16, 18, 21, 23, 25, 27, 27, 27, 27, 30, 33, 35, 40, 41, 44, 48, 50, 50, 51, 52, 54, 54, 55, 58, 58, 58, 59, 62, 65, 69, 72, 72, 74, 74, 76, 79, 80, 98], [1, 2, 4, 4, 4, 5, 6, 7, 9, 9, 10, 12, 22, 23, 24, 26, 26, 28, 33, 35, 35, 38, 42, 44, 48, 48, 52, 54, 56, 60, 63, 68, 68, 68, 72, 75, 77, 79, 79, 82, 85, 88, 89, 91, 91, 91, 92, 93], [1, 8, 11, 13, 22, 23, 23, 26, 30, 31, 33, 34, 35, 35, 37, 39, 40, 44, 46, 46, 46, 47, 47, 47, 54, 59, 60, 60, 61, 62, 64, 66, 69, 74, 75, 77, 78, 79, 79, 82, 83, 86, 87, 92, 94, 96, 99, 99], [1, 1, 3, 8, 11, 14, 19, 20, 20, 20, 21, 24, 25, 25, 28, 34, 37, 38, 38, 39, 40, 47, 53, 54, 56, 57, 58, 62, 65, 69, 70, 70, 71, 71, 73, 76, 78, 78, 81, 84, 87, 92, 94, 94, 94, 96, 98, 99], [3, 4, 4, 15, 19, 21, 23, 26, 30, 31, 32, 34, 35, 37, 38, 41, 46, 46, 46, 51, 52, 53, 58, 63, 65, 68, 68, 68, 69, 70, 70, 70, 71, 72, 73, 74, 75, 75, 77, 80, 81, 84, 84, 86, 96, 96, 96, 98], [3, 4, 8, 9, 9, 11, 16, 19, 19, 20, 20, 23, 27, 27, 28, 30, 31, 34, 36, 40, 41, 43, 45, 46, 53, 53, 55, 58, 58, 59, 62, 63, 64, 65, 68, 68, 71, 72, 75, 78, 80, 87, 87, 88, 89, 94, 97, 99], [1, 3, 3, 10, 12, 12, 12, 12, 13, 15, 17, 18, 22, 24, 24, 28, 29, 31, 33, 33, 34, 34, 40, 43, 44, 48, 48, 49, 51, 55, 60, 63, 67, 68, 70, 72, 73, 75, 75, 77, 82, 85, 88, 91, 93, 94, 95, 98], [6, 6, 7, 8, 9, 14, 15, 18, 19, 26, 28, 28, 28, 30, 31, 33, 33, 36, 38, 39, 43, 44, 46, 48, 56, 57, 57, 60, 60, 61, 67, 69, 70, 71, 73, 74, 79, 80, 82, 84, 86, 86, 90, 92, 94, 95, 96, 98], [2, 2, 3, 9, 10, 14, 15, 15, 16, 19, 25, 26, 28, 31, 32, 33, 33, 34, 35, 41, 41, 42, 42, 43, 48, 48, 58, 59, 61, 66, 66, 69, 72, 73, 77, 78, 79, 79, 83, 86, 88, 92, 92, 92, 92, 95, 96, 97], [1, 6, 7, 8, 11, 14, 15, 16, 16, 18, 23, 23, 24, 25, 28, 29, 31, 32, 36, 38, 38, 41, 42, 43, 44, 46, 55, 55, 56, 59, 62, 64, 67, 69, 69, 70, 71, 72, 76, 81, 84, 86, 86, 87, 87, 89, 94, 95], [3, 3, 6, 10, 11, 15, 16, 18, 18, 27, 28, 28, 30, 30, 33, 34, 35, 35, 39, 43, 45, 48, 50, 51, 52, 53, 55, 62, 62, 62, 67, 68, 69, 70, 71, 72, 74, 74, 80, 81, 84, 85, 85, 86, 88, 88, 88, 96], [1, 2, 4, 5, 5, 5, 6, 12, 14, 14, 16, 16, 19, 28, 28, 29, 30, 32, 35, 36, 38, 39, 41, 47, 52, 57, 58, 58, 62, 64, 66, 71, 75, 76, 80, 81, 82, 83, 84, 85, 86, 87, 90, 91, 93, 96, 97, 98], [4, 7, 8, 10, 11, 12, 14, 17, 19, 19, 20, 24, 24, 28, 29, 29, 31, 31, 32, 33, 35, 36, 40, 42, 43, 47, 49, 53, 53, 53, 54, 54, 58, 58, 61, 64, 67, 72, 74, 79, 80, 80, 84, 86, 91, 91, 96, 97], [2, 4, 6, 6, 11, 12, 17, 19, 20, 21, 25, 26, 29, 30, 30, 31, 32, 39, 42, 42, 47, 48, 48, 49, 49, 49, 51, 55, 56, 59, 62, 65, 67, 67, 68, 68, 69, 73, 73, 76, 79, 82, 86, 87, 87, 88, 98, 98], [2, 3, 5, 7, 8, 16, 17, 18, 29, 29, 30, 31, 32, 33, 36, 38, 38, 40, 43, 45, 47, 56, 58, 59, 61, 63, 65, 65, 67, 68, 68, 69, 73, 74, 78, 80, 81, 82, 82, 89, 91, 92, 92, 94, 96, 97, 97, 98], [4, 8, 11, 12, 14, 15, 24, 27, 29, 32, 33, 36, 37, 38, 42, 46, 46, 47, 47, 49, 50, 53, 58, 58, 61, 64, 64, 65, 68, 69, 73, 74, 76, 79, 79, 82, 83, 84, 85, 89, 89, 90, 95, 95, 95, 97, 99, 99], [3, 3, 3, 5, 6, 7, 10, 13, 14, 16, 18, 23, 25, 26, 27, 31, 31, 35, 38, 41, 44, 46, 52, 57, 58, 62, 63, 63, 63, 64, 68, 69, 71, 72, 72, 76, 76, 78, 80, 83, 83, 88, 89, 90, 92, 94, 95, 98], [3, 8, 11, 15, 15, 26, 27, 29, 30, 32, 32, 37, 39, 42, 47, 49, 52, 52, 52, 53, 53, 54, 54, 59, 60, 61, 61, 62, 64, 65, 66, 66, 67, 67, 68, 69, 73, 74, 77, 79, 90, 90, 91, 91, 95, 98, 99, 99], [2, 4, 6, 8, 9, 10, 11, 15, 15, 16, 20, 21, 22, 23, 25, 26, 27, 27, 36, 38, 42, 45, 47, 47, 51, 53, 53, 55, 57, 59, 59, 62, 65, 66, 72, 73, 76, 82, 82, 83, 88, 90, 90, 91, 95, 96, 99, 99], [1, 2, 3, 6, 6, 7, 11, 16, 17, 19, 20, 23, 24, 24, 26, 28, 31, 33, 36, 37, 38, 39, 40, 40, 44, 46, 46, 51, 51, 53, 62, 62, 63, 64, 68, 69, 70, 73, 78, 78, 85, 87, 90, 91, 93, 93, 95, 98], [3, 9, 9, 11, 14, 16, 17, 18, 18, 22, 22, 25, 29, 30, 34, 35, 37, 37, 41, 42, 43, 45, 45, 52, 54, 55, 55, 57, 63, 64, 65, 68, 69, 70, 70, 71, 74, 75, 75, 77, 86, 86, 87, 93, 94, 95, 95, 99], [1, 3, 3, 10, 13, 14, 15, 18, 19, 20, 22, 23, 24, 25, 26, 32, 34, 40, 41, 41, 41, 44, 44, 46, 53, 57, 57, 59, 60, 61, 62, 63, 64, 70, 72, 72, 77, 78, 86, 88, 90, 92, 92, 93, 93, 94, 95, 98], [2, 4, 5, 7, 17, 20, 20, 21, 24, 24, 25, 25, 27, 28, 29, 29, 33, 35, 35, 35, 37, 38, 43, 43, 45, 48, 49, 52, 53, 59, 62, 64, 65, 70, 71, 72, 72, 75, 75, 86, 88, 89, 89, 91, 91, 93, 96, 97], [5, 6, 6, 9, 13, 16, 17, 18, 20, 21, 25, 26, 26, 31, 34, 43, 44, 45, 45, 47, 48, 48, 51, 51, 54, 56, 56, 57, 61, 61, 66, 67, 69, 69, 70, 72, 76, 76, 81, 83, 85, 90, 96, 96, 97, 98, 98, 99], [3, 4, 5, 6, 12, 13, 14, 14, 18, 20, 22, 24, 32, 35, 38, 38, 39, 41, 44, 48, 51, 52, 54, 55, 55, 57, 58, 59, 60, 60, 62, 64, 66, 69, 69, 74, 74, 76, 78, 79, 81, 82, 82, 82, 85, 86, 91, 99], [2, 6, 7, 8, 10, 14, 15, 15, 16, 16, 18, 21, 24, 30, 31, 32, 37, 38, 39, 41, 42, 42, 44, 45, 50, 51, 52, 53, 59, 60, 61, 61, 67, 67, 72, 73, 74, 75, 77, 79, 81, 88, 90, 91, 95, 95, 97, 98], [2, 3, 4, 7, 7, 7, 9, 15, 17, 18, 19, 20, 22, 24, 26, 26, 28, 29, 33, 36, 39, 40, 42, 43, 45, 49, 58, 61, 68, 68, 71, 75, 75, 75, 75, 76, 77, 78, 79, 80, 83, 86, 91, 94, 95, 98, 99, 99], [5, 6, 7, 10, 10, 11, 12, 14, 17, 19, 20, 24, 29, 31, 32, 35, 41, 44, 47, 47, 49, 50, 54, 57, 60, 61, 64, 66, 69, 70, 71, 72, 75, 75, 75, 77, 80, 81, 82, 88, 88, 90, 94, 97, 97, 97, 98, 99], [1, 1, 4, 6, 6, 7, 8, 11, 11, 14, 17, 18, 20, 21, 25, 29, 31, 31, 32, 38, 40, 41, 42, 44, 44, 45, 46, 51, 52, 58, 61, 62, 66, 67, 73, 74, 76, 79, 82, 84, 85, 86, 87, 90, 91, 92, 94, 97], [1, 1, 3, 4, 7, 7, 10, 11, 12, 13, 16, 24, 24, 27, 28, 29, 34, 36, 38, 39, 39, 42, 45, 48, 55, 57, 60, 62, 62, 63, 63, 69, 72, 76, 77, 78, 81, 81, 82, 83, 90, 93, 94, 94, 96, 98, 99, 99], [1, 1, 1, 1, 2, 2, 3, 7, 8, 14, 14, 19, 19, 23, 23, 25, 26, 27, 31, 43, 48, 49, 49, 50, 51, 51, 52, 55, 56, 57, 57, 57, 59, 62, 63, 63, 67, 71, 74, 74, 74, 76, 81, 84, 85, 87, 98, 98], [1, 1, 5, 9, 10, 12, 16, 18, 19, 20, 23, 26, 28, 35, 35, 36, 37, 40, 41, 41, 44, 44, 54, 57, 59, 60, 60, 60, 61, 63, 67, 74, 76, 79, 79, 84, 85, 86, 89, 89, 90, 91, 92, 92, 92, 95, 96, 98]],35,),
([[-18, -22, 0, 40, 84, 14, -90, 8, -52, 70, 24, 92, -22, 92, -38, -78, 76, 70, -6, -34, 68, -92, -58, -58, -58, -90, -76, 62, -46, -22, 6], [-78, 0, -42, -10, 94, -78, 26, 28, 30, 34, -68, -68, 52, 70, 86, -54, 42, 60, -34, 14, 36, 30, -64, -48, -76, -36, -78, 66, 18, 96, 2], [62, -88, 90, -32, -40, 56, 18, 96, 72, -50, 20, 72, 64, -82, 30, 66, -32, 16, 64, 96, -82, 72, -94, -48, 14, 60, 6, -78, 44, -80, 22], [-42, -86, -16, -62, 4, -30, 46, 10, 94, -12, 14, 96, -62, 68, 72, 68, -58, 2, 26, -12, 2, -16, 32, 26, 92, 64, -62, -80, -70, 76, -14], [96, 78, -4, -34, -88, 34, 50, 0, 46, 94, 14, 26, 58, -14, 82, 24, 86, 74, -8, 50, 54, -66, 46, -80, 20, 74, 2, -68, 92, -96, -2], [74, -70, -36, 76, 90, 50, 74, 78, 12, 40, 0, -8, -18, -34, -66, 86, 48, 44, 18, 96, -66, 48, 0, -36, 72, -40, 50, -32, -2, -50, 78], [18, -80, 70, -16, 34, -54, -94, -40, 60, -4, -50, -44, -56, -68, 22, -12, 54, 10, 90, -76, -28, 76, 72, -2, -78, 34, -24, 14, -80, -86, 68], [16, -88, 82, -48, -90, 36, 56, -80, -44, 40, 18, -84, -30, 40, -48, 52, 74, 18, 84, 92, 76, -26, -8, -4, 32, -92, 10, -88, -74, -58, -56], [22, 98, 12, 44, 30, 70, -60, 62, -78, -60, 80, -96, 46, 8, 26, 54, 20, -58, 80, -36, 44, -20, 18, 36, -22, 50, 90, 64, -56, 4, -28], [-6, -18, -92, -68, 20, -22, -60, -50, -72, 64, -50, 76, -36, 40, -30, 64, 96, 2, -82, 52, -50, 20, 34, 52, -24, -14, 96, 76, -48, -6, -98], [-60, 48, -82, -38, -26, 98, 56, 98, 78, -82, -92, -70, 56, -80, -46, -96, -10, -70, -88, 92, -54, 16, 88, -26, -74, 34, -56, 54, -52, 2, 72], [16, 82, -70, 42, -40, 38, 48, -86, -28, 46, -40, -30, -54, 58, 94, -54, -88, 46, 42, 84, 58, -74, 94, -2, 72, -50, 72, 36, 26, 50, -80], [-80, -34, 16, 20, -72, 86, 22, 82, -64, -38, -24, -82, -30, 2, 32, 18, -88, 82, 0, 90, -36, -92, 50, -30, -72, -20, 74, -14, -42, 52, 66], [40, 54, 42, -34, -20, 18, 88, -32, -52, -40, -8, 8, 60, 0, 22, 94, -96, -72, -76, -18, 60, -52, -98, -92, 30, 66, 76, -38, -38, 24, 70], [-82, -60, 86, 98, -42, -12, -92, -78, 92, -90, 54, 0, 8, 98, 50, 80, -24, 20, -86, 56, -86, 38, 6, -44, -24, -2, 16, -50, 36, 10, 98], [-34, 92, -52, -72, -54, 64, -48, -46, 88, -28, -56, 92, -8, -18, -70, -48, -2, -42, -76, -62, -34, 8, -22, -4, -12, -14, -26, -46, 40, 12, -84], [50, 70, -52, -86, 50, 36, -18, -82, -12, -74, -90, 14, 18, -10, 80, 24, -22, -10, -30, 92, 70, 60, 16, -18, 10, 2, 2, 18, 44, -72, -72], [54, -66, 22, 76, -34, 68, -36, -50, -32, -20, -70, 44, 56, 88, -12, -32, 42, -30, 90, -88, 30, -10, -28, -16, 40, -58, 12, -70, 12, -24, 74], [48, -36, -52, -36, 8, -20, -60, 64, 50, 94, -64, -74, -70, 40, -80, 46, 22, 94, -52, -58, -76, -36, -76, 92, -76, -92, -64, -78, -2, -20, 62], [-30, 34, 74, -48, -56, -18, -8, 88, 18, 80, -72, -52, -52, 82, -20, 58, 58, -50, 68, 26, 18, 34, -86, -8, 40, 42, 12, 92, -14, -4, -78], [-18, -80, 66, 66, -14, 16, 26, -24, 32, 24, 58, 0, 36, -76, -48, 36, 88, -18, 42, -4, 2, 48, -90, -84, 2, 92, 78, 92, -62, 4, 72], [90, -56, -48, -68, 70, -2, -94, -52, -12, 2, 64, 12, -70, 18, 28, -98, -80, 48, 34, -58, 24, 6, -60, -54, -70, 96, 88, 38, 42, -40, 18], [-2, -48, 32, 62, -42, 70, -10, -42, 20, 88, 44, -12, -46, -10, -96, 18, 44, -46, 90, -6, 74, 88, 8, -42, 26, -10, 84, -28, -12, -88, -98], [56, -64, -4, 32, 98, 12, 82, -46, 80, 16, -32, 54, 54, -28, -56, 54, 88, -46, 68, -74, 24, 4, 96, -84, 86, 14, -66, 12, -64, -86, 10], [26, -50, 72, -2, -50, -88, 96, -24, 48, 96, 26, 24, 46, 80, -70, -84, -30, 64, 44, -86, 24, -20, 12, 96, -26, 42, 88, -44, -54, -84, -66], [-28, 90, -66, 46, 16, -84, 22, -62, 20, -26, 22, 86, 40, -2, -36, 60, 90, 14, -24, 32, 66, 32, 12, 92, 22, -82, -96, 20, -64, 16, -22], [26, -80, 12, -42, -80, 72, -10, 42, 26, -32, 56, 96, -34, -14, -28, 62, -58, -36, -24, -22, -86, -48, -28, 48, -26, 26, 38, 10, -42, -8, -26], [-76, 22, 60, 88, 38, 44, -62, -68, -96, -64, 12, 42, 94, 10, 90, 68, -44, 74, -28, -86, -20, -22, -60, -78, -20, 68, -32, -40, 12, -64, 82], [60, -66, -14, -90, 40, 26, 52, -70, 92, -64, 68, 6, -84, -32, -90, -30, 18, -68, -50, 68, 54, 24, -68, -92, -32, -40, -30, 78, 60, -94, -48], [-14, -2, 72, 70, 2, 24, -54, 14, 98, -2, 70, 24, -60, -28, -72, -36, -50, -12, 60, -98, -80, -46, -88, 28, -74, -94, -28, 92, 30, -38, -8], [-78, 26, -94, -24, 14, 80, 60, -80, -28, 86, 4, 54, 88, -34, 4, -44, 18, -96, 18, -28, 90, 88, 42, 8, 66, 24, 0, -70, -78, -64, -20]],29,),
([[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], [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, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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1, 1, 1, 1, 1, 1]],38,),
([[91, 17, 91, 54, 63, 43, 59, 7, 5, 73, 55, 46, 78, 60, 96, 32, 22, 66, 40, 34, 2, 48, 97, 26, 34, 17, 56, 88, 69, 30, 52, 87, 98], [84, 89, 34, 38, 49, 47, 99, 97, 48, 75, 43, 13, 7, 21, 76, 88, 18, 29, 86, 94, 89, 1, 40, 87, 94, 33, 12, 87, 38, 46, 54, 56, 79], [24, 21, 46, 88, 21, 31, 78, 91, 69, 62, 88, 88, 49, 37, 21, 30, 71, 57, 48, 1, 63, 46, 78, 80, 10, 57, 52, 31, 90, 13, 16, 12, 67], [48, 3, 74, 98, 23, 56, 27, 66, 4, 38, 14, 29, 20, 9, 84, 72, 25, 18, 98, 21, 37, 9, 34, 16, 42, 11, 14, 73, 4, 79, 22, 63, 37], [73, 26, 87, 85, 18, 14, 96, 87, 71, 41, 67, 71, 69, 61, 19, 8, 31, 64, 28, 6, 20, 1, 50, 9, 13, 42, 41, 99, 43, 75, 24, 34, 67], [40, 92, 49, 22, 85, 79, 3, 12, 66, 91, 64, 88, 85, 56, 1, 58, 2, 49, 46, 3, 69, 47, 39, 64, 97, 72, 36, 6, 97, 67, 47, 81, 50], [10, 22, 88, 26, 66, 41, 29, 55, 34, 86, 35, 31, 13, 31, 26, 5, 72, 45, 93, 86, 99, 99, 87, 91, 80, 40, 89, 44, 20, 33, 55, 42, 19], [88, 43, 80, 48, 35, 35, 80, 57, 89, 64, 10, 33, 55, 6, 76, 64, 59, 65, 62, 23, 32, 78, 45, 87, 41, 96, 54, 44, 82, 63, 14, 76, 34], [40, 32, 33, 4, 36, 81, 35, 1, 35, 22, 98, 37, 69, 69, 8, 4, 33, 61, 80, 37, 73, 45, 18, 17, 7, 38, 90, 59, 98, 20, 79, 21, 67], [15, 71, 7, 16, 55, 43, 65, 61, 11, 69, 87, 34, 62, 4, 30, 6, 10, 27, 22, 28, 18, 3, 28, 52, 58, 87, 70, 74, 66, 25, 68, 46, 73], [34, 89, 5, 16, 91, 93, 86, 19, 95, 4, 3, 71, 34, 25, 96, 86, 60, 86, 90, 72, 88, 2, 29, 91, 66, 92, 60, 34, 81, 22, 56, 90, 31], [83, 43, 58, 84, 38, 98, 3, 17, 5, 48, 50, 9, 84, 85, 1, 16, 23, 57, 30, 59, 47, 1, 59, 33, 33, 86, 82, 29, 2, 3, 2, 53, 57], [62, 77, 77, 80, 62, 72, 4, 41, 10, 97, 32, 85, 35, 70, 10, 18, 33, 93, 97, 96, 14, 54, 86, 31, 65, 45, 31, 3, 56, 85, 20, 35, 10], [54, 24, 10, 51, 45, 90, 47, 83, 6, 32, 60, 58, 74, 7, 15, 62, 47, 94, 99, 48, 12, 80, 13, 66, 52, 19, 62, 13, 7, 79, 20, 34, 44], [25, 76, 25, 5, 39, 26, 50, 69, 39, 35, 90, 80, 33, 78, 80, 62, 62, 35, 96, 67, 57, 44, 22, 52, 80, 6, 78, 24, 84, 64, 67, 3, 90], [10, 10, 92, 4, 17, 49, 6, 65, 56, 2, 46, 57, 4, 37, 37, 65, 18, 65, 92, 24, 36, 98, 86, 6, 63, 64, 9, 77, 40, 64, 32, 14, 67], [36, 12, 98, 90, 96, 94, 17, 26, 83, 26, 16, 89, 29, 98, 2, 59, 78, 14, 51, 40, 84, 1, 83, 50, 97, 65, 68, 20, 20, 48, 80, 15, 87], [26, 1, 56, 67, 76, 38, 19, 29, 90, 58, 62, 77, 12, 92, 22, 49, 44, 83, 84, 51, 25, 9, 61, 69, 1, 2, 83, 20, 34, 38, 70, 2, 32], [54, 28, 21, 94, 62, 51, 60, 43, 76, 13, 1, 45, 5, 84, 52, 21, 38, 39, 89, 9, 67, 56, 93, 45, 38, 79, 95, 42, 70, 68, 15, 52, 44], [46, 34, 89, 97, 46, 41, 55, 63, 5, 91, 95, 40, 3, 31, 65, 53, 35, 42, 8, 75, 24, 31, 59, 19, 84, 79, 60, 91, 63, 99, 83, 75, 23], [52, 96, 12, 22, 5, 84, 10, 69, 56, 10, 74, 27, 85, 92, 96, 77, 75, 89, 26, 81, 18, 73, 83, 37, 43, 4, 74, 39, 29, 75, 98, 91, 34], [74, 23, 95, 17, 90, 40, 71, 6, 98, 80, 53, 52, 48, 19, 40, 38, 14, 13, 24, 90, 25, 96, 51, 10, 38, 89, 16, 85, 51, 46, 84, 94, 50], [72, 34, 29, 54, 13, 1, 91, 39, 55, 7, 69, 60, 72, 10, 88, 35, 37, 62, 73, 5, 2, 15, 76, 4, 99, 5, 31, 19, 65, 29, 62, 82, 14], [70, 95, 44, 52, 30, 12, 29, 54, 6, 6, 61, 32, 5, 16, 53, 2, 16, 2, 85, 81, 63, 50, 2, 23, 41, 32, 61, 61, 64, 53, 22, 63, 92], [95, 62, 20, 58, 14, 38, 81, 30, 11, 59, 93, 72, 69, 73, 17, 15, 41, 81, 58, 84, 59, 73, 89, 15, 62, 81, 79, 76, 72, 82, 12, 42, 4], [46, 61, 24, 78, 8, 36, 91, 60, 87, 15, 35, 77, 14, 30, 64, 25, 16, 3, 57, 95, 14, 89, 30, 87, 47, 39, 90, 25, 82, 27, 85, 65, 81], [23, 53, 6, 29, 53, 66, 38, 15, 78, 59, 47, 91, 13, 12, 96, 8, 93, 65, 9, 85, 12, 55, 11, 89, 91, 6, 24, 56, 55, 98, 23, 78, 76], [78, 15, 32, 58, 70, 69, 8, 51, 64, 42, 79, 24, 73, 8, 38, 21, 18, 31, 89, 60, 60, 17, 87, 62, 56, 94, 59, 83, 39, 63, 72, 45, 41], [16, 71, 94, 55, 37, 40, 84, 88, 62, 15, 26, 52, 36, 31, 20, 70, 89, 1, 52, 15, 77, 12, 79, 26, 2, 75, 10, 53, 27, 63, 55, 76, 50], [42, 65, 39, 23, 69, 31, 84, 47, 68, 53, 28, 7, 10, 54, 62, 37, 61, 82, 24, 29, 69, 44, 44, 34, 95, 44, 31, 7, 21, 9, 64, 51, 20], [33, 74, 71, 30, 98, 92, 74, 50, 90, 23, 8, 90, 81, 38, 5, 12, 65, 22, 99, 44, 30, 1, 81, 82, 33, 13, 47, 52, 17, 88, 40, 91, 89], [69, 97, 51, 49, 71, 2, 43, 7, 51, 86, 25, 74, 91, 55, 42, 23, 83, 55, 73, 53, 55, 75, 93, 75, 69, 81, 6, 75, 2, 66, 51, 37, 19], [65, 39, 98, 7, 42, 20, 34, 4, 22, 20, 26, 80, 56, 70, 7, 95, 87, 49, 19, 17, 58, 65, 29, 22, 26, 15, 28, 93, 9, 16, 75, 76, 78]],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/SUM_MIDDLE_ROW_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 ( arr1 , arr2 , m , n ) :
i = 0
j = 0
for i in range ( n ) :
for j in range ( m ) :
if ( arr2 [ i ] == arr1 [ j ] ) :
break
if ( j == m ) :
return 0
return 1
#TOFILL
if __name__ == '__main__':
param = [
([7, 10, 10, 10, 13, 17, 23, 24, 25, 28, 30, 33, 37, 49, 49, 50, 57, 60, 60, 63, 63, 64, 65, 65, 72, 81, 84, 85, 85, 94, 96],
[10,13,17,63],29,4,),
([12, 30, -94, -92, -62, -18, -56, 44, -50, -92, 6, 2, 56, -90, 0, 0, 18, 86, -58, 58, -54, 62, -94, 94, 0, 8, 82, -68, -88, -18, 8, -80, -42, 18, 62, -8, 56, -76, -42, 56, 44, -2, -20, 62, -14, 74, -86, -76],
[12, -18, 44],46,3,),
([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],
[0,0,0],34,3,),
([94, 26, 32, 20, 46, 55, 9, 51, 57, 80, 45, 38, 68, 12, 90, 10, 80, 65, 12, 52, 51, 86, 64, 57, 93, 19, 30, 92, 85, 82, 24, 26, 36, 56],
[80,58,32,2],17,4,),
([-98, -90, -86, -86, -84, -84, -82, -80, -78, -72, -70, -68, -66, -64, -52, -52, -50, -38, -28, -26, -24, -14, -8, 16, 26, 26, 28, 34, 36, 40, 42, 44, 44, 46, 50, 60, 68, 78, 80, 86, 90, 92, 98],
[-99,-90,-90,-86],23,4,),
([1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1],
[0,0,1,1],10,4,),
([6, 8, 11, 13, 14, 26, 26, 41, 48, 70, 82, 83, 84, 88, 96],
[1,9,12,16],10,4,),
([-88, 80, 62, 76, 48, 92, 18, -94, -62, 98, -46, -50, 70, 32, 68, -54, 26, 16, 94, 0, -84, 2, -16, 88, 26, -38, 18, 64, 90, 80, 76, 2, 14, -90, 50, 4, 76, 30],
[-76,-54,4,78],27,4,),
([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],
[0,1,0,1],10,4,),
([54, 44, 97, 92, 13, 54, 27, 8, 43, 70, 77, 84, 55, 64, 5, 59, 27, 19, 65, 68, 66, 26, 33, 38, 7],
[93,5,9,13],19,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/FIND_WHETHER_AN_ARRAY_IS_SUBSET_OF_ANOTHER_ARRAY_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(n):
k = n
imin = 1
ans = 0
while (imin <= n):
imax = n / k
ans += k * (imax - imin + 1)
imin = imax + 1
k = n / imin
return ans
#TOFILL
if __name__ == '__main__':
param = [
(17,),
(72,),
(43,),
(55,),
(62,),
(22,),
(17,),
(68,),
(20,),
(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/COUNT_NUMBER_PAIRS_N_B_N_GCD_B_B.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 ) :
n -= 1
sum = 0
sum += ( n * ( n + 1 ) ) / 2
sum += ( n * ( n + 1 ) * ( 2 * n + 1 ) ) / 6
return int ( sum )
#TOFILL
if __name__ == '__main__':
param = [
(12,),
(89,),
(76,),
(2,),
(81,),
(11,),
(26,),
(35,),
(16,),
(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/SUM_MATRIX_ELEMENT_ABSOLUTE_DIFFERENCE_ROW_COLUMN_NUMBERS_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 ( num ) :
if ( num < 0 ) :
return False
sum , n = 0 , 1
while ( sum <= num ) :
sum = sum + n
if ( sum == num ) :
return True
n += 1
return False
#TOFILL
if __name__ == '__main__':
param = [
(97,),
(97,),
(32,),
(40,),
(18,),
(14,),
(90,),
(39,),
(1,),
(57,)
]
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/TRIANGULAR_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 ( str ) :
NO_OF_CHARS = 256
count = [ 0 ] * NO_OF_CHARS
for i in range ( len ( str ) ) :
count [ ord ( str [ i ] ) ] += 1
first , second = 0 , 0
for i in range ( NO_OF_CHARS ) :
if count [ i ] > count [ first ] :
second = first
first = i
elif ( count [ i ] > count [ second ] and count [ i ] != count [ first ] ) :
second = i
return chr ( second )
#TOFILL
if __name__ == '__main__':
param = [
('SgUmIrEAB',),
('304',),
('0010',),
('VGC BeErLvQ',),
('0872',),
('00110001',),
('Lsqwm',),
('308998',),
('1000011',),
('XCEOs',)
]
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/C_PROGRAM_FIND_SECOND_FREQUENT_CHARACTER.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 = len ( X )
n = len ( Y )
L = [ [ 0 for i in range ( n + 1 ) ] for j in range ( 2 ) ]
bi = bool
for i in range ( m ) :
bi = i & 1
for j in range ( n + 1 ) :
if ( i == 0 or j == 0 ) :
L [ bi ] [ j ] = 0
elif ( X [ i ] == Y [ j - 1 ] ) :
L [ bi ] [ j ] = L [ 1 - bi ] [ j - 1 ] + 1
else :
L [ bi ] [ j ] = max ( L [ 1 - bi ] [ j ] , L [ bi ] [ j - 1 ] )
return L [ bi ] [ n ]
#TOFILL
if __name__ == '__main__':
param = [
('YNpjSv','qtUkJn',),
('736519','07592',),
('11010000100010','0',),
('v ','qGBQT',),
('8311172','157219329531',),
('100011101011','1000001111',),
('u','YzkubTqLhP',),
('3943042','3859',),
('101','00010000101010',),
('MpbfF OsizevaM','WgsFGaQwtp',)
]
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/SPACE_OPTIMIZED_SOLUTION_LCS.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 ) :
ans = 0 ;
for x in range ( 1 , p ) :
if ( ( x * x ) % p == 1 ) :
last = x + p * ( n / p ) ;
if ( last > n ) :
last -= p ;
ans += ( ( last - x ) / p + 1 ) ;
return int ( ans ) ;
#TOFILL
if __name__ == '__main__':
param = [
(94,36,),
(11,79,),
(88,63,),
(85,43,),
(74,89,),
(96,33,),
(49,51,),
(50,24,),
(21,26,),
(81,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/COUNT_NUMBER_OF_SOLUTIONS_OF_X2_1_MOD_P_IN_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 math
def f_gold ( a , b ) :
if ( a == 0 or b == 0 ) :
return 1
return math.floor ( math.log10 ( abs ( a ) ) + math.log10 ( abs ( b ) ) ) + 1
#TOFILL
if __name__ == '__main__':
param = [
(97,91,),
(52,49,),
(95,34,),
(35,40,),
(40,85,),
(18,97,),
(92,15,),
(73,98,),
(10,62,),
(82,22,)
]
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_DIGITS_PRODUCT_TWO_NUMBERS_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 ) :
count = 0
while ( n ) :
count += n & 1
n >>= 1
return count
#TOFILL
if __name__ == '__main__':
param = [
(58,),
(92,),
(73,),
(52,),
(24,),
(14,),
(58,),
(11,),
(8,),
(52,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
|
CodeGen-main
|
data/transcoder_evaluation_gfg/python/COUNT_SET_BITS_IN_AN_INTEGER.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 , n ) :
s1 = s
for i in range ( 1 , n ) :
s += s1
return s
#TOFILL
if __name__ == '__main__':
param = [
('LPWsaI',41,),
('9037515104',72,),
('00100010010111',95,),
('SbwipuE',27,),
('574314109',5,),
('1101',70,),
('f',91,),
('068',50,),
('000011001',38,),
('BWbUtIkC',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/C_PROGRAM_CONCATENATE_STRING_GIVEN_NUMBER_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 ( low , high ) :
f1 , f2 , f3 = 0 , 1 , 1
result = 0
while ( f1 <= high ) :
if ( f1 >= low ) :
result += 1
f1 = f2
f2 = f3
f3 = f1 + f2
return result
#TOFILL
if __name__ == '__main__':
param = [
(76,43,),
(96,52,),
(19,79,),
(36,2,),
(60,11,),
(20,15,),
(76,4,),
(63,93,),
(2,25,),
(41,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/COUNT_FIBONACCI_NUMBERS_GIVEN_RANGE_LOG_TIME.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 ( l , w ) :
return ( 2 * ( l + w ) )
#TOFILL
if __name__ == '__main__':
param = [
(58,39,),
(37,49,),
(56,52,),
(22,43,),
(77,12,),
(34,31,),
(74,54,),
(37,52,),
(21,37,),
(75,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/PYTHON_PROGRAM_FIND_PERIMETER_CIRCUMFERENCE_SQUARE_RECTANGLE_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 * ( 2 * n - 1 )
#TOFILL
if __name__ == '__main__':
param = [
(38,),
(44,),
(58,),
(10,),
(31,),
(53,),
(94,),
(64,),
(71,),
(59,)
]
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/HEXAGONAL_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 , n , key ) :
for i in range ( n ) :
if ( arr [ i ] == key ) :
return i
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([4, 8, 11, 23, 55, 57, 73, 74, 77, 79, 93],8,11,),
([-88, 12, -62, -66, -24, 18, 12, 22, 94, 30, -50, -42, -94, 18, 76, -6, -48, -68, 48, 36, -78, 52, -82, 76, 2, -44, -10, 88],27,12,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1],11,0,),
([33, 9, 93, 70, 81, 70, 56, 66, 72, 81, 74, 32, 71, 72, 3, 81, 70, 22, 82, 2, 75, 18, 90, 29, 48],24,72,),
([-98, -70, -62, -60, -60, -54, -48, -48, -46, -44, -34, -26, -18, -6, 4, 18, 28, 32, 34, 40, 50, 54, 56, 62, 64, 64, 98],18,23,),
([1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1],17,16,),
([4, 6, 7, 10, 10, 12, 13, 18, 23, 29, 29, 34, 46, 54, 60, 61, 63, 67, 69, 70, 72, 76, 79, 79, 81, 82, 88, 90, 99],15,28,),
([94, 34, -60, -74, 86, 80, 68, -48, 78, -62, -98, -44, -44, 92, -94, -86, -36, 12, 84, -90, 52, 42, -42, -66, 88, 76, 66],21,16,),
([0, 0, 0, 1],2,3,),
([76, 59, 38, 83, 38, 93, 27, 11, 17, 80, 26, 28, 35, 53, 88, 10, 9, 75],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/SEARCH_INSERT_AND_DELETE_IN_AN_UNSORTED_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 , k ) :
total = k
mod = 1000000007
same , diff = 0 , k
for i in range ( 2 , n + 1 ) :
same = diff
diff = total * ( k - 1 )
diff = diff % mod
total = ( same + diff ) % mod
return total
#TOFILL
if __name__ == '__main__':
param = [
(6,30,),
(23,87,),
(89,31,),
(63,36,),
(23,68,),
(44,66,),
(81,18,),
(43,73,),
(9,42,),
(41,98,)
]
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/PAINTING_FENCE_ALGORITHM.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 <= 6 ) :
return N
screen = [ 0 ] * N
for n in range ( 1 , 7 ) :
screen [ n - 1 ] = n
for n in range ( 7 , N + 1 ) :
screen [ n - 1 ] = max ( 2 * screen [ n - 4 ] , max ( 3 * screen [ n - 5 ] , 4 * screen [ n - 6 ] ) ) ;
return screen [ N - 1 ]
#TOFILL
if __name__ == '__main__':
param = [
(41,),
(94,),
(80,),
(40,),
(76,),
(5,),
(43,),
(67,),
(24,),
(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/HOW_TO_PRINT_MAXIMUM_NUMBER_OF_A_USING_GIVEN_FOUR_KEYS.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 , K ) :
n = len ( s )
c1 = 0
c2 = 0
C = 0
for i in range ( n ) :
if s [ i ] == 'a' :
c1 += 1
if s [ i ] == 'b' :
c2 += 1
C += c1
return C * K + ( K * ( K - 1 ) / 2 ) * c1 * c2
#TOFILL
if __name__ == '__main__':
param = [
('abbc',96,),
('abahk',7,),
('hugbabab',5,),
('abadbc',60,),
('nkg9',8,),
('jh7dab',41,),
('abd',87,),
('aabb8yk',4,),
('1111',18,),
('PFXAhr',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/NUMBER_SUBSEQUENCES_AB_STRING_REPEATED_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 ( A , N , M ) :
sum = 0
ans = 0
for i in range ( 0 , N ) :
for j in range ( i + 1 , N ) :
for k in range ( j + 1 , N ) :
sum = A [ i ] + A [ j ] + A [ k ]
if ( sum % M == 0 ) :
ans = ans + 1
return ans
#TOFILL
if __name__ == '__main__':
param = [
([14, 35, 56, 70, 88],3,4,),
([-50, -92, 16, -68, -36],3,4,),
([0, 0, 0, 1, 1, 1],4,5,),
([76, 43, 22, 41, 49, 99, 25, 40, 3, 45, 60, 16, 83, 62, 26, 93, 64, 73, 72, 53, 6, 32, 35, 67, 17],14,21,),
([-90, -86, -86, -66, -50, -48, -44, -42, -42, -38, -24, -22, -20, -18, -8, 8, 24, 28, 34, 48, 60, 62, 66, 68, 74, 76, 80, 82, 88],24,20,),
([1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0],24,30,),
([4, 5, 8, 9, 10, 12, 13, 16, 17, 18, 21, 21, 25, 27, 28, 30, 36, 36, 54, 55, 56, 57, 60, 62, 67, 67, 68, 71, 72, 72, 73, 73, 77, 77, 83, 86, 86, 86, 87, 89, 92, 92, 96, 97, 97, 98],24,23,),
([-64, 52, -32, 38, 8, -62, -56, 20, 72, -12, 32, 44],6,6,),
([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],12,15,),
([77, 68, 45, 6, 27, 19, 29, 95, 21, 2, 39, 48, 72, 67, 49, 45, 1, 16, 56, 78, 25, 22, 27, 40, 31, 34, 26, 35, 12],25,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/SUBSEQUENCES_SIZE_THREE_ARRAY_WHOSE_SUM_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 ( arr , n , k ) :
for i in range ( 0 , k ) :
x = arr [ 0 ]
for j in range ( 0 , n - 1 ) :
arr [ j ] = arr [ j + 1 ]
arr [ n - 1 ] = x
#TOFILL
if __name__ == '__main__':
param = [
([75],0,0,),
([-58, -60, -38, 48, -2, 32, -48, -46, 90, -54, -18, 28, 72, 86, 0, -2, -74, 12, -58, 90, -30, 10, -88, 2, -14, 82, -82, -46, 2, -74],27,17,),
([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],7,7,),
([45, 51, 26, 36, 10, 62, 62, 56, 61, 67, 86, 97, 31, 93, 32, 1, 14, 25, 24, 30, 1, 44, 7, 98, 56, 68, 53, 59, 30, 90, 79, 22],23,24,),
([-88, -72, -64, -46, -40, -16, -8, 0, 22, 34, 44],6,6,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0],23,30,),
([8, 17, 20, 23, 31, 32, 37, 37, 44, 45, 48, 64, 64, 67, 69, 71, 75, 77, 78, 81, 83, 87, 89, 92, 94],21,20,),
([-8, -88, -68, 48, 8, 50, 30, -88, 74, -16, 6, 74, 36, 32, 22, 96, -2, 70, 40, -46, 98, 34, 2, 94],23,13,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],5,8,),
([80, 14, 35, 25, 60, 86, 45, 95, 32, 29, 94, 6, 63, 66, 38],9,7,)
]
filled_function_param = [
([75],0,0,),
([-58, -60, -38, 48, -2, 32, -48, -46, 90, -54, -18, 28, 72, 86, 0, -2, -74, 12, -58, 90, -30, 10, -88, 2, -14, 82, -82, -46, 2, -74],27,17,),
([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],7,7,),
([45, 51, 26, 36, 10, 62, 62, 56, 61, 67, 86, 97, 31, 93, 32, 1, 14, 25, 24, 30, 1, 44, 7, 98, 56, 68, 53, 59, 30, 90, 79, 22],23,24,),
([-88, -72, -64, -46, -40, -16, -8, 0, 22, 34, 44],6,6,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0],23,30,),
([8, 17, 20, 23, 31, 32, 37, 37, 44, 45, 48, 64, 64, 67, 69, 71, 75, 77, 78, 81, 83, 87, 89, 92, 94],21,20,),
([-8, -88, -68, 48, 8, 50, 30, -88, 74, -16, 6, 74, 36, 32, 22, 96, -2, 70, 40, -46, 98, 34, 2, 94],23,13,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],5,8,),
([80, 14, 35, 25, 60, 86, 45, 95, 32, 29, 94, 6, 63, 66, 38],9,7,)
]
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/SPLIT_ARRAY_ADD_FIRST_PART_END.py
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.