type
stringclasses 4
values | content_without_mask
stringlengths 610
1.37M
| content_masked
stringlengths 609
1.37M
| label
stringclasses 362
values | options
sequencelengths 5
5
| correct
stringclasses 5
values |
---|---|---|---|---|---|
python | def f_gold ( a , b ) :
if ( b == 0 ) :
return 1
answer = a
increment = a
for i in range ( 1 , b ) :
for j in range ( 1 , a ) :
answer += increment
increment = answer
return answer
return 1
answer = a
increment = a
for i in range ( 1 , b ) :
for j in range ( 1 , a ) :
answer += increment
increment = answer
return answer
#TOFILL
if __name__ == '__main__':
param = [
(66,4,),
(82,66,),
(12,38,),
(55,33,),
(34,26,),
(22,23,),
(13,98,),
(57,84,),
(76,94,),
(76,95,)
]
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))) | def f_gold ( a , b ) : if ( b == 0 ) : return 1 answer = a [MASK] = a for i in range ( 1 , b ) : for j in range ( 1 , a ) : answer += increment increment = answer return answer return 1
answer = a
increment = a
for i in range ( 1 , b ) :
for j in range ( 1 , a ) :
answer += increment
increment = answer
return answer
#TOFILL
if __name__ == '__main__':
param = [
(66,4,),
(82,66,),
(12,38,),
(55,33,),
(34,26,),
(22,23,),
(13,98,),
(57,84,),
(76,94,),
(76,95,)
]
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))) | increment | [
"a) i",
"b) minute_angle",
"c) :",
"d) increment",
"e) ="
] | d |
python | def f_gold ( s ) :
n = len ( s ) ;
sub_count = ( n * ( n + 1 ) ) // 2 ;
arr = [ 0 ] * sub_count ;
index = 0 ;
for i in range ( n ) :
for j in range ( 1 , n - i + 1 ) :
arr [ index ] = s [ i : i + j ] ;
index += 1 ;
arr.sort ( ) ;
res = "" ;
for i in range ( sub_count ) :
res += arr [ i ] ;
return res ;
1 ) :
arr [ index ] = s [ i : i + j ] ;
index += 1 ;
arr.sort ( ) ;
res = "" ;
for i in range ( sub_count ) :
res += arr [ i ] ;
return res ;
#TOFILL
if __name__ == '__main__':
param = [
('sqGOi',),
('848580',),
('01001110011001',),
('ZhWXUKmeiI',),
('0917296541285',),
('01101001111100',),
('tjP kR',),
('999907',),
('011100',),
('qJPHNSJOUj',)
]
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))) | def f_gold ( s ) : n = len ( s ) ; sub_count = ( n * ( n + 1 ) ) // 2 ; arr = [ 0 ] * sub_count ; index = 0 ; for i in range ( n ) : for j in range ( 1 , n - i + 1 ) : arr [ index ] = s [ i : i + j [MASK] ; index += 1 ; arr.sort ( ) ; res = "" ; for i in range ( sub_count ) : res += arr [ i ] ; return res ; 1 ) :
arr [ index ] = s [ i : i + j ] ;
index += 1 ;
arr.sort ( ) ;
res = "" ;
for i in range ( sub_count ) :
res += arr [ i ] ;
return res ;
#TOFILL
if __name__ == '__main__':
param = [
('sqGOi',),
('848580',),
('01001110011001',),
('ZhWXUKmeiI',),
('0917296541285',),
('01101001111100',),
('tjP kR',),
('999907',),
('011100',),
('qJPHNSJOUj',)
]
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))) | ] | [
"a) /",
"b) ]",
"c) #include",
"d) count",
"e) s"
] | b |
python | 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
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))) | def f_gold ( arr , n , x , y ) : count = 0 ; for i in range ( n ) : if ( arr [ i ] >= x and arr [ i ] <= [MASK] ) : count += 1 return count 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))) | y | [
"a) import",
"b) return",
"c) .",
"d) y",
"e) l1"
] | d |
python | def f_gold ( xp , yp ) :
xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
yp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
# LICENSE file in the root directory of this source tree.
#
def f_gold ( xp , yp ) :
xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
yp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
#TOFILL
if __name__ == '__main__':
param = [
([2, 7, 12, 13, 15, 17, 24, 27, 28, 31, 36, 44, 55, 55, 56, 58, 60, 62, 64, 73, 75, 77, 89, 90, 93, 93, 95, 97, 98],[5, 8, 12, 13, 14, 20, 23, 25, 27, 28, 31, 33, 33, 37, 38, 39, 42, 42, 43, 47, 52, 54, 62, 67, 71, 72, 73, 76, 77, 79, 81, 81, 85, 86, 89, 91, 91, 96, 96, 99],),
([36, 51, 6, 25, 13, -36, 23, 14, -80, -84, 45, -81, 20, 36, 66, -62, 81, -7, 5, 0, -10, 59, -56, 88, -24, 45, -21, -27, 67, 70, 76, 40, -4, -11, 3, 46, -94, 22, 71, 16, 63, 82, -38, 97, 44, 36, -11, -4],[-14, 59, 38, 84, 21, -24, -8, -30, 48, 33, -77, 37, -42, 87, 82, -54, -78, 92, -92, 23, -80, 79, -22, -61, -63, 78],),
([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, 1, 1, 1, 1, 1],),
([63, 87, 32, 10, 11, 70, 62, 47, 34, 17, 54, 76, 85, 40, 19, 67, 82, 53, 64, 83, 47, 6, 16, 72, 18, 52, 48, 43, 39, 49, 12, 10, 71, 55, 1, 49, 36, 21, 37, 24, 55, 25, 7, 81, 93, 94, 71, 97, 71],[11, 73, 12, 35, 63, 68, 92, 57, 13, 23, 83, 39, 88, 80, 97, 12, 34, 71, 75, 31, 93, 62, 13, 31],),
([-85, 3],[-84, -71, -66, -63, -25, -23, -19, 3, 67, 94, 96],),
([1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1],[0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0],),
([2, 3, 4, 5, 6, 8, 14, 16, 16, 17, 19, 21, 21, 25, 26, 26, 29, 33, 36, 39, 46, 53, 55, 56, 66, 77, 81, 84, 84, 86, 86, 88, 89, 89, 92, 97],[5, 13, 22, 24, 27, 33, 46, 67, 74, 77, 78, 82, 86, 90, 91],),
([15, -37, 13, -6, -52, 91, -88, 56, 72, 71, 45, -60, 77, -15, -43, -13, -16, 92, 85, 21, -26, 7, 24, 98, 0, -57, 19, -77, 55, 86, -63, 34, -35, 34, 78, -78, 5, -12, 53, 25, -21, -10, -49, 76, 2, 98, 6],[-40],),
([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, 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],),
([75, 24, 60, 95, 55],[80, 24, 77, 24, 54, 26, 66, 80, 38, 65, 75, 51, 35],)
]
filled_function_param = [
([2, 7, 12, 13, 15, 17, 24, 27, 28, 31, 36, 44, 55, 55, 56, 58, 60, 62, 64, 73, 75, 77, 89, 90, 93, 93, 95, 97, 98],[5, 8, 12, 13, 14, 20, 23, 25, 27, 28, 31, 33, 33, 37, 38, 39, 42, 42, 43, 47, 52, 54, 62, 67, 71, 72, 73, 76, 77, 79, 81, 81, 85, 86, 89, 91, 91, 96, 96, 99],),
([36, 51, 6, 25, 13, -36, 23, 14, -80, -84, 45, -81, 20, 36, 66, -62, 81, -7, 5, 0, -10, 59, -56, 88, -24, 45, -21, -27, 67, 70, 76, 40, -4, -11, 3, 46, -94, 22, 71, 16, 63, 82, -38, 97, 44, 36, -11, -4],[-14, 59, 38, 84, 21, -24, -8, -30, 48, 33, -77, 37, -42, 87, 82, -54, -78, 92, -92, 23, -80, 79, -22, -61, -63, 78],),
([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, 1, 1, 1, 1, 1],),
([63, 87, 32, 10, 11, 70, 62, 47, 34, 17, 54, 76, 85, 40, 19, 67, 82, 53, 64, 83, 47, 6, 16, 72, 18, 52, 48, 43, 39, 49, 12, 10, 71, 55, 1, 49, 36, 21, 37, 24, 55, 25, 7, 81, 93, 94, 71, 97, 71],[11, 73, 12, 35, 63, 68, 92, 57, 13, 23, 83, 39, 88, 80, 97, 12, 34, 71, 75, 31, 93, 62, 13, 31],),
([-85, 3],[-84, -71, -66, -63, -25, -23, -19, 3, 67, 94, 96],),
([1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1],[0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0],),
([2, 3, 4, 5, 6, 8, 14, 16, 16, 17, 19, 21, 21, 25, 26, 26, 29, 33, 36, 39, 46, 53, 55, 56, 66, 77, 81, 84, 84, 86, 86, 88, 89, 89, 92, 97],[5, 13, 22, 24, 27, 33, 46, 67, 74, 77, 78, 82, 86, 90, 91],),
([15, -37, 13, -6, -52, 91, -88, 56, 72, 71, 45, -60, 77, -15, -43, -13, -16, 92, 85, 21, -26, 7, 24, 98, 0, -57, 19, -77, 55, 86, -63, 34, -35, 34, 78, -78, 5, -12, 53, 25, -21, -10, -49, 76, 2, 98, 6],[-40],),
([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, 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],),
([75, 24, 60, 95, 55],[80, 24, 77, 24, 54, 26, 66, 80, 38, 65, 75, 51, 35],)
]
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))) | def f_gold ( xp , yp ) : xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ] yp [ 0 ] = xp [ 0 ] ^ yp [ 0 ] xp [ 0 ] = xp [ 0 ] ^ yp [ 0 [MASK]
# LICENSE file in the root directory of this source tree.
#
def f_gold ( xp , yp ) :
xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
yp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
xp [ 0 ] = xp [ 0 ] ^ yp [ 0 ]
#TOFILL
if __name__ == '__main__':
param = [
([2, 7, 12, 13, 15, 17, 24, 27, 28, 31, 36, 44, 55, 55, 56, 58, 60, 62, 64, 73, 75, 77, 89, 90, 93, 93, 95, 97, 98],[5, 8, 12, 13, 14, 20, 23, 25, 27, 28, 31, 33, 33, 37, 38, 39, 42, 42, 43, 47, 52, 54, 62, 67, 71, 72, 73, 76, 77, 79, 81, 81, 85, 86, 89, 91, 91, 96, 96, 99],),
([36, 51, 6, 25, 13, -36, 23, 14, -80, -84, 45, -81, 20, 36, 66, -62, 81, -7, 5, 0, -10, 59, -56, 88, -24, 45, -21, -27, 67, 70, 76, 40, -4, -11, 3, 46, -94, 22, 71, 16, 63, 82, -38, 97, 44, 36, -11, -4],[-14, 59, 38, 84, 21, -24, -8, -30, 48, 33, -77, 37, -42, 87, 82, -54, -78, 92, -92, 23, -80, 79, -22, -61, -63, 78],),
([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, 1, 1, 1, 1, 1],),
([63, 87, 32, 10, 11, 70, 62, 47, 34, 17, 54, 76, 85, 40, 19, 67, 82, 53, 64, 83, 47, 6, 16, 72, 18, 52, 48, 43, 39, 49, 12, 10, 71, 55, 1, 49, 36, 21, 37, 24, 55, 25, 7, 81, 93, 94, 71, 97, 71],[11, 73, 12, 35, 63, 68, 92, 57, 13, 23, 83, 39, 88, 80, 97, 12, 34, 71, 75, 31, 93, 62, 13, 31],),
([-85, 3],[-84, -71, -66, -63, -25, -23, -19, 3, 67, 94, 96],),
([1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1],[0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0],),
([2, 3, 4, 5, 6, 8, 14, 16, 16, 17, 19, 21, 21, 25, 26, 26, 29, 33, 36, 39, 46, 53, 55, 56, 66, 77, 81, 84, 84, 86, 86, 88, 89, 89, 92, 97],[5, 13, 22, 24, 27, 33, 46, 67, 74, 77, 78, 82, 86, 90, 91],),
([15, -37, 13, -6, -52, 91, -88, 56, 72, 71, 45, -60, 77, -15, -43, -13, -16, 92, 85, 21, -26, 7, 24, 98, 0, -57, 19, -77, 55, 86, -63, 34, -35, 34, 78, -78, 5, -12, 53, 25, -21, -10, -49, 76, 2, 98, 6],[-40],),
([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, 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],),
([75, 24, 60, 95, 55],[80, 24, 77, 24, 54, 26, 66, 80, 38, 65, 75, 51, 35],)
]
filled_function_param = [
([2, 7, 12, 13, 15, 17, 24, 27, 28, 31, 36, 44, 55, 55, 56, 58, 60, 62, 64, 73, 75, 77, 89, 90, 93, 93, 95, 97, 98],[5, 8, 12, 13, 14, 20, 23, 25, 27, 28, 31, 33, 33, 37, 38, 39, 42, 42, 43, 47, 52, 54, 62, 67, 71, 72, 73, 76, 77, 79, 81, 81, 85, 86, 89, 91, 91, 96, 96, 99],),
([36, 51, 6, 25, 13, -36, 23, 14, -80, -84, 45, -81, 20, 36, 66, -62, 81, -7, 5, 0, -10, 59, -56, 88, -24, 45, -21, -27, 67, 70, 76, 40, -4, -11, 3, 46, -94, 22, 71, 16, 63, 82, -38, 97, 44, 36, -11, -4],[-14, 59, 38, 84, 21, -24, -8, -30, 48, 33, -77, 37, -42, 87, 82, -54, -78, 92, -92, 23, -80, 79, -22, -61, -63, 78],),
([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, 1, 1, 1, 1, 1],),
([63, 87, 32, 10, 11, 70, 62, 47, 34, 17, 54, 76, 85, 40, 19, 67, 82, 53, 64, 83, 47, 6, 16, 72, 18, 52, 48, 43, 39, 49, 12, 10, 71, 55, 1, 49, 36, 21, 37, 24, 55, 25, 7, 81, 93, 94, 71, 97, 71],[11, 73, 12, 35, 63, 68, 92, 57, 13, 23, 83, 39, 88, 80, 97, 12, 34, 71, 75, 31, 93, 62, 13, 31],),
([-85, 3],[-84, -71, -66, -63, -25, -23, -19, 3, 67, 94, 96],),
([1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1],[0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0],),
([2, 3, 4, 5, 6, 8, 14, 16, 16, 17, 19, 21, 21, 25, 26, 26, 29, 33, 36, 39, 46, 53, 55, 56, 66, 77, 81, 84, 84, 86, 86, 88, 89, 89, 92, 97],[5, 13, 22, 24, 27, 33, 46, 67, 74, 77, 78, 82, 86, 90, 91],),
([15, -37, 13, -6, -52, 91, -88, 56, 72, 71, 45, -60, 77, -15, -43, -13, -16, 92, 85, 21, -26, 7, 24, 98, 0, -57, 19, -77, 55, 86, -63, 34, -35, 34, 78, -78, 5, -12, 53, 25, -21, -10, -49, 76, 2, 98, 6],[-40],),
([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, 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],),
([75, 24, 60, 95, 55],[80, 24, 77, 24, 54, 26, 66, 80, 38, 65, 75, 51, 35],)
]
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))) | ] | [
"a) 0",
"b) ]",
"c) =",
"d) ;",
"e) for"
] | b |
python | def f_gold ( n ) :
table = [ 0 ] * ( n + 1 )
for i in range ( n + 1 ) :
table [ i ] = n - i
for i in range ( n , 0 , - 1 ) :
if ( not ( i % 2 ) ) :
table [ i // 2 ] = min ( table [ i ] + 1 , table [ i // 2 ] )
if ( not ( i % 3 ) ) :
table [ i // 3 ] = min ( table [ i ] + 1 , table [ i // 3 ] )
return table [ 1 ]
table [ i // 2 ] = min ( table [ i ] + 1 , table [ i // 2 ] )
if ( not ( i % 3 ) ) :
table [ i // 3 ] = min ( table [ i ] + 1 , table [ i // 3 ] )
return table [ 1 ]
#TOFILL
if __name__ == '__main__':
param = [
(59,),
(7,),
(90,),
(78,),
(49,),
(15,),
(45,),
(56,),
(7,),
(70,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( n ) : table = [ 0 ] * ( n + 1 ) for i in range ( n + 1 ) : table [ i ] = n - i for i in range ( n , 0 , - 1 ) : if ( not ( i % 2 ) ) : table [ i // 2 ] = min ( table [ i ] + 1 , table [ i // 2 ] ) if ( not ( i [MASK] 3 ) ) : table [ i // 3 ] = min ( table [ i ] + 1 , table [ i // 3 ] ) return table [ 1 ] table [ i // 2 ] = min ( table [ i ] + 1 , table [ i // 2 ] )
if ( not ( i % 3 ) ) :
table [ i // 3 ] = min ( table [ i ] + 1 , table [ i // 3 ] )
return table [ 1 ]
#TOFILL
if __name__ == '__main__':
param = [
(59,),
(7,),
(90,),
(78,),
(49,),
(15,),
(45,),
(56,),
(7,),
(70,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | % | [
"a) %",
"b) boolean",
"c) (",
"d) SUM_SERIES_0_6_0_06_0_006_0_0006_N_TERMS{",
"e) return"
] | a |
python | 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
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))) | def f_gold ( x , p1 , p2 , n ) : set1 = ( x >> p1 ) & ( ( 1 << n ) - 1 ) set2 = ( x >> p2 ) & ( ( 1 << [MASK] ) - 1 ) xor = ( set1 ^ set2 ) xor = ( xor << p1 ) | ( xor << p2 ) result = x ^ xor return result 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))) | n | [
"a) arr",
"b) cmpfunc",
"c) n",
"d) i",
"e) java.util.stream.*;"
] | c |
python | def f_gold ( arr , N , k ) :
maxSum = 0 ;
arr.sort ( ) ;
i = N - 1 ;
while ( i >= 0 ) :
if ( arr [ i ] - arr [ i - 1 ] < k ) :
maxSum += arr [ i ] ;
maxSum += arr [ i - 1 ] ;
i -= 1 ;
i -= 1 ;
return maxSum ;
( i >= 0 ) :
if ( arr [ i ] - arr [ i - 1 ] < k ) :
maxSum += arr [ i ] ;
maxSum += arr [ i - 1 ] ;
i -= 1 ;
i -= 1 ;
return maxSum ;
#TOFILL
if __name__ == '__main__':
param = [
([2, 10, 11, 11, 12, 14, 15, 17, 27, 27, 28, 36, 36, 44, 47, 47, 54, 55, 62, 64, 68, 69, 70, 70, 75, 76, 78, 85, 85, 91, 95, 97],26,18,),
([-36, 78, 10, 30, -12, -70, -98, -14, -44, -66, -40, -8, 78, 2, -70, 40, 92, 58, 30, 10, -84, -62, -86, -50, 82, 36, -92, -30, -2, -34, 88, 2, -4, -72],26,25,),
([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, 1],47,26,),
([77, 78, 58],1,1,),
([-88, -88, -88, -82, -58, -54, -48, -46, -46, -44, -20, -2, 10, 28, 28, 28, 42, 42, 44, 50, 50, 54, 56, 58, 62, 68, 70, 72, 74, 76, 78, 88, 90, 92],21,24,),
([0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1],41,40,),
([5, 7, 10, 11, 15, 17, 20, 20, 29, 29, 32, 37, 38, 39, 40, 41, 45, 51, 60, 64, 64, 68, 68, 70, 71, 71, 71, 75, 76, 82, 84, 87, 88, 88, 95, 98],30,21,),
([-46, -32, 76, -28, 44, -14, 94, -4, 60, -88, -52, 32, -66, 28, 94, 76, 86, -4, 74, 52, 64, -36, -98, -40, 70, 18, -22, -20, -16, -74, 12, 60, 94, 98, -28, -24, 4, -34, -60, 56],33,23,),
([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],28,41,),
([79, 13, 25, 22, 61, 1, 2, 73, 66, 94, 47, 9, 1, 99, 25, 39, 95, 46, 95, 20, 63, 15, 14, 36, 9, 91, 14],19,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))) | def f_gold ( arr , N , k ) : maxSum = 0 ; arr.sort ( ) ; i = N - 1 ; while ( i >= 0 ) [MASK] if ( arr [ i ] - arr [ i - 1 ] < k ) : maxSum += arr [ i ] ; maxSum += arr [ i - 1 ] ; i -= 1 ; i -= 1 ; return maxSum ; ( i >= 0 ) :
if ( arr [ i ] - arr [ i - 1 ] < k ) :
maxSum += arr [ i ] ;
maxSum += arr [ i - 1 ] ;
i -= 1 ;
i -= 1 ;
return maxSum ;
#TOFILL
if __name__ == '__main__':
param = [
([2, 10, 11, 11, 12, 14, 15, 17, 27, 27, 28, 36, 36, 44, 47, 47, 54, 55, 62, 64, 68, 69, 70, 70, 75, 76, 78, 85, 85, 91, 95, 97],26,18,),
([-36, 78, 10, 30, -12, -70, -98, -14, -44, -66, -40, -8, 78, 2, -70, 40, 92, 58, 30, 10, -84, -62, -86, -50, 82, 36, -92, -30, -2, -34, 88, 2, -4, -72],26,25,),
([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, 1],47,26,),
([77, 78, 58],1,1,),
([-88, -88, -88, -82, -58, -54, -48, -46, -46, -44, -20, -2, 10, 28, 28, 28, 42, 42, 44, 50, 50, 54, 56, 58, 62, 68, 70, 72, 74, 76, 78, 88, 90, 92],21,24,),
([0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1],41,40,),
([5, 7, 10, 11, 15, 17, 20, 20, 29, 29, 32, 37, 38, 39, 40, 41, 45, 51, 60, 64, 64, 68, 68, 70, 71, 71, 71, 75, 76, 82, 84, 87, 88, 88, 95, 98],30,21,),
([-46, -32, 76, -28, 44, -14, 94, -4, 60, -88, -52, 32, -66, 28, 94, 76, 86, -4, 74, 52, 64, -36, -98, -40, 70, 18, -22, -20, -16, -74, 12, 60, 94, 98, -28, -24, 4, -34, -60, 56],33,23,),
([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],28,41,),
([79, 13, 25, 22, 61, 1, 2, 73, 66, 94, 47, 9, 1, 99, 25, 39, 95, 46, 95, 20, 63, 15, 14, 36, 9, 91, 14],19,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))) | : | [
"a) f_gold",
"b) a,",
"c) :",
"d) .",
"e) =="
] | c |
python | def f_gold ( str ) :
i = 0 ; j = len ( str ) - 1 ;
while ( i < j ) :
if ( str [ i ] != str [ j ] ) :
return False ;
i += 1 ;
j -= 1 ;
return True ;
_gold ( str ) :
i = 0 ; j = len ( str ) - 1 ;
while ( i < j ) :
if ( str [ i ] != str [ j ] ) :
return False ;
i += 1 ;
j -= 1 ;
return True ;
#TOFILL
if __name__ == '__main__':
param = [
('ab',),
('303',),
('11110000',),
('aba',),
('404',),
('10101',),
('abab',),
('6366',),
('001',),
('',)
]
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))) | def f_gold ( str ) : i = 0 ; j = len ( str ) - 1 ; [MASK] ( i < j ) : if ( str [ i ] != str [ j ] ) : return False ; i += 1 ; j -= 1 ; return True ;_gold ( str ) :
i = 0 ; j = len ( str ) - 1 ;
while ( i < j ) :
if ( str [ i ] != str [ j ] ) :
return False ;
i += 1 ;
j -= 1 ;
return True ;
#TOFILL
if __name__ == '__main__':
param = [
('ab',),
('303',),
('11110000',),
('aba',),
('404',),
('10101',),
('abab',),
('6366',),
('001',),
('',)
]
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))) | while | [
"a) #include",
"b) push",
"c) (",
"d) ]",
"e) while"
] | e |
python | def f_gold ( a ) :
return ( 4 * a )
nc.
# 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 ) :
return ( 4 * a )
#TOFILL
if __name__ == '__main__':
param = [
(98,),
(9,),
(18,),
(38,),
(84,),
(8,),
(39,),
(6,),
(60,),
(47,)
]
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))) | def f_gold [MASK] a ) : return ( 4 * a )nc.
# 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 ) :
return ( 4 * a )
#TOFILL
if __name__ == '__main__':
param = [
(98,),
(9,),
(18,),
(38,),
(84,),
(8,),
(39,),
(6,),
(60,),
(47,)
]
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))) | ( | [
"a) x,",
"b) int",
"c) -",
"d) (",
"e) return"
] | d |
python | def f_gold ( x ) :
next = 0
if ( x ) :
rightOne = x & - ( x )
nextHigherOneBit = x + int ( rightOne )
rightOnesPattern = x ^ int ( nextHigherOneBit )
rightOnesPattern = ( int ( rightOnesPattern ) / int ( rightOne ) )
rightOnesPattern = int ( rightOnesPattern ) >> 2
next = nextHigherOneBit | rightOnesPattern
return next
rightOnesPattern = ( int ( rightOnesPattern ) / int ( rightOne ) )
rightOnesPattern = int ( rightOnesPattern ) >> 2
next = nextHigherOneBit | rightOnesPattern
return next
#TOFILL
if __name__ == '__main__':
param = [
(42,),
(75,),
(94,),
(5,),
(52,),
(22,),
(77,),
(44,),
(85,),
(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))) | def f_gold ( x ) : next = 0 if ( x ) : rightOne = x & - ( x ) nextHigherOneBit = x + int ( [MASK] ) rightOnesPattern = x ^ int ( nextHigherOneBit ) rightOnesPattern = ( int ( rightOnesPattern ) / int ( rightOne ) ) rightOnesPattern = int ( rightOnesPattern ) >> 2 next = nextHigherOneBit | rightOnesPattern return nextrightOnesPattern = ( int ( rightOnesPattern ) / int ( rightOne ) )
rightOnesPattern = int ( rightOnesPattern ) >> 2
next = nextHigherOneBit | rightOnesPattern
return next
#TOFILL
if __name__ == '__main__':
param = [
(42,),
(75,),
(94,),
(5,),
(52,),
(22,),
(77,),
(44,),
(85,),
(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))) | rightOne | [
"a) .",
"b) (",
"c) n",
"d) rightOne",
"e) )"
] | d |
python | def f_gold ( arr , n ) :
s = dict ( )
count , maxm , minm = 0 , - 10 ** 9 , 10 ** 9
for i in range ( n ) :
s [ arr [ i ] ] = 1
if ( arr [ i ] < minm ) :
minm = arr [ i ]
if ( arr [ i ] > maxm ) :
maxm = arr [ i ]
for i in range ( minm , maxm + 1 ) :
if i not in s.keys ( ) :
count += 1
return count
m = arr [ i ]
if ( arr [ i ] > maxm ) :
maxm = arr [ i ]
for i in range ( minm , maxm + 1 ) :
if i not in s.keys ( ) :
count += 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([1, 4, 5, 5, 11, 11, 12, 14, 16, 20, 23, 23, 25, 27, 29, 33, 33, 35, 37, 39, 39, 44, 44, 45, 47, 51, 51, 53, 55, 65, 73, 73, 75, 78, 79, 79, 80, 82, 86, 86, 87, 87, 88, 90, 91, 91, 94],26,),
([-38, 20, -94, -68, -96, 36, 48, 32, 44, -56, 72, -28, -6, 22, -54, -46, 58, -60, -80, 28, -34, 60, -12, -26, -32, 28, 72, -50, 66, -36, 28, 30, 10, 14, 0, -78, 94, -24, -42, -60, 66, -12, 92, 54, -34, -58, 56],31,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([73, 69, 12, 82, 65, 55, 93, 93, 88, 52, 33, 94, 62, 75, 61, 81, 48, 43, 29, 8, 28, 60, 60, 58, 54, 44, 25, 36, 46, 88, 54, 36, 83, 46, 34, 44, 71, 90, 68, 75, 42],31,),
([-98, -94, -88, -80, -74, -70, -70, -56, -50, -48, -40, -24, -22, -14, 0, 2, 2, 6, 12, 22, 30, 32, 32, 40, 48, 52, 52, 58, 64, 66, 66, 68, 70, 72, 74, 76, 78, 94, 98, 98],22,),
([1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1],18,),
([1, 2, 3, 4, 7, 11, 12, 13, 14, 15, 20, 21, 22, 25, 25, 28, 32, 32, 35, 36, 37, 38, 42, 42, 45, 48, 48, 48, 54, 67, 70, 70, 71, 74, 80, 81, 82, 82, 85, 94],24,),
([-90, 92, 28, -32, 76, 94, 48, 80, 52, -12, -6, 22, 40, 26, -18, -84, 90, 16, -76, 52, 10, -56, 6],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],14,),
([4, 21, 34, 35, 71, 10, 88, 44, 82, 13, 79, 92, 35, 73, 28, 91, 33, 9, 12, 76, 40, 91, 4, 22, 90, 53, 98, 7, 30],17,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : s = dict ( ) count , maxm , minm = 0 , - 10 ** 9 , 10 ** 9 for i in range ( n ) : s [ arr [ i ] ] = 1 if ( arr [ i ] [MASK] minm ) : minm = arr [ i ] if ( arr [ i ] > maxm ) : maxm = arr [ i ] for i in range ( minm , maxm + 1 ) : if i not in s.keys ( ) : count += 1 return countm = arr [ i ]
if ( arr [ i ] > maxm ) :
maxm = arr [ i ]
for i in range ( minm , maxm + 1 ) :
if i not in s.keys ( ) :
count += 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([1, 4, 5, 5, 11, 11, 12, 14, 16, 20, 23, 23, 25, 27, 29, 33, 33, 35, 37, 39, 39, 44, 44, 45, 47, 51, 51, 53, 55, 65, 73, 73, 75, 78, 79, 79, 80, 82, 86, 86, 87, 87, 88, 90, 91, 91, 94],26,),
([-38, 20, -94, -68, -96, 36, 48, 32, 44, -56, 72, -28, -6, 22, -54, -46, 58, -60, -80, 28, -34, 60, -12, -26, -32, 28, 72, -50, 66, -36, 28, 30, 10, 14, 0, -78, 94, -24, -42, -60, 66, -12, 92, 54, -34, -58, 56],31,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([73, 69, 12, 82, 65, 55, 93, 93, 88, 52, 33, 94, 62, 75, 61, 81, 48, 43, 29, 8, 28, 60, 60, 58, 54, 44, 25, 36, 46, 88, 54, 36, 83, 46, 34, 44, 71, 90, 68, 75, 42],31,),
([-98, -94, -88, -80, -74, -70, -70, -56, -50, -48, -40, -24, -22, -14, 0, 2, 2, 6, 12, 22, 30, 32, 32, 40, 48, 52, 52, 58, 64, 66, 66, 68, 70, 72, 74, 76, 78, 94, 98, 98],22,),
([1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1],18,),
([1, 2, 3, 4, 7, 11, 12, 13, 14, 15, 20, 21, 22, 25, 25, 28, 32, 32, 35, 36, 37, 38, 42, 42, 45, 48, 48, 48, 54, 67, 70, 70, 71, 74, 80, 81, 82, 82, 85, 94],24,),
([-90, 92, 28, -32, 76, 94, 48, 80, 52, -12, -6, 22, 40, 26, -18, -84, 90, 16, -76, 52, 10, -56, 6],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1],14,),
([4, 21, 34, 35, 71, 10, 88, 44, 82, 13, 79, 92, 35, 73, 28, 91, 33, 9, 12, 76, 40, 91, 4, 22, 90, 53, 98, 7, 30],17,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | < | [
"a) /",
"b) [",
"c) <",
"d) {",
"e) public"
] | c |
python | def f_gold ( arr , n ) :
l = 0
_sum = 0
ans = 360
for i in range ( n ) :
_sum += arr [ i ]
while _sum >= 180 :
ans = min ( ans , 2 * abs ( 180 - _sum ) )
_sum -= arr [ l ]
l += 1
ans = min ( ans , 2 * abs ( 180 - _sum ) )
return ans
while _sum >= 180 :
ans = min ( ans , 2 * abs ( 180 - _sum ) )
_sum -= arr [ l ]
l += 1
ans = min ( ans , 2 * abs ( 180 - _sum ) )
return ans
#TOFILL
if __name__ == '__main__':
param = [
([4, 4, 5, 5, 13, 14, 14, 16, 19, 20, 30, 31, 32, 33, 35, 38, 38, 42, 44, 44, 48, 48, 52, 58, 60, 64, 65, 66, 68, 69, 70, 70, 71, 72, 73, 79, 81, 83, 83, 84, 86, 87, 88, 88, 91, 92, 95, 95, 98],27,),
([-56, 88, -50, 70, 20, 58, 42, -56, -52, -78, 98, 20, -26, 4, 20, -66, -46, -58, 74, 74, -72, 2, 16, -78, -4, 10, 58, 60, -46, -2, 32, -96, 24, -6, 90, -64, -24, -38, 26, 66, -42, -86, 48, 92, 28, 6, -54, -6],29,),
([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],25,),
([52, 67, 62],1,),
([-56, -22, 32, 42, 66],4,),
([1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0],10,),
([38, 46, 58, 72],2,),
([16, 62, 90, 40, 30, -56, -92, -56, 60, 42, -64, 92, -30, -70, 42, -48, -54, 54, 48, 94, -44, -46, 10, 48, 22, -24, -62, 34, 60, 24, -60, 50, 40, 34],20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],37,),
([86, 43, 74, 84, 86, 14, 45, 7, 92, 36, 79, 13, 67, 18, 96, 77, 13, 22, 28, 36, 57, 56, 99, 57, 8, 48, 5, 79, 65, 64, 96, 6, 36, 91, 53, 55, 11, 12, 80, 99, 50, 40, 4, 9, 52, 41],40,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : l = 0 _sum = 0 ans = 360 for i in range ( n ) : _sum += arr [ i ] while _sum >= 180 : ans = [MASK] ( ans , 2 * abs ( 180 - _sum ) ) _sum -= arr [ l ] l += 1 ans = min ( ans , 2 * abs ( 180 - _sum ) ) return ans while _sum >= 180 :
ans = min ( ans , 2 * abs ( 180 - _sum ) )
_sum -= arr [ l ]
l += 1
ans = min ( ans , 2 * abs ( 180 - _sum ) )
return ans
#TOFILL
if __name__ == '__main__':
param = [
([4, 4, 5, 5, 13, 14, 14, 16, 19, 20, 30, 31, 32, 33, 35, 38, 38, 42, 44, 44, 48, 48, 52, 58, 60, 64, 65, 66, 68, 69, 70, 70, 71, 72, 73, 79, 81, 83, 83, 84, 86, 87, 88, 88, 91, 92, 95, 95, 98],27,),
([-56, 88, -50, 70, 20, 58, 42, -56, -52, -78, 98, 20, -26, 4, 20, -66, -46, -58, 74, 74, -72, 2, 16, -78, -4, 10, 58, 60, -46, -2, 32, -96, 24, -6, 90, -64, -24, -38, 26, 66, -42, -86, 48, 92, 28, 6, -54, -6],29,),
([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],25,),
([52, 67, 62],1,),
([-56, -22, 32, 42, 66],4,),
([1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0],10,),
([38, 46, 58, 72],2,),
([16, 62, 90, 40, 30, -56, -92, -56, 60, 42, -64, 92, -30, -70, 42, -48, -54, 54, 48, 94, -44, -46, 10, 48, 22, -24, -62, 34, 60, 24, -60, 50, 40, 34],20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],37,),
([86, 43, 74, 84, 86, 14, 45, 7, 92, 36, 79, 13, 67, 18, 96, 77, 13, 22, 28, 36, 57, 56, 99, 57, 8, 48, 5, 79, 65, 64, 96, 6, 36, 91, 53, 55, 11, 12, 80, 99, 50, 40, 4, 9, 52, 41],40,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | min | [
"a) min",
"b) i",
"c) ]",
"d) while",
"e) False"
] | a |
python | def f_gold(n):
if (n <= 1):
return False
if (n <= 3):
return True
if (n % 2 == 0 or n % 3 == 0):
return False
i = 5
while (i * i <= n):
if (n % i == 0 or n % (i + 2) == 0):
return False
i = i + 6
return True
if (n % 2 == 0 or n % 3 == 0):
return False
i = 5
while (i * i <= n):
if (n % i == 0 or n % (i + 2) == 0):
return False
i = i + 6
return True
#TOFILL
if __name__ == '__main__':
param = [
(15,),
(90,),
(38,),
(65,),
(91,),
(16,),
(48,),
(74,),
(14,),
(47,)
]
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)))
| def f_gold(n): if (n <= 1): return False if (n <= 3): return True if (n % [MASK] == 0 or n % 3 == 0): return False i = 5 while (i * i <= n): if (n % i == 0 or n % (i + 2) == 0): return False i = i + 6 return True if (n % 2 == 0 or n % 3 == 0):
return False
i = 5
while (i * i <= n):
if (n % i == 0 or n % (i + 2) == 0):
return False
i = i + 6
return True
#TOFILL
if __name__ == '__main__':
param = [
(15,),
(90,),
(38,),
(65,),
(91,),
(16,),
(48,),
(74,),
(14,),
(47,)
]
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)))
| 2 | [
"a) side",
"b) for",
"c) return",
"d) len",
"e) 2"
] | e |
python | def f_gold ( arr , n ) :
isSorted = 0
while isSorted == 0 :
isSorted = 1
temp = 0
for i in range ( 1 , n - 1 , 2 ) :
if arr [ i ] > arr [ i + 1 ] :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
isSorted = 0
for i in range ( 0 , n - 1 , 2 ) :
if arr [ i ] > arr [ i + 1 ] :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
isSorted = 0
return
for i in range ( 0 , n - 1 , 2 ) :
if arr [ i ] > arr [ i + 1 ] :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
isSorted = 0
return
#TOFILL
if __name__ == '__main__':
param = [
([3, 5, 6, 9, 13, 15, 17, 17, 25, 27, 28, 32, 37, 38, 51, 53, 57, 63, 63, 67, 69, 80, 80, 81, 81, 86, 88, 92, 96, 98],28,),
([80, -70, 38, -48, -96, -66, 64, -8, 66, -2, 66, -62, -60, 32, 74, -86, -46, -80, 80, 18, -48, -90, -72, -62, 84, -92, -96, -22, -62, 20, 54, 88, -62, 70, 6, -36],18,),
([0, 0, 0, 0, 1, 1, 1],6,),
([89, 51, 56, 1],4,),
([-98, -98, -88, -74, -72, -64, -56, -42, -32, -28, -26, -22, -14, -6, -4, -2, 0, 20, 42, 62, 84, 84, 90, 94, 98],25,),
([0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1],21,),
([3, 6, 10, 11, 12, 13, 14, 19, 19, 20, 20, 23, 28, 37, 38, 38, 39, 41, 43, 45, 48, 49, 51, 52, 53, 55, 56, 56, 58, 62, 65, 69, 73, 74, 75, 82, 89, 97, 97, 99],28,),
([30, 48, 38, 4, 66, 54, -34, 56, 42, -36, -6, -28, 54, -38, 18, 58, -44, -76, 56, 98, 60, -6, -26, 52, -50, 76, 18, -78, -60, 12, 16, 10, -40, 24, -42, -92, 90, 72, -40, 40, -62, -64, -54, -4],36,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],12,),
([46, 77, 73, 20, 7, 59, 58, 92, 44, 61, 16, 65, 36, 32, 52, 92, 70, 85, 57, 4, 30, 41, 43, 88],20,)
]
filled_function_param = [
([3, 5, 6, 9, 13, 15, 17, 17, 25, 27, 28, 32, 37, 38, 51, 53, 57, 63, 63, 67, 69, 80, 80, 81, 81, 86, 88, 92, 96, 98],28,),
([80, -70, 38, -48, -96, -66, 64, -8, 66, -2, 66, -62, -60, 32, 74, -86, -46, -80, 80, 18, -48, -90, -72, -62, 84, -92, -96, -22, -62, 20, 54, 88, -62, 70, 6, -36],18,),
([0, 0, 0, 0, 1, 1, 1],6,),
([89, 51, 56, 1],4,),
([-98, -98, -88, -74, -72, -64, -56, -42, -32, -28, -26, -22, -14, -6, -4, -2, 0, 20, 42, 62, 84, 84, 90, 94, 98],25,),
([0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1],21,),
([3, 6, 10, 11, 12, 13, 14, 19, 19, 20, 20, 23, 28, 37, 38, 38, 39, 41, 43, 45, 48, 49, 51, 52, 53, 55, 56, 56, 58, 62, 65, 69, 73, 74, 75, 82, 89, 97, 97, 99],28,),
([30, 48, 38, 4, 66, 54, -34, 56, 42, -36, -6, -28, 54, -38, 18, 58, -44, -76, 56, 98, 60, -6, -26, 52, -50, 76, 18, -78, -60, 12, 16, 10, -40, 24, -42, -92, 90, 72, -40, 40, -62, -64, -54, -4],36,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],12,),
([46, 77, 73, 20, 7, 59, 58, 92, 44, 61, 16, 65, 36, 32, 52, 92, 70, 85, 57, 4, 30, 41, 43, 88],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)))
| def f_gold ( arr , n ) : isSorted = 0 while isSorted == 0 [MASK] isSorted = 1 temp = 0 for i in range ( 1 , n - 1 , 2 ) : if arr [ i ] > arr [ i + 1 ] : arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ] isSorted = 0 for i in range ( 0 , n - 1 , 2 ) : if arr [ i ] > arr [ i + 1 ] : arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ] isSorted = 0 return for i in range ( 0 , n - 1 , 2 ) :
if arr [ i ] > arr [ i + 1 ] :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
isSorted = 0
return
#TOFILL
if __name__ == '__main__':
param = [
([3, 5, 6, 9, 13, 15, 17, 17, 25, 27, 28, 32, 37, 38, 51, 53, 57, 63, 63, 67, 69, 80, 80, 81, 81, 86, 88, 92, 96, 98],28,),
([80, -70, 38, -48, -96, -66, 64, -8, 66, -2, 66, -62, -60, 32, 74, -86, -46, -80, 80, 18, -48, -90, -72, -62, 84, -92, -96, -22, -62, 20, 54, 88, -62, 70, 6, -36],18,),
([0, 0, 0, 0, 1, 1, 1],6,),
([89, 51, 56, 1],4,),
([-98, -98, -88, -74, -72, -64, -56, -42, -32, -28, -26, -22, -14, -6, -4, -2, 0, 20, 42, 62, 84, 84, 90, 94, 98],25,),
([0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1],21,),
([3, 6, 10, 11, 12, 13, 14, 19, 19, 20, 20, 23, 28, 37, 38, 38, 39, 41, 43, 45, 48, 49, 51, 52, 53, 55, 56, 56, 58, 62, 65, 69, 73, 74, 75, 82, 89, 97, 97, 99],28,),
([30, 48, 38, 4, 66, 54, -34, 56, 42, -36, -6, -28, 54, -38, 18, 58, -44, -76, 56, 98, 60, -6, -26, 52, -50, 76, 18, -78, -60, 12, 16, 10, -40, 24, -42, -92, 90, 72, -40, 40, -62, -64, -54, -4],36,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],12,),
([46, 77, 73, 20, 7, 59, 58, 92, 44, 61, 16, 65, 36, 32, 52, 92, 70, 85, 57, 4, 30, 41, 43, 88],20,)
]
filled_function_param = [
([3, 5, 6, 9, 13, 15, 17, 17, 25, 27, 28, 32, 37, 38, 51, 53, 57, 63, 63, 67, 69, 80, 80, 81, 81, 86, 88, 92, 96, 98],28,),
([80, -70, 38, -48, -96, -66, 64, -8, 66, -2, 66, -62, -60, 32, 74, -86, -46, -80, 80, 18, -48, -90, -72, -62, 84, -92, -96, -22, -62, 20, 54, 88, -62, 70, 6, -36],18,),
([0, 0, 0, 0, 1, 1, 1],6,),
([89, 51, 56, 1],4,),
([-98, -98, -88, -74, -72, -64, -56, -42, -32, -28, -26, -22, -14, -6, -4, -2, 0, 20, 42, 62, 84, 84, 90, 94, 98],25,),
([0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1],21,),
([3, 6, 10, 11, 12, 13, 14, 19, 19, 20, 20, 23, 28, 37, 38, 38, 39, 41, 43, 45, 48, 49, 51, 52, 53, 55, 56, 56, 58, 62, 65, 69, 73, 74, 75, 82, 89, 97, 97, 99],28,),
([30, 48, 38, 4, 66, 54, -34, 56, 42, -36, -6, -28, 54, -38, 18, 58, -44, -76, 56, 98, 60, -6, -26, 52, -50, 76, 18, -78, -60, 12, 16, 10, -40, 24, -42, -92, 90, 72, -40, 40, -62, -64, -54, -4],36,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],12,),
([46, 77, 73, 20, 7, 59, 58, 92, 44, 61, 16, 65, 36, 32, 52, 92, 70, 85, 57, 4, 30, 41, 43, 88],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)))
| : | [
"a) <",
"b) if",
"c) f_filled",
"d) :",
"e) int"
] | d |
python | def f_gold ( arr , n ) :
S = set ( ) ;
for i in range ( n ) :
S.add ( arr [ i ] ) ;
ans = 0 ;
for i in range ( n ) :
if S.__contains__ ( arr [ i ] ) :
j = arr [ i ] ;
while ( S.__contains__ ( j ) ) :
j += 1 ;
ans = max ( ans , j - arr [ i ] ) ;
return ans ;
_contains__ ( arr [ i ] ) :
j = arr [ i ] ;
while ( S.__contains__ ( j ) ) :
j += 1 ;
ans = max ( ans , j - arr [ i ] ) ;
return ans ;
#TOFILL
if __name__ == '__main__':
param = [
([3, 5, 9, 24, 28, 31, 49, 54, 67, 85, 86, 94, 97, 97],11,),
([-34, 16, -80, -10, 80, 2, 50, -74, -76, 36, -84, -24, 74, -54, -22, 46, 80, 58, -8, 70, 24, -88, 52, 62, 30, 42, 48, 16, 78, -82, 64, -36, 84, -72],29,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,),
([49, 61, 68, 4, 90, 89, 71, 74, 45, 61, 35, 41, 59],11,),
([-42, -8, 28, 56, 80, 96],4,),
([1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1],17,),
([3, 4, 6, 6, 13, 27, 27, 29, 32, 36, 46, 50, 52, 65, 69, 70, 71, 83, 87, 91],10,),
([64, -76, 28, 6, 56, 18, 32, -50, -20, 18, -26, -90, 32, 50, -18, 98, 84, 40, 50, 88, -70, -6, -24, -44, -96, -58, 48, -78, -14],15,),
([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],15,),
([50, 48, 61, 87, 7, 78, 93, 44, 16, 88, 98, 15, 73, 93, 43, 46, 42, 34, 1, 35, 79, 35, 84, 60, 18, 79, 17, 4, 78, 1, 20, 64],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))) | def f_gold ( arr , n ) : S = set ( ) ; for i in range ( n ) : S.add ( arr [ i ] ) ; ans = 0 ; for i in range ( n ) : if S.__contains__ ( arr [ i ] ) : j = arr [ i ] ; while ( S.__contains__ ( j ) ) : j += 1 ; ans [MASK] max ( ans , j - arr [ i ] ) ; return ans ;_contains__ ( arr [ i ] ) :
j = arr [ i ] ;
while ( S.__contains__ ( j ) ) :
j += 1 ;
ans = max ( ans , j - arr [ i ] ) ;
return ans ;
#TOFILL
if __name__ == '__main__':
param = [
([3, 5, 9, 24, 28, 31, 49, 54, 67, 85, 86, 94, 97, 97],11,),
([-34, 16, -80, -10, 80, 2, 50, -74, -76, 36, -84, -24, 74, -54, -22, 46, 80, 58, -8, 70, 24, -88, 52, 62, 30, 42, 48, 16, 78, -82, 64, -36, 84, -72],29,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,),
([49, 61, 68, 4, 90, 89, 71, 74, 45, 61, 35, 41, 59],11,),
([-42, -8, 28, 56, 80, 96],4,),
([1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1],17,),
([3, 4, 6, 6, 13, 27, 27, 29, 32, 36, 46, 50, 52, 65, 69, 70, 71, 83, 87, 91],10,),
([64, -76, 28, 6, 56, 18, 32, -50, -20, 18, -26, -90, 32, 50, -18, 98, 84, 40, 50, 88, -70, -6, -24, -44, -96, -58, 48, -78, -14],15,),
([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],15,),
([50, 48, 61, 87, 7, 78, 93, 44, 16, 88, 98, 15, 73, 93, 43, 46, 42, 34, 1, 35, 79, 35, 84, 60, 18, 79, 17, 4, 78, 1, 20, 64],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))) | = | [
"a) int",
"b) curr_ele",
"c) )",
"d) =",
"e) x1,"
] | d |
python | def f_gold ( cost , N ) :
dp = [ [ 0 for i in range ( N + 1 ) ] for j in range ( N + 1 ) ]
dp [ 0 ] [ 0 ] = cost [ 0 ] [ 0 ]
for i in range ( 1 , N ) :
dp [ i ] [ 0 ] = dp [ i - 1 ] [ 0 ] + cost [ i ] [ 0 ]
for j in range ( 1 , N ) :
dp [ 0 ] [ j ] = dp [ 0 ] [ j - 1 ] + cost [ 0 ] [ j ]
for i in range ( 1 , N ) :
for j in range ( 1 , N ) :
dp [ i ] [ j ] = max ( dp [ i - 1 ] [ j ] , dp [ i ] [ j - 1 ] ) + cost [ i ] [ j ]
return dp [ N - 1 ] [ N - 1 ] / ( 2 * N - 1 )
1 , N ) :
for j in range ( 1 , N ) :
dp [ i ] [ j ] = max ( dp [ i - 1 ] [ j ] , dp [ i ] [ j - 1 ] ) + cost [ i ] [ j ]
return dp [ N - 1 ] [ N - 1 ] / ( 2 * N - 1 )
#TOFILL
if __name__ == '__main__':
param = [
([[48]],0,),
([[58, 26, 42, 48, -36, 22, 34, 2, 40, -88, -38, -90, -16, -28, 44, 26], [98, 48, -20, 0, -68, -74, -4, -74, -10, -64, -10, 98, -94, 6, 20, 96], [-86, 46, -8, -86, -44, -2, -4, -70, 94, -88, -54, 30, 94, 98, 24, -52], [86, 44, -16, -88, -62, -52, 64, 32, 22, -28, 84, 56, 34, -14, -86, 40], [72, 66, -40, -24, 56, 96, -24, 6, 26, 88, 70, -58, -40, 4, -84, 98], [50, 40, -8, -24, 28, -20, -46, -34, -30, 4, 10, 14, -60, -42, -82, 60], [20, -2, -36, -66, -46, -48, 4, 70, -34, -64, 0, 92, -32, 58, 18, -74], [-8, -38, -60, 84, -96, -82, 6, -26, -82, 2, 64, 40, -86, 76, 40, 12], [82, -10, -98, -84, -38, -64, 72, 14, 36, -76, -28, 22, -80, 48, 30, -50], [10, -30, -72, -20, -40, -16, -82, -52, -6, 24, 86, -80, -88, 62, 36, -10], [-42, 28, -38, -50, 98, -4, 24, -48, 76, 84, 74, -4, -76, -82, 94, -76], [82, -92, 96, -4, -90, -40, 52, 12, -32, 20, 2, 30, 34, -12, 84, 72], [86, -64, -30, 92, 8, -86, 94, -34, 32, 40, 64, 36, 64, 6, 72, -84], [-68, -86, 76, -24, -72, -2, 96, -84, 38, -14, 64, -66, 28, 46, 96, -78], [-44, 74, 88, -48, -40, 80, 84, 48, 78, 0, 62, -30, 44, 74, -82, -20], [-22, 76, -10, 34, 30, 46, -86, -74, 4, 26, -12, -58, -62, -34, -90, 52]],11,),
([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0,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 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], [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]],23,),
([[36, 15, 12, 27, 93, 65, 88, 67, 45, 96, 79, 73, 79, 66, 99, 61, 67, 29, 67, 9, 70, 72, 28, 15, 26, 58, 60, 36, 66, 64, 44, 94, 86, 43, 89, 5, 33, 45, 64, 96], [9, 93, 65, 38, 41, 76, 69, 29, 86, 33, 59, 94, 39, 43, 29, 83, 4, 65, 65, 35, 36, 4, 11, 32, 17, 32, 36, 95, 35, 55, 65, 73, 16, 76, 31, 37, 99, 53, 15, 56], [94, 17, 68, 9, 10, 17, 26, 48, 22, 69, 98, 58, 66, 57, 3, 30, 5, 52, 79, 38, 31, 52, 37, 74, 40, 1, 22, 9, 51, 93, 11, 73, 98, 53, 3, 6, 97, 94, 72, 98], [98, 67, 61, 68, 34, 3, 43, 71, 25, 6, 8, 93, 53, 37, 43, 66, 3, 50, 60, 81, 98, 80, 89, 59, 42, 26, 13, 6, 74, 81, 95, 62, 59, 59, 42, 52, 23, 32, 15, 78], [83, 45, 57, 2, 28, 2, 50, 13, 24, 58, 36, 27, 51, 70, 36, 16, 79, 55, 72, 45, 70, 23, 27, 24, 65, 44, 87, 92, 61, 18, 61, 45, 29, 6, 38, 9, 37, 40, 70, 47], [84, 97, 60, 37, 87, 50, 90, 20, 90, 81, 14, 68, 52, 96, 50, 5, 37, 31, 49, 4, 7, 41, 45, 27, 34, 71, 72, 72, 46, 29, 89, 81, 89, 83, 42, 50, 25, 92, 38, 18], [90, 59, 26, 11, 75, 26, 99, 76, 32, 26, 90, 55, 6, 97, 40, 91, 87, 47, 80, 71, 25, 86, 84, 2, 49, 34, 62, 4, 75, 93, 8, 3, 94, 3, 84, 93, 79, 31, 63, 7], [5, 29, 52, 32, 27, 39, 21, 82, 70, 45, 71, 61, 5, 42, 16, 55, 86, 13, 91, 98, 1, 27, 8, 30, 38, 41, 86, 32, 10, 24, 88, 36, 90, 46, 30, 82, 13, 60, 21, 63], [66, 85, 80, 38, 90, 7, 41, 33, 24, 18, 62, 69, 92, 51, 46, 99, 58, 62, 35, 58, 96, 62, 83, 33, 62, 12, 11, 45, 85, 15, 94, 58, 31, 54, 21, 88, 35, 82, 88, 1], [51, 35, 57, 37, 21, 69, 64, 42, 7, 98, 67, 35, 90, 88, 45, 80, 33, 49, 19, 23, 53, 18, 7, 62, 65, 93, 71, 95, 51, 15, 49, 47, 94, 95, 44, 19, 5, 95, 54, 80], [2, 57, 97, 24, 87, 76, 24, 54, 13, 17, 8, 38, 3, 97, 35, 28, 31, 72, 67, 32, 69, 26, 36, 76, 85, 11, 56, 99, 29, 74, 93, 61, 85, 3, 91, 46, 47, 91, 56, 93], [5, 71, 63, 46, 81, 54, 33, 50, 98, 27, 14, 4, 61, 59, 86, 36, 36, 62, 52, 80, 40, 88, 87, 36, 86, 53, 34, 8, 9, 51, 63, 96, 72, 17, 8, 46, 91, 33, 28, 80], [9, 74, 91, 94, 20, 14, 3, 5, 6, 99, 67, 99, 81, 27, 73, 31, 86, 49, 16, 77, 85, 61, 90, 40, 31, 50, 43, 92, 61, 85, 14, 84, 87, 36, 43, 94, 2, 30, 41, 49], [37, 24, 47, 39, 99, 6, 9, 77, 92, 52, 66, 38, 89, 82, 75, 18, 73, 46, 88, 74, 34, 69, 97, 82, 89, 59, 62, 83, 10, 95, 64, 48, 12, 91, 60, 32, 54, 50, 63, 33], [81, 23, 27, 32, 94, 5, 86, 99, 18, 90, 90, 64, 33, 92, 55, 54, 53, 77, 23, 17, 67, 94, 91, 71, 3, 58, 32, 3, 95, 83, 56, 4, 18, 34, 66, 56, 95, 8, 50, 20], [82, 8, 19, 38, 17, 65, 47, 56, 39, 88, 87, 72, 48, 47, 79, 72, 69, 44, 64, 98, 70, 83, 89, 84, 86, 71, 58, 84, 36, 79, 33, 63, 55, 87, 45, 88, 72, 76, 45, 23], [48, 26, 92, 64, 6, 23, 7, 65, 8, 35, 10, 98, 66, 99, 36, 5, 75, 71, 28, 75, 45, 23, 37, 10, 40, 71, 35, 81, 76, 98, 49, 52, 98, 15, 30, 62, 51, 76, 91, 65], [86, 14, 67, 90, 66, 83, 75, 84, 7, 40, 51, 43, 54, 41, 37, 17, 99, 89, 85, 97, 30, 49, 36, 29, 24, 44, 90, 98, 23, 7, 41, 83, 77, 91, 24, 1, 80, 91, 23, 18], [97, 23, 81, 11, 38, 33, 61, 10, 93, 71, 11, 66, 71, 42, 37, 86, 69, 14, 43, 21, 98, 82, 5, 39, 40, 10, 57, 67, 69, 27, 37, 19, 71, 72, 90, 34, 12, 93, 35, 50], [22, 53, 69, 54, 84, 97, 96, 40, 36, 73, 25, 62, 89, 38, 59, 41, 65, 53, 20, 85, 84, 93, 7, 11, 50, 85, 1, 33, 33, 80, 57, 41, 88, 27, 44, 16, 19, 63, 59, 68], [88, 69, 4, 29, 17, 42, 69, 55, 40, 8, 58, 67, 9, 83, 67, 44, 83, 17, 25, 80, 10, 57, 78, 63, 31, 44, 45, 75, 9, 45, 27, 33, 69, 72, 75, 70, 77, 53, 67, 1], [59, 92, 44, 63, 97, 46, 50, 85, 56, 69, 90, 69, 81, 45, 58, 96, 1, 56, 29, 7, 70, 95, 4, 69, 87, 47, 79, 77, 45, 17, 34, 8, 15, 1, 15, 88, 91, 3, 71, 31], [43, 27, 49, 40, 52, 54, 96, 65, 55, 25, 35, 23, 13, 90, 32, 27, 26, 24, 85, 32, 43, 40, 92, 86, 12, 33, 69, 58, 39, 27, 6, 42, 94, 93, 20, 79, 18, 61, 10, 4], [11, 87, 79, 68, 4, 1, 21, 81, 12, 95, 14, 76, 99, 8, 28, 23, 17, 34, 40, 27, 26, 94, 86, 75, 82, 51, 32, 50, 52, 6, 10, 75, 30, 3, 20, 46, 87, 52, 77, 28], [1, 1, 46, 82, 89, 19, 71, 71, 18, 88, 76, 64, 77, 2, 41, 20, 95, 89, 76, 35, 52, 46, 60, 21, 69, 16, 94, 16, 74, 4, 40, 82, 93, 63, 1, 73, 42, 79, 95, 9], [41, 23, 9, 32, 41, 19, 4, 84, 4, 83, 93, 54, 39, 59, 84, 67, 98, 83, 58, 18, 7, 73, 70, 47, 37, 75, 95, 56, 44, 11, 1, 38, 40, 79, 25, 91, 49, 24, 59, 61], [9, 47, 83, 23, 35, 50, 17, 51, 91, 52, 21, 86, 26, 3, 18, 11, 57, 3, 78, 1, 99, 25, 90, 39, 20, 96, 66, 75, 31, 24, 60, 91, 62, 3, 49, 67, 57, 46, 46, 99], [96, 51, 15, 18, 86, 64, 14, 66, 16, 76, 69, 63, 69, 3, 26, 4, 22, 8, 92, 5, 61, 3, 10, 97, 78, 53, 22, 53, 30, 59, 61, 56, 10, 48, 10, 2, 33, 85, 14, 87], [93, 41, 61, 17, 83, 49, 30, 93, 60, 53, 18, 35, 99, 62, 56, 15, 63, 24, 83, 11, 79, 62, 89, 46, 56, 26, 64, 25, 19, 35, 5, 38, 59, 77, 91, 89, 26, 23, 19, 99], [73, 34, 24, 9, 70, 64, 46, 53, 94, 23, 73, 53, 93, 9, 27, 44, 85, 59, 83, 73, 57, 98, 61, 1, 33, 77, 14, 99, 75, 10, 60, 95, 37, 10, 31, 43, 82, 29, 82, 98], [65, 55, 80, 15, 94, 11, 6, 18, 18, 57, 38, 2, 46, 68, 96, 20, 61, 75, 98, 72, 8, 86, 43, 7, 94, 8, 64, 34, 80, 3, 3, 18, 73, 93, 87, 6, 79, 54, 16, 73], [51, 74, 44, 2, 59, 22, 63, 96, 40, 74, 39, 58, 6, 46, 32, 65, 96, 71, 57, 62, 51, 45, 11, 58, 64, 61, 44, 22, 90, 85, 68, 97, 43, 6, 37, 67, 62, 24, 57, 27], [18, 56, 47, 88, 74, 87, 20, 74, 97, 51, 54, 94, 63, 67, 16, 44, 43, 72, 99, 80, 72, 2, 1, 88, 43, 40, 99, 10, 66, 96, 80, 22, 50, 68, 60, 31, 19, 4, 83, 76], [50, 6, 48, 22, 61, 15, 42, 97, 51, 95, 53, 55, 67, 71, 18, 98, 89, 92, 62, 43, 7, 58, 30, 55, 86, 85, 7, 62, 54, 2, 92, 76, 71, 96, 24, 43, 96, 91, 99, 60], [43, 48, 12, 24, 19, 93, 53, 14, 26, 94, 89, 76, 79, 25, 54, 68, 53, 82, 74, 21, 19, 26, 73, 94, 23, 34, 24, 33, 82, 9, 1, 53, 54, 6, 71, 64, 83, 66, 69, 16], [89, 41, 95, 51, 17, 54, 30, 18, 28, 58, 81, 17, 45, 23, 7, 77, 17, 57, 46, 18, 17, 34, 78, 98, 81, 87, 1, 50, 32, 17, 23, 90, 81, 60, 52, 73, 58, 76, 86, 25], [93, 59, 71, 42, 8, 69, 37, 66, 71, 26, 11, 82, 44, 82, 10, 75, 89, 37, 99, 87, 12, 65, 80, 38, 58, 28, 78, 15, 75, 72, 74, 55, 61, 32, 4, 25, 79, 89, 44, 2], [18, 62, 31, 5, 37, 96, 16, 83, 85, 27, 49, 30, 8, 45, 97, 75, 46, 48, 64, 25, 62, 85, 43, 5, 33, 42, 25, 37, 80, 64, 76, 18, 99, 77, 68, 98, 65, 72, 64, 43], [77, 37, 32, 4, 10, 60, 7, 87, 51, 87, 35, 51, 20, 82, 37, 10, 99, 5, 50, 65, 8, 11, 60, 77, 93, 53, 5, 57, 90, 72, 78, 66, 67, 48, 39, 50, 38, 14, 38, 18], [44, 25, 30, 74, 49, 75, 68, 46, 65, 50, 29, 29, 50, 54, 98, 87, 73, 71, 58, 15, 58, 39, 67, 2, 51, 50, 43, 85, 8, 59, 47, 53, 54, 13, 32, 34, 55, 40, 95, 70]],28,),
([[-98, -94, -90, -86, -80, -80, -78, -56, -48, -46, -42, -36, -34, -22, -14, -4, -4, 4, 6, 14, 18, 22, 28, 30, 38, 38, 42, 44, 58, 60, 60, 64, 64, 66, 70, 76, 86, 88, 94, 98], [-98, -94, -90, -74, -68, -66, -60, -56, -50, -10, -2, 8, 10, 14, 16, 24, 28, 38, 40, 44, 48, 48, 56, 58, 58, 62, 68, 78, 78, 82, 82, 82, 82, 84, 88, 88, 92, 92, 94, 96], [-98, -76, -72, -64, -60, -58, -56, -46, -44, -44, -44, -36, -36, -28, -26, -24, -22, -22, -16, -14, -8, -6, 4, 6, 10, 12, 16, 36, 36, 36, 36, 38, 44, 46, 50, 56, 68, 76, 82, 84], [-94, -88, -82, -82, -76, -54, -54, -46, -42, -42, -34, -34, -24, -22, -20, -16, -14, -8, 8, 8, 16, 22, 22, 28, 28, 32, 54, 54, 62, 62, 64, 70, 72, 72, 76, 80, 80, 86, 86, 98], [-92, -86, -80, -78, -74, -72, -64, -58, -56, -52, -42, -38, -38, -38, -36, -32, -28, -26, -18, -18, -16, -14, -12, 0, 6, 10, 14, 18, 26, 32, 34, 34, 56, 62, 62, 66, 68, 68, 72, 98], [-98, -94, -92, -90, -84, -80, -74, -64, -62, -62, -46, -36, -36, -30, -22, -22, -18, -12, -6, 6, 10, 14, 22, 28, 32, 38, 46, 48, 52, 56, 62, 64, 68, 68, 76, 78, 78, 86, 96, 98], [-96, -96, -94, -92, -90, -90, -82, -76, -66, -64, -60, -60, -56, -56, -52, -52, -40, -34, -30, -28, -20, -18, -10, -8, -6, -2, 18, 26, 38, 38, 46, 46, 50, 64, 74, 78, 78, 80, 84, 88], [-92, -88, -70, -68, -68, -64, -60, -60, -52, -44, -38, -38, -38, -36, -30, -30, -28, -24, -18, -16, -12, -10, -6, 4, 10, 12, 14, 28, 40, 44, 46, 50, 56, 64, 74, 78, 80, 80, 80, 84], [-86, -78, -76, -72, -70, -60, -50, -44, -44, -40, -36, -34, -34, -30, -28, -16, -12, -8, -4, 0, 2, 4, 6, 8, 12, 16, 20, 26, 26, 42, 54, 56, 66, 72, 78, 84, 86, 90, 92, 94], [-94, -88, -82, -78, -78, -74, -68, -68, -58, -58, -42, -38, -36, -28, -22, -16, -16, -14, -12, -4, 0, 10, 20, 22, 24, 32, 34, 38, 38, 40, 46, 52, 54, 58, 60, 70, 90, 90, 94, 96], [-94, -92, -90, -84, -68, -66, -64, -44, -38, -34, -32, -32, -16, -14, -8, -2, 0, 2, 2, 4, 12, 14, 20, 24, 32, 40, 40, 46, 46, 62, 64, 66, 68, 70, 74, 78, 82, 86, 86, 98], [-90, -82, -82, -78, -66, -58, -56, -54, -52, -50, -48, -36, -28, -24, -12, -6, -4, -4, -2, 0, 2, 2, 4, 18, 22, 22, 24, 28, 30, 32, 36, 36, 38, 44, 46, 48, 54, 60, 60, 60], [-98, -94, -90, -84, -76, -74, -74, -72, -70, -56, -54, -50, -48, -38, -38, -30, -28, -28, -26, -22, -18, -4, 2, 6, 16, 20, 24, 24, 26, 32, 34, 34, 40, 40, 44, 70, 72, 80, 80, 98], [-98, -96, -78, -66, -60, -58, -46, -32, -24, -22, -18, -16, -14, -12, 14, 14, 20, 20, 22, 24, 36, 36, 52, 52, 54, 56, 58, 62, 64, 72, 76, 76, 78, 82, 84, 90, 90, 92, 96, 98], [-94, -88, -84, -84, -84, -74, -74, -66, -66, -54, -50, -50, -40, -26, -20, -4, -4, -4, -2, 2, 6, 18, 18, 24, 28, 40, 42, 42, 44, 44, 46, 48, 48, 58, 64, 72, 76, 82, 84, 90], [-98, -92, -90, -90, -88, -86, -80, -76, -62, -60, -56, -52, -50, -46, -40, -40, -32, -32, -26, -12, -12, -6, -2, 8, 10, 12, 26, 32, 38, 50, 52, 52, 62, 70, 72, 80, 80, 84, 92, 94], [-88, -86, -82, -82, -82, -82, -80, -70, -64, -52, -50, -28, -14, -8, -6, -2, 0, 6, 8, 8, 14, 14, 20, 20, 20, 24, 28, 30, 48, 50, 54, 60, 66, 68, 72, 74, 76, 78, 90, 94], [-96, -86, -84, -82, -76, -70, -70, -64, -52, -50, -46, -46, -44, -42, -42, -42, -36, -22, -14, -14, -6, 0, 2, 10, 14, 18, 32, 38, 46, 54, 54, 56, 62, 68, 68, 74, 76, 78, 90, 94], [-98, -98, -94, -90, -86, -82, -66, -62, -60, -60, -52, -44, -36, -20, -10, 2, 4, 8, 10, 16, 18, 20, 22, 24, 26, 26, 42, 48, 56, 58, 60, 62, 80, 80, 80, 86, 98, 98, 98, 98], [-98, -96, -86, -86, -84, -76, -76, -76, -74, -72, -70, -62, -62, -50, -32, -30, -20, -18, -18, -12, -6, 4, 8, 12, 14, 20, 20, 24, 32, 34, 38, 44, 48, 58, 64, 84, 86, 92, 98, 98], [-78, -76, -62, -58, -56, -50, -46, -42, -42, -34, -32, -28, -18, -16, -10, -6, 0, 8, 14, 22, 24, 26, 32, 34, 36, 44, 46, 46, 52, 52, 54, 56, 58, 60, 66, 70, 78, 80, 80, 94], [-98, -98, -94, -88, -78, -70, -66, -64, -60, -56, -54, -54, -52, -42, -36, -24, -24, -22, -22, -20, -16, -14, -12, -4, 4, 6, 12, 14, 22, 24, 32, 38, 48, 54, 56, 78, 82, 88, 88, 92], [-96, -66, -60, -56, -56, -56, -54, -46, -46, -42, -38, -28, -14, -12, -10, -2, 0, 0, 0, 2, 6, 10, 18, 20, 26, 28, 44, 46, 46, 54, 56, 58, 60, 60, 76, 88, 88, 92, 94, 96], [-98, -96, -92, -86, -82, -78, -76, -60, -50, -36, -32, -28, -26, -26, -20, -8, -2, -2, 0, 0, 6, 8, 10, 14, 20, 20, 26, 28, 30, 38, 38, 40, 54, 58, 64, 66, 72, 72, 94, 98], [-94, -84, -82, -76, -76, -74, -72, -62, -60, -52, -34, -26, -22, -8, -4, 0, 0, 2, 6, 10, 14, 16, 36, 36, 42, 46, 48, 50, 56, 56, 60, 64, 64, 74, 76, 88, 88, 96, 96, 98], [-92, -80, -80, -74, -74, -68, -54, -48, -42, -34, -32, -24, -22, -12, -10, -6, -6, -4, -4, 2, 12, 12, 12, 16, 24, 24, 26, 26, 36, 36, 38, 64, 66, 68, 68, 70, 72, 86, 96, 96], [-98, -98, -94, -84, -78, -68, -58, -58, -56, -54, -50, -48, -46, -20, -12, -12, -4, 0, 2, 2, 6, 12, 14, 20, 34, 36, 36, 38, 44, 48, 48, 52, 54, 56, 62, 64, 68, 74, 84, 90], [-98, -84, -74, -68, -56, -50, -48, -28, -28, -18, -14, 0, 0, 2, 2, 6, 8, 10, 34, 34, 42, 50, 52, 52, 54, 56, 58, 60, 66, 72, 76, 80, 80, 82, 84, 86, 90, 90, 92, 98], [-92, -92, -90, -90, -90, -80, -74, -56, -50, -46, -44, -24, -22, -22, -14, 8, 12, 14, 22, 22, 24, 26, 28, 28, 36, 42, 42, 46, 46, 58, 60, 66, 68, 72, 74, 78, 78, 80, 82, 86], [-98, -98, -90, -90, -88, -88, -78, -68, -54, -48, -46, -42, -40, -30, -26, -16, -12, -12, -10, 2, 2, 6, 14, 20, 22, 28, 36, 36, 46, 48, 50, 56, 58, 66, 66, 76, 82, 94, 96, 98], [-98, -92, -88, -80, -78, -66, -52, -50, -50, -46, -44, -44, -40, -30, -26, -20, -10, -10, 2, 10, 12, 18, 18, 20, 22, 26, 30, 36, 38, 42, 46, 50, 56, 64, 78, 80, 82, 86, 90, 92], [-96, -94, -84, -84, -76, -62, -56, -40, -38, -30, -24, -22, -18, -16, -12, -10, -8, -6, -4, -4, 4, 8, 12, 16, 22, 24, 26, 28, 30, 38, 42, 42, 46, 50, 70, 76, 78, 86, 90, 94], [-96, -94, -84, -74, -68, -58, -52, -44, -40, -30, -28, -22, -10, -4, 0, 6, 6, 8, 10, 12, 16, 16, 16, 16, 20, 20, 24, 48, 52, 60, 60, 72, 72, 78, 78, 82, 82, 84, 90, 94], [-98, -98, -98, -98, -88, -86, -78, -72, -66, -62, -60, -58, -56, -54, -46, -46, -36, -26, -10, -8, -6, 4, 14, 14, 26, 50, 56, 58, 58, 60, 60, 62, 66, 70, 72, 74, 80, 84, 88, 88], [-94, -90, -88, -84, -80, -78, -76, -74, -74, -64, -60, -60, -52, -44, -38, -36, -36, -28, -22, -22, -16, -10, -4, -2, 2, 10, 12, 12, 22, 26, 32, 34, 40, 46, 60, 70, 76, 76, 94, 94], [-98, -90, -88, -86, -74, -74, -52, -52, -50, -46, -46, -36, -36, -34, -24, -24, -24, -22, -10, -4, 14, 20, 26, 30, 40, 46, 48, 50, 52, 54, 68, 70, 70, 74, 74, 76, 78, 86, 96, 96], [-94, -86, -76, -76, -66, -64, -60, -58, -44, -38, -34, -32, -32, -28, -26, -18, -16, -14, -4, 6, 12, 18, 18, 22, 24, 30, 30, 32, 32, 34, 34, 40, 46, 62, 66, 66, 70, 74, 82, 84], [-88, -86, -84, -76, -74, -64, -56, -54, -50, -50, -46, -40, -36, -36, -34, -16, -16, 20, 22, 22, 24, 26, 30, 32, 34, 34, 42, 46, 46, 54, 62, 66, 68, 68, 82, 82, 88, 90, 90, 92], [-92, -90, -88, -88, -76, -74, -62, -56, -52, -44, -42, -42, -40, -22, -20, -14, -14, -10, -10, -2, 20, 24, 26, 30, 34, 36, 38, 40, 52, 54, 56, 56, 62, 64, 74, 74, 76, 78, 88, 96], [-94, -90, -86, -78, -74, -70, -68, -62, -56, -54, -46, -40, -36, -26, -18, -16, -16, -6, -4, 0, 6, 40, 52, 56, 60, 64, 66, 68, 70, 72, 78, 80, 80, 84, 86, 88, 88, 90, 90, 96]],37,),
([[1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0], [1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0], [0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1,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 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1]],45,),
([[4, 4, 13, 19, 22, 22, 25, 30, 32, 34, 36, 37, 41, 43, 43, 44, 50, 56, 71, 76, 78, 83, 92, 92, 92], [5, 10, 11, 15, 16, 17, 30, 36, 40, 46, 52, 53, 54, 62, 63, 63, 69, 72, 74, 74, 82, 90, 92, 96, 98], [1, 5, 8, 10, 12, 14, 15, 23, 30, 41, 46, 46, 47, 62, 62, 63, 65, 75, 88, 90, 90, 92, 94, 99, 99], [2, 3, 5, 6, 9, 16, 17, 18, 21, 24, 26, 31, 34, 34, 34, 36, 38, 41, 42, 51, 66, 76, 81, 82, 90], [11, 15, 16, 17, 19, 21, 25, 27, 29, 32, 40, 43, 50, 51, 52, 53, 57, 60, 65, 71, 72, 79, 80, 82, 94], [1, 2, 6, 11, 13, 13, 22, 30, 32, 36, 37, 38, 48, 51, 69, 71, 71, 72, 74, 77, 81, 90, 94, 98, 99], [4, 5, 20, 21, 23, 24, 27, 27, 30, 31, 33, 33, 49, 51, 52, 58, 59, 70, 78, 83, 83, 85, 85, 88, 89], [4, 6, 7, 14, 22, 24, 27, 39, 41, 42, 43, 44, 46, 54, 54, 55, 61, 62, 62, 62, 70, 86, 93, 97, 99], [5, 9, 15, 22, 27, 36, 39, 39, 42, 44, 48, 51, 52, 54, 55, 57, 60, 60, 64, 69, 71, 78, 78, 82, 87], [8, 10, 14, 20, 21, 24, 28, 30, 30, 34, 37, 56, 58, 69, 69, 71, 71, 75, 80, 81, 85, 88, 93, 93, 99], [1, 2, 4, 9, 10, 11, 13, 14, 17, 18, 24, 29, 29, 46, 48, 51, 62, 67, 80, 82, 87, 88, 88, 88, 93], [4, 5, 13, 13, 16, 22, 23, 26, 27, 28, 28, 29, 30, 33, 34, 49, 51, 62, 65, 66, 76, 76, 88, 91, 95], [5, 7, 7, 8, 11, 11, 13, 23, 27, 33, 34, 39, 46, 59, 61, 63, 71, 82, 83, 85, 85, 88, 89, 90, 91], [1, 7, 9, 20, 34, 38, 41, 48, 48, 49, 50, 51, 53, 54, 55, 58, 64, 66, 77, 79, 80, 82, 90, 92, 95], [1, 2, 4, 5, 21, 26, 28, 28, 32, 44, 52, 53, 54, 59, 64, 67, 74, 83, 87, 88, 89, 89, 90, 92, 94], [4, 6, 15, 23, 27, 30, 31, 32, 33, 37, 43, 50, 54, 55, 58, 63, 66, 66, 71, 74, 77, 97, 97, 97, 98], [4, 16, 17, 22, 24, 27, 32, 34, 35, 37, 39, 42, 51, 52, 57, 66, 71, 77, 82, 85, 90, 91, 93, 98, 98], [2, 19, 22, 24, 24, 25, 29, 29, 31, 36, 44, 53, 57, 59, 60, 60, 63, 65, 67, 78, 80, 85, 92, 96, 99], [7, 17, 43, 46, 48, 48, 50, 51, 55, 55, 61, 61, 68, 70, 74, 75, 79, 79, 88, 90, 90, 91, 92, 94, 98], [2, 16, 17, 17, 25, 27, 36, 38, 41, 45, 46, 50, 59, 61, 63, 69, 74, 74, 75, 77, 89, 92, 94, 94, 94], [1, 3, 7, 7, 10, 12, 24, 26, 29, 42, 47, 51, 52, 53, 57, 61, 65, 69, 71, 75, 75, 78, 78, 78, 84], [4, 4, 8, 14, 18, 19, 19, 30, 31, 34, 35, 39, 42, 45, 61, 65, 75, 77, 82, 85, 87, 88, 90, 90, 91], [6, 7, 10, 12, 15, 22, 27, 34, 45, 57, 58, 61, 63, 67, 74, 75, 80, 80, 82, 84, 85, 85, 86, 93, 98], [8, 9, 12, 22, 25, 33, 33, 38, 44, 47, 53, 58, 66, 66, 67, 78, 79, 84, 86, 87, 87, 88, 90, 91, 92], [4, 6, 14, 21, 23, 26, 29, 40, 48, 67, 70, 71, 74, 76, 77, 79, 79, 82, 83, 88, 89, 90, 92, 95, 96]],16,),
([[-12, -4, -74, -42, 80, 62, 62, 36, -48, -56], [-4, 86, -76, -86, -48, 70, -58, -4, 42, -22], [-38, -24, 44, -28, 36, 40, 66, 28, -70, -80], [32, -38, 22, 18, 50, 20, -70, -80, -78, 42], [8, 76, 62, 78, -66, 58, 34, 46, 82, -10], [-74, -76, 36, -70, 8, -22, 84, 54, -44, -46], [-72, 42, -60, -70, 38, 66, -60, -26, -36, 24], [92, 44, -16, -58, -42, -56, 12, -20, 78, -58], [-46, -6, -56, -68, 62, -78, -94, 34, 68, 88], [32, 72, -28, 62, -20, -50, 52, -22, -60, -88]],5,),
([[0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1]],4,),
([[11, 24, 29, 89, 15, 25, 16, 59, 1, 29, 18, 84, 58, 50, 5, 33, 38, 44, 34, 3, 28, 57, 98, 53, 79, 67, 19, 85, 49], [86, 86, 56, 89, 4, 45, 42, 87, 97, 69, 83, 84, 55, 85, 57, 6, 76, 53, 77, 3, 35, 61, 68, 70, 94, 55, 56, 33, 73], [8, 82, 84, 58, 31, 72, 47, 76, 12, 7, 63, 30, 62, 93, 80, 25, 80, 83, 25, 44, 60, 42, 31, 57, 85, 5, 23, 15, 12], [91, 44, 3, 18, 58, 28, 70, 76, 68, 31, 37, 94, 42, 93, 89, 5, 51, 35, 94, 71, 62, 38, 93, 70, 85, 22, 9, 84, 51], [62, 91, 69, 79, 9, 48, 14, 13, 77, 66, 96, 51, 57, 8, 21, 8, 14, 7, 36, 14, 71, 52, 72, 9, 10, 79, 40, 12, 12], [7, 71, 82, 60, 30, 38, 22, 58, 33, 59, 30, 13, 31, 93, 4, 13, 33, 15, 99, 96, 98, 94, 56, 98, 83, 20, 90, 96, 48], [64, 54, 80, 67, 56, 26, 38, 91, 89, 8, 95, 93, 16, 59, 40, 1, 26, 93, 23, 45, 89, 21, 77, 67, 35, 47, 13, 74, 83], [4, 43, 14, 79, 31, 7, 93, 41, 58, 59, 20, 10, 76, 70, 72, 89, 61, 35, 94, 18, 98, 72, 39, 58, 14, 35, 60, 11, 43], [71, 88, 61, 78, 41, 79, 10, 95, 34, 79, 98, 90, 36, 17, 93, 83, 35, 46, 3, 60, 23, 32, 1, 31, 29, 30, 95, 11, 69], [68, 60, 70, 68, 9, 99, 25, 88, 8, 12, 3, 11, 22, 21, 72, 61, 87, 45, 93, 70, 54, 28, 25, 96, 77, 32, 72, 15, 27], [16, 50, 24, 19, 4, 25, 40, 54, 5, 84, 88, 45, 85, 45, 27, 16, 48, 5, 78, 9, 40, 45, 8, 77, 59, 33, 57, 97, 93], [65, 16, 13, 17, 9, 64, 53, 48, 35, 48, 83, 10, 60, 60, 65, 63, 1, 81, 74, 56, 1, 93, 58, 45, 56, 30, 19, 25, 30], [13, 5, 50, 16, 71, 79, 89, 88, 73, 50, 10, 60, 8, 29, 89, 13, 11, 90, 4, 96, 53, 31, 56, 51, 62, 94, 74, 50, 42], [2, 75, 91, 46, 52, 75, 94, 68, 60, 95, 25, 74, 45, 27, 81, 86, 36, 48, 28, 24, 69, 2, 54, 13, 26, 80, 46, 41, 71], [54, 2, 27, 79, 30, 43, 96, 26, 86, 13, 18, 85, 51, 66, 85, 63, 68, 43, 90, 97, 47, 65, 54, 58, 80, 19, 34, 96, 73], [40, 37, 74, 40, 62, 46, 57, 78, 5, 10, 55, 30, 60, 79, 54, 11, 46, 32, 83, 91, 62, 82, 84, 46, 79, 72, 98, 36, 21], [30, 57, 58, 10, 90, 79, 23, 65, 50, 88, 8, 69, 88, 6, 53, 34, 54, 41, 66, 75, 22, 58, 54, 8, 21, 74, 81, 96, 61], [63, 61, 94, 18, 58, 27, 25, 41, 62, 45, 88, 87, 45, 38, 53, 77, 72, 20, 39, 2, 78, 23, 91, 19, 69, 89, 41, 83, 96], [7, 79, 40, 22, 77, 70, 6, 58, 74, 16, 41, 3, 99, 14, 92, 69, 51, 19, 82, 41, 8, 16, 95, 35, 36, 15, 89, 94, 87], [59, 27, 33, 78, 83, 76, 56, 18, 32, 4, 58, 22, 76, 66, 16, 60, 84, 15, 74, 43, 36, 25, 85, 95, 80, 50, 30, 48, 41], [31, 5, 40, 6, 61, 10, 74, 49, 6, 23, 40, 80, 93, 51, 71, 61, 40, 93, 70, 26, 28, 93, 57, 87, 52, 6, 57, 12, 39], [55, 45, 57, 87, 92, 14, 74, 62, 28, 88, 67, 75, 66, 15, 3, 77, 53, 80, 47, 60, 93, 29, 54, 89, 16, 12, 59, 85, 51], [71, 55, 73, 87, 20, 36, 98, 58, 8, 6, 14, 55, 23, 77, 51, 82, 3, 46, 63, 8, 30, 32, 63, 62, 72, 76, 5, 10, 99], [37, 9, 58, 91, 1, 3, 28, 34, 39, 59, 32, 13, 10, 71, 68, 82, 61, 94, 63, 30, 22, 43, 35, 55, 37, 37, 78, 77, 87], [91, 40, 64, 80, 82, 7, 89, 62, 48, 89, 51, 62, 20, 36, 71, 21, 86, 8, 11, 47, 92, 18, 43, 74, 2, 71, 58, 91, 62], [87, 2, 69, 42, 56, 55, 39, 17, 37, 67, 61, 53, 61, 35, 61, 89, 18, 5, 72, 95, 2, 12, 97, 50, 7, 45, 46, 61, 82], [83, 16, 80, 5, 94, 24, 92, 57, 3, 6, 1, 23, 48, 81, 23, 56, 45, 4, 12, 73, 22, 66, 1, 81, 33, 49, 9, 5, 52], [45, 72, 21, 79, 81, 74, 19, 38, 77, 6, 80, 76, 84, 80, 22, 84, 18, 69, 34, 83, 87, 58, 56, 70, 98, 7, 67, 9, 43], [4, 34, 73, 83, 5, 80, 76, 97, 33, 79, 42, 88, 18, 56, 20, 85, 8, 92, 46, 54, 58, 4, 86, 67, 20, 98, 8, 60, 90]],21,)
]
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))) | def f_gold ( cost , N ) : dp = [ [ 0 for i in range ( N + 1 ) ] for j in range ( N + 1 ) ] dp [ 0 ] [ 0 ] = cost [ 0 ] [ 0 ] for i in range ( 1 , N ) : dp [ i ] [ 0 ] = dp [ i - 1 ] [ 0 ] + cost [ i ] [ 0 ] for j in range ( 1 , N ) : dp [ 0 ] [ j ] = dp [ 0 ] [ j - 1 ] + cost [ 0 ] [ j ] for i in range ( 1 , N ) : for j in range ( 1 , N ) : dp [ i ] [ j ] = max ( dp [ i [MASK] 1 ] [ j ] , dp [ i ] [ j - 1 ] ) + cost [ i ] [ j ] return dp [ N - 1 ] [ N - 1 ] / ( 2 * N - 1 )1 , N ) :
for j in range ( 1 , N ) :
dp [ i ] [ j ] = max ( dp [ i - 1 ] [ j ] , dp [ i ] [ j - 1 ] ) + cost [ i ] [ j ]
return dp [ N - 1 ] [ N - 1 ] / ( 2 * N - 1 )
#TOFILL
if __name__ == '__main__':
param = [
([[48]],0,),
([[58, 26, 42, 48, -36, 22, 34, 2, 40, -88, -38, -90, -16, -28, 44, 26], [98, 48, -20, 0, -68, -74, -4, -74, -10, -64, -10, 98, -94, 6, 20, 96], [-86, 46, -8, -86, -44, -2, -4, -70, 94, -88, -54, 30, 94, 98, 24, -52], [86, 44, -16, -88, -62, -52, 64, 32, 22, -28, 84, 56, 34, -14, -86, 40], [72, 66, -40, -24, 56, 96, -24, 6, 26, 88, 70, -58, -40, 4, -84, 98], [50, 40, -8, -24, 28, -20, -46, -34, -30, 4, 10, 14, -60, -42, -82, 60], [20, -2, -36, -66, -46, -48, 4, 70, -34, -64, 0, 92, -32, 58, 18, -74], [-8, -38, -60, 84, -96, -82, 6, -26, -82, 2, 64, 40, -86, 76, 40, 12], [82, -10, -98, -84, -38, -64, 72, 14, 36, -76, -28, 22, -80, 48, 30, -50], [10, -30, -72, -20, -40, -16, -82, -52, -6, 24, 86, -80, -88, 62, 36, -10], [-42, 28, -38, -50, 98, -4, 24, -48, 76, 84, 74, -4, -76, -82, 94, -76], [82, -92, 96, -4, -90, -40, 52, 12, -32, 20, 2, 30, 34, -12, 84, 72], [86, -64, -30, 92, 8, -86, 94, -34, 32, 40, 64, 36, 64, 6, 72, -84], [-68, -86, 76, -24, -72, -2, 96, -84, 38, -14, 64, -66, 28, 46, 96, -78], [-44, 74, 88, -48, -40, 80, 84, 48, 78, 0, 62, -30, 44, 74, -82, -20], [-22, 76, -10, 34, 30, 46, -86, -74, 4, 26, -12, -58, -62, -34, -90, 52]],11,),
([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 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0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],23,),
([[36, 15, 12, 27, 93, 65, 88, 67, 45, 96, 79, 73, 79, 66, 99, 61, 67, 29, 67, 9, 70, 72, 28, 15, 26, 58, 60, 36, 66, 64, 44, 94, 86, 43, 89, 5, 33, 45, 64, 96], [9, 93, 65, 38, 41, 76, 69, 29, 86, 33, 59, 94, 39, 43, 29, 83, 4, 65, 65, 35, 36, 4, 11, 32, 17, 32, 36, 95, 35, 55, 65, 73, 16, 76, 31, 37, 99, 53, 15, 56], [94, 17, 68, 9, 10, 17, 26, 48, 22, 69, 98, 58, 66, 57, 3, 30, 5, 52, 79, 38, 31, 52, 37, 74, 40, 1, 22, 9, 51, 93, 11, 73, 98, 53, 3, 6, 97, 94, 72, 98], [98, 67, 61, 68, 34, 3, 43, 71, 25, 6, 8, 93, 53, 37, 43, 66, 3, 50, 60, 81, 98, 80, 89, 59, 42, 26, 13, 6, 74, 81, 95, 62, 59, 59, 42, 52, 23, 32, 15, 78], [83, 45, 57, 2, 28, 2, 50, 13, 24, 58, 36, 27, 51, 70, 36, 16, 79, 55, 72, 45, 70, 23, 27, 24, 65, 44, 87, 92, 61, 18, 61, 45, 29, 6, 38, 9, 37, 40, 70, 47], [84, 97, 60, 37, 87, 50, 90, 20, 90, 81, 14, 68, 52, 96, 50, 5, 37, 31, 49, 4, 7, 41, 45, 27, 34, 71, 72, 72, 46, 29, 89, 81, 89, 83, 42, 50, 25, 92, 38, 18], [90, 59, 26, 11, 75, 26, 99, 76, 32, 26, 90, 55, 6, 97, 40, 91, 87, 47, 80, 71, 25, 86, 84, 2, 49, 34, 62, 4, 75, 93, 8, 3, 94, 3, 84, 93, 79, 31, 63, 7], [5, 29, 52, 32, 27, 39, 21, 82, 70, 45, 71, 61, 5, 42, 16, 55, 86, 13, 91, 98, 1, 27, 8, 30, 38, 41, 86, 32, 10, 24, 88, 36, 90, 46, 30, 82, 13, 60, 21, 63], [66, 85, 80, 38, 90, 7, 41, 33, 24, 18, 62, 69, 92, 51, 46, 99, 58, 62, 35, 58, 96, 62, 83, 33, 62, 12, 11, 45, 85, 15, 94, 58, 31, 54, 21, 88, 35, 82, 88, 1], [51, 35, 57, 37, 21, 69, 64, 42, 7, 98, 67, 35, 90, 88, 45, 80, 33, 49, 19, 23, 53, 18, 7, 62, 65, 93, 71, 95, 51, 15, 49, 47, 94, 95, 44, 19, 5, 95, 54, 80], [2, 57, 97, 24, 87, 76, 24, 54, 13, 17, 8, 38, 3, 97, 35, 28, 31, 72, 67, 32, 69, 26, 36, 76, 85, 11, 56, 99, 29, 74, 93, 61, 85, 3, 91, 46, 47, 91, 56, 93], [5, 71, 63, 46, 81, 54, 33, 50, 98, 27, 14, 4, 61, 59, 86, 36, 36, 62, 52, 80, 40, 88, 87, 36, 86, 53, 34, 8, 9, 51, 63, 96, 72, 17, 8, 46, 91, 33, 28, 80], [9, 74, 91, 94, 20, 14, 3, 5, 6, 99, 67, 99, 81, 27, 73, 31, 86, 49, 16, 77, 85, 61, 90, 40, 31, 50, 43, 92, 61, 85, 14, 84, 87, 36, 43, 94, 2, 30, 41, 49], [37, 24, 47, 39, 99, 6, 9, 77, 92, 52, 66, 38, 89, 82, 75, 18, 73, 46, 88, 74, 34, 69, 97, 82, 89, 59, 62, 83, 10, 95, 64, 48, 12, 91, 60, 32, 54, 50, 63, 33], [81, 23, 27, 32, 94, 5, 86, 99, 18, 90, 90, 64, 33, 92, 55, 54, 53, 77, 23, 17, 67, 94, 91, 71, 3, 58, 32, 3, 95, 83, 56, 4, 18, 34, 66, 56, 95, 8, 50, 20], [82, 8, 19, 38, 17, 65, 47, 56, 39, 88, 87, 72, 48, 47, 79, 72, 69, 44, 64, 98, 70, 83, 89, 84, 86, 71, 58, 84, 36, 79, 33, 63, 55, 87, 45, 88, 72, 76, 45, 23], [48, 26, 92, 64, 6, 23, 7, 65, 8, 35, 10, 98, 66, 99, 36, 5, 75, 71, 28, 75, 45, 23, 37, 10, 40, 71, 35, 81, 76, 98, 49, 52, 98, 15, 30, 62, 51, 76, 91, 65], [86, 14, 67, 90, 66, 83, 75, 84, 7, 40, 51, 43, 54, 41, 37, 17, 99, 89, 85, 97, 30, 49, 36, 29, 24, 44, 90, 98, 23, 7, 41, 83, 77, 91, 24, 1, 80, 91, 23, 18], [97, 23, 81, 11, 38, 33, 61, 10, 93, 71, 11, 66, 71, 42, 37, 86, 69, 14, 43, 21, 98, 82, 5, 39, 40, 10, 57, 67, 69, 27, 37, 19, 71, 72, 90, 34, 12, 93, 35, 50], [22, 53, 69, 54, 84, 97, 96, 40, 36, 73, 25, 62, 89, 38, 59, 41, 65, 53, 20, 85, 84, 93, 7, 11, 50, 85, 1, 33, 33, 80, 57, 41, 88, 27, 44, 16, 19, 63, 59, 68], [88, 69, 4, 29, 17, 42, 69, 55, 40, 8, 58, 67, 9, 83, 67, 44, 83, 17, 25, 80, 10, 57, 78, 63, 31, 44, 45, 75, 9, 45, 27, 33, 69, 72, 75, 70, 77, 53, 67, 1], [59, 92, 44, 63, 97, 46, 50, 85, 56, 69, 90, 69, 81, 45, 58, 96, 1, 56, 29, 7, 70, 95, 4, 69, 87, 47, 79, 77, 45, 17, 34, 8, 15, 1, 15, 88, 91, 3, 71, 31], [43, 27, 49, 40, 52, 54, 96, 65, 55, 25, 35, 23, 13, 90, 32, 27, 26, 24, 85, 32, 43, 40, 92, 86, 12, 33, 69, 58, 39, 27, 6, 42, 94, 93, 20, 79, 18, 61, 10, 4], [11, 87, 79, 68, 4, 1, 21, 81, 12, 95, 14, 76, 99, 8, 28, 23, 17, 34, 40, 27, 26, 94, 86, 75, 82, 51, 32, 50, 52, 6, 10, 75, 30, 3, 20, 46, 87, 52, 77, 28], [1, 1, 46, 82, 89, 19, 71, 71, 18, 88, 76, 64, 77, 2, 41, 20, 95, 89, 76, 35, 52, 46, 60, 21, 69, 16, 94, 16, 74, 4, 40, 82, 93, 63, 1, 73, 42, 79, 95, 9], [41, 23, 9, 32, 41, 19, 4, 84, 4, 83, 93, 54, 39, 59, 84, 67, 98, 83, 58, 18, 7, 73, 70, 47, 37, 75, 95, 56, 44, 11, 1, 38, 40, 79, 25, 91, 49, 24, 59, 61], [9, 47, 83, 23, 35, 50, 17, 51, 91, 52, 21, 86, 26, 3, 18, 11, 57, 3, 78, 1, 99, 25, 90, 39, 20, 96, 66, 75, 31, 24, 60, 91, 62, 3, 49, 67, 57, 46, 46, 99], [96, 51, 15, 18, 86, 64, 14, 66, 16, 76, 69, 63, 69, 3, 26, 4, 22, 8, 92, 5, 61, 3, 10, 97, 78, 53, 22, 53, 30, 59, 61, 56, 10, 48, 10, 2, 33, 85, 14, 87], [93, 41, 61, 17, 83, 49, 30, 93, 60, 53, 18, 35, 99, 62, 56, 15, 63, 24, 83, 11, 79, 62, 89, 46, 56, 26, 64, 25, 19, 35, 5, 38, 59, 77, 91, 89, 26, 23, 19, 99], [73, 34, 24, 9, 70, 64, 46, 53, 94, 23, 73, 53, 93, 9, 27, 44, 85, 59, 83, 73, 57, 98, 61, 1, 33, 77, 14, 99, 75, 10, 60, 95, 37, 10, 31, 43, 82, 29, 82, 98], [65, 55, 80, 15, 94, 11, 6, 18, 18, 57, 38, 2, 46, 68, 96, 20, 61, 75, 98, 72, 8, 86, 43, 7, 94, 8, 64, 34, 80, 3, 3, 18, 73, 93, 87, 6, 79, 54, 16, 73], [51, 74, 44, 2, 59, 22, 63, 96, 40, 74, 39, 58, 6, 46, 32, 65, 96, 71, 57, 62, 51, 45, 11, 58, 64, 61, 44, 22, 90, 85, 68, 97, 43, 6, 37, 67, 62, 24, 57, 27], [18, 56, 47, 88, 74, 87, 20, 74, 97, 51, 54, 94, 63, 67, 16, 44, 43, 72, 99, 80, 72, 2, 1, 88, 43, 40, 99, 10, 66, 96, 80, 22, 50, 68, 60, 31, 19, 4, 83, 76], [50, 6, 48, 22, 61, 15, 42, 97, 51, 95, 53, 55, 67, 71, 18, 98, 89, 92, 62, 43, 7, 58, 30, 55, 86, 85, 7, 62, 54, 2, 92, 76, 71, 96, 24, 43, 96, 91, 99, 60], [43, 48, 12, 24, 19, 93, 53, 14, 26, 94, 89, 76, 79, 25, 54, 68, 53, 82, 74, 21, 19, 26, 73, 94, 23, 34, 24, 33, 82, 9, 1, 53, 54, 6, 71, 64, 83, 66, 69, 16], [89, 41, 95, 51, 17, 54, 30, 18, 28, 58, 81, 17, 45, 23, 7, 77, 17, 57, 46, 18, 17, 34, 78, 98, 81, 87, 1, 50, 32, 17, 23, 90, 81, 60, 52, 73, 58, 76, 86, 25], [93, 59, 71, 42, 8, 69, 37, 66, 71, 26, 11, 82, 44, 82, 10, 75, 89, 37, 99, 87, 12, 65, 80, 38, 58, 28, 78, 15, 75, 72, 74, 55, 61, 32, 4, 25, 79, 89, 44, 2], [18, 62, 31, 5, 37, 96, 16, 83, 85, 27, 49, 30, 8, 45, 97, 75, 46, 48, 64, 25, 62, 85, 43, 5, 33, 42, 25, 37, 80, 64, 76, 18, 99, 77, 68, 98, 65, 72, 64, 43], [77, 37, 32, 4, 10, 60, 7, 87, 51, 87, 35, 51, 20, 82, 37, 10, 99, 5, 50, 65, 8, 11, 60, 77, 93, 53, 5, 57, 90, 72, 78, 66, 67, 48, 39, 50, 38, 14, 38, 18], [44, 25, 30, 74, 49, 75, 68, 46, 65, 50, 29, 29, 50, 54, 98, 87, 73, 71, 58, 15, 58, 39, 67, 2, 51, 50, 43, 85, 8, 59, 47, 53, 54, 13, 32, 34, 55, 40, 95, 70]],28,),
([[-98, -94, -90, -86, -80, -80, -78, -56, -48, -46, -42, -36, -34, -22, -14, -4, -4, 4, 6, 14, 18, 22, 28, 30, 38, 38, 42, 44, 58, 60, 60, 64, 64, 66, 70, 76, 86, 88, 94, 98], [-98, -94, -90, -74, -68, -66, -60, -56, -50, -10, -2, 8, 10, 14, 16, 24, 28, 38, 40, 44, 48, 48, 56, 58, 58, 62, 68, 78, 78, 82, 82, 82, 82, 84, 88, 88, 92, 92, 94, 96], [-98, -76, -72, -64, -60, -58, -56, -46, -44, -44, -44, -36, -36, -28, -26, -24, -22, -22, -16, -14, -8, -6, 4, 6, 10, 12, 16, 36, 36, 36, 36, 38, 44, 46, 50, 56, 68, 76, 82, 84], [-94, -88, -82, -82, -76, -54, -54, -46, -42, -42, -34, -34, -24, -22, -20, -16, -14, -8, 8, 8, 16, 22, 22, 28, 28, 32, 54, 54, 62, 62, 64, 70, 72, 72, 76, 80, 80, 86, 86, 98], [-92, -86, -80, -78, -74, -72, -64, -58, -56, -52, -42, -38, -38, -38, -36, -32, -28, -26, -18, -18, -16, -14, -12, 0, 6, 10, 14, 18, 26, 32, 34, 34, 56, 62, 62, 66, 68, 68, 72, 98], [-98, -94, -92, -90, -84, -80, -74, -64, -62, -62, -46, -36, -36, -30, -22, -22, -18, -12, -6, 6, 10, 14, 22, 28, 32, 38, 46, 48, 52, 56, 62, 64, 68, 68, 76, 78, 78, 86, 96, 98], [-96, -96, -94, -92, -90, -90, -82, -76, -66, -64, -60, -60, -56, -56, -52, -52, -40, -34, -30, -28, -20, -18, -10, -8, -6, -2, 18, 26, 38, 38, 46, 46, 50, 64, 74, 78, 78, 80, 84, 88], [-92, -88, -70, -68, -68, -64, -60, -60, -52, -44, -38, -38, -38, -36, -30, -30, -28, -24, -18, -16, -12, -10, -6, 4, 10, 12, 14, 28, 40, 44, 46, 50, 56, 64, 74, 78, 80, 80, 80, 84], [-86, -78, -76, -72, -70, -60, -50, -44, -44, -40, -36, -34, -34, -30, -28, -16, -12, -8, -4, 0, 2, 4, 6, 8, 12, 16, 20, 26, 26, 42, 54, 56, 66, 72, 78, 84, 86, 90, 92, 94], [-94, -88, -82, -78, -78, -74, -68, -68, -58, -58, -42, -38, -36, -28, -22, -16, -16, -14, -12, -4, 0, 10, 20, 22, 24, 32, 34, 38, 38, 40, 46, 52, 54, 58, 60, 70, 90, 90, 94, 96], [-94, -92, -90, -84, -68, -66, -64, -44, -38, -34, -32, -32, -16, -14, -8, -2, 0, 2, 2, 4, 12, 14, 20, 24, 32, 40, 40, 46, 46, 62, 64, 66, 68, 70, 74, 78, 82, 86, 86, 98], [-90, -82, -82, -78, -66, -58, -56, -54, -52, -50, -48, -36, -28, -24, -12, -6, -4, -4, -2, 0, 2, 2, 4, 18, 22, 22, 24, 28, 30, 32, 36, 36, 38, 44, 46, 48, 54, 60, 60, 60], [-98, -94, -90, -84, -76, -74, -74, -72, -70, -56, -54, -50, -48, -38, -38, -30, -28, -28, -26, -22, -18, -4, 2, 6, 16, 20, 24, 24, 26, 32, 34, 34, 40, 40, 44, 70, 72, 80, 80, 98], [-98, -96, -78, -66, -60, -58, -46, -32, -24, -22, -18, -16, -14, -12, 14, 14, 20, 20, 22, 24, 36, 36, 52, 52, 54, 56, 58, 62, 64, 72, 76, 76, 78, 82, 84, 90, 90, 92, 96, 98], [-94, -88, -84, -84, -84, -74, -74, -66, -66, -54, -50, -50, -40, -26, -20, -4, -4, -4, -2, 2, 6, 18, 18, 24, 28, 40, 42, 42, 44, 44, 46, 48, 48, 58, 64, 72, 76, 82, 84, 90], [-98, -92, -90, -90, -88, -86, -80, -76, -62, -60, -56, -52, -50, -46, -40, -40, -32, -32, -26, -12, -12, -6, -2, 8, 10, 12, 26, 32, 38, 50, 52, 52, 62, 70, 72, 80, 80, 84, 92, 94], [-88, -86, -82, -82, -82, -82, -80, -70, -64, -52, -50, -28, -14, -8, -6, -2, 0, 6, 8, 8, 14, 14, 20, 20, 20, 24, 28, 30, 48, 50, 54, 60, 66, 68, 72, 74, 76, 78, 90, 94], [-96, -86, -84, -82, -76, -70, -70, -64, -52, -50, -46, -46, -44, -42, -42, -42, -36, -22, -14, -14, -6, 0, 2, 10, 14, 18, 32, 38, 46, 54, 54, 56, 62, 68, 68, 74, 76, 78, 90, 94], [-98, -98, -94, -90, -86, -82, -66, -62, -60, -60, -52, -44, -36, -20, -10, 2, 4, 8, 10, 16, 18, 20, 22, 24, 26, 26, 42, 48, 56, 58, 60, 62, 80, 80, 80, 86, 98, 98, 98, 98], [-98, -96, -86, -86, -84, -76, -76, -76, -74, -72, -70, -62, -62, -50, -32, -30, -20, -18, -18, -12, -6, 4, 8, 12, 14, 20, 20, 24, 32, 34, 38, 44, 48, 58, 64, 84, 86, 92, 98, 98], [-78, -76, -62, -58, -56, -50, -46, -42, -42, -34, -32, -28, -18, -16, -10, -6, 0, 8, 14, 22, 24, 26, 32, 34, 36, 44, 46, 46, 52, 52, 54, 56, 58, 60, 66, 70, 78, 80, 80, 94], [-98, -98, -94, -88, -78, -70, -66, -64, -60, -56, -54, -54, -52, -42, -36, -24, -24, -22, -22, -20, -16, -14, -12, -4, 4, 6, 12, 14, 22, 24, 32, 38, 48, 54, 56, 78, 82, 88, 88, 92], [-96, -66, -60, -56, -56, -56, -54, -46, -46, -42, -38, -28, -14, -12, -10, -2, 0, 0, 0, 2, 6, 10, 18, 20, 26, 28, 44, 46, 46, 54, 56, 58, 60, 60, 76, 88, 88, 92, 94, 96], [-98, -96, -92, -86, -82, -78, -76, -60, -50, -36, -32, -28, -26, -26, -20, -8, -2, -2, 0, 0, 6, 8, 10, 14, 20, 20, 26, 28, 30, 38, 38, 40, 54, 58, 64, 66, 72, 72, 94, 98], [-94, -84, -82, -76, -76, -74, -72, -62, -60, -52, -34, -26, -22, -8, -4, 0, 0, 2, 6, 10, 14, 16, 36, 36, 42, 46, 48, 50, 56, 56, 60, 64, 64, 74, 76, 88, 88, 96, 96, 98], [-92, -80, -80, -74, -74, -68, -54, -48, -42, -34, -32, -24, -22, -12, -10, -6, -6, -4, -4, 2, 12, 12, 12, 16, 24, 24, 26, 26, 36, 36, 38, 64, 66, 68, 68, 70, 72, 86, 96, 96], [-98, -98, -94, -84, -78, -68, -58, -58, -56, -54, -50, -48, -46, -20, -12, -12, -4, 0, 2, 2, 6, 12, 14, 20, 34, 36, 36, 38, 44, 48, 48, 52, 54, 56, 62, 64, 68, 74, 84, 90], [-98, -84, -74, -68, -56, -50, -48, -28, -28, -18, -14, 0, 0, 2, 2, 6, 8, 10, 34, 34, 42, 50, 52, 52, 54, 56, 58, 60, 66, 72, 76, 80, 80, 82, 84, 86, 90, 90, 92, 98], [-92, -92, -90, -90, -90, -80, -74, -56, -50, -46, -44, -24, -22, -22, -14, 8, 12, 14, 22, 22, 24, 26, 28, 28, 36, 42, 42, 46, 46, 58, 60, 66, 68, 72, 74, 78, 78, 80, 82, 86], [-98, -98, -90, -90, -88, -88, -78, -68, -54, -48, -46, -42, -40, -30, -26, -16, -12, -12, -10, 2, 2, 6, 14, 20, 22, 28, 36, 36, 46, 48, 50, 56, 58, 66, 66, 76, 82, 94, 96, 98], [-98, -92, -88, -80, -78, -66, -52, -50, -50, -46, -44, -44, -40, -30, -26, -20, -10, -10, 2, 10, 12, 18, 18, 20, 22, 26, 30, 36, 38, 42, 46, 50, 56, 64, 78, 80, 82, 86, 90, 92], [-96, -94, -84, -84, -76, -62, -56, -40, -38, -30, -24, -22, -18, -16, -12, -10, -8, -6, -4, -4, 4, 8, 12, 16, 22, 24, 26, 28, 30, 38, 42, 42, 46, 50, 70, 76, 78, 86, 90, 94], [-96, -94, -84, -74, -68, -58, -52, -44, -40, -30, -28, -22, -10, -4, 0, 6, 6, 8, 10, 12, 16, 16, 16, 16, 20, 20, 24, 48, 52, 60, 60, 72, 72, 78, 78, 82, 82, 84, 90, 94], [-98, -98, -98, -98, -88, -86, -78, -72, -66, -62, -60, -58, -56, -54, -46, -46, -36, -26, -10, -8, -6, 4, 14, 14, 26, 50, 56, 58, 58, 60, 60, 62, 66, 70, 72, 74, 80, 84, 88, 88], [-94, -90, -88, -84, -80, -78, -76, -74, -74, -64, -60, -60, -52, -44, -38, -36, -36, -28, -22, -22, -16, -10, -4, -2, 2, 10, 12, 12, 22, 26, 32, 34, 40, 46, 60, 70, 76, 76, 94, 94], [-98, -90, -88, -86, -74, -74, -52, -52, -50, -46, -46, -36, -36, -34, -24, -24, -24, -22, -10, -4, 14, 20, 26, 30, 40, 46, 48, 50, 52, 54, 68, 70, 70, 74, 74, 76, 78, 86, 96, 96], [-94, -86, -76, -76, -66, -64, -60, -58, -44, -38, -34, -32, -32, -28, -26, -18, -16, -14, -4, 6, 12, 18, 18, 22, 24, 30, 30, 32, 32, 34, 34, 40, 46, 62, 66, 66, 70, 74, 82, 84], [-88, -86, -84, -76, -74, -64, -56, -54, -50, -50, -46, -40, -36, -36, -34, -16, -16, 20, 22, 22, 24, 26, 30, 32, 34, 34, 42, 46, 46, 54, 62, 66, 68, 68, 82, 82, 88, 90, 90, 92], [-92, -90, -88, -88, -76, -74, -62, -56, -52, -44, -42, -42, -40, -22, -20, -14, -14, -10, -10, -2, 20, 24, 26, 30, 34, 36, 38, 40, 52, 54, 56, 56, 62, 64, 74, 74, 76, 78, 88, 96], [-94, -90, -86, -78, -74, -70, -68, -62, -56, -54, -46, -40, -36, -26, -18, -16, -16, -6, -4, 0, 6, 40, 52, 56, 60, 64, 66, 68, 70, 72, 78, 80, 80, 84, 86, 88, 88, 90, 90, 96]],37,),
([[1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0], [1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 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0, 0, 1, 1, 1, 0], [0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1]],45,),
([[4, 4, 13, 19, 22, 22, 25, 30, 32, 34, 36, 37, 41, 43, 43, 44, 50, 56, 71, 76, 78, 83, 92, 92, 92], [5, 10, 11, 15, 16, 17, 30, 36, 40, 46, 52, 53, 54, 62, 63, 63, 69, 72, 74, 74, 82, 90, 92, 96, 98], [1, 5, 8, 10, 12, 14, 15, 23, 30, 41, 46, 46, 47, 62, 62, 63, 65, 75, 88, 90, 90, 92, 94, 99, 99], [2, 3, 5, 6, 9, 16, 17, 18, 21, 24, 26, 31, 34, 34, 34, 36, 38, 41, 42, 51, 66, 76, 81, 82, 90], [11, 15, 16, 17, 19, 21, 25, 27, 29, 32, 40, 43, 50, 51, 52, 53, 57, 60, 65, 71, 72, 79, 80, 82, 94], [1, 2, 6, 11, 13, 13, 22, 30, 32, 36, 37, 38, 48, 51, 69, 71, 71, 72, 74, 77, 81, 90, 94, 98, 99], [4, 5, 20, 21, 23, 24, 27, 27, 30, 31, 33, 33, 49, 51, 52, 58, 59, 70, 78, 83, 83, 85, 85, 88, 89], [4, 6, 7, 14, 22, 24, 27, 39, 41, 42, 43, 44, 46, 54, 54, 55, 61, 62, 62, 62, 70, 86, 93, 97, 99], [5, 9, 15, 22, 27, 36, 39, 39, 42, 44, 48, 51, 52, 54, 55, 57, 60, 60, 64, 69, 71, 78, 78, 82, 87], [8, 10, 14, 20, 21, 24, 28, 30, 30, 34, 37, 56, 58, 69, 69, 71, 71, 75, 80, 81, 85, 88, 93, 93, 99], [1, 2, 4, 9, 10, 11, 13, 14, 17, 18, 24, 29, 29, 46, 48, 51, 62, 67, 80, 82, 87, 88, 88, 88, 93], [4, 5, 13, 13, 16, 22, 23, 26, 27, 28, 28, 29, 30, 33, 34, 49, 51, 62, 65, 66, 76, 76, 88, 91, 95], [5, 7, 7, 8, 11, 11, 13, 23, 27, 33, 34, 39, 46, 59, 61, 63, 71, 82, 83, 85, 85, 88, 89, 90, 91], [1, 7, 9, 20, 34, 38, 41, 48, 48, 49, 50, 51, 53, 54, 55, 58, 64, 66, 77, 79, 80, 82, 90, 92, 95], [1, 2, 4, 5, 21, 26, 28, 28, 32, 44, 52, 53, 54, 59, 64, 67, 74, 83, 87, 88, 89, 89, 90, 92, 94], [4, 6, 15, 23, 27, 30, 31, 32, 33, 37, 43, 50, 54, 55, 58, 63, 66, 66, 71, 74, 77, 97, 97, 97, 98], [4, 16, 17, 22, 24, 27, 32, 34, 35, 37, 39, 42, 51, 52, 57, 66, 71, 77, 82, 85, 90, 91, 93, 98, 98], [2, 19, 22, 24, 24, 25, 29, 29, 31, 36, 44, 53, 57, 59, 60, 60, 63, 65, 67, 78, 80, 85, 92, 96, 99], [7, 17, 43, 46, 48, 48, 50, 51, 55, 55, 61, 61, 68, 70, 74, 75, 79, 79, 88, 90, 90, 91, 92, 94, 98], [2, 16, 17, 17, 25, 27, 36, 38, 41, 45, 46, 50, 59, 61, 63, 69, 74, 74, 75, 77, 89, 92, 94, 94, 94], [1, 3, 7, 7, 10, 12, 24, 26, 29, 42, 47, 51, 52, 53, 57, 61, 65, 69, 71, 75, 75, 78, 78, 78, 84], [4, 4, 8, 14, 18, 19, 19, 30, 31, 34, 35, 39, 42, 45, 61, 65, 75, 77, 82, 85, 87, 88, 90, 90, 91], [6, 7, 10, 12, 15, 22, 27, 34, 45, 57, 58, 61, 63, 67, 74, 75, 80, 80, 82, 84, 85, 85, 86, 93, 98], [8, 9, 12, 22, 25, 33, 33, 38, 44, 47, 53, 58, 66, 66, 67, 78, 79, 84, 86, 87, 87, 88, 90, 91, 92], [4, 6, 14, 21, 23, 26, 29, 40, 48, 67, 70, 71, 74, 76, 77, 79, 79, 82, 83, 88, 89, 90, 92, 95, 96]],16,),
([[-12, -4, -74, -42, 80, 62, 62, 36, -48, -56], [-4, 86, -76, -86, -48, 70, -58, -4, 42, -22], [-38, -24, 44, -28, 36, 40, 66, 28, -70, -80], [32, -38, 22, 18, 50, 20, -70, -80, -78, 42], [8, 76, 62, 78, -66, 58, 34, 46, 82, -10], [-74, -76, 36, -70, 8, -22, 84, 54, -44, -46], [-72, 42, -60, -70, 38, 66, -60, -26, -36, 24], [92, 44, -16, -58, -42, -56, 12, -20, 78, -58], [-46, -6, -56, -68, 62, -78, -94, 34, 68, 88], [32, 72, -28, 62, -20, -50, 52, -22, -60, -88]],5,),
([[0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1]],4,),
([[11, 24, 29, 89, 15, 25, 16, 59, 1, 29, 18, 84, 58, 50, 5, 33, 38, 44, 34, 3, 28, 57, 98, 53, 79, 67, 19, 85, 49], [86, 86, 56, 89, 4, 45, 42, 87, 97, 69, 83, 84, 55, 85, 57, 6, 76, 53, 77, 3, 35, 61, 68, 70, 94, 55, 56, 33, 73], [8, 82, 84, 58, 31, 72, 47, 76, 12, 7, 63, 30, 62, 93, 80, 25, 80, 83, 25, 44, 60, 42, 31, 57, 85, 5, 23, 15, 12], [91, 44, 3, 18, 58, 28, 70, 76, 68, 31, 37, 94, 42, 93, 89, 5, 51, 35, 94, 71, 62, 38, 93, 70, 85, 22, 9, 84, 51], [62, 91, 69, 79, 9, 48, 14, 13, 77, 66, 96, 51, 57, 8, 21, 8, 14, 7, 36, 14, 71, 52, 72, 9, 10, 79, 40, 12, 12], [7, 71, 82, 60, 30, 38, 22, 58, 33, 59, 30, 13, 31, 93, 4, 13, 33, 15, 99, 96, 98, 94, 56, 98, 83, 20, 90, 96, 48], [64, 54, 80, 67, 56, 26, 38, 91, 89, 8, 95, 93, 16, 59, 40, 1, 26, 93, 23, 45, 89, 21, 77, 67, 35, 47, 13, 74, 83], [4, 43, 14, 79, 31, 7, 93, 41, 58, 59, 20, 10, 76, 70, 72, 89, 61, 35, 94, 18, 98, 72, 39, 58, 14, 35, 60, 11, 43], [71, 88, 61, 78, 41, 79, 10, 95, 34, 79, 98, 90, 36, 17, 93, 83, 35, 46, 3, 60, 23, 32, 1, 31, 29, 30, 95, 11, 69], [68, 60, 70, 68, 9, 99, 25, 88, 8, 12, 3, 11, 22, 21, 72, 61, 87, 45, 93, 70, 54, 28, 25, 96, 77, 32, 72, 15, 27], [16, 50, 24, 19, 4, 25, 40, 54, 5, 84, 88, 45, 85, 45, 27, 16, 48, 5, 78, 9, 40, 45, 8, 77, 59, 33, 57, 97, 93], [65, 16, 13, 17, 9, 64, 53, 48, 35, 48, 83, 10, 60, 60, 65, 63, 1, 81, 74, 56, 1, 93, 58, 45, 56, 30, 19, 25, 30], [13, 5, 50, 16, 71, 79, 89, 88, 73, 50, 10, 60, 8, 29, 89, 13, 11, 90, 4, 96, 53, 31, 56, 51, 62, 94, 74, 50, 42], [2, 75, 91, 46, 52, 75, 94, 68, 60, 95, 25, 74, 45, 27, 81, 86, 36, 48, 28, 24, 69, 2, 54, 13, 26, 80, 46, 41, 71], [54, 2, 27, 79, 30, 43, 96, 26, 86, 13, 18, 85, 51, 66, 85, 63, 68, 43, 90, 97, 47, 65, 54, 58, 80, 19, 34, 96, 73], [40, 37, 74, 40, 62, 46, 57, 78, 5, 10, 55, 30, 60, 79, 54, 11, 46, 32, 83, 91, 62, 82, 84, 46, 79, 72, 98, 36, 21], [30, 57, 58, 10, 90, 79, 23, 65, 50, 88, 8, 69, 88, 6, 53, 34, 54, 41, 66, 75, 22, 58, 54, 8, 21, 74, 81, 96, 61], [63, 61, 94, 18, 58, 27, 25, 41, 62, 45, 88, 87, 45, 38, 53, 77, 72, 20, 39, 2, 78, 23, 91, 19, 69, 89, 41, 83, 96], [7, 79, 40, 22, 77, 70, 6, 58, 74, 16, 41, 3, 99, 14, 92, 69, 51, 19, 82, 41, 8, 16, 95, 35, 36, 15, 89, 94, 87], [59, 27, 33, 78, 83, 76, 56, 18, 32, 4, 58, 22, 76, 66, 16, 60, 84, 15, 74, 43, 36, 25, 85, 95, 80, 50, 30, 48, 41], [31, 5, 40, 6, 61, 10, 74, 49, 6, 23, 40, 80, 93, 51, 71, 61, 40, 93, 70, 26, 28, 93, 57, 87, 52, 6, 57, 12, 39], [55, 45, 57, 87, 92, 14, 74, 62, 28, 88, 67, 75, 66, 15, 3, 77, 53, 80, 47, 60, 93, 29, 54, 89, 16, 12, 59, 85, 51], [71, 55, 73, 87, 20, 36, 98, 58, 8, 6, 14, 55, 23, 77, 51, 82, 3, 46, 63, 8, 30, 32, 63, 62, 72, 76, 5, 10, 99], [37, 9, 58, 91, 1, 3, 28, 34, 39, 59, 32, 13, 10, 71, 68, 82, 61, 94, 63, 30, 22, 43, 35, 55, 37, 37, 78, 77, 87], [91, 40, 64, 80, 82, 7, 89, 62, 48, 89, 51, 62, 20, 36, 71, 21, 86, 8, 11, 47, 92, 18, 43, 74, 2, 71, 58, 91, 62], [87, 2, 69, 42, 56, 55, 39, 17, 37, 67, 61, 53, 61, 35, 61, 89, 18, 5, 72, 95, 2, 12, 97, 50, 7, 45, 46, 61, 82], [83, 16, 80, 5, 94, 24, 92, 57, 3, 6, 1, 23, 48, 81, 23, 56, 45, 4, 12, 73, 22, 66, 1, 81, 33, 49, 9, 5, 52], [45, 72, 21, 79, 81, 74, 19, 38, 77, 6, 80, 76, 84, 80, 22, 84, 18, 69, 34, 83, 87, 58, 56, 70, 98, 7, 67, 9, 43], [4, 34, 73, 83, 5, 80, 76, 97, 33, 79, 42, 88, 18, 56, 20, 85, 8, 92, 46, 54, 58, 4, 86, 67, 20, 98, 8, 60, 90]],21,)
]
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))) | - | [
"a) #include",
"b) ;",
"c) (",
"d) -",
"e) ],"
] | d |
python | def f_gold ( x ) :
if ( x == 0 or x == 1 ) :
return x
start = 1
end = x
while ( start <= end ) :
mid = ( start + end ) // 2
if ( mid * mid == x ) :
return mid
if ( mid * mid < x ) :
start = mid + 1
ans = mid
else :
end = mid - 1
return ans
if ( mid * mid == x ) :
return mid
if ( mid * mid < x ) :
start = mid + 1
ans = mid
else :
end = mid - 1
return ans
#TOFILL
if __name__ == '__main__':
param = [
(40,),
(10,),
(46,),
(54,),
(1,),
(67,),
(64,),
(10,),
(75,),
(11,)
]
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))) | def f_gold ( x ) : if ( x == 0 or x == 1 ) : return x start = 1 [MASK] = x while ( start <= end ) : mid = ( start + end ) // 2 if ( mid * mid == x ) : return mid if ( mid * mid < x ) : start = mid + 1 ans = mid else : end = mid - 1 return ans if ( mid * mid == x ) :
return mid
if ( mid * mid < x ) :
start = mid + 1
ans = mid
else :
end = mid - 1
return ans
#TOFILL
if __name__ == '__main__':
param = [
(40,),
(10,),
(46,),
(54,),
(1,),
(67,),
(64,),
(10,),
(75,),
(11,)
]
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))) | end | [
"a) i",
"b) r",
"c) end",
"d) y)?",
"e) f_gold"
] | c |
python | def f_gold ( n ) :
ans = 2 * ( pow ( 3 , n ) ) - 1 ;
return ans ;
s 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 = 2 * ( pow ( 3 , n ) ) - 1 ;
return ans ;
#TOFILL
if __name__ == '__main__':
param = [
(78,),
(89,),
(46,),
(56,),
(79,),
(71,),
(80,),
(77,),
(48,),
(16,)
]
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))) | def f_gold ( n ) : ans = 2 * ( pow ( 3 , n ) ) - 1 [MASK] return ans ;s 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 = 2 * ( pow ( 3 , n ) ) - 1 ;
return ans ;
#TOFILL
if __name__ == '__main__':
param = [
(78,),
(89,),
(46,),
(56,),
(79,),
(71,),
(80,),
(77,),
(48,),
(16,)
]
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))) | ; | [
"a) ;",
"b) n",
"c) k",
"d) )",
"e) 0"
] | a |
python | def f_gold ( string ) :
Stack = [ ]
for ch in string :
if ch == ')' :
top = Stack.pop ( )
elementsInside = 0
while top != '(' :
elementsInside += 1
top = Stack.pop ( )
if elementsInside < 1 :
return True
else :
Stack.append ( ch )
return False
elementsInside += 1
top = Stack.pop ( )
if elementsInside < 1 :
return True
else :
Stack.append ( ch )
return False
#TOFILL
if __name__ == '__main__':
param = [
("((a+b)+((c+d)))",),
("(((a+(b)))+(c+d))",),
("(((a+(b))+c+d))",),
("((a+b)+(c+d))",),
("(8582007)",),
("((a+(b))+(c+d))",),
("(PylsShEdKAE)",),
('886980680541',),
('001',),
('jsVmFeOq',)
]
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))) | def f_gold ( string ) : Stack = [ ] for ch in string : if ch == ')' : top = Stack.pop ( ) elementsInside = 0 while top != '(' : elementsInside += 1 top = Stack.pop ( ) if elementsInside [MASK] 1 : return True else : Stack.append ( ch ) return False elementsInside += 1
top = Stack.pop ( )
if elementsInside < 1 :
return True
else :
Stack.append ( ch )
return False
#TOFILL
if __name__ == '__main__':
param = [
("((a+b)+((c+d)))",),
("(((a+(b)))+(c+d))",),
("(((a+(b))+c+d))",),
("((a+b)+(c+d))",),
("(8582007)",),
("((a+(b))+(c+d))",),
("(PylsShEdKAE)",),
('886980680541',),
('001',),
('jsVmFeOq',)
]
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))) | < | [
"a) i",
"b) <",
"c) (",
"d) if",
"e) #include"
] | b |
python | def f_gold ( m ) :
for i in range ( 0 , len ( m ) ) :
sm = 0
for j in range ( 0 , len ( m [ i ] ) ) :
sm = sm + m [ i ] [ j ]
if ( sm != 1 ) :
return False
return True
ange ( 0 , len ( m ) ) :
sm = 0
for j in range ( 0 , len ( m [ i ] ) ) :
sm = sm + m [ i ] [ j ]
if ( sm != 1 ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([[ 0, 0, 1 ], [ 0.5, 0, 0.5 ], [ 1, 0, 0 ]],),
([[ 0, 0, 1 ], [ 0.5, 0, 0.51 ], [ 1, 0, 0 ]],),
([[ 0, 0, 0.9 ], [ 1, 0, 0.1 ], [ 0, 1, 0 ]],),
([[]],),
([[ 0, 1 ], [ 0.9, 0.1], [ 0, 1]],),
([[ 1 ]],),
([[1800.5208165864472, 5129.668497755772, 4091.578454432755, 9520.788540775387, 9012.789443327169, 5479.787317916788, 4846.101760095075, 9310.645104102381, 6862.485564868333, 6537.037513320974, 7943.016882755804], [8081.404685413337, 2775.350842660207, 3624.18060172129, 320.5505410412923, 896.5298358859519, 9778.851990348234, 8093.842945978867, 5513.194168934705, 3238.213662532161, 2068.183825530009, 8922.404213665432, 2564.415908565606, 9541.992473376376, 3500.695185589028, 7425.292941600525, 1035.1769706476443, 1993.3236514377372, 7516.6428866994665, 7036.757321520528, 4521.722941224576, 6046.954992856951, 1480.947630193744, 2468.314968942801, 6721.875264461492, 729.3668691453537, 7013.1702771055125, 620.7860776027774, 4073.8164568995426, 6637.935131989998, 4970.880129282128, 8491.291538095455, 6017.257595728452, 8758.321951108288, 7450.774705441449, 2430.104778991052, 7653.421788466134, 9867.846002930755, 9025.832543077806, 3130.4709292949738], [4092.6187809701687, 3682.191052666517, 6210.3251142981435, 7559.705041866003, 8083.3992753238235, 7027.888848387021, 322.813354455147, 6396.660665360345], [6712.595190644637, 3351.7854488023168, 3596.9007070939974, 7383.906373292954, 6925.055360334225, 6564.096130017967, 9810.727474966703, 1812.3875023392943, 7582.083184537618, 6792.011378435494, 6737.106729773401, 5165.155358877282, 7694.499267616087, 3564.5292718018964, 8125.369501443796, 7515.428339325206, 3373.5371602639975, 8145.31715886053, 6297.6183870619725, 489.2402023933884, 9562.673985208492, 6553.732669130852, 7196.924911915597, 9239.272829887721, 5855.3831715786055, 9570.600140348652, 6684.3117497126605, 9977.065074407292, 9210.767097725591, 3456.1818868411087], [4472.26489764256, 7298.311171623871, 6184.798212074516, 5645.069795561799, 9113.123076453292, 5537.618956455394, 2142.794697171854, 8370.190271064876, 5972.2448507765475, 6299.8293468991715, 7388.052824286836, 735.079089195314, 4216.330577355761, 928.9766117855969, 1935.1190718709943, 5606.352487792576, 9764.404560908582, 5301.250390178857, 2250.0545430370357, 8159.5544835139635, 1327.0903534461743, 7505.6753057440255, 9918.714694238013, 8827.139931812451, 1859.1883736005789, 8018.161213209266, 7984.370920859778, 288.30827861459517, 1461.0614788611754, 2690.173572057434, 8427.499467578928, 4724.15901701013, 4457.387382560547, 9993.904502656509], [2842.9663139830186, 8957.4584498927, 8686.31672019927, 4832.99654565389], [1477.392902127036, 7189.591229360169, 8822.61208105902, 4851.411807703794, 9600.384550545641, 5836.4581179869165, 2366.7307632417446, 9442.85367113618, 9848.096373489492, 3805.2945900367695, 2741.21016804169, 7787.421240650287, 5163.029236960128, 3839.164193518556, 8999.926058466983, 5787.032859796697, 7669.921381103829, 7893.275228211627, 1051.182564195985, 7017.888839448166, 5215.123486606644, 5208.568127672256, 1134.2054935790945, 7573.233029924398, 6060.282198006302, 1395.7596136070006, 3653.7960603925126, 244.94506756705502, 3594.7042035479526, 6272.774300983842, 4043.3735550683537, 2274.103544548338, 4022.0181987353485, 9109.556771757481, 4286.57480001852, 6721.662297331347, 6105.99828625709, 8758.359235513371, 1658.875171187041, 2024.5696201552444], [5912.554579767912, 5341.080476025451, 4305.59603125092, 9800.436262778925, 8097.160534980595, 493.9680676037761, 4047.191664109233, 6070.216899309564, 5697.682730828276, 9448.806800500452, 7698.114392101278, 7020.216498152797, 7091.797827878821, 3273.5516687760546, 3685.5162670409804, 2210.2161977720316, 7182.207804931318, 3265.217158812098, 1798.8408452362914, 9318.266496779846, 2859.486203159565, 4314.215039310549, 8313.026936365693], [8911.686558511605, 5660.199086800985, 6475.525180381277, 4040.3172648744144, 5708.611042449874, 9524.099373256367, 7030.627120796817, 783.4145757917787, 9713.798324426925, 5284.149579386235, 986.5900188717991, 2567.146044707662, 2034.3874533234496, 7853.582414512236, 5610.18808118777, 9372.679297083534, 1227.8195252860025, 8558.328099907549, 5800.797131024546, 1345.9810037159548, 8059.092655056248, 1007.7145561634637, 1867.8280914974055, 8073.000957658564]],),
([[9784.847472945596, 1467.4849690692215, 326.01056399299114, 3577.1820356491303, 3413.7335834614014, 5621.398199278954, 75.70726246875714, 3072.65108747655, 7278.353400799695, 4703.166022097605, 9423.746532838595, 9651.338090892916, 7908.363875282913, 2112.03821823538, 1975.7721197648048, 1044.0925741602891, 8579.267990348524, 3350.769942053501, 5299.788699272214, 7928.710248719408, 8396.62857032498, 3836.1908586465343, 8012.249410750618, 7828.91833852811, 1917.7798073113083, 5120.386576342888, 3678.786128839827, 4600.911873999521, 9497.461077450645, 3000.203085004004, 7858.544769795873, 8325.214884003173, 2451.061402910233, 647.2264467569499, 7282.170138249182, 2285.3064693716783, 5922.10840378214, 6916.751327338277, 7063.312743282037, 6645.4394853366075, 5500.794550321606, 7493.492320906113, 7206.786508904741, 2686.298332703524, 2538.8761292983, 7253.98778369984], [4241.304996916518, 483.6596378334046, 2763.9580150656075, 1405.7652499741057, 258.3758368726019, 6614.609227113464, 2961.514732472338, 9474.777783117728, 2912.5365535711267, 5242.8884354914, 2501.548861500482, 6531.229223937745, 4140.476002883762, 132.56892540437048, 3020.289197641887, 5554.185397774308, 8773.09782632125, 5011.890905582158, 8392.625753242448, 7800.7407071334765, 4421.736562443395, 52.49756244802284, 7333.792465191643, 1840.7462281638009, 7908.087535935016, 3036.262276198375, 3509.2829531181924, 7645.618711034763, 5397.717763289013, 3243.612078360748, 34.14499888319544, 3384.2995707615296, 4853.062855850027, 2223.4821740514067, 7479.5354594110395, 5969.120408179362, 5192.807647536894, 3509.0771162909696, 7334.4495826109105, 4987.315435971069, 6816.016561595986, 442.4714082796233, 65.9273693936524, 9593.436472709476, 2670.0620305702496, 4952.745706389296, 6867.130101433143], [1926.3801797530411, 4684.089278792868, 1544.945305609513, 712.4317947088488, 6354.9413872948935, 2717.619315479798, 6846.354537398023, 3775.3936214538207, 6375.903394134439, 1363.1538350088424, 2277.399819529351, 4091.6667790722695, 3659.9052193584657, 3149.203276820165, 7595.555393770957, 5372.782288919421, 8515.657623246656, 3159.662631217324, 4043.737445094111, 1842.2411676778072, 9713.005101273826, 2832.78160742499, 4589.20341066574, 9043.00917767472], [3498.6444148809305, 2140.852698797143, 4510.872710314036, 2990.179189617128, 7420.541642401762, 1033.9572862948598], [2794.437679786802, 3463.1871053331233, 9732.829396187464, 663.0832249897201, 5276.910560721226, 481.59416166211446, 2090.2478003682513, 4558.692561388009, 8758.39373387397, 4610.715817786542, 9921.398649289273, 1682.6982416319624, 3585.6795224563066, 3977.0601543964967, 9993.300034767055, 8757.889303531827, 1287.4604767598673, 9265.34884519963, 9590.296620414523, 3376.6132678108816, 795.8613040403706, 6807.576250770766, 6498.575499062116, 3521.0998180866904, 818.8610607244495, 1889.8998767199425, 3567.5388991226396, 3904.860163650392, 7927.945627565823, 5684.632085876909, 2665.280318592044, 3200.1780479713084, 4080.5659548739804, 4423.8860644441, 2026.9544154357254, 6542.038761607715, 371.810846991496, 9089.128291277799, 7033.856907920886, 1925.889920294268, 7735.925631486304], [650.8667327357808, 4738.836852826164, 3985.4301749766173, 1955.6572393313954, 3810.217150006002, 8241.6067168621, 2457.8677884976973, 5043.061693161945, 4098.220705621862, 8311.523429129516, 2613.3577094067405, 8951.447431099867, 3413.493711945631, 195.07449236425666, 3526.5261452758646, 5987.082440383985, 7672.683285206186, 8940.181891567034, 8715.378318384124, 1609.9269146079098, 5147.181463101181, 3305.462535094599, 9965.648218377532, 3910.7964252545266, 8068.070848658828, 4992.46105696117, 116.74465555125413, 3636.501190685493, 6298.365303023811, 758.4342724419646, 9850.35171473097, 6154.099626143185, 6627.416733525318, 2147.4459586732773, 4542.271637456006, 6116.269798885344, 1404.5680346185973, 5378.69792918011], [283.30445322594545, 1212.7329453006353, 6176.516523951887, 7361.713020934436, 446.2529292320283, 3573.9634384317155, 2866.7667140384456, 716.9415721666761, 2066.5957334633813, 8494.234070043816, 6193.876480036603], [2136.416496948584, 4757.490297134756, 1761.236114129905, 9672.92860361088, 292.470289758332, 2616.287787938537, 2448.153310489565, 8852.291381698386, 9393.592818697269, 1859.3755772816644, 7576.3934917486795, 2082.9223147752805, 2503.5367105046867, 6532.795825292272, 9756.064172800725], [2016.9598997834726, 9246.468446682007, 7917.631622499911, 7530.075198225538, 1619.9210624035043, 8192.289210321009, 111.78933513454669, 1304.2859282076513, 752.9875736889525, 805.8026634404869, 3551.4066295443845, 5397.733935371496, 4669.6567467481555, 4794.75142820851, 4543.875056844882, 3805.9629250337543, 5742.679148326456, 3813.8720700893437, 5210.151412919032, 5556.602949642819, 2200.424210202666, 5908.92594615778, 13.819841484519202, 1329.454109503373, 3028.833109958248, 8592.293540323464, 9978.59670979421, 3605.121961455566, 5381.409564276148, 1891.7229437227568, 625.9300378157828, 2758.668754886496, 6051.709933922486, 6457.36281514481, 5548.754777623672], [8850.151741072603, 6337.421968969598, 6419.680943286824, 9156.134838807471, 8322.880320938539, 5346.094263229739, 8840.13035584083, 4662.998040082982, 5049.325678804513, 6885.637071688473, 4883.744421558373, 2324.765558938434, 995.0281814899331, 4461.416494281927, 9543.834187148504, 784.6027172885606, 4558.569173648864, 7373.848141952878, 9152.707277929396, 3448.6407116186224, 3753.543292707031, 4293.096821412292], [1409.0526006258365, 816.3081240623837, 2140.41426162899, 728.4924219143152, 2193.525472941873, 4035.7606724635307, 6500.846781261058, 5527.736115595666, 2134.0180018693986, 6779.435167553661, 1806.1545644495725, 9627.301890803697], [2371.0568858922543, 3268.660813251466, 1707.0991863723361, 5378.8673760312895, 4595.50873089922, 2635.8908557704995, 691.8444475043295, 1624.4384043918103, 8928.107824993145, 6825.313895904731, 8182.165500835241, 2451.226122788347, 7782.688704839678, 6441.579872434251, 4321.009439314746, 4899.256098629653, 5519.087620918876, 45.86639299398176, 429.87376466871564, 6270.117082341795, 6415.83724491815, 590.2483422808136, 2744.8282476562367, 3286.420684963404, 9655.583401408132, 5203.85048223821, 8915.078884333285, 2608.1519486714988, 886.3789741564909, 6130.506796586644, 6650.901924046862, 6646.892160204216, 3289.49925972008, 5166.474954280374, 6759.760310020064, 5274.430205929131, 5227.164076346812, 8287.373511433061, 8205.14217850992, 3862.4949439064203, 7981.66493597097, 3621.863491818439, 1773.8539613657788, 7194.120248679593, 6717.104192113617, 9016.56618386249], [4918.488645705508, 4863.9376793380325, 7980.4716752546, 8867.75386799514, 7286.076902807735, 6413.32763495569, 7345.819132709017, 610.4954669263795, 6823.681549442864, 1375.05106487004, 5238.380502512437, 2773.5771144536634, 1491.8279295443392, 7856.576929303261, 6541.511110001304, 9898.82817639193, 2431.5435459289947, 2730.7902667354133, 9195.287603503173, 6925.56268238798, 5431.128027542276, 8702.555149921645, 6465.507768740284, 9314.270576749725, 6272.806736480676, 3446.023537244589, 6842.356648227475, 5788.729554244277, 1502.222414850204, 5144.345936259722, 6576.536519145917, 2388.5817800660634, 9895.843552802167, 8863.44954106686, 8659.39270167813, 6782.724020047004, 6901.026465987045], [9835.349971287455, 1349.9943677780557, 9305.006231475043, 7682.072854084074, 7772.435685418998, 6457.172433005703, 2271.0896412754787, 147.3581960989412, 5040.667292338796, 5347.141489987937, 3007.9371262367195], [6024.724622587527, 1333.55102363379, 7543.244958334469, 9460.475824602792, 5402.777961971936, 8618.077786578586, 7680.609290490088, 5356.651624620611, 3081.6630316517667, 9965.820175569215, 7449.902533219914, 2376.8033440694426, 2121.6403598925017, 5899.797061644942, 8738.967016335799, 6819.82087022954], [3658.3990216338057, 5939.885133721119, 6112.535663798665, 4603.757105062263, 3601.7182918941257, 2699.3894158179332, 7634.713427911456, 1785.935936680989, 6282.120568441831, 5216.58891069557, 5607.715652949593, 5173.8490353923025, 7091.689227700492, 7231.192245003612, 8164.945945372898, 691.0808086432995, 8884.363372959273, 880.702711513005, 2983.6539638181393, 7041.501334247409, 2686.9984210291477, 6039.4806880060305, 4397.578815778263, 4727.811059409236, 8382.722608048367, 9206.150345275291, 172.2170912991472, 2020.4702767795213, 5489.448690729701, 2451.26584431948, 3295.4350676203826, 4629.077813268916, 343.6354616846271, 5913.229158529008, 2178.835131759951, 8464.236722574358, 598.6751867838647, 1890.7273951970649, 9233.763123524577, 3511.4462447810624, 7198.449866811291, 7009.77653163331, 8249.84422453666, 4282.457347563149, 2271.24825809504, 5764.120163554731, 5765.436670299819, 8908.501071223765, 2586.0376485095303], [4178.517530004291, 8230.813420124246, 1482.5779208939982, 9884.823630994786, 7654.976401516819, 7172.9744832796405, 6743.457935859208, 2332.0202265026755, 6512.820966135465, 7899.27033659936, 6446.637651589306, 3660.9711365100516, 6983.0340219305535, 8514.370249450678, 1743.2333221598017, 5103.440073973708, 9266.372786086862, 4118.043957388042, 5646.298272664013, 5981.854812259621, 3200.6662612242185, 6635.177996178426, 9679.83767911182, 3226.414516089032, 9037.63040871817, 1667.244125906292, 437.75555568785876, 8080.445197603589, 7182.504146702597, 8450.080668876279, 5837.320531337393, 375.1630048786392, 6609.658242430057, 4138.324209656617, 4978.355962743171], [6943.097108273823, 8155.800311882496, 881.1561722205652, 6892.581313027855, 8870.412782607324, 8669.932116289347, 570.9050959816841, 3403.556267239408, 6454.311530504761, 1789.7908209345858, 7910.710586936548, 5812.846543860358, 6168.21145124294, 2131.0842431388164, 2770.4029575820955, 1574.8495056694844, 8538.95214350614, 3406.107386087113, 2908.900240552177, 9882.928919376212, 2844.4878840063193, 43.21457208309343, 7278.594953930636, 9356.662142497536, 6209.878587941289, 3990.0985725352966, 414.3501395268456, 8619.011907510358, 6999.1215509988015, 2882.9851019850194], [9844.923038076766, 6980.156846171918, 3950.1442565126367, 3157.4009365459556, 5223.187529515773, 4385.453833112532, 5325.893429872211, 3353.2248195726265, 2442.165605224922, 3655.8385765512303, 3898.449238531656, 8850.04098103363, 6831.015148578976, 4445.821672553541, 9928.380860823137, 9561.952605608369, 1591.1130291936638, 5403.707165706667, 2275.6687548872, 887.1665703941445, 1270.6708733832606, 15.351416031957887, 6885.875136030228, 9550.622085409022, 769.7305357431617, 4632.5188789504755, 3118.15405662019, 7553.524447042849, 4528.6508356550885, 6481.3993346127445, 6479.947453700064, 5346.224605722107, 7272.600816935826, 261.5836192208221, 5155.049534248697, 5501.689301147346, 417.6298514208843, 2176.1185299140107, 6866.720403076896, 2801.874422363495, 6539.364493633207, 2948.3952227572686, 3413.699419210543, 8937.812262772239, 260.2567282196444, 9974.652627956628, 3607.8218449527135, 4313.257989389619, 5126.9798391913355], [6633.663300606726, 1812.9942057781057, 1654.7655510188663, 8405.163469784291, 1953.9035308876119, 8957.383693535636, 1421.2991902099047, 9264.40639576394, 8150.024375652974, 2257.3830199676427, 2479.3344627483484, 4043.056101781555, 9247.05324493969, 7363.206663924256, 8490.180569522778, 2927.295097067805, 3679.2436731106004, 3838.815927824232, 3115.4209839633218, 7612.651962526704, 7076.710446359618, 825.7143449578574, 9864.274122425695, 9647.78655096705, 7548.744154086509, 9815.450355850051, 8653.699152037381, 4050.238822185216, 5272.888444100065, 6951.384129122965, 1394.39534640736, 7755.935683847396, 5317.102211979815], [8829.674867773414, 6689.896932346349, 1968.0933078351115, 4809.007582058182, 6069.87219516547, 9766.476615420386, 8993.904574223372, 281.1877463140244, 5576.660306049759, 7140.548946726968, 2518.194869927194, 2172.7143296254435, 5507.955541433988, 5420.491404996137, 8394.755280403098, 4012.132315372791, 6389.889892691528, 717.5893819573375, 2875.0684389259386, 5280.900234755885, 8161.863197586057, 3926.09778356536, 7022.709269632878, 106.07736204608864, 2617.3249490483054, 8109.0289788950895, 4083.165322330473, 5420.617161522736, 4445.31100910545, 9393.19511825442, 176.7904030369116, 514.69093147267, 7614.2873289591125, 6264.256156371076, 1595.849249955039, 4210.816847220884, 127.47354248535902, 9212.920824942166, 2676.3018953846185, 7651.925841175547, 4176.854241193708, 3254.032717531873, 5064.677632904187], [2933.30773145417, 7167.004460596055, 6730.0751341762925, 1612.3416038398664, 9996.385398599057], [1469.1245592389023, 738.4910375434861, 5091.743233692105, 4943.243843219373, 8276.601429613058, 2099.0155722034933, 1123.1905308985645, 8721.083497458614, 9900.434613544232, 7607.245058601638, 5384.468994284775, 7529.134743235198, 6837.595578988219, 4384.871356847701, 63.287732870004334, 2024.4193945797394, 5173.262923609003, 5685.6159554472, 1043.3138744199034, 6561.322154461737, 5043.419149196029, 1528.205177909735, 8635.632452899306, 6625.361243781218, 1138.9370493081663, 8600.196985866145, 1988.3249787645564, 2698.6573886862807, 3376.856288948763, 9380.474940630262, 3444.5098538813136, 7264.095443784668, 9446.89932278781, 8424.493192525451, 9315.526779885298, 1047.4543557980887, 3662.6853228335076, 3828.4452182545315, 6635.496292334783, 7667.419322235606, 35.21225339409906, 2963.565449291854, 9156.290265259724, 7727.156188255046], [8444.782911920447, 1531.875281624423, 1699.8134908798013, 7098.064080652596, 1705.6887525781183, 4769.810129535693, 4765.399059911866, 3365.3409651977972, 9969.592937121795, 5626.5051907189345, 9397.353074698978, 3239.97430286867, 3201.0073584794072, 2131.5074414166947, 5957.610797969433, 1768.6186313252672, 5616.852203640092], [5673.7710445882185, 1647.625614019551, 5656.936125270759, 1461.1781245051013, 6574.86009082487, 6774.466975453835, 3556.387873542125, 6549.504662488484, 886.9791309380082, 3820.027258607421, 5024.250405254414, 3506.088366609631, 2328.582902932946, 3679.112881703358, 3462.9919828067, 3160.911388035562, 1846.9062209575804, 7117.953023727776, 4143.612558015889, 3572.534316888979, 319.14170051129065, 1991.6701484666844, 4560.568775382851, 8901.408228818616, 6935.299537774818, 8511.84810818133, 3234.869691027137, 1295.0435896601964, 8851.889516538351, 2489.8888199410617, 2150.116130246351, 4658.446390325435, 5811.264860869128, 685.8607919672866, 5378.0726932806465, 9702.618375935705, 9289.55238058894, 5269.520454210251, 7499.026434764086, 6002.394709230661], [5531.687229932249, 5270.626911688324, 6624.91325164783, 9195.735161525663, 9266.277822312304, 9275.612244101923, 8173.831391641886, 1019.8131750228023, 3540.52480573109, 4983.413349807722, 130.21910681093928, 9770.440852859852, 9084.150791955952, 2173.294809269972, 2626.817132323017, 5925.181708485516, 4528.1824472864855, 8068.031788501554, 3141.2705598953207, 3367.1318650759276, 4202.813507746614, 4921.654402545408, 6179.504202375986, 405.8037182681518, 9118.07199473433, 2364.02187704932, 7528.315731917878, 938.6323242878248, 4866.461999667605, 9592.4230672652, 7487.79868696995, 8665.033290573028, 2575.202765522496, 6907.965979702926, 9796.688661165712, 9809.595158621196, 141.61358495260566, 2879.523431694646, 9399.935781123395, 8148.891111247624, 6176.39610921895, 5458.065535590684, 9057.109293696058, 4091.3715908046956, 7455.832236582406, 8438.475825901112], [9744.238368205903, 7257.463958276382, 3501.640602033552, 5097.35039463446, 8356.088347682142, 1013.494789934316, 7760.657819535339, 2812.190929226328, 2095.6075816074826, 1500.6497868172942, 1593.50863029047, 7654.141363404645, 3036.4929462046775, 1264.0074125211331, 7295.376768297045, 4806.278483546197, 7588.593079677283, 862.8315269726494, 9602.080432568271, 8490.755890338718, 6964.467603996281, 846.0767010844494, 3356.979090302684, 8907.430974420711, 2398.102582887749, 4278.797398815162, 830.7948679651822, 2273.3942290608734, 2275.2588065251434, 2776.5976090708787, 8490.43423277904, 7033.653179624773, 7101.244630276114, 3462.954058628571]],),
([[6241.900245829036, 6667.025729021001, 5691.351954033881, 571.7284163476577, 599.5121330777808, 6243.463062193512, 6717.298231363792, 3608.7492690924137, 9032.092398160055, 5926.293767824268, 6210.655170074396, 4474.741994028476, 1861.945257692308, 1779.876008485327, 5869.991094563328, 5423.461312062491, 1370.6862587942037, 6873.167245632268, 7649.546578266097, 2351.8399326106596, 1989.178556111051, 422.20373285440036, 2925.774069473833, 6272.788011818715, 8279.978442600892, 5970.172054492473, 6285.440742792799, 7304.627499347196, 372.4523079479392, 2940.8339544890937, 7317.6400210247875, 5166.330426233502, 8284.813081839371, 4712.766186568946, 7997.385423676035], [6452.611650019052, 6533.207730947289, 8807.075741968045, 9613.017513620158, 7551.372353415147, 3814.9462465572815, 3178.498657329026, 807.6312013168241, 629.477046023933, 5989.092355191663], [1305.6504233275512, 1205.5849470621283, 2131.0955750784424, 6257.637312213648, 8633.528791950788, 736.2226708854236, 5119.414303257056, 8804.172116612383, 2288.600322833193, 6674.881539883841, 5432.169377077389, 9984.06868017292, 7926.301399413941, 2449.424127914216, 1688.0860689625322, 260.6488247313743, 1178.8654972754252, 2073.6854863269373, 5529.394205300341, 7653.727965408834, 569.9328536601145, 1224.9369795814468, 7797.080337878472, 1005.767754018665, 3090.0776894453675, 455.9069614769562, 9044.51867916772, 1718.965140003418, 6583.579031677243, 4791.924601541926, 7018.857860820445, 9808.375188561504, 1320.5685001544575, 329.7136763666042, 6342.892026874494, 8972.682821764105, 4668.29063954748, 6946.344862709311, 9805.303722784838, 2973.069105760632, 6985.874880236632, 9545.021104493411, 9719.80028292283, 7198.598793755461], [5331.89188600143, 3188.443349871333, 221.02133512022948, 880.68828138539, 1515.4027709793838, 7930.966870782095, 9507.713752644831, 4313.160757690817, 3846.72384161552, 1655.681262068367, 55.170275874311116, 2949.6754977555197, 1910.1840751659095, 4244.735303329609, 8121.260273473295, 3860.8176185770503, 4750.489350886882, 1467.6363234444666, 465.8560983548199, 4940.401342901576, 5809.536778997865, 4565.245203215682], [6828.767147722977, 128.93271215892787, 3797.8224655761874, 8079.884381341665], [4517.275715047743, 8940.097122408839, 7281.039946934588, 27.728369323011258, 3740.264596087575, 4874.93591726158, 8043.314070462276, 5166.097047074663, 4925.980878654775, 3648.0727223990084, 3791.9876484136016, 2912.2565199145156, 3834.847575889263, 1354.5777786291524, 9765.026115064547, 7549.4703666134255, 1936.525418831999, 1478.6811488485152, 893.3329941262602, 3586.843418684723, 7367.442903319976, 5813.70155527669, 8396.79082639397, 8247.306407746588, 6074.220118587592, 5634.113567301089], [7096.526417346024, 7299.596512835649, 6326.555025996232, 3505.971650102451, 4088.5960369402806, 6348.481260870844, 1022.4660759645033, 6479.299624221714, 8255.83540280519, 5318.646177823633, 385.5360954127318, 1742.7901571985306, 383.9634977990947], [8312.439822931368, 7693.173653102019, 9684.846018395066, 5436.851517291458, 2240.2570185572104, 8549.76817377781, 2863.1071822119657, 2364.4898333606247, 8387.6366465958, 235.49213883719779, 5635.75381122587, 8824.638572201757, 5855.982086624727, 9390.895322287037, 9729.264148554501, 7581.889326800262, 7539.671214598107, 8212.126365277514, 3414.4707187305257, 2186.9037265717116, 148.32911299373586, 3907.974409916858, 1171.2309102908814, 8222.6799813232, 9643.24040317058, 8560.840012204286, 8605.631358897996], [2080.1073040550423, 2877.2637236850574, 3818.077902160524, 2477.6928693570053, 7555.588606535247, 3270.181723572487, 4332.255274782373, 6344.623935872137, 7847.221150939287, 1112.3530198820374, 6944.858605401434, 8337.745136833113, 5061.397976451156, 9552.075051082322, 203.72691830435886, 1225.1921990053638, 3211.0942488406326, 1276.8268581899101, 7670.342953764469, 4181.706551221689, 1406.5485053574666, 7060.566377790574, 25.700288190759757, 8334.288430677061, 2867.655518166218, 9739.933759812533, 310.29910419946293, 2246.3458997758767, 8825.811097236192, 8480.717272229293, 8484.35331937365, 9453.101358520635, 5368.758902198425, 6711.186412720251, 4527.55608166248, 9086.130657920075, 1931.1440358139143, 5924.407535867492, 5380.415819375357], [3846.753290795024, 1732.6441416861594, 4543.440737272442, 7218.242312741953, 6321.872177360868, 6764.197557825947, 3503.1296065699958, 4159.706453642625, 2760.640834432676, 6725.738873358718, 593.3134928627992, 6645.189779519307, 1452.3664747870412, 6717.461512638625, 9729.597277117091, 3076.719110299966, 135.3391256749814, 7528.0224422840265, 6012.289608040301, 4014.73128472828, 1071.8528463489108, 4668.170320820327, 9114.25103505039, 751.3155545422634, 8509.699032980909, 8679.657328254336, 4057.877122536042, 7402.240832613551, 4542.251198006061, 3308.334311294533, 5502.399907436886, 4604.392185814295, 9896.08110125432, 6017.690628500904, 8830.375455102685, 9694.940638011103, 1270.5221941729205, 3630.751473478894, 6743.2106963398455, 4667.728606843594, 4731.991841183002, 8993.050057035647, 4536.511085240959, 4828.172159143931, 9631.71972231329, 3019.3395883885764, 5681.601206319076, 5189.918716253909, 9457.451025038778], [9858.490575174568, 7707.905607803832, 5021.584175638065, 2126.0930665803635, 1093.0428368047963, 3745.011847594666, 9771.166318207452, 472.61146441024306, 4008.6772252631677, 1585.794170199577, 483.33570777268295, 5227.284291977262, 3565.305570733922, 9644.097132819306, 829.7755761930725, 6055.538965298497, 175.36201751864766, 3413.0217400469296, 2640.2753174918603, 9155.091839148372, 2204.147217534156, 9646.824594662883, 5535.653721601298, 6999.1296089517145, 2052.106730093315, 8765.774235212373, 5618.504221894872, 1823.101083855152, 6450.228448742152, 3709.0840347005037, 2562.8685396231153, 9404.89205337425, 8223.893813893073], [2933.9119028337823, 1670.1502558318027, 6087.785052928502, 5830.496579124935, 6012.667523752366, 8605.549463703592, 8391.896202104264, 6781.779546376485, 8722.263881711979, 5244.490064787881, 7941.369082757103, 9725.010319453018, 5820.878548931412, 6412.693111293454, 8686.079007513366, 4832.8557027198185, 1971.5020676134554, 4713.00315718324, 23.95004735105899, 2043.0266876244518, 1744.4110544238877, 9582.30503057717, 1370.9954690178238, 4895.774712815934, 308.82987894597204, 4401.248882448594, 1374.6357709485146, 4959.382604347441, 3218.244984172339, 1034.0450323702598, 6737.440724743908, 634.1304172158091, 4999.24253043374, 6330.331284021177, 9139.827275144382], [6997.489257897447, 6806.800562474949, 3902.9309997574023, 6376.073892981555, 1670.3644171585763, 7131.487894217919, 1408.3540095032376, 412.2056336025215, 4304.210459722586, 3124.575744335187, 7828.129832271993, 2643.8811253771487, 6873.465900546271, 6509.248773293544, 579.0570266395179, 9394.219664404045, 8578.463028905046, 3835.6538352530943, 6162.595716602937, 9170.955208900608, 2407.4357214948327], [4870.0107594261635, 3324.1339614958356, 5932.348671574118, 7765.827307806859, 2031.094134376461, 6089.677488554667, 1434.5229583013374, 1396.7772537825929, 7054.601057121471, 1148.3122565408987, 7728.834323176571, 4487.6592414211855, 5517.523660019319, 5899.975978067698, 3265.7994047891757, 7871.939795019093, 9946.250158526567, 5665.668416355023, 6987.594052558873, 5279.374685773946, 9511.549579080132, 431.7493942707229, 3461.0964351048756, 309.70060280253506, 8983.523425189924, 2456.575385065778, 1265.8660899152085], [8529.096294439394, 2980.465082017305, 1247.057568565425, 1683.7901051144765, 2346.8054018979224, 5410.236203075452, 9768.449536539629, 754.8137030947732, 4162.952453094405, 6112.1743131963, 273.037880594309, 808.4213368212689, 4615.3391439094175, 8759.276596590496, 8992.405678183211, 3879.2595073552816, 7503.976937076325, 2178.3774847327077, 9626.995412254648, 4762.384453793243, 4304.784074817238, 1051.1728645390829, 4006.2527490710277, 9709.333274524432, 3201.6798740910435, 2478.8484504271014, 3115.7977329178675, 1663.9006122470812, 9723.917944178913, 8904.652104789036, 4893.318186460499, 1308.7180114241014, 6679.899715892782, 5764.6618025963535, 3532.443421003797, 3583.4289228422845, 9154.05602075901, 4110.438471296866, 547.2737136121641, 8607.280965840293, 6844.321723607965, 7456.603075966929, 3281.0807490473303, 2789.154901361526, 782.2666839299308, 4682.115076692754, 8304.025574969566], [7867.432895770139, 7142.481633795158, 616.3828766647327], [3387.3802798770657, 7144.366061237613, 9860.806002618854, 8079.830027999986, 960.6136403709353, 3649.091708134886, 2944.5665577603286, 4517.417094476161, 4018.920033033857, 2443.3697424046786, 5216.456010749324, 8490.246719274373, 5191.955006675276, 7368.537038688761, 1669.5608867539668, 3879.493413167572, 9889.474876929211, 9992.481486612269, 3660.7510158002187, 8138.870105890437, 4698.871535878607, 8170.396330191924, 2996.6723471223313, 3207.835113478479, 7602.8165060169995, 8428.482452334038, 3854.3925110712416, 4292.9644291593695, 3257.118330538692, 3205.1510927519776, 2351.8971372001183, 7927.634015142587, 2271.416178727619, 5279.455156231754, 9528.477679256916], [4809.558214848555, 6512.113001668395, 4126.780341230375, 8132.839211158911, 3910.846617356295, 3156.911078233957, 6491.515503128564, 6847.145249167793, 6321.306375289207], [5132.246799974731, 6370.43772475688, 758.3383190726755, 3822.1912772556598, 8392.762450933264, 6840.7826438867105, 906.171738227003, 3924.4554022145207, 4394.162240587243, 2168.1300970892626, 4967.331263775884, 3161.0163687093864, 5567.720858829881, 7250.935239567056, 3349.9827470371847, 7062.4877637767795, 8205.045407756192, 2845.672970275027, 3632.275199296913, 6278.2813550024985, 3311.7990092854398, 1244.3732947943565, 125.2291572270614, 966.8954156959719, 594.1764921541792, 665.1263367721838, 6373.084192169837, 2661.853212656231, 4270.594558825736, 3354.1377968170336, 4191.810824563139, 1447.4469824976234, 6100.290756172702, 7643.94222186592, 8064.262463824555, 4159.99596569145, 314.409524232685, 9662.847377558683, 1963.453914000497, 3833.110525685618, 1382.4852909355711, 5216.451524604983, 1923.6243302753153, 9366.946960746385, 7010.521276782435, 6438.24964953168, 6613.800664284052], [383.97664429939414, 6189.259103225889, 223.53430583521904, 6482.472343800064, 2428.333587831151, 9818.068366530008, 9781.347438012055], [3898.2961108062773, 9291.534494677917, 7317.398922809986, 6426.207629331639, 6967.6541718465505, 3752.1475543957704, 9733.352111551661, 5361.463573450924, 7189.933607605151, 8777.4997082165, 2824.233126142458, 7816.366398242133, 877.4402752427968, 6056.868857289174, 2182.6819683042677, 1280.1579204947611, 4436.555287965954, 1661.3145376490336, 2092.423589364817, 8260.380550864431, 5966.315646458932, 2432.5698050980773, 2739.185628046621, 7245.886255806842, 268.77157782930425, 1233.0706867884178, 5943.957524802674, 7405.470958601446, 501.9242163945048, 2971.016181534857, 7782.648869979246, 9913.953451407731], [2235.11258828775, 9865.00539197128, 8231.382920563366, 2952.921926617926, 2929.760559635134, 9595.450532333396, 6384.407369365793, 9412.122783013581, 175.63593700402947, 9514.63820403047, 371.6559244036188, 7825.43779507584], [5590.251121718374, 1407.730019930593, 6933.377338234666, 538.4946470584406, 3654.1200805880903, 5562.66912969946, 8950.192777377413, 312.53390952430624, 1975.0088926924968, 8822.979565516376, 6368.251716233585, 3094.0902834724347, 2238.6087134777144], [8225.011588911006, 447.0286611190544, 2531.794580124993, 5786.881077286801, 399.8362563738822, 1165.8075770758226, 2026.1937515817751, 196.0265843025899, 9049.138866114914, 9141.277243142813, 1800.317527008992, 688.9468968954048, 1037.703653911477, 5719.273573098196, 8613.212547189436, 447.6345582866159, 2408.581086134727, 338.52365298329136, 8235.860036451202, 8121.796753653178, 836.9094638861175, 8.520867197108206, 4628.612686002925, 4344.374163287639, 9274.546442753306, 2372.0278182942657, 3812.8030782577302, 3816.980924729987, 9211.587577868697, 6548.961092866181, 7683.6400177831965, 7210.282733624986, 8488.116010841984, 102.69806692702055, 7549.429474892514, 6546.469769481529, 6756.096944305571, 8869.645061932615, 6320.84551678245, 720.6570295438963, 9866.068905769132, 475.1409373336379, 2798.0614694422534, 9503.48700738789, 8161.54971021859, 1975.2144598311195, 3184.9270319596735, 7500.649344847348, 2844.260413115036], [2214.984180049143, 9727.826331483277, 7671.809203158182, 2004.4891504845953, 512.5558446894618, 3765.2938342348407, 831.8376948644524, 4359.633550677039, 3161.4136806221513, 7426.701730205041], [6151.439311123929, 8562.409749844177, 139.99318421840434, 2266.860770807414, 5297.3617285961345, 6076.901805064366, 3547.03069618111, 1096.5089121097703, 6608.441477711436, 8666.842749849327, 1964.6619061874371, 9606.368642264752, 7790.148934891385, 633.3946589981099, 3781.3793526328354, 6340.4956514955, 5472.202059979498, 5763.352374526418, 1576.1085832246936, 5536.915866053031, 2880.5928523811176, 4004.5592639781657, 1666.2604767999255, 6223.937189676776, 8128.506855231704, 5905.0244628740575, 1954.6037073995114, 7090.29168428198, 5371.213723343435, 9349.180160309432, 1526.9429567895588, 556.8638591150853, 6433.413998565571, 2525.8470467800466, 3589.839806422006, 6087.283736251727], [7911.322186291536, 5780.619078872976, 2943.817961220151, 4381.303592508306, 5014.256467510416, 8988.614196928396, 1582.6519734764588, 6647.652615108409, 877.1562024007295, 1358.4933337219384], [1406.4943067285296, 73.1155948257911, 5031.850371822942, 9438.22435420941, 5108.465505806064, 1042.4364006211772, 1314.8948841112551, 3329.40053119417, 1146.2165867620633, 4715.847078578909, 3456.824393156518, 2196.2603568035543, 29.439396941270957, 1270.3641942313304, 4177.467361294353, 1746.6041587714087, 5911.9535732701015, 6454.244236090103, 2688.3784140475386, 5617.285110191332, 5303.427954073207, 4387.293331306137, 611.7548697546293, 8811.91974824338, 7078.516064797247, 7901.196772955747, 1924.5406523846564, 4774.936619560966, 7355.620204940925], [6035.935933113421, 1226.8040806777858, 5523.165617454097, 8836.579142603414, 1113.4671947565266, 8213.4907263991, 7745.084802654282, 6340.957509377881, 415.03468684295774, 6608.493692843055, 7044.121740102962, 8825.803590215197, 4881.442071527774, 3642.575044234495], [6626.512216159988, 308.96301872390785, 8388.25754694902, 5486.470145073442, 997.4133362297155, 4392.157919012072, 8252.447545916273, 8907.78626494242, 3842.258839697337, 3161.5035951132877, 8956.139755168353, 4045.1642497512407, 4844.111745415444, 7848.103760574075, 4494.6730721434515, 6180.269049242508, 7409.033590289328, 985.7402365643653, 7196.726412389427], [269.77648903710906, 1126.2237816718923], [2040.8906107327562, 3413.4874201388643, 489.57760152147813, 3076.601982325039, 9102.021349349618, 1200.7208827667926, 699.6162509403681, 3101.634796437868, 3701.554108779237, 2411.9592533702184, 9068.483763610337, 4673.493274371369, 1056.6528905404548, 6871.406578573134, 7815.186266363301, 899.8258379586932, 7810.1777339325, 1923.2736881495427, 4907.3553254635835, 36.26787738972514, 9500.035076375627, 4385.290183219543, 7381.672654939276, 4931.537531704371, 9805.425209816323], [5022.436273571402, 1197.1797908028402, 2513.282515620119, 7293.5846831339295, 7864.075502303563, 2488.338611262899, 6965.7072214240725, 662.562087608145, 4890.8534220629, 5960.8202659888675, 6913.129571853039, 4416.960377812348, 8846.58033596835, 6414.317693274189, 4127.7024306320955, 6366.8329968171465, 9450.85060725369, 5628.414242086556, 192.2829859747388, 7182.850802625099, 63.242532136027485, 2300.6925952920365, 8846.636183933997, 3146.563889171922, 3754.3555017824315, 5770.426368716938], [5173.830964715877, 9890.226777233238, 1098.9324114713784, 364.69864035620805, 7723.254271184315, 5517.0747971463215, 6972.82355850263, 4377.688324442222, 3927.513417754829, 4505.799939384594, 7355.8915738696105, 1411.590170602457, 4931.86251176953, 986.90822558536, 8508.137950915048, 2684.400565521672, 7897.155849168546, 8674.145789673083, 2086.0891380332114, 7705.480883689803, 4665.449845287386, 6076.212330681365, 9407.328687432935, 5689.684512793414, 1831.0823727388226, 6617.606692308336, 5668.947544401989, 8930.611145243207, 8224.113654367518, 8359.300795112244, 3864.5610824686105, 9390.681712139136, 2815.184988367545], [2602.1776608357204], [3407.007216757638, 5724.919154311412, 9384.166952517773, 9690.602472466697], [8102.976838398982, 8849.784140503656, 7407.679966884767, 9836.701623369934, 1872.432781723563, 7281.574637677118, 8845.592713310316, 6876.737462800879, 7233.376167426852, 9591.734515742108, 7484.535374322941, 6180.868036361612, 28.122053896075805, 4850.750074639563, 2077.221298467284, 8422.360632110873, 5304.079773970775, 5150.322617258653, 7715.594320512252, 8676.906084883474, 7063.087615208, 4508.300896683666, 1870.212325326055, 1855.075140914788, 9334.738195960335, 1656.1473401916626, 9367.672340533432, 8863.981457613274, 6546.8262011327115, 9347.669364392037, 4747.065472443352, 5745.848959644722, 9360.338955845944, 2937.7200808032158], [6482.8595704273275, 8499.749853293006, 8440.713898627073, 8891.227554738834, 3180.022519782436, 7880.759241944946, 6056.006933773436, 5912.350437476278, 699.4588114039491, 886.0079001140298, 1822.0626664815043, 381.420906591744, 2607.676451122073, 3181.804873120423, 8202.497429425099, 6359.467064904772, 1496.8293150201127, 6518.407076371044, 9320.042455571478, 2666.589843222107, 3625.619379089742, 7276.918882277939, 1184.0298425253427, 5821.374205476385, 6630.175663663377, 3266.1551529734134, 6400.107810482856, 9315.153890473555], [1696.949632803242, 6995.182554254953, 4565.512300553068, 1555.3469991121383, 3041.5235799893594, 4512.822786172634, 3333.4924190545357, 1059.10366673576, 7496.936219842324], [671.3629839557877, 2236.177889510651, 5329.515026552306, 2048.8616958059147, 5268.330992320453, 7702.435041792674, 2049.848128237071, 6051.912730570009, 2654.641081175706, 6731.628675509916, 245.1033485342835, 7262.8856488773345, 3833.741123694605, 9584.561119746415, 9459.311341921759, 4189.750168909049, 3206.6744841142604, 6161.937614136377, 1550.3029984999139, 7403.993593415656, 1347.1793632618455, 8322.590251110072, 659.5491192120628, 9343.3284201924], [2952.3815506071505], [9115.411311885711, 6190.606498203099, 4032.1155657850204, 7875.049545423708, 9466.12681849252, 5594.839737431558, 8428.888075075625, 1941.9962664072598, 9032.133764189743, 4804.826796327835, 4821.763408431451, 8570.546357430994, 3087.060817370136, 2488.6336685063193, 917.2654167233518, 237.61057335929036, 3926.491893192462, 9982.873336882416, 5210.955793121945, 9577.59684717213, 562.8793455645009, 9974.932039818228, 4114.927049501123], [9536.842393889692, 1523.764350514798, 4576.664144907182, 5555.333574049817, 556.0702052726873, 5695.790313120072, 2940.1550048338086, 8906.823029982179, 9247.57985609783, 5670.479097671544, 1563.240912825089, 2058.2368149628714, 2586.2473296422704, 8548.765615315135, 6932.512942785251, 4001.355017761662, 8043.0396628980825, 9741.137424824428, 1872.3820437759841, 7653.178445488161, 4468.503690875622, 6444.766160470187]],),
([[9387.34729535443, 7898.461949606736, 6843.664771769185], [8854.224557496666, 3138.5658050816055, 7767.530379809834, 7516.323745513028, 2207.2409217929144, 8693.6916056422, 4885.133223819916, 8144.646738094058, 9472.851132664124, 7362.5846712389975, 5315.360555945713, 1617.4039470690004], [1687.9209124872664, 8464.46411568592, 3447.047038096602, 6532.400295186251], [7446.299482513876, 5930.804673782114, 8777.469690431497, 3199.603818228027, 615.6806451195662, 9000.507773811101, 793.3778314067674, 9665.503543616267, 1423.2311942967624, 9058.320927066101, 1099.8137862184076, 4415.691600581443, 8530.398535354901, 8250.714975402603, 9059.795084829342, 90.4120532143693, 9022.111328994652, 6322.358533615018, 9206.94022358282, 4798.187993893735, 4187.978740159638, 8014.734995401485, 693.8891854382779, 4251.830314994714, 6697.295656397563, 6335.49700736744, 8610.683236059502, 6298.635031818236, 4038.554993329112, 6360.121170960482, 4022.0110051334914, 1122.5234950192687, 6992.0496911377295, 2883.123124720399], [1056.4492709914664, 8567.000947158875, 217.69313002310332, 3254.5002663085174, 4601.802558945174, 4466.4132948941005, 6128.946430118579, 148.94225409799898, 3118.1375747804864, 196.52645396098012, 4504.754960546661, 9199.006855218553, 6614.3828800036, 2571.8878153978885, 8796.432276470714, 7918.001506620834, 9596.031561565336, 3214.753044787861, 9309.630430539835, 7439.472072880434, 9619.018552587135, 4063.006735339747, 6358.964169833173, 3840.2035380176226, 8937.716360911025, 1209.3175096114285, 1721.522884166612, 5216.987384793819, 8684.378443881262, 5495.2611059262845, 2264.1919806259802, 1252.543743534026, 655.3386733986899, 1855.3310449288451, 4847.535649990685, 997.5111777751711, 1053.7363758500662, 8535.863237331658, 8822.043281415563, 3018.8030141675526, 503.60316905774914, 6032.498466876322, 7916.5948041773745, 597.6478813730379], [8684.361358839811, 6833.710635677209, 2301.7133776801625, 275.89397954013384, 5627.0885508326655, 5749.889984495326, 2725.9411491042106, 2263.60838765113, 3220.8714827441454, 2126.1813280018205, 6336.34207671731, 7815.580881958889, 7692.190120063231, 1706.9068872384219, 7089.19633065844, 154.21143066395416, 6379.487447831323, 6113.035840785786, 9292.147103114716, 7285.722660158631, 4056.822238980331, 4410.131230785889, 6277.964120928899, 8029.2274137176, 7759.516664347943, 7600.10262069633, 6539.162345662414], [5216.963504767812, 6022.3717055600055, 875.1699166517468, 2976.028433448088, 4133.081572570095, 3599.4478354607086, 1431.019590353102, 8171.597170603135, 6676.016342458662, 7869.493915359824, 3017.0303643295547, 8547.37163325604, 6113.115846890411, 72.11597385577306, 2408.6468365371115, 7992.691113660823, 3225.521291389316, 5285.023809224858, 9981.08193760831, 4245.283394786782, 9350.710916404942, 156.5062811839235, 3809.4842218626645, 6715.87477975451, 4829.110054128289, 8193.308772328679, 2368.3570505600337, 2988.323558107737, 8440.90610248902], [593.9952608207976, 9015.387427783953, 2400.016721913174, 6206.8118144856235, 3732.352088196729, 1992.9549547278602, 866.736134350522], [6669.381677531302, 27.319788257704758, 2637.01567068781, 3235.943943964311, 8162.7447842874735, 7427.830546891691, 5632.948554742142, 5789.085625226065, 7072.633727802251, 9801.627019837071, 481.0860962500385, 1929.617450695501, 455.0942830517457, 7426.258332777612, 5315.1712596605685, 2377.1485177101213, 9147.659669601951, 7469.859392568566, 2119.6650171808783, 7181.008454540089, 2241.378497924079, 3691.445448003328, 7223.51362443932, 791.8386282872325, 1645.1957081534508, 1079.432157932666, 3581.8213870239433, 1271.6267364206535, 6918.799700879627, 7066.402451269379, 4548.9501257795355, 7771.868819145048], [9581.38150545251, 3410.336533530417, 2856.7662356133615, 2419.0079032541657, 950.0224986377892, 8837.283092999793, 3913.2155959905404, 6636.031805779068, 7592.195244455631, 7420.490147940853, 4471.464810532584, 2152.5663872694968, 9950.003125615844, 5917.471879140231, 5763.089927390933, 7213.237810657768, 337.1997863178189, 1856.5229771467207, 6717.1769095465, 3208.231458475995, 7184.886781951437, 458.4789706683656, 6045.885158102913, 2424.9990349388263, 2896.116810748228, 2319.061652740508, 2047.4513457389999, 6294.492404013903, 3334.9834269859025, 7368.8970490832635, 284.72641721660307, 9420.83255298125, 9859.380369000763], [9169.208331579337, 6500.7756467671825, 4122.966937565739, 1544.64347471575, 9324.722480784405, 8587.01517312793, 3984.021827632204, 8450.161731137936], [9258.381063410341, 3512.2061527605874, 9078.094037081228, 8366.947143769201, 6274.399530708722, 1273.2656720112545, 4407.4473886892565, 3277.961980926288, 6762.275884363325, 2485.552997462922, 7147.186755311224, 6006.1456642302965, 648.4562629752044, 6627.708061728291, 6708.785422640259, 875.7117573180994, 8684.281779960153, 2439.6863224086796, 7798.5461247933945, 9839.935322794892], [4370.801958830066, 612.4579958308252, 6622.693946746825, 3699.7853080311447, 8397.106214715017, 6938.451771935569, 964.9701499567243, 4097.361978551648, 1123.8931687029296, 1755.6273056704908, 293.17328676051966, 6467.777619293823, 989.4719132734375, 4055.8581179604757, 5256.550613502351, 1299.925024671782, 4789.230643713135, 1563.6991704648951, 3267.9045898051118, 7864.694377084369, 1772.628562638382, 9651.531346111839, 2274.1630302924764, 7933.6236919572975, 3121.1596560775, 8866.91589613497, 6246.988735967703, 7121.760563780332, 4865.089575698644, 8281.00498147027, 5085.228034421677], [6404.378481173949, 5131.811344485618, 4610.269533313499, 6136.038498844168, 3243.653004693182, 8675.223981532241, 9075.233149089272, 3285.9284650507925, 5252.767520217068, 9165.91955653066, 692.8358131662837, 2003.3532713768775], [2179.555844128038, 7795.173390996032, 1584.5811576718384, 8026.3344366294705, 7862.970621698384, 7076.0766099803195, 3362.8799147016252, 1096.8494981635213, 2497.3787517671985, 6467.47480827266, 8147.807275391677, 474.7811361711152, 3849.1485728177986, 8819.114225613455, 3643.8263413318837, 7149.719973775268, 319.94128606343986, 351.5817455597814, 3887.537481097733], [6182.269817013097, 9932.80710355981, 4375.52604490935], [5497.83023528442, 7000.943515738341, 9141.649955676245, 3984.347222137875, 5881.395660547033, 432.8745332071515, 1390.0548010976754, 7169.852370963141, 9638.074566266574, 8268.269302387289, 993.340087420359, 8926.312495484106, 9963.77867525507, 86.23903812557066, 6629.0543612085285, 7763.969523740677, 8484.748606467938, 82.25115949979434, 8993.610527478002, 6335.178529611683, 5767.486565260309, 6874.79423820253, 8047.152345465804, 820.8184154530907, 7791.514421602571, 9961.965504789934, 1979.4243726517634, 6485.2608094874095, 4213.721428033255, 6607.888206233299, 9702.017369245692, 9974.535801268215, 4696.642031529939, 8132.563081807331, 7622.293125092784, 1834.6931258898423, 7391.987759206572, 6500.344830172746, 136.48971242386287, 4200.133204789978, 2785.920779496308, 804.8994719309643, 2345.9269659084016, 8357.06549748538], [2766.311825930985, 247.82286534360765, 9210.351083194728, 3753.627957345187, 7962.917152771212, 1751.698129255792, 9212.829728137283, 682.3310004536054, 5741.1142555813885, 9761.752456788918, 7812.1571286188055, 3437.793780763595, 7186.784717752445, 191.24402764638003, 6395.160525892249, 5448.899650841235, 6448.336342731541, 2049.0552692066512, 1934.8055240768304, 4150.412336537698, 3905.3898304258137, 2943.1925104202073, 7517.903523696381, 5241.783668695016, 9328.846774552487, 7128.137571342247, 3454.0132065648754, 784.9234765927349, 7219.1905595332155, 835.6442343664172, 5656.669533993148, 2383.4909026049236, 2681.736245406704, 6966.710606643402], [2063.497842840252, 5822.371347317983, 5703.419199291243, 6524.047902146878, 2296.7642952695332], [1763.4495330058685, 934.5148677695203, 1619.0205544392566, 959.1621826615526, 4280.521969824521, 1369.5693371906193, 3273.1818661012935, 5115.8434116212275, 5985.42152117378, 9527.615090861202, 3354.904782657736, 7101.616336504692, 9762.728037978632, 1269.78383882561, 4875.059489948114, 1497.16737837024, 2422.0980602965283, 5716.250236875847, 6321.505597383554, 1340.667838547893, 8443.00252703888, 3735.8841178907255, 4899.856671866332, 6720.5246060937625, 7750.968585550362, 4238.977841764919, 5788.14965570911, 7274.903802452901, 3595.0484545350714], [9686.865788633631, 8233.772964679154, 660.7508618276447, 6306.683868508095, 8498.953442175642, 8114.077760774463, 1104.754624226918, 311.0692755307476, 2531.60881014545, 8451.28820029444, 3200.6570105366095, 2869.6853746417128, 1238.5022469776386, 231.89892573873271, 7233.737255599893, 8333.686335655733, 3494.76478845981, 6358.858772951813, 1592.5661835891135], [8729.302351090198, 6384.546837461195, 7171.290584657766, 5957.659783638356, 9085.037001227132, 5768.356633124855, 8327.482562249292, 5395.921276883439, 1861.2599624881498, 4765.111906737132, 3378.3810534074432, 9947.647762912382, 6959.705326382867, 3716.9948860458167, 3062.662164010396, 4763.191664464988, 7812.697916882337, 7917.498627199334, 8870.650688899828, 5065.742181053909, 2624.806153972363, 2975.0483110771174, 4364.205465054759, 3188.4425422580866, 8720.977081893758, 1459.87953565746, 4572.8264886204215, 2324.1540757260946, 5840.324208567349, 659.1512944086209, 6387.2382456619625, 1706.1961811177118, 4070.0269992801395, 6180.002343467976, 1707.116403493727, 1552.491504085135, 1627.8271363780805, 710.7568621692617, 2873.2219438669295, 6894.1926098992, 345.15307520545105, 3662.3233518062393], [3211.713546228133, 7896.40777964658, 5300.8078149063485, 6851.224397907975, 5696.065461614853, 5114.791911160674, 2564.1730817028897, 935.5405348126611, 5153.847785482536, 4577.349093295708, 669.4749252740984, 6331.618429957198, 9752.5524618502, 4348.913289388088, 5360.501700968088, 1947.5177649733143, 8717.345541701521, 2764.158876222086, 8439.468669204629, 4053.560412732092, 7445.1623077869335, 2681.809445597795, 227.24520795759483, 5796.36709151562, 1742.0265345346274, 8771.734793785536, 7678.398207518567, 5661.038366465821, 3269.4432986394963, 8668.907656759158, 1676.1950842333351, 5480.716778416091], [936.6238554926199, 4417.071383868515, 6954.953579576183, 5108.719616062134, 7182.39821842807, 893.3269681291046, 9329.321095066078, 4580.047117025584, 8767.112017513396, 5860.985413993845, 8199.847852762732, 1222.4269503900243, 6936.2060001009595, 8505.84929950005, 9178.71060254381, 3564.7845125447475, 5204.125789379878, 746.5779862826249, 3612.5357492902167, 8863.338857356202, 3207.8067128192033, 6411.350131694356], [6971.463246366584, 8656.829488481588, 4716.397759444882, 1871.0559596524602, 1400.7186558055407, 7972.157112200225, 2785.2894228904734, 1230.437360694544, 8007.762276598806, 2879.918281682995, 7129.5575876408775, 1804.8918776007638, 9866.87453607941, 8137.058205998907, 9310.146806768604, 8140.789040813295, 6053.202509221739, 1291.6766981885764, 5042.499167167728, 6617.2901410157865, 5184.765799310381, 8442.95630985222, 5949.8689231126455, 5292.165955504016, 2849.4937899043603, 4906.261299495095, 966.3171571506301, 8454.562916281682, 7489.005406107537, 3920.8761213857024, 8798.627174192734, 2997.865499624235, 1711.347679688806, 4027.298254353501, 2665.297130518587, 4207.206327946828, 2414.3945246142307, 4847.717343608347, 1070.5167501685087, 1704.8851914439756, 8171.119375036566, 3723.606800733539, 142.2932030262325, 9127.383634043443, 7118.072266257432], [339.52074175386815, 6222.346927985851, 7378.5920594735, 6483.541708564634, 362.64537232048144, 7138.700983753719, 2240.2956832486807, 2513.294144642031, 5297.54986666968, 7336.701719593464, 8533.030287569201, 5619.9926655639065, 6020.148727640418, 9972.565222705252, 2138.7215246647575], [9334.18747439277, 2305.316444035084, 1496.1818919744728, 2631.664575282966, 1560.644447319053, 8017.229344306232, 6842.526322961845, 2122.802524963182, 1925.0851490635769, 2446.861091468323, 9263.77307980419, 1483.1424881051537, 5287.2562923501, 9035.859888041217, 8023.375373059005, 1509.7451515868177, 5603.488799339734, 6952.921883793975, 2520.825724984489, 4774.46952604118, 3150.932309635256, 9437.021148222304, 5408.13867691267, 9230.165088724967, 7807.315410083818, 5405.386628850249, 1262.2511910367418, 697.3644405937873, 698.5354770211683, 1350.5821712909406, 5683.304986640956, 9411.453890399667, 7917.412705783028, 8454.459445136355, 7206.496995251545, 4184.077101861108, 6457.784133948724, 7829.579341560543, 9782.181419945555, 3072.675129166752], [8633.9400207655, 9053.67914423705, 9081.024953660442, 2853.802978909221, 7098.6377709172775, 6442.001286495734, 5352.453679308428, 6033.86163930825, 5295.367200513826, 2677.067926657917, 7715.416997612096, 3788.755738261852, 9546.352816383147, 2191.2027293058445, 5191.987053619508, 7361.459537716426, 7500.956977764495, 370.7365519990435, 2962.269562256985, 661.6552510251239, 1609.4504154422318, 3988.587061330161, 2398.369174193682, 1708.5280616204134, 2284.260481124326, 1232.8130458617104, 7282.24314102055, 6095.510118039444, 8316.544395798997, 4280.1892659343575, 8407.096352421157, 3773.58249506053, 5866.478536674913, 1059.4976355232154, 4198.072679613927, 4234.325659104923, 5473.390130450675, 2776.1105772896135, 1674.2483340926185, 9810.681965224623, 8123.877611121171, 2880.6804254366057, 611.8050413036724], [2993.2135939667937, 6516.371756368651, 3243.954240688501, 1707.4419839480238, 6117.910093882588, 2728.1465292580765, 6634.197180792388, 4372.280063161229, 9906.755136519236, 5628.301297423993, 4325.8026028396025, 5809.6193319701715, 4537.666496279663, 5195.153570340511, 1449.7797935032452, 5993.770275452789], [4543.424826252607, 8348.648362364054, 804.5165023634681, 1729.8028197600313, 1522.5403036030073, 3062.049396246639, 5614.200983933174, 5394.364801574996, 6082.364911270015, 7322.660128770181, 105.67616713120897, 3780.024680250308, 2043.1384239018603, 1911.4871928662747, 6600.417413983897, 5725.222210135139, 3159.2736284331845, 7911.867143170885, 6910.232736464181, 5082.363943676784, 398.9266438123795, 6600.002726524873, 9718.957727352494, 373.35598181310934, 1769.8440978937858, 1423.7660839786836, 6709.319258322703, 8863.059005113284, 8818.99294307518, 6869.765112779014, 2299.7066087856288], [5904.333165248659, 3737.2540517941134, 3234.8010931379345], [8741.274694147212, 8142.366348649237, 7178.080069844503], [9806.546398158205, 4111.328970709272, 1297.6979885312844, 6671.312196519337, 919.8636669576166, 3674.7691763561584, 9558.015583014578, 179.15421355732875, 6633.7786907057525, 5145.041583744364, 9650.732970966015, 2262.287535355311, 4078.381954659066, 9352.614142347535, 979.6245727881725, 1961.1517367115562, 671.592570513081, 4430.339128069768, 2945.127026543707, 6308.61484052264, 639.7007227096851, 5329.702461652472, 4258.603814362332, 2386.0945919632636, 7582.27847122242, 531.7809464507307, 619.6474357889825, 9850.258845427983, 3376.8188352510665, 1443.5852603295095, 5965.538654258386], [4064.611605775853], [8699.678950267016, 2638.8791938900504, 9864.32576829143, 9545.45934752491], [8967.277929781716, 158.487360223436, 2706.512848604518, 7632.722968650326, 9493.606876017158, 722.3053012762348, 6964.558269251513, 3890.6533336777193, 7324.280695126543, 2114.987955696953, 6493.602831666873, 7861.736242257294, 4577.950198510346, 1258.5279257186965, 8413.280602583125, 9809.221728733319, 9999.85897125298, 2687.9513051743697, 4310.701528942745, 8308.434209993517, 4632.868040691614, 1557.6045146848705, 2024.6772936559332, 4584.237100857744, 1162.3893821891406, 9006.014395722459, 8980.135554758763, 9645.94750029713, 5807.972419276929, 9641.914592343957, 6119.365848988399, 8925.074625708212], [3961.038699627797, 7941.386171416613, 8497.2079090036, 950.7156317300869, 1002.2655576124373], [4770.970512462653, 5751.274214977394, 7374.385304920768, 6583.555487016266, 1354.1896365063787], [9019.53955445245, 6116.076908287135, 8146.602392879152, 72.65131447226403, 1516.6254211993412, 8039.461012121285, 5038.821843934121, 8391.976024847978, 456.503039225048, 2670.191490719758, 3515.763578768253, 1092.421155822273, 6164.620640238656, 545.5694373578046, 4279.737736096799, 495.9879677990009, 4625.2520594959715], [1439.336923533866, 1302.3118323967053, 167.48167583331974, 6295.610633433874, 6721.42085515711, 6293.501666300752, 443.10543686137737, 5790.080920213072, 8246.409203016145, 1090.7269189639735, 3732.488593915935, 2911.804873618257, 9941.921987305477, 3792.731907876411, 4534.224944059517, 1472.278357602025, 5275.2635084540525, 859.5210260889396, 9597.694442577425, 4899.437560961888, 3899.188565008336, 291.1982655390333, 7689.693286997743, 8893.026162327125, 4327.722294090344, 5068.436180974043, 5900.3279123267785, 7465.30143721741, 7167.568894492006, 4383.153760951697, 6514.683704147853, 3810.559736196162, 2522.446986633412, 8028.80881494865, 8593.830034608267, 7739.336291343238, 2193.260515869928, 4073.821932851648, 7770.88670948187, 7663.446075181924, 5361.707839001343, 5038.736484800433, 6054.88382711972, 8169.620671795285, 9367.954744778806, 2939.9653782874825, 9453.300074929695, 2797.1126437886173], [1566.286547919663, 8936.617547502176, 9231.73742747379, 5926.868366854842, 9103.397262654895, 8368.856835536099, 7101.186219987764, 7810.498315791292, 7975.613043686254, 6534.1573199897975, 3221.878461550536, 8047.027853088147, 4308.07219595293], [4698.9398220605735, 1381.493549044479, 2511.354007653047, 1792.9062150709663, 3433.3984663747965, 6310.645731404196, 9282.773595893277, 1436.72903578846, 4255.664980727647, 5442.018955197633, 9070.360569097147, 997.3894557292784, 6111.892651874234, 9341.385608723269, 478.81757295908267, 1351.2651210460015, 1523.9132106506759, 7642.007210066544, 8023.924071903322], [6975.216490755457, 545.726967916269, 7829.418625853173, 285.96897390028687, 1788.3485134839195]],)
]
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))) | def f_gold ( m ) : for i in range ( 0 , len ( m ) ) : sm = 0 for j in range ( [MASK] , len ( m [ i ] ) ) : sm = sm + m [ i ] [ j ] if ( sm != 1 ) : return False return Trueange ( 0 , len ( m ) ) :
sm = 0
for j in range ( 0 , len ( m [ i ] ) ) :
sm = sm + m [ i ] [ j ]
if ( sm != 1 ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([[ 0, 0, 1 ], [ 0.5, 0, 0.5 ], [ 1, 0, 0 ]],),
([[ 0, 0, 1 ], [ 0.5, 0, 0.51 ], [ 1, 0, 0 ]],),
([[ 0, 0, 0.9 ], [ 1, 0, 0.1 ], [ 0, 1, 0 ]],),
([[]],),
([[ 0, 1 ], [ 0.9, 0.1], [ 0, 1]],),
([[ 1 ]],),
([[1800.5208165864472, 5129.668497755772, 4091.578454432755, 9520.788540775387, 9012.789443327169, 5479.787317916788, 4846.101760095075, 9310.645104102381, 6862.485564868333, 6537.037513320974, 7943.016882755804], [8081.404685413337, 2775.350842660207, 3624.18060172129, 320.5505410412923, 896.5298358859519, 9778.851990348234, 8093.842945978867, 5513.194168934705, 3238.213662532161, 2068.183825530009, 8922.404213665432, 2564.415908565606, 9541.992473376376, 3500.695185589028, 7425.292941600525, 1035.1769706476443, 1993.3236514377372, 7516.6428866994665, 7036.757321520528, 4521.722941224576, 6046.954992856951, 1480.947630193744, 2468.314968942801, 6721.875264461492, 729.3668691453537, 7013.1702771055125, 620.7860776027774, 4073.8164568995426, 6637.935131989998, 4970.880129282128, 8491.291538095455, 6017.257595728452, 8758.321951108288, 7450.774705441449, 2430.104778991052, 7653.421788466134, 9867.846002930755, 9025.832543077806, 3130.4709292949738], [4092.6187809701687, 3682.191052666517, 6210.3251142981435, 7559.705041866003, 8083.3992753238235, 7027.888848387021, 322.813354455147, 6396.660665360345], [6712.595190644637, 3351.7854488023168, 3596.9007070939974, 7383.906373292954, 6925.055360334225, 6564.096130017967, 9810.727474966703, 1812.3875023392943, 7582.083184537618, 6792.011378435494, 6737.106729773401, 5165.155358877282, 7694.499267616087, 3564.5292718018964, 8125.369501443796, 7515.428339325206, 3373.5371602639975, 8145.31715886053, 6297.6183870619725, 489.2402023933884, 9562.673985208492, 6553.732669130852, 7196.924911915597, 9239.272829887721, 5855.3831715786055, 9570.600140348652, 6684.3117497126605, 9977.065074407292, 9210.767097725591, 3456.1818868411087], [4472.26489764256, 7298.311171623871, 6184.798212074516, 5645.069795561799, 9113.123076453292, 5537.618956455394, 2142.794697171854, 8370.190271064876, 5972.2448507765475, 6299.8293468991715, 7388.052824286836, 735.079089195314, 4216.330577355761, 928.9766117855969, 1935.1190718709943, 5606.352487792576, 9764.404560908582, 5301.250390178857, 2250.0545430370357, 8159.5544835139635, 1327.0903534461743, 7505.6753057440255, 9918.714694238013, 8827.139931812451, 1859.1883736005789, 8018.161213209266, 7984.370920859778, 288.30827861459517, 1461.0614788611754, 2690.173572057434, 8427.499467578928, 4724.15901701013, 4457.387382560547, 9993.904502656509], [2842.9663139830186, 8957.4584498927, 8686.31672019927, 4832.99654565389], [1477.392902127036, 7189.591229360169, 8822.61208105902, 4851.411807703794, 9600.384550545641, 5836.4581179869165, 2366.7307632417446, 9442.85367113618, 9848.096373489492, 3805.2945900367695, 2741.21016804169, 7787.421240650287, 5163.029236960128, 3839.164193518556, 8999.926058466983, 5787.032859796697, 7669.921381103829, 7893.275228211627, 1051.182564195985, 7017.888839448166, 5215.123486606644, 5208.568127672256, 1134.2054935790945, 7573.233029924398, 6060.282198006302, 1395.7596136070006, 3653.7960603925126, 244.94506756705502, 3594.7042035479526, 6272.774300983842, 4043.3735550683537, 2274.103544548338, 4022.0181987353485, 9109.556771757481, 4286.57480001852, 6721.662297331347, 6105.99828625709, 8758.359235513371, 1658.875171187041, 2024.5696201552444], [5912.554579767912, 5341.080476025451, 4305.59603125092, 9800.436262778925, 8097.160534980595, 493.9680676037761, 4047.191664109233, 6070.216899309564, 5697.682730828276, 9448.806800500452, 7698.114392101278, 7020.216498152797, 7091.797827878821, 3273.5516687760546, 3685.5162670409804, 2210.2161977720316, 7182.207804931318, 3265.217158812098, 1798.8408452362914, 9318.266496779846, 2859.486203159565, 4314.215039310549, 8313.026936365693], [8911.686558511605, 5660.199086800985, 6475.525180381277, 4040.3172648744144, 5708.611042449874, 9524.099373256367, 7030.627120796817, 783.4145757917787, 9713.798324426925, 5284.149579386235, 986.5900188717991, 2567.146044707662, 2034.3874533234496, 7853.582414512236, 5610.18808118777, 9372.679297083534, 1227.8195252860025, 8558.328099907549, 5800.797131024546, 1345.9810037159548, 8059.092655056248, 1007.7145561634637, 1867.8280914974055, 8073.000957658564]],),
([[9784.847472945596, 1467.4849690692215, 326.01056399299114, 3577.1820356491303, 3413.7335834614014, 5621.398199278954, 75.70726246875714, 3072.65108747655, 7278.353400799695, 4703.166022097605, 9423.746532838595, 9651.338090892916, 7908.363875282913, 2112.03821823538, 1975.7721197648048, 1044.0925741602891, 8579.267990348524, 3350.769942053501, 5299.788699272214, 7928.710248719408, 8396.62857032498, 3836.1908586465343, 8012.249410750618, 7828.91833852811, 1917.7798073113083, 5120.386576342888, 3678.786128839827, 4600.911873999521, 9497.461077450645, 3000.203085004004, 7858.544769795873, 8325.214884003173, 2451.061402910233, 647.2264467569499, 7282.170138249182, 2285.3064693716783, 5922.10840378214, 6916.751327338277, 7063.312743282037, 6645.4394853366075, 5500.794550321606, 7493.492320906113, 7206.786508904741, 2686.298332703524, 2538.8761292983, 7253.98778369984], [4241.304996916518, 483.6596378334046, 2763.9580150656075, 1405.7652499741057, 258.3758368726019, 6614.609227113464, 2961.514732472338, 9474.777783117728, 2912.5365535711267, 5242.8884354914, 2501.548861500482, 6531.229223937745, 4140.476002883762, 132.56892540437048, 3020.289197641887, 5554.185397774308, 8773.09782632125, 5011.890905582158, 8392.625753242448, 7800.7407071334765, 4421.736562443395, 52.49756244802284, 7333.792465191643, 1840.7462281638009, 7908.087535935016, 3036.262276198375, 3509.2829531181924, 7645.618711034763, 5397.717763289013, 3243.612078360748, 34.14499888319544, 3384.2995707615296, 4853.062855850027, 2223.4821740514067, 7479.5354594110395, 5969.120408179362, 5192.807647536894, 3509.0771162909696, 7334.4495826109105, 4987.315435971069, 6816.016561595986, 442.4714082796233, 65.9273693936524, 9593.436472709476, 2670.0620305702496, 4952.745706389296, 6867.130101433143], [1926.3801797530411, 4684.089278792868, 1544.945305609513, 712.4317947088488, 6354.9413872948935, 2717.619315479798, 6846.354537398023, 3775.3936214538207, 6375.903394134439, 1363.1538350088424, 2277.399819529351, 4091.6667790722695, 3659.9052193584657, 3149.203276820165, 7595.555393770957, 5372.782288919421, 8515.657623246656, 3159.662631217324, 4043.737445094111, 1842.2411676778072, 9713.005101273826, 2832.78160742499, 4589.20341066574, 9043.00917767472], [3498.6444148809305, 2140.852698797143, 4510.872710314036, 2990.179189617128, 7420.541642401762, 1033.9572862948598], [2794.437679786802, 3463.1871053331233, 9732.829396187464, 663.0832249897201, 5276.910560721226, 481.59416166211446, 2090.2478003682513, 4558.692561388009, 8758.39373387397, 4610.715817786542, 9921.398649289273, 1682.6982416319624, 3585.6795224563066, 3977.0601543964967, 9993.300034767055, 8757.889303531827, 1287.4604767598673, 9265.34884519963, 9590.296620414523, 3376.6132678108816, 795.8613040403706, 6807.576250770766, 6498.575499062116, 3521.0998180866904, 818.8610607244495, 1889.8998767199425, 3567.5388991226396, 3904.860163650392, 7927.945627565823, 5684.632085876909, 2665.280318592044, 3200.1780479713084, 4080.5659548739804, 4423.8860644441, 2026.9544154357254, 6542.038761607715, 371.810846991496, 9089.128291277799, 7033.856907920886, 1925.889920294268, 7735.925631486304], [650.8667327357808, 4738.836852826164, 3985.4301749766173, 1955.6572393313954, 3810.217150006002, 8241.6067168621, 2457.8677884976973, 5043.061693161945, 4098.220705621862, 8311.523429129516, 2613.3577094067405, 8951.447431099867, 3413.493711945631, 195.07449236425666, 3526.5261452758646, 5987.082440383985, 7672.683285206186, 8940.181891567034, 8715.378318384124, 1609.9269146079098, 5147.181463101181, 3305.462535094599, 9965.648218377532, 3910.7964252545266, 8068.070848658828, 4992.46105696117, 116.74465555125413, 3636.501190685493, 6298.365303023811, 758.4342724419646, 9850.35171473097, 6154.099626143185, 6627.416733525318, 2147.4459586732773, 4542.271637456006, 6116.269798885344, 1404.5680346185973, 5378.69792918011], [283.30445322594545, 1212.7329453006353, 6176.516523951887, 7361.713020934436, 446.2529292320283, 3573.9634384317155, 2866.7667140384456, 716.9415721666761, 2066.5957334633813, 8494.234070043816, 6193.876480036603], [2136.416496948584, 4757.490297134756, 1761.236114129905, 9672.92860361088, 292.470289758332, 2616.287787938537, 2448.153310489565, 8852.291381698386, 9393.592818697269, 1859.3755772816644, 7576.3934917486795, 2082.9223147752805, 2503.5367105046867, 6532.795825292272, 9756.064172800725], [2016.9598997834726, 9246.468446682007, 7917.631622499911, 7530.075198225538, 1619.9210624035043, 8192.289210321009, 111.78933513454669, 1304.2859282076513, 752.9875736889525, 805.8026634404869, 3551.4066295443845, 5397.733935371496, 4669.6567467481555, 4794.75142820851, 4543.875056844882, 3805.9629250337543, 5742.679148326456, 3813.8720700893437, 5210.151412919032, 5556.602949642819, 2200.424210202666, 5908.92594615778, 13.819841484519202, 1329.454109503373, 3028.833109958248, 8592.293540323464, 9978.59670979421, 3605.121961455566, 5381.409564276148, 1891.7229437227568, 625.9300378157828, 2758.668754886496, 6051.709933922486, 6457.36281514481, 5548.754777623672], [8850.151741072603, 6337.421968969598, 6419.680943286824, 9156.134838807471, 8322.880320938539, 5346.094263229739, 8840.13035584083, 4662.998040082982, 5049.325678804513, 6885.637071688473, 4883.744421558373, 2324.765558938434, 995.0281814899331, 4461.416494281927, 9543.834187148504, 784.6027172885606, 4558.569173648864, 7373.848141952878, 9152.707277929396, 3448.6407116186224, 3753.543292707031, 4293.096821412292], [1409.0526006258365, 816.3081240623837, 2140.41426162899, 728.4924219143152, 2193.525472941873, 4035.7606724635307, 6500.846781261058, 5527.736115595666, 2134.0180018693986, 6779.435167553661, 1806.1545644495725, 9627.301890803697], [2371.0568858922543, 3268.660813251466, 1707.0991863723361, 5378.8673760312895, 4595.50873089922, 2635.8908557704995, 691.8444475043295, 1624.4384043918103, 8928.107824993145, 6825.313895904731, 8182.165500835241, 2451.226122788347, 7782.688704839678, 6441.579872434251, 4321.009439314746, 4899.256098629653, 5519.087620918876, 45.86639299398176, 429.87376466871564, 6270.117082341795, 6415.83724491815, 590.2483422808136, 2744.8282476562367, 3286.420684963404, 9655.583401408132, 5203.85048223821, 8915.078884333285, 2608.1519486714988, 886.3789741564909, 6130.506796586644, 6650.901924046862, 6646.892160204216, 3289.49925972008, 5166.474954280374, 6759.760310020064, 5274.430205929131, 5227.164076346812, 8287.373511433061, 8205.14217850992, 3862.4949439064203, 7981.66493597097, 3621.863491818439, 1773.8539613657788, 7194.120248679593, 6717.104192113617, 9016.56618386249], [4918.488645705508, 4863.9376793380325, 7980.4716752546, 8867.75386799514, 7286.076902807735, 6413.32763495569, 7345.819132709017, 610.4954669263795, 6823.681549442864, 1375.05106487004, 5238.380502512437, 2773.5771144536634, 1491.8279295443392, 7856.576929303261, 6541.511110001304, 9898.82817639193, 2431.5435459289947, 2730.7902667354133, 9195.287603503173, 6925.56268238798, 5431.128027542276, 8702.555149921645, 6465.507768740284, 9314.270576749725, 6272.806736480676, 3446.023537244589, 6842.356648227475, 5788.729554244277, 1502.222414850204, 5144.345936259722, 6576.536519145917, 2388.5817800660634, 9895.843552802167, 8863.44954106686, 8659.39270167813, 6782.724020047004, 6901.026465987045], [9835.349971287455, 1349.9943677780557, 9305.006231475043, 7682.072854084074, 7772.435685418998, 6457.172433005703, 2271.0896412754787, 147.3581960989412, 5040.667292338796, 5347.141489987937, 3007.9371262367195], [6024.724622587527, 1333.55102363379, 7543.244958334469, 9460.475824602792, 5402.777961971936, 8618.077786578586, 7680.609290490088, 5356.651624620611, 3081.6630316517667, 9965.820175569215, 7449.902533219914, 2376.8033440694426, 2121.6403598925017, 5899.797061644942, 8738.967016335799, 6819.82087022954], [3658.3990216338057, 5939.885133721119, 6112.535663798665, 4603.757105062263, 3601.7182918941257, 2699.3894158179332, 7634.713427911456, 1785.935936680989, 6282.120568441831, 5216.58891069557, 5607.715652949593, 5173.8490353923025, 7091.689227700492, 7231.192245003612, 8164.945945372898, 691.0808086432995, 8884.363372959273, 880.702711513005, 2983.6539638181393, 7041.501334247409, 2686.9984210291477, 6039.4806880060305, 4397.578815778263, 4727.811059409236, 8382.722608048367, 9206.150345275291, 172.2170912991472, 2020.4702767795213, 5489.448690729701, 2451.26584431948, 3295.4350676203826, 4629.077813268916, 343.6354616846271, 5913.229158529008, 2178.835131759951, 8464.236722574358, 598.6751867838647, 1890.7273951970649, 9233.763123524577, 3511.4462447810624, 7198.449866811291, 7009.77653163331, 8249.84422453666, 4282.457347563149, 2271.24825809504, 5764.120163554731, 5765.436670299819, 8908.501071223765, 2586.0376485095303], [4178.517530004291, 8230.813420124246, 1482.5779208939982, 9884.823630994786, 7654.976401516819, 7172.9744832796405, 6743.457935859208, 2332.0202265026755, 6512.820966135465, 7899.27033659936, 6446.637651589306, 3660.9711365100516, 6983.0340219305535, 8514.370249450678, 1743.2333221598017, 5103.440073973708, 9266.372786086862, 4118.043957388042, 5646.298272664013, 5981.854812259621, 3200.6662612242185, 6635.177996178426, 9679.83767911182, 3226.414516089032, 9037.63040871817, 1667.244125906292, 437.75555568785876, 8080.445197603589, 7182.504146702597, 8450.080668876279, 5837.320531337393, 375.1630048786392, 6609.658242430057, 4138.324209656617, 4978.355962743171], [6943.097108273823, 8155.800311882496, 881.1561722205652, 6892.581313027855, 8870.412782607324, 8669.932116289347, 570.9050959816841, 3403.556267239408, 6454.311530504761, 1789.7908209345858, 7910.710586936548, 5812.846543860358, 6168.21145124294, 2131.0842431388164, 2770.4029575820955, 1574.8495056694844, 8538.95214350614, 3406.107386087113, 2908.900240552177, 9882.928919376212, 2844.4878840063193, 43.21457208309343, 7278.594953930636, 9356.662142497536, 6209.878587941289, 3990.0985725352966, 414.3501395268456, 8619.011907510358, 6999.1215509988015, 2882.9851019850194], [9844.923038076766, 6980.156846171918, 3950.1442565126367, 3157.4009365459556, 5223.187529515773, 4385.453833112532, 5325.893429872211, 3353.2248195726265, 2442.165605224922, 3655.8385765512303, 3898.449238531656, 8850.04098103363, 6831.015148578976, 4445.821672553541, 9928.380860823137, 9561.952605608369, 1591.1130291936638, 5403.707165706667, 2275.6687548872, 887.1665703941445, 1270.6708733832606, 15.351416031957887, 6885.875136030228, 9550.622085409022, 769.7305357431617, 4632.5188789504755, 3118.15405662019, 7553.524447042849, 4528.6508356550885, 6481.3993346127445, 6479.947453700064, 5346.224605722107, 7272.600816935826, 261.5836192208221, 5155.049534248697, 5501.689301147346, 417.6298514208843, 2176.1185299140107, 6866.720403076896, 2801.874422363495, 6539.364493633207, 2948.3952227572686, 3413.699419210543, 8937.812262772239, 260.2567282196444, 9974.652627956628, 3607.8218449527135, 4313.257989389619, 5126.9798391913355], [6633.663300606726, 1812.9942057781057, 1654.7655510188663, 8405.163469784291, 1953.9035308876119, 8957.383693535636, 1421.2991902099047, 9264.40639576394, 8150.024375652974, 2257.3830199676427, 2479.3344627483484, 4043.056101781555, 9247.05324493969, 7363.206663924256, 8490.180569522778, 2927.295097067805, 3679.2436731106004, 3838.815927824232, 3115.4209839633218, 7612.651962526704, 7076.710446359618, 825.7143449578574, 9864.274122425695, 9647.78655096705, 7548.744154086509, 9815.450355850051, 8653.699152037381, 4050.238822185216, 5272.888444100065, 6951.384129122965, 1394.39534640736, 7755.935683847396, 5317.102211979815], [8829.674867773414, 6689.896932346349, 1968.0933078351115, 4809.007582058182, 6069.87219516547, 9766.476615420386, 8993.904574223372, 281.1877463140244, 5576.660306049759, 7140.548946726968, 2518.194869927194, 2172.7143296254435, 5507.955541433988, 5420.491404996137, 8394.755280403098, 4012.132315372791, 6389.889892691528, 717.5893819573375, 2875.0684389259386, 5280.900234755885, 8161.863197586057, 3926.09778356536, 7022.709269632878, 106.07736204608864, 2617.3249490483054, 8109.0289788950895, 4083.165322330473, 5420.617161522736, 4445.31100910545, 9393.19511825442, 176.7904030369116, 514.69093147267, 7614.2873289591125, 6264.256156371076, 1595.849249955039, 4210.816847220884, 127.47354248535902, 9212.920824942166, 2676.3018953846185, 7651.925841175547, 4176.854241193708, 3254.032717531873, 5064.677632904187], [2933.30773145417, 7167.004460596055, 6730.0751341762925, 1612.3416038398664, 9996.385398599057], [1469.1245592389023, 738.4910375434861, 5091.743233692105, 4943.243843219373, 8276.601429613058, 2099.0155722034933, 1123.1905308985645, 8721.083497458614, 9900.434613544232, 7607.245058601638, 5384.468994284775, 7529.134743235198, 6837.595578988219, 4384.871356847701, 63.287732870004334, 2024.4193945797394, 5173.262923609003, 5685.6159554472, 1043.3138744199034, 6561.322154461737, 5043.419149196029, 1528.205177909735, 8635.632452899306, 6625.361243781218, 1138.9370493081663, 8600.196985866145, 1988.3249787645564, 2698.6573886862807, 3376.856288948763, 9380.474940630262, 3444.5098538813136, 7264.095443784668, 9446.89932278781, 8424.493192525451, 9315.526779885298, 1047.4543557980887, 3662.6853228335076, 3828.4452182545315, 6635.496292334783, 7667.419322235606, 35.21225339409906, 2963.565449291854, 9156.290265259724, 7727.156188255046], [8444.782911920447, 1531.875281624423, 1699.8134908798013, 7098.064080652596, 1705.6887525781183, 4769.810129535693, 4765.399059911866, 3365.3409651977972, 9969.592937121795, 5626.5051907189345, 9397.353074698978, 3239.97430286867, 3201.0073584794072, 2131.5074414166947, 5957.610797969433, 1768.6186313252672, 5616.852203640092], [5673.7710445882185, 1647.625614019551, 5656.936125270759, 1461.1781245051013, 6574.86009082487, 6774.466975453835, 3556.387873542125, 6549.504662488484, 886.9791309380082, 3820.027258607421, 5024.250405254414, 3506.088366609631, 2328.582902932946, 3679.112881703358, 3462.9919828067, 3160.911388035562, 1846.9062209575804, 7117.953023727776, 4143.612558015889, 3572.534316888979, 319.14170051129065, 1991.6701484666844, 4560.568775382851, 8901.408228818616, 6935.299537774818, 8511.84810818133, 3234.869691027137, 1295.0435896601964, 8851.889516538351, 2489.8888199410617, 2150.116130246351, 4658.446390325435, 5811.264860869128, 685.8607919672866, 5378.0726932806465, 9702.618375935705, 9289.55238058894, 5269.520454210251, 7499.026434764086, 6002.394709230661], [5531.687229932249, 5270.626911688324, 6624.91325164783, 9195.735161525663, 9266.277822312304, 9275.612244101923, 8173.831391641886, 1019.8131750228023, 3540.52480573109, 4983.413349807722, 130.21910681093928, 9770.440852859852, 9084.150791955952, 2173.294809269972, 2626.817132323017, 5925.181708485516, 4528.1824472864855, 8068.031788501554, 3141.2705598953207, 3367.1318650759276, 4202.813507746614, 4921.654402545408, 6179.504202375986, 405.8037182681518, 9118.07199473433, 2364.02187704932, 7528.315731917878, 938.6323242878248, 4866.461999667605, 9592.4230672652, 7487.79868696995, 8665.033290573028, 2575.202765522496, 6907.965979702926, 9796.688661165712, 9809.595158621196, 141.61358495260566, 2879.523431694646, 9399.935781123395, 8148.891111247624, 6176.39610921895, 5458.065535590684, 9057.109293696058, 4091.3715908046956, 7455.832236582406, 8438.475825901112], [9744.238368205903, 7257.463958276382, 3501.640602033552, 5097.35039463446, 8356.088347682142, 1013.494789934316, 7760.657819535339, 2812.190929226328, 2095.6075816074826, 1500.6497868172942, 1593.50863029047, 7654.141363404645, 3036.4929462046775, 1264.0074125211331, 7295.376768297045, 4806.278483546197, 7588.593079677283, 862.8315269726494, 9602.080432568271, 8490.755890338718, 6964.467603996281, 846.0767010844494, 3356.979090302684, 8907.430974420711, 2398.102582887749, 4278.797398815162, 830.7948679651822, 2273.3942290608734, 2275.2588065251434, 2776.5976090708787, 8490.43423277904, 7033.653179624773, 7101.244630276114, 3462.954058628571]],),
([[6241.900245829036, 6667.025729021001, 5691.351954033881, 571.7284163476577, 599.5121330777808, 6243.463062193512, 6717.298231363792, 3608.7492690924137, 9032.092398160055, 5926.293767824268, 6210.655170074396, 4474.741994028476, 1861.945257692308, 1779.876008485327, 5869.991094563328, 5423.461312062491, 1370.6862587942037, 6873.167245632268, 7649.546578266097, 2351.8399326106596, 1989.178556111051, 422.20373285440036, 2925.774069473833, 6272.788011818715, 8279.978442600892, 5970.172054492473, 6285.440742792799, 7304.627499347196, 372.4523079479392, 2940.8339544890937, 7317.6400210247875, 5166.330426233502, 8284.813081839371, 4712.766186568946, 7997.385423676035], [6452.611650019052, 6533.207730947289, 8807.075741968045, 9613.017513620158, 7551.372353415147, 3814.9462465572815, 3178.498657329026, 807.6312013168241, 629.477046023933, 5989.092355191663], [1305.6504233275512, 1205.5849470621283, 2131.0955750784424, 6257.637312213648, 8633.528791950788, 736.2226708854236, 5119.414303257056, 8804.172116612383, 2288.600322833193, 6674.881539883841, 5432.169377077389, 9984.06868017292, 7926.301399413941, 2449.424127914216, 1688.0860689625322, 260.6488247313743, 1178.8654972754252, 2073.6854863269373, 5529.394205300341, 7653.727965408834, 569.9328536601145, 1224.9369795814468, 7797.080337878472, 1005.767754018665, 3090.0776894453675, 455.9069614769562, 9044.51867916772, 1718.965140003418, 6583.579031677243, 4791.924601541926, 7018.857860820445, 9808.375188561504, 1320.5685001544575, 329.7136763666042, 6342.892026874494, 8972.682821764105, 4668.29063954748, 6946.344862709311, 9805.303722784838, 2973.069105760632, 6985.874880236632, 9545.021104493411, 9719.80028292283, 7198.598793755461], [5331.89188600143, 3188.443349871333, 221.02133512022948, 880.68828138539, 1515.4027709793838, 7930.966870782095, 9507.713752644831, 4313.160757690817, 3846.72384161552, 1655.681262068367, 55.170275874311116, 2949.6754977555197, 1910.1840751659095, 4244.735303329609, 8121.260273473295, 3860.8176185770503, 4750.489350886882, 1467.6363234444666, 465.8560983548199, 4940.401342901576, 5809.536778997865, 4565.245203215682], [6828.767147722977, 128.93271215892787, 3797.8224655761874, 8079.884381341665], [4517.275715047743, 8940.097122408839, 7281.039946934588, 27.728369323011258, 3740.264596087575, 4874.93591726158, 8043.314070462276, 5166.097047074663, 4925.980878654775, 3648.0727223990084, 3791.9876484136016, 2912.2565199145156, 3834.847575889263, 1354.5777786291524, 9765.026115064547, 7549.4703666134255, 1936.525418831999, 1478.6811488485152, 893.3329941262602, 3586.843418684723, 7367.442903319976, 5813.70155527669, 8396.79082639397, 8247.306407746588, 6074.220118587592, 5634.113567301089], [7096.526417346024, 7299.596512835649, 6326.555025996232, 3505.971650102451, 4088.5960369402806, 6348.481260870844, 1022.4660759645033, 6479.299624221714, 8255.83540280519, 5318.646177823633, 385.5360954127318, 1742.7901571985306, 383.9634977990947], [8312.439822931368, 7693.173653102019, 9684.846018395066, 5436.851517291458, 2240.2570185572104, 8549.76817377781, 2863.1071822119657, 2364.4898333606247, 8387.6366465958, 235.49213883719779, 5635.75381122587, 8824.638572201757, 5855.982086624727, 9390.895322287037, 9729.264148554501, 7581.889326800262, 7539.671214598107, 8212.126365277514, 3414.4707187305257, 2186.9037265717116, 148.32911299373586, 3907.974409916858, 1171.2309102908814, 8222.6799813232, 9643.24040317058, 8560.840012204286, 8605.631358897996], [2080.1073040550423, 2877.2637236850574, 3818.077902160524, 2477.6928693570053, 7555.588606535247, 3270.181723572487, 4332.255274782373, 6344.623935872137, 7847.221150939287, 1112.3530198820374, 6944.858605401434, 8337.745136833113, 5061.397976451156, 9552.075051082322, 203.72691830435886, 1225.1921990053638, 3211.0942488406326, 1276.8268581899101, 7670.342953764469, 4181.706551221689, 1406.5485053574666, 7060.566377790574, 25.700288190759757, 8334.288430677061, 2867.655518166218, 9739.933759812533, 310.29910419946293, 2246.3458997758767, 8825.811097236192, 8480.717272229293, 8484.35331937365, 9453.101358520635, 5368.758902198425, 6711.186412720251, 4527.55608166248, 9086.130657920075, 1931.1440358139143, 5924.407535867492, 5380.415819375357], [3846.753290795024, 1732.6441416861594, 4543.440737272442, 7218.242312741953, 6321.872177360868, 6764.197557825947, 3503.1296065699958, 4159.706453642625, 2760.640834432676, 6725.738873358718, 593.3134928627992, 6645.189779519307, 1452.3664747870412, 6717.461512638625, 9729.597277117091, 3076.719110299966, 135.3391256749814, 7528.0224422840265, 6012.289608040301, 4014.73128472828, 1071.8528463489108, 4668.170320820327, 9114.25103505039, 751.3155545422634, 8509.699032980909, 8679.657328254336, 4057.877122536042, 7402.240832613551, 4542.251198006061, 3308.334311294533, 5502.399907436886, 4604.392185814295, 9896.08110125432, 6017.690628500904, 8830.375455102685, 9694.940638011103, 1270.5221941729205, 3630.751473478894, 6743.2106963398455, 4667.728606843594, 4731.991841183002, 8993.050057035647, 4536.511085240959, 4828.172159143931, 9631.71972231329, 3019.3395883885764, 5681.601206319076, 5189.918716253909, 9457.451025038778], [9858.490575174568, 7707.905607803832, 5021.584175638065, 2126.0930665803635, 1093.0428368047963, 3745.011847594666, 9771.166318207452, 472.61146441024306, 4008.6772252631677, 1585.794170199577, 483.33570777268295, 5227.284291977262, 3565.305570733922, 9644.097132819306, 829.7755761930725, 6055.538965298497, 175.36201751864766, 3413.0217400469296, 2640.2753174918603, 9155.091839148372, 2204.147217534156, 9646.824594662883, 5535.653721601298, 6999.1296089517145, 2052.106730093315, 8765.774235212373, 5618.504221894872, 1823.101083855152, 6450.228448742152, 3709.0840347005037, 2562.8685396231153, 9404.89205337425, 8223.893813893073], [2933.9119028337823, 1670.1502558318027, 6087.785052928502, 5830.496579124935, 6012.667523752366, 8605.549463703592, 8391.896202104264, 6781.779546376485, 8722.263881711979, 5244.490064787881, 7941.369082757103, 9725.010319453018, 5820.878548931412, 6412.693111293454, 8686.079007513366, 4832.8557027198185, 1971.5020676134554, 4713.00315718324, 23.95004735105899, 2043.0266876244518, 1744.4110544238877, 9582.30503057717, 1370.9954690178238, 4895.774712815934, 308.82987894597204, 4401.248882448594, 1374.6357709485146, 4959.382604347441, 3218.244984172339, 1034.0450323702598, 6737.440724743908, 634.1304172158091, 4999.24253043374, 6330.331284021177, 9139.827275144382], [6997.489257897447, 6806.800562474949, 3902.9309997574023, 6376.073892981555, 1670.3644171585763, 7131.487894217919, 1408.3540095032376, 412.2056336025215, 4304.210459722586, 3124.575744335187, 7828.129832271993, 2643.8811253771487, 6873.465900546271, 6509.248773293544, 579.0570266395179, 9394.219664404045, 8578.463028905046, 3835.6538352530943, 6162.595716602937, 9170.955208900608, 2407.4357214948327], [4870.0107594261635, 3324.1339614958356, 5932.348671574118, 7765.827307806859, 2031.094134376461, 6089.677488554667, 1434.5229583013374, 1396.7772537825929, 7054.601057121471, 1148.3122565408987, 7728.834323176571, 4487.6592414211855, 5517.523660019319, 5899.975978067698, 3265.7994047891757, 7871.939795019093, 9946.250158526567, 5665.668416355023, 6987.594052558873, 5279.374685773946, 9511.549579080132, 431.7493942707229, 3461.0964351048756, 309.70060280253506, 8983.523425189924, 2456.575385065778, 1265.8660899152085], [8529.096294439394, 2980.465082017305, 1247.057568565425, 1683.7901051144765, 2346.8054018979224, 5410.236203075452, 9768.449536539629, 754.8137030947732, 4162.952453094405, 6112.1743131963, 273.037880594309, 808.4213368212689, 4615.3391439094175, 8759.276596590496, 8992.405678183211, 3879.2595073552816, 7503.976937076325, 2178.3774847327077, 9626.995412254648, 4762.384453793243, 4304.784074817238, 1051.1728645390829, 4006.2527490710277, 9709.333274524432, 3201.6798740910435, 2478.8484504271014, 3115.7977329178675, 1663.9006122470812, 9723.917944178913, 8904.652104789036, 4893.318186460499, 1308.7180114241014, 6679.899715892782, 5764.6618025963535, 3532.443421003797, 3583.4289228422845, 9154.05602075901, 4110.438471296866, 547.2737136121641, 8607.280965840293, 6844.321723607965, 7456.603075966929, 3281.0807490473303, 2789.154901361526, 782.2666839299308, 4682.115076692754, 8304.025574969566], [7867.432895770139, 7142.481633795158, 616.3828766647327], [3387.3802798770657, 7144.366061237613, 9860.806002618854, 8079.830027999986, 960.6136403709353, 3649.091708134886, 2944.5665577603286, 4517.417094476161, 4018.920033033857, 2443.3697424046786, 5216.456010749324, 8490.246719274373, 5191.955006675276, 7368.537038688761, 1669.5608867539668, 3879.493413167572, 9889.474876929211, 9992.481486612269, 3660.7510158002187, 8138.870105890437, 4698.871535878607, 8170.396330191924, 2996.6723471223313, 3207.835113478479, 7602.8165060169995, 8428.482452334038, 3854.3925110712416, 4292.9644291593695, 3257.118330538692, 3205.1510927519776, 2351.8971372001183, 7927.634015142587, 2271.416178727619, 5279.455156231754, 9528.477679256916], [4809.558214848555, 6512.113001668395, 4126.780341230375, 8132.839211158911, 3910.846617356295, 3156.911078233957, 6491.515503128564, 6847.145249167793, 6321.306375289207], [5132.246799974731, 6370.43772475688, 758.3383190726755, 3822.1912772556598, 8392.762450933264, 6840.7826438867105, 906.171738227003, 3924.4554022145207, 4394.162240587243, 2168.1300970892626, 4967.331263775884, 3161.0163687093864, 5567.720858829881, 7250.935239567056, 3349.9827470371847, 7062.4877637767795, 8205.045407756192, 2845.672970275027, 3632.275199296913, 6278.2813550024985, 3311.7990092854398, 1244.3732947943565, 125.2291572270614, 966.8954156959719, 594.1764921541792, 665.1263367721838, 6373.084192169837, 2661.853212656231, 4270.594558825736, 3354.1377968170336, 4191.810824563139, 1447.4469824976234, 6100.290756172702, 7643.94222186592, 8064.262463824555, 4159.99596569145, 314.409524232685, 9662.847377558683, 1963.453914000497, 3833.110525685618, 1382.4852909355711, 5216.451524604983, 1923.6243302753153, 9366.946960746385, 7010.521276782435, 6438.24964953168, 6613.800664284052], [383.97664429939414, 6189.259103225889, 223.53430583521904, 6482.472343800064, 2428.333587831151, 9818.068366530008, 9781.347438012055], [3898.2961108062773, 9291.534494677917, 7317.398922809986, 6426.207629331639, 6967.6541718465505, 3752.1475543957704, 9733.352111551661, 5361.463573450924, 7189.933607605151, 8777.4997082165, 2824.233126142458, 7816.366398242133, 877.4402752427968, 6056.868857289174, 2182.6819683042677, 1280.1579204947611, 4436.555287965954, 1661.3145376490336, 2092.423589364817, 8260.380550864431, 5966.315646458932, 2432.5698050980773, 2739.185628046621, 7245.886255806842, 268.77157782930425, 1233.0706867884178, 5943.957524802674, 7405.470958601446, 501.9242163945048, 2971.016181534857, 7782.648869979246, 9913.953451407731], [2235.11258828775, 9865.00539197128, 8231.382920563366, 2952.921926617926, 2929.760559635134, 9595.450532333396, 6384.407369365793, 9412.122783013581, 175.63593700402947, 9514.63820403047, 371.6559244036188, 7825.43779507584], [5590.251121718374, 1407.730019930593, 6933.377338234666, 538.4946470584406, 3654.1200805880903, 5562.66912969946, 8950.192777377413, 312.53390952430624, 1975.0088926924968, 8822.979565516376, 6368.251716233585, 3094.0902834724347, 2238.6087134777144], [8225.011588911006, 447.0286611190544, 2531.794580124993, 5786.881077286801, 399.8362563738822, 1165.8075770758226, 2026.1937515817751, 196.0265843025899, 9049.138866114914, 9141.277243142813, 1800.317527008992, 688.9468968954048, 1037.703653911477, 5719.273573098196, 8613.212547189436, 447.6345582866159, 2408.581086134727, 338.52365298329136, 8235.860036451202, 8121.796753653178, 836.9094638861175, 8.520867197108206, 4628.612686002925, 4344.374163287639, 9274.546442753306, 2372.0278182942657, 3812.8030782577302, 3816.980924729987, 9211.587577868697, 6548.961092866181, 7683.6400177831965, 7210.282733624986, 8488.116010841984, 102.69806692702055, 7549.429474892514, 6546.469769481529, 6756.096944305571, 8869.645061932615, 6320.84551678245, 720.6570295438963, 9866.068905769132, 475.1409373336379, 2798.0614694422534, 9503.48700738789, 8161.54971021859, 1975.2144598311195, 3184.9270319596735, 7500.649344847348, 2844.260413115036], [2214.984180049143, 9727.826331483277, 7671.809203158182, 2004.4891504845953, 512.5558446894618, 3765.2938342348407, 831.8376948644524, 4359.633550677039, 3161.4136806221513, 7426.701730205041], [6151.439311123929, 8562.409749844177, 139.99318421840434, 2266.860770807414, 5297.3617285961345, 6076.901805064366, 3547.03069618111, 1096.5089121097703, 6608.441477711436, 8666.842749849327, 1964.6619061874371, 9606.368642264752, 7790.148934891385, 633.3946589981099, 3781.3793526328354, 6340.4956514955, 5472.202059979498, 5763.352374526418, 1576.1085832246936, 5536.915866053031, 2880.5928523811176, 4004.5592639781657, 1666.2604767999255, 6223.937189676776, 8128.506855231704, 5905.0244628740575, 1954.6037073995114, 7090.29168428198, 5371.213723343435, 9349.180160309432, 1526.9429567895588, 556.8638591150853, 6433.413998565571, 2525.8470467800466, 3589.839806422006, 6087.283736251727], [7911.322186291536, 5780.619078872976, 2943.817961220151, 4381.303592508306, 5014.256467510416, 8988.614196928396, 1582.6519734764588, 6647.652615108409, 877.1562024007295, 1358.4933337219384], [1406.4943067285296, 73.1155948257911, 5031.850371822942, 9438.22435420941, 5108.465505806064, 1042.4364006211772, 1314.8948841112551, 3329.40053119417, 1146.2165867620633, 4715.847078578909, 3456.824393156518, 2196.2603568035543, 29.439396941270957, 1270.3641942313304, 4177.467361294353, 1746.6041587714087, 5911.9535732701015, 6454.244236090103, 2688.3784140475386, 5617.285110191332, 5303.427954073207, 4387.293331306137, 611.7548697546293, 8811.91974824338, 7078.516064797247, 7901.196772955747, 1924.5406523846564, 4774.936619560966, 7355.620204940925], [6035.935933113421, 1226.8040806777858, 5523.165617454097, 8836.579142603414, 1113.4671947565266, 8213.4907263991, 7745.084802654282, 6340.957509377881, 415.03468684295774, 6608.493692843055, 7044.121740102962, 8825.803590215197, 4881.442071527774, 3642.575044234495], [6626.512216159988, 308.96301872390785, 8388.25754694902, 5486.470145073442, 997.4133362297155, 4392.157919012072, 8252.447545916273, 8907.78626494242, 3842.258839697337, 3161.5035951132877, 8956.139755168353, 4045.1642497512407, 4844.111745415444, 7848.103760574075, 4494.6730721434515, 6180.269049242508, 7409.033590289328, 985.7402365643653, 7196.726412389427], [269.77648903710906, 1126.2237816718923], [2040.8906107327562, 3413.4874201388643, 489.57760152147813, 3076.601982325039, 9102.021349349618, 1200.7208827667926, 699.6162509403681, 3101.634796437868, 3701.554108779237, 2411.9592533702184, 9068.483763610337, 4673.493274371369, 1056.6528905404548, 6871.406578573134, 7815.186266363301, 899.8258379586932, 7810.1777339325, 1923.2736881495427, 4907.3553254635835, 36.26787738972514, 9500.035076375627, 4385.290183219543, 7381.672654939276, 4931.537531704371, 9805.425209816323], [5022.436273571402, 1197.1797908028402, 2513.282515620119, 7293.5846831339295, 7864.075502303563, 2488.338611262899, 6965.7072214240725, 662.562087608145, 4890.8534220629, 5960.8202659888675, 6913.129571853039, 4416.960377812348, 8846.58033596835, 6414.317693274189, 4127.7024306320955, 6366.8329968171465, 9450.85060725369, 5628.414242086556, 192.2829859747388, 7182.850802625099, 63.242532136027485, 2300.6925952920365, 8846.636183933997, 3146.563889171922, 3754.3555017824315, 5770.426368716938], [5173.830964715877, 9890.226777233238, 1098.9324114713784, 364.69864035620805, 7723.254271184315, 5517.0747971463215, 6972.82355850263, 4377.688324442222, 3927.513417754829, 4505.799939384594, 7355.8915738696105, 1411.590170602457, 4931.86251176953, 986.90822558536, 8508.137950915048, 2684.400565521672, 7897.155849168546, 8674.145789673083, 2086.0891380332114, 7705.480883689803, 4665.449845287386, 6076.212330681365, 9407.328687432935, 5689.684512793414, 1831.0823727388226, 6617.606692308336, 5668.947544401989, 8930.611145243207, 8224.113654367518, 8359.300795112244, 3864.5610824686105, 9390.681712139136, 2815.184988367545], [2602.1776608357204], [3407.007216757638, 5724.919154311412, 9384.166952517773, 9690.602472466697], [8102.976838398982, 8849.784140503656, 7407.679966884767, 9836.701623369934, 1872.432781723563, 7281.574637677118, 8845.592713310316, 6876.737462800879, 7233.376167426852, 9591.734515742108, 7484.535374322941, 6180.868036361612, 28.122053896075805, 4850.750074639563, 2077.221298467284, 8422.360632110873, 5304.079773970775, 5150.322617258653, 7715.594320512252, 8676.906084883474, 7063.087615208, 4508.300896683666, 1870.212325326055, 1855.075140914788, 9334.738195960335, 1656.1473401916626, 9367.672340533432, 8863.981457613274, 6546.8262011327115, 9347.669364392037, 4747.065472443352, 5745.848959644722, 9360.338955845944, 2937.7200808032158], [6482.8595704273275, 8499.749853293006, 8440.713898627073, 8891.227554738834, 3180.022519782436, 7880.759241944946, 6056.006933773436, 5912.350437476278, 699.4588114039491, 886.0079001140298, 1822.0626664815043, 381.420906591744, 2607.676451122073, 3181.804873120423, 8202.497429425099, 6359.467064904772, 1496.8293150201127, 6518.407076371044, 9320.042455571478, 2666.589843222107, 3625.619379089742, 7276.918882277939, 1184.0298425253427, 5821.374205476385, 6630.175663663377, 3266.1551529734134, 6400.107810482856, 9315.153890473555], [1696.949632803242, 6995.182554254953, 4565.512300553068, 1555.3469991121383, 3041.5235799893594, 4512.822786172634, 3333.4924190545357, 1059.10366673576, 7496.936219842324], [671.3629839557877, 2236.177889510651, 5329.515026552306, 2048.8616958059147, 5268.330992320453, 7702.435041792674, 2049.848128237071, 6051.912730570009, 2654.641081175706, 6731.628675509916, 245.1033485342835, 7262.8856488773345, 3833.741123694605, 9584.561119746415, 9459.311341921759, 4189.750168909049, 3206.6744841142604, 6161.937614136377, 1550.3029984999139, 7403.993593415656, 1347.1793632618455, 8322.590251110072, 659.5491192120628, 9343.3284201924], [2952.3815506071505], [9115.411311885711, 6190.606498203099, 4032.1155657850204, 7875.049545423708, 9466.12681849252, 5594.839737431558, 8428.888075075625, 1941.9962664072598, 9032.133764189743, 4804.826796327835, 4821.763408431451, 8570.546357430994, 3087.060817370136, 2488.6336685063193, 917.2654167233518, 237.61057335929036, 3926.491893192462, 9982.873336882416, 5210.955793121945, 9577.59684717213, 562.8793455645009, 9974.932039818228, 4114.927049501123], [9536.842393889692, 1523.764350514798, 4576.664144907182, 5555.333574049817, 556.0702052726873, 5695.790313120072, 2940.1550048338086, 8906.823029982179, 9247.57985609783, 5670.479097671544, 1563.240912825089, 2058.2368149628714, 2586.2473296422704, 8548.765615315135, 6932.512942785251, 4001.355017761662, 8043.0396628980825, 9741.137424824428, 1872.3820437759841, 7653.178445488161, 4468.503690875622, 6444.766160470187]],),
([[9387.34729535443, 7898.461949606736, 6843.664771769185], [8854.224557496666, 3138.5658050816055, 7767.530379809834, 7516.323745513028, 2207.2409217929144, 8693.6916056422, 4885.133223819916, 8144.646738094058, 9472.851132664124, 7362.5846712389975, 5315.360555945713, 1617.4039470690004], [1687.9209124872664, 8464.46411568592, 3447.047038096602, 6532.400295186251], [7446.299482513876, 5930.804673782114, 8777.469690431497, 3199.603818228027, 615.6806451195662, 9000.507773811101, 793.3778314067674, 9665.503543616267, 1423.2311942967624, 9058.320927066101, 1099.8137862184076, 4415.691600581443, 8530.398535354901, 8250.714975402603, 9059.795084829342, 90.4120532143693, 9022.111328994652, 6322.358533615018, 9206.94022358282, 4798.187993893735, 4187.978740159638, 8014.734995401485, 693.8891854382779, 4251.830314994714, 6697.295656397563, 6335.49700736744, 8610.683236059502, 6298.635031818236, 4038.554993329112, 6360.121170960482, 4022.0110051334914, 1122.5234950192687, 6992.0496911377295, 2883.123124720399], [1056.4492709914664, 8567.000947158875, 217.69313002310332, 3254.5002663085174, 4601.802558945174, 4466.4132948941005, 6128.946430118579, 148.94225409799898, 3118.1375747804864, 196.52645396098012, 4504.754960546661, 9199.006855218553, 6614.3828800036, 2571.8878153978885, 8796.432276470714, 7918.001506620834, 9596.031561565336, 3214.753044787861, 9309.630430539835, 7439.472072880434, 9619.018552587135, 4063.006735339747, 6358.964169833173, 3840.2035380176226, 8937.716360911025, 1209.3175096114285, 1721.522884166612, 5216.987384793819, 8684.378443881262, 5495.2611059262845, 2264.1919806259802, 1252.543743534026, 655.3386733986899, 1855.3310449288451, 4847.535649990685, 997.5111777751711, 1053.7363758500662, 8535.863237331658, 8822.043281415563, 3018.8030141675526, 503.60316905774914, 6032.498466876322, 7916.5948041773745, 597.6478813730379], [8684.361358839811, 6833.710635677209, 2301.7133776801625, 275.89397954013384, 5627.0885508326655, 5749.889984495326, 2725.9411491042106, 2263.60838765113, 3220.8714827441454, 2126.1813280018205, 6336.34207671731, 7815.580881958889, 7692.190120063231, 1706.9068872384219, 7089.19633065844, 154.21143066395416, 6379.487447831323, 6113.035840785786, 9292.147103114716, 7285.722660158631, 4056.822238980331, 4410.131230785889, 6277.964120928899, 8029.2274137176, 7759.516664347943, 7600.10262069633, 6539.162345662414], [5216.963504767812, 6022.3717055600055, 875.1699166517468, 2976.028433448088, 4133.081572570095, 3599.4478354607086, 1431.019590353102, 8171.597170603135, 6676.016342458662, 7869.493915359824, 3017.0303643295547, 8547.37163325604, 6113.115846890411, 72.11597385577306, 2408.6468365371115, 7992.691113660823, 3225.521291389316, 5285.023809224858, 9981.08193760831, 4245.283394786782, 9350.710916404942, 156.5062811839235, 3809.4842218626645, 6715.87477975451, 4829.110054128289, 8193.308772328679, 2368.3570505600337, 2988.323558107737, 8440.90610248902], [593.9952608207976, 9015.387427783953, 2400.016721913174, 6206.8118144856235, 3732.352088196729, 1992.9549547278602, 866.736134350522], [6669.381677531302, 27.319788257704758, 2637.01567068781, 3235.943943964311, 8162.7447842874735, 7427.830546891691, 5632.948554742142, 5789.085625226065, 7072.633727802251, 9801.627019837071, 481.0860962500385, 1929.617450695501, 455.0942830517457, 7426.258332777612, 5315.1712596605685, 2377.1485177101213, 9147.659669601951, 7469.859392568566, 2119.6650171808783, 7181.008454540089, 2241.378497924079, 3691.445448003328, 7223.51362443932, 791.8386282872325, 1645.1957081534508, 1079.432157932666, 3581.8213870239433, 1271.6267364206535, 6918.799700879627, 7066.402451269379, 4548.9501257795355, 7771.868819145048], [9581.38150545251, 3410.336533530417, 2856.7662356133615, 2419.0079032541657, 950.0224986377892, 8837.283092999793, 3913.2155959905404, 6636.031805779068, 7592.195244455631, 7420.490147940853, 4471.464810532584, 2152.5663872694968, 9950.003125615844, 5917.471879140231, 5763.089927390933, 7213.237810657768, 337.1997863178189, 1856.5229771467207, 6717.1769095465, 3208.231458475995, 7184.886781951437, 458.4789706683656, 6045.885158102913, 2424.9990349388263, 2896.116810748228, 2319.061652740508, 2047.4513457389999, 6294.492404013903, 3334.9834269859025, 7368.8970490832635, 284.72641721660307, 9420.83255298125, 9859.380369000763], [9169.208331579337, 6500.7756467671825, 4122.966937565739, 1544.64347471575, 9324.722480784405, 8587.01517312793, 3984.021827632204, 8450.161731137936], [9258.381063410341, 3512.2061527605874, 9078.094037081228, 8366.947143769201, 6274.399530708722, 1273.2656720112545, 4407.4473886892565, 3277.961980926288, 6762.275884363325, 2485.552997462922, 7147.186755311224, 6006.1456642302965, 648.4562629752044, 6627.708061728291, 6708.785422640259, 875.7117573180994, 8684.281779960153, 2439.6863224086796, 7798.5461247933945, 9839.935322794892], [4370.801958830066, 612.4579958308252, 6622.693946746825, 3699.7853080311447, 8397.106214715017, 6938.451771935569, 964.9701499567243, 4097.361978551648, 1123.8931687029296, 1755.6273056704908, 293.17328676051966, 6467.777619293823, 989.4719132734375, 4055.8581179604757, 5256.550613502351, 1299.925024671782, 4789.230643713135, 1563.6991704648951, 3267.9045898051118, 7864.694377084369, 1772.628562638382, 9651.531346111839, 2274.1630302924764, 7933.6236919572975, 3121.1596560775, 8866.91589613497, 6246.988735967703, 7121.760563780332, 4865.089575698644, 8281.00498147027, 5085.228034421677], [6404.378481173949, 5131.811344485618, 4610.269533313499, 6136.038498844168, 3243.653004693182, 8675.223981532241, 9075.233149089272, 3285.9284650507925, 5252.767520217068, 9165.91955653066, 692.8358131662837, 2003.3532713768775], [2179.555844128038, 7795.173390996032, 1584.5811576718384, 8026.3344366294705, 7862.970621698384, 7076.0766099803195, 3362.8799147016252, 1096.8494981635213, 2497.3787517671985, 6467.47480827266, 8147.807275391677, 474.7811361711152, 3849.1485728177986, 8819.114225613455, 3643.8263413318837, 7149.719973775268, 319.94128606343986, 351.5817455597814, 3887.537481097733], [6182.269817013097, 9932.80710355981, 4375.52604490935], [5497.83023528442, 7000.943515738341, 9141.649955676245, 3984.347222137875, 5881.395660547033, 432.8745332071515, 1390.0548010976754, 7169.852370963141, 9638.074566266574, 8268.269302387289, 993.340087420359, 8926.312495484106, 9963.77867525507, 86.23903812557066, 6629.0543612085285, 7763.969523740677, 8484.748606467938, 82.25115949979434, 8993.610527478002, 6335.178529611683, 5767.486565260309, 6874.79423820253, 8047.152345465804, 820.8184154530907, 7791.514421602571, 9961.965504789934, 1979.4243726517634, 6485.2608094874095, 4213.721428033255, 6607.888206233299, 9702.017369245692, 9974.535801268215, 4696.642031529939, 8132.563081807331, 7622.293125092784, 1834.6931258898423, 7391.987759206572, 6500.344830172746, 136.48971242386287, 4200.133204789978, 2785.920779496308, 804.8994719309643, 2345.9269659084016, 8357.06549748538], [2766.311825930985, 247.82286534360765, 9210.351083194728, 3753.627957345187, 7962.917152771212, 1751.698129255792, 9212.829728137283, 682.3310004536054, 5741.1142555813885, 9761.752456788918, 7812.1571286188055, 3437.793780763595, 7186.784717752445, 191.24402764638003, 6395.160525892249, 5448.899650841235, 6448.336342731541, 2049.0552692066512, 1934.8055240768304, 4150.412336537698, 3905.3898304258137, 2943.1925104202073, 7517.903523696381, 5241.783668695016, 9328.846774552487, 7128.137571342247, 3454.0132065648754, 784.9234765927349, 7219.1905595332155, 835.6442343664172, 5656.669533993148, 2383.4909026049236, 2681.736245406704, 6966.710606643402], [2063.497842840252, 5822.371347317983, 5703.419199291243, 6524.047902146878, 2296.7642952695332], [1763.4495330058685, 934.5148677695203, 1619.0205544392566, 959.1621826615526, 4280.521969824521, 1369.5693371906193, 3273.1818661012935, 5115.8434116212275, 5985.42152117378, 9527.615090861202, 3354.904782657736, 7101.616336504692, 9762.728037978632, 1269.78383882561, 4875.059489948114, 1497.16737837024, 2422.0980602965283, 5716.250236875847, 6321.505597383554, 1340.667838547893, 8443.00252703888, 3735.8841178907255, 4899.856671866332, 6720.5246060937625, 7750.968585550362, 4238.977841764919, 5788.14965570911, 7274.903802452901, 3595.0484545350714], [9686.865788633631, 8233.772964679154, 660.7508618276447, 6306.683868508095, 8498.953442175642, 8114.077760774463, 1104.754624226918, 311.0692755307476, 2531.60881014545, 8451.28820029444, 3200.6570105366095, 2869.6853746417128, 1238.5022469776386, 231.89892573873271, 7233.737255599893, 8333.686335655733, 3494.76478845981, 6358.858772951813, 1592.5661835891135], [8729.302351090198, 6384.546837461195, 7171.290584657766, 5957.659783638356, 9085.037001227132, 5768.356633124855, 8327.482562249292, 5395.921276883439, 1861.2599624881498, 4765.111906737132, 3378.3810534074432, 9947.647762912382, 6959.705326382867, 3716.9948860458167, 3062.662164010396, 4763.191664464988, 7812.697916882337, 7917.498627199334, 8870.650688899828, 5065.742181053909, 2624.806153972363, 2975.0483110771174, 4364.205465054759, 3188.4425422580866, 8720.977081893758, 1459.87953565746, 4572.8264886204215, 2324.1540757260946, 5840.324208567349, 659.1512944086209, 6387.2382456619625, 1706.1961811177118, 4070.0269992801395, 6180.002343467976, 1707.116403493727, 1552.491504085135, 1627.8271363780805, 710.7568621692617, 2873.2219438669295, 6894.1926098992, 345.15307520545105, 3662.3233518062393], [3211.713546228133, 7896.40777964658, 5300.8078149063485, 6851.224397907975, 5696.065461614853, 5114.791911160674, 2564.1730817028897, 935.5405348126611, 5153.847785482536, 4577.349093295708, 669.4749252740984, 6331.618429957198, 9752.5524618502, 4348.913289388088, 5360.501700968088, 1947.5177649733143, 8717.345541701521, 2764.158876222086, 8439.468669204629, 4053.560412732092, 7445.1623077869335, 2681.809445597795, 227.24520795759483, 5796.36709151562, 1742.0265345346274, 8771.734793785536, 7678.398207518567, 5661.038366465821, 3269.4432986394963, 8668.907656759158, 1676.1950842333351, 5480.716778416091], [936.6238554926199, 4417.071383868515, 6954.953579576183, 5108.719616062134, 7182.39821842807, 893.3269681291046, 9329.321095066078, 4580.047117025584, 8767.112017513396, 5860.985413993845, 8199.847852762732, 1222.4269503900243, 6936.2060001009595, 8505.84929950005, 9178.71060254381, 3564.7845125447475, 5204.125789379878, 746.5779862826249, 3612.5357492902167, 8863.338857356202, 3207.8067128192033, 6411.350131694356], [6971.463246366584, 8656.829488481588, 4716.397759444882, 1871.0559596524602, 1400.7186558055407, 7972.157112200225, 2785.2894228904734, 1230.437360694544, 8007.762276598806, 2879.918281682995, 7129.5575876408775, 1804.8918776007638, 9866.87453607941, 8137.058205998907, 9310.146806768604, 8140.789040813295, 6053.202509221739, 1291.6766981885764, 5042.499167167728, 6617.2901410157865, 5184.765799310381, 8442.95630985222, 5949.8689231126455, 5292.165955504016, 2849.4937899043603, 4906.261299495095, 966.3171571506301, 8454.562916281682, 7489.005406107537, 3920.8761213857024, 8798.627174192734, 2997.865499624235, 1711.347679688806, 4027.298254353501, 2665.297130518587, 4207.206327946828, 2414.3945246142307, 4847.717343608347, 1070.5167501685087, 1704.8851914439756, 8171.119375036566, 3723.606800733539, 142.2932030262325, 9127.383634043443, 7118.072266257432], [339.52074175386815, 6222.346927985851, 7378.5920594735, 6483.541708564634, 362.64537232048144, 7138.700983753719, 2240.2956832486807, 2513.294144642031, 5297.54986666968, 7336.701719593464, 8533.030287569201, 5619.9926655639065, 6020.148727640418, 9972.565222705252, 2138.7215246647575], [9334.18747439277, 2305.316444035084, 1496.1818919744728, 2631.664575282966, 1560.644447319053, 8017.229344306232, 6842.526322961845, 2122.802524963182, 1925.0851490635769, 2446.861091468323, 9263.77307980419, 1483.1424881051537, 5287.2562923501, 9035.859888041217, 8023.375373059005, 1509.7451515868177, 5603.488799339734, 6952.921883793975, 2520.825724984489, 4774.46952604118, 3150.932309635256, 9437.021148222304, 5408.13867691267, 9230.165088724967, 7807.315410083818, 5405.386628850249, 1262.2511910367418, 697.3644405937873, 698.5354770211683, 1350.5821712909406, 5683.304986640956, 9411.453890399667, 7917.412705783028, 8454.459445136355, 7206.496995251545, 4184.077101861108, 6457.784133948724, 7829.579341560543, 9782.181419945555, 3072.675129166752], [8633.9400207655, 9053.67914423705, 9081.024953660442, 2853.802978909221, 7098.6377709172775, 6442.001286495734, 5352.453679308428, 6033.86163930825, 5295.367200513826, 2677.067926657917, 7715.416997612096, 3788.755738261852, 9546.352816383147, 2191.2027293058445, 5191.987053619508, 7361.459537716426, 7500.956977764495, 370.7365519990435, 2962.269562256985, 661.6552510251239, 1609.4504154422318, 3988.587061330161, 2398.369174193682, 1708.5280616204134, 2284.260481124326, 1232.8130458617104, 7282.24314102055, 6095.510118039444, 8316.544395798997, 4280.1892659343575, 8407.096352421157, 3773.58249506053, 5866.478536674913, 1059.4976355232154, 4198.072679613927, 4234.325659104923, 5473.390130450675, 2776.1105772896135, 1674.2483340926185, 9810.681965224623, 8123.877611121171, 2880.6804254366057, 611.8050413036724], [2993.2135939667937, 6516.371756368651, 3243.954240688501, 1707.4419839480238, 6117.910093882588, 2728.1465292580765, 6634.197180792388, 4372.280063161229, 9906.755136519236, 5628.301297423993, 4325.8026028396025, 5809.6193319701715, 4537.666496279663, 5195.153570340511, 1449.7797935032452, 5993.770275452789], [4543.424826252607, 8348.648362364054, 804.5165023634681, 1729.8028197600313, 1522.5403036030073, 3062.049396246639, 5614.200983933174, 5394.364801574996, 6082.364911270015, 7322.660128770181, 105.67616713120897, 3780.024680250308, 2043.1384239018603, 1911.4871928662747, 6600.417413983897, 5725.222210135139, 3159.2736284331845, 7911.867143170885, 6910.232736464181, 5082.363943676784, 398.9266438123795, 6600.002726524873, 9718.957727352494, 373.35598181310934, 1769.8440978937858, 1423.7660839786836, 6709.319258322703, 8863.059005113284, 8818.99294307518, 6869.765112779014, 2299.7066087856288], [5904.333165248659, 3737.2540517941134, 3234.8010931379345], [8741.274694147212, 8142.366348649237, 7178.080069844503], [9806.546398158205, 4111.328970709272, 1297.6979885312844, 6671.312196519337, 919.8636669576166, 3674.7691763561584, 9558.015583014578, 179.15421355732875, 6633.7786907057525, 5145.041583744364, 9650.732970966015, 2262.287535355311, 4078.381954659066, 9352.614142347535, 979.6245727881725, 1961.1517367115562, 671.592570513081, 4430.339128069768, 2945.127026543707, 6308.61484052264, 639.7007227096851, 5329.702461652472, 4258.603814362332, 2386.0945919632636, 7582.27847122242, 531.7809464507307, 619.6474357889825, 9850.258845427983, 3376.8188352510665, 1443.5852603295095, 5965.538654258386], [4064.611605775853], [8699.678950267016, 2638.8791938900504, 9864.32576829143, 9545.45934752491], [8967.277929781716, 158.487360223436, 2706.512848604518, 7632.722968650326, 9493.606876017158, 722.3053012762348, 6964.558269251513, 3890.6533336777193, 7324.280695126543, 2114.987955696953, 6493.602831666873, 7861.736242257294, 4577.950198510346, 1258.5279257186965, 8413.280602583125, 9809.221728733319, 9999.85897125298, 2687.9513051743697, 4310.701528942745, 8308.434209993517, 4632.868040691614, 1557.6045146848705, 2024.6772936559332, 4584.237100857744, 1162.3893821891406, 9006.014395722459, 8980.135554758763, 9645.94750029713, 5807.972419276929, 9641.914592343957, 6119.365848988399, 8925.074625708212], [3961.038699627797, 7941.386171416613, 8497.2079090036, 950.7156317300869, 1002.2655576124373], [4770.970512462653, 5751.274214977394, 7374.385304920768, 6583.555487016266, 1354.1896365063787], [9019.53955445245, 6116.076908287135, 8146.602392879152, 72.65131447226403, 1516.6254211993412, 8039.461012121285, 5038.821843934121, 8391.976024847978, 456.503039225048, 2670.191490719758, 3515.763578768253, 1092.421155822273, 6164.620640238656, 545.5694373578046, 4279.737736096799, 495.9879677990009, 4625.2520594959715], [1439.336923533866, 1302.3118323967053, 167.48167583331974, 6295.610633433874, 6721.42085515711, 6293.501666300752, 443.10543686137737, 5790.080920213072, 8246.409203016145, 1090.7269189639735, 3732.488593915935, 2911.804873618257, 9941.921987305477, 3792.731907876411, 4534.224944059517, 1472.278357602025, 5275.2635084540525, 859.5210260889396, 9597.694442577425, 4899.437560961888, 3899.188565008336, 291.1982655390333, 7689.693286997743, 8893.026162327125, 4327.722294090344, 5068.436180974043, 5900.3279123267785, 7465.30143721741, 7167.568894492006, 4383.153760951697, 6514.683704147853, 3810.559736196162, 2522.446986633412, 8028.80881494865, 8593.830034608267, 7739.336291343238, 2193.260515869928, 4073.821932851648, 7770.88670948187, 7663.446075181924, 5361.707839001343, 5038.736484800433, 6054.88382711972, 8169.620671795285, 9367.954744778806, 2939.9653782874825, 9453.300074929695, 2797.1126437886173], [1566.286547919663, 8936.617547502176, 9231.73742747379, 5926.868366854842, 9103.397262654895, 8368.856835536099, 7101.186219987764, 7810.498315791292, 7975.613043686254, 6534.1573199897975, 3221.878461550536, 8047.027853088147, 4308.07219595293], [4698.9398220605735, 1381.493549044479, 2511.354007653047, 1792.9062150709663, 3433.3984663747965, 6310.645731404196, 9282.773595893277, 1436.72903578846, 4255.664980727647, 5442.018955197633, 9070.360569097147, 997.3894557292784, 6111.892651874234, 9341.385608723269, 478.81757295908267, 1351.2651210460015, 1523.9132106506759, 7642.007210066544, 8023.924071903322], [6975.216490755457, 545.726967916269, 7829.418625853173, 285.96897390028687, 1788.3485134839195]],)
]
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))) | 0 | [
"a) 0",
"b) #include",
"c) >",
"d) (",
"e) #include"
] | a |
python | def f_gold ( arr , n , sum ) :
for i in range ( n ) :
curr_sum = arr [ i ]
j = i + 1
while j <= n :
if curr_sum == sum :
print ( "Sum found between" )
print ( "indexes %d and %d" % ( i , j - 1 ) )
return 1
if curr_sum > sum or j == n :
break
curr_sum = curr_sum + arr [ j ]
j += 1
print ( "No subarray found" )
return 0
return 1
if curr_sum > sum or j == n :
break
curr_sum = curr_sum + arr [ j ]
j += 1
print ( "No subarray found" )
return 0
#TOFILL
if __name__ == '__main__':
param = [
([4, 8, 8, 10, 15, 18, 19, 22, 25, 26, 30, 32, 35, 36, 40, 41, 43, 48, 53, 57, 59, 63, 64, 68, 71, 76, 76, 77, 78, 89, 96, 97],26,23,),
([-78, 16, -16, -10, -2, -38, 58, -72, -78, 50, -68, -16, -96, 82, 70, 2, -20],9,12,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],9,11,),
([16, 10, 55, 43, 46, 74, 57, 65, 86, 60, 28, 6, 92],10,6,),
([-98, -98, -90, -84, -84, -80, -76, -76, -70, -54, -48, -46, -44, -42, -38, -14, -12, -4, 6, 8, 24, 28, 32, 40, 40, 42, 64, 84, 98],23,19,),
([0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1],12,8,),
([2, 10, 40, 45, 56, 66, 66, 70, 75, 83, 93, 98],10,10,),
([-20, 30, 56, -68, 54, -6, 78, -86, 88, -66, 76, -66, 62, 78, 22, 46, -94, -10, 18, 16, -36, 34, -98, -84, -40, 98, 82, 10, 12, 54, -88],30,17,),
([0, 0, 1, 1],2,2,),
([38, 24, 12],1,1,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n , sum ) : for i in range ( n ) : curr_sum = arr [ i ] j = i + 1 while j <= n : if curr_sum == sum : print ( "Sum found between" ) print ( "indexes %d and %d" % ( i , j - 1 ) ) return 1 if curr_sum > sum or j == n : [MASK] curr_sum = curr_sum + arr [ j ] j += 1 print ( "No subarray found" ) return 0 return 1
if curr_sum > sum or j == n :
break
curr_sum = curr_sum + arr [ j ]
j += 1
print ( "No subarray found" )
return 0
#TOFILL
if __name__ == '__main__':
param = [
([4, 8, 8, 10, 15, 18, 19, 22, 25, 26, 30, 32, 35, 36, 40, 41, 43, 48, 53, 57, 59, 63, 64, 68, 71, 76, 76, 77, 78, 89, 96, 97],26,23,),
([-78, 16, -16, -10, -2, -38, 58, -72, -78, 50, -68, -16, -96, 82, 70, 2, -20],9,12,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],9,11,),
([16, 10, 55, 43, 46, 74, 57, 65, 86, 60, 28, 6, 92],10,6,),
([-98, -98, -90, -84, -84, -80, -76, -76, -70, -54, -48, -46, -44, -42, -38, -14, -12, -4, 6, 8, 24, 28, 32, 40, 40, 42, 64, 84, 98],23,19,),
([0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1],12,8,),
([2, 10, 40, 45, 56, 66, 66, 70, 75, 83, 93, 98],10,10,),
([-20, 30, 56, -68, 54, -6, 78, -86, 88, -66, 76, -66, 62, 78, 22, 46, -94, -10, 18, 16, -36, 34, -98, -84, -40, 98, 82, 10, 12, 54, -88],30,17,),
([0, 0, 1, 1],2,2,),
([38, 24, 12],1,1,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | break | [
"a) k",
"b) =",
"c) int",
"d) break",
"e) {"
] | d |
python | def f_gold ( notes , n ) :
fiveCount = 0
tenCount = 0
for i in range ( n ) :
if ( notes [ i ] == 5 ) :
fiveCount += 1
elif ( notes [ i ] == 10 ) :
if ( fiveCount > 0 ) :
fiveCount -= 1
tenCount += 1
else :
return 0
else :
if ( fiveCount > 0 and tenCount > 0 ) :
fiveCount -= 1
tenCount -= 1
elif ( fiveCount >= 3 ) :
fiveCount -= 3
else :
return 0
return 1
) :
fiveCount -= 1
tenCount -= 1
elif ( fiveCount >= 3 ) :
fiveCount -= 3
else :
return 0
return 1
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 5, 10, 20],4,),
([5,5,5,20,10],5,),
([5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,10,10,10,10,10,10,10,10,10,10,10,10,10],27,),
([10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,18],12,),
([5,5,20],2,),
([10,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],17,),
([5,10,20,5,5,5,5,5,5,5,5,5,5,5,5],7,),
([-82,-10,-78,-84,68,62,10,20,-86,-98,92,70,40,-12,-20,-36,8,-70,6,8,44,-24,8,-18,76,-54,-14,-94,-68,-62,-24,-36,-74,92,92,-80,48,56,94],31,),
([10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],25,),
([46, 46, 93, 57, 82, 34, 83, 80, 77, 36, 80, 85, 69, 28, 9, 56, 49, 27, 83, 25, 1, 80, 99, 14, 69, 82, 79, 71, 74, 34],20,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( notes , n ) : fiveCount = 0 tenCount = 0 for i in range ( n ) : if ( notes [ i ] == 5 ) : fiveCount += 1 elif ( notes [ i ] == 10 ) : if ( fiveCount > 0 ) : fiveCount -= 1 tenCount += 1 else : return 0 else [MASK] if ( fiveCount > 0 and tenCount > 0 ) : fiveCount -= 1 tenCount -= 1 elif ( fiveCount >= 3 ) : fiveCount -= 3 else : return 0 return 1) :
fiveCount -= 1
tenCount -= 1
elif ( fiveCount >= 3 ) :
fiveCount -= 3
else :
return 0
return 1
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 5, 10, 20],4,),
([5,5,5,20,10],5,),
([5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,10,10,10,10,10,10,10,10,10,10,10,10,10],27,),
([10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,18],12,),
([5,5,20],2,),
([10,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],17,),
([5,10,20,5,5,5,5,5,5,5,5,5,5,5,5],7,),
([-82,-10,-78,-84,68,62,10,20,-86,-98,92,70,40,-12,-20,-36,8,-70,6,8,44,-24,8,-18,76,-54,-14,-94,-68,-62,-24,-36,-74,92,92,-80,48,56,94],31,),
([10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],25,),
([46, 46, 93, 57, 82, 34, 83, 80, 77, 36, 80, 85, 69, 28, 9, 56, 49, 27, 83, 25, 1, 80, 99, 14, 69, 82, 79, 71, 74, 34],20,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | : | [
"a) invcount;",
"b) )",
"c) :",
"d) import",
"e) ("
] | c |
python | 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
:
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))) | def f_gold ( a , n [MASK] : 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 :
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))) | ) | [
"a) }",
"b) ,",
"c) =",
"d) )",
"e) n"
] | d |
python | def f_gold ( arr , n ) :
max1 = max ( arr )
min1 = min ( arr )
m = max1 - min1 + 1
if ( m > n ) :
return False
visited = [ 0 ] * m
for i in range ( 0 , n ) :
visited [ arr [ i ] - min1 ] = True
for i in range ( 0 , m ) :
if ( visited [ i ] == False ) :
return False
return True
* m
for i in range ( 0 , n ) :
visited [ arr [ i ] - min1 ] = True
for i in range ( 0 , m ) :
if ( visited [ i ] == False ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([2, 4, 19, 25, 65, 72, 75, 83, 90, 92],8,),
([46, 2, 28, -44, 74, -36, -8, 30, -96, 60, 52, -58, 16, -38, 78, 38, -28, 16, 26, -42, 48, 40, 6, 72],14,),
([0, 1, 1, 1],2,),
([50, 21, 9, 29, 86, 2, 82, 49, 34, 18, 77, 83, 44, 67, 85, 58, 15, 85, 22, 3, 39, 67, 42, 37, 6, 35, 18, 57, 41, 32, 39, 30, 41, 68, 84, 36, 64, 36],23,),
([-92, -82, -80, -78, -66, -66, -62, -58, -54, -52, -48, -30, -26, -22, -20, -20, -18, -14, -2, 12, 20, 24, 26, 26, 28, 28, 32, 36, 42, 48, 50, 52, 56, 64, 70, 72, 72, 80, 82, 84, 86, 92],26,),
([1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0],43,),
([18, 19, 21, 23, 30, 33, 38, 40, 45, 56, 63, 68, 93, 96],8,),
([20, -90, -42, 48, 18, -46, 82, -12, -88, 82, 62, 24, 20, 64, -68, -34, -38, 8, -54, -20, -92, 34, -90, 78, 18, 8, -6, 10, 98, -24, 72, -92, 76, -22, 12, -44, 2, 68, -72, 42, 34, 20, -48],34,),
([0, 0, 0, 0, 0, 1, 1, 1, 1],8,),
([81, 25, 50, 48, 35, 38, 49, 21, 47, 94, 94, 55, 23, 45, 92, 23, 93, 33, 64, 9, 90, 64, 81, 17, 2, 73, 8, 7, 35, 36, 72],27,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : max1 = max ( arr ) min1 = min ( arr ) m = max1 - min1 + 1 if ( m > n ) : return False visited = [ 0 ] * m for [MASK] in range ( 0 , n ) : visited [ arr [ i ] - min1 ] = True for i in range ( 0 , m ) : if ( visited [ i ] == False ) : return False return True* m
for i in range ( 0 , n ) :
visited [ arr [ i ] - min1 ] = True
for i in range ( 0 , m ) :
if ( visited [ i ] == False ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([2, 4, 19, 25, 65, 72, 75, 83, 90, 92],8,),
([46, 2, 28, -44, 74, -36, -8, 30, -96, 60, 52, -58, 16, -38, 78, 38, -28, 16, 26, -42, 48, 40, 6, 72],14,),
([0, 1, 1, 1],2,),
([50, 21, 9, 29, 86, 2, 82, 49, 34, 18, 77, 83, 44, 67, 85, 58, 15, 85, 22, 3, 39, 67, 42, 37, 6, 35, 18, 57, 41, 32, 39, 30, 41, 68, 84, 36, 64, 36],23,),
([-92, -82, -80, -78, -66, -66, -62, -58, -54, -52, -48, -30, -26, -22, -20, -20, -18, -14, -2, 12, 20, 24, 26, 26, 28, 28, 32, 36, 42, 48, 50, 52, 56, 64, 70, 72, 72, 80, 82, 84, 86, 92],26,),
([1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0],43,),
([18, 19, 21, 23, 30, 33, 38, 40, 45, 56, 63, 68, 93, 96],8,),
([20, -90, -42, 48, 18, -46, 82, -12, -88, 82, 62, 24, 20, 64, -68, -34, -38, 8, -54, -20, -92, 34, -90, 78, 18, 8, -6, 10, 98, -24, 72, -92, 76, -22, 12, -44, 2, 68, -72, 42, 34, 20, -48],34,),
([0, 0, 0, 0, 0, 1, 1, 1, 1],8,),
([81, 25, 50, 48, 35, 38, 49, 21, 47, 94, 94, 55, 23, 45, 92, 23, 93, 33, 64, 9, 90, 64, 81, 17, 2, 73, 8, 7, 35, 36, 72],27,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | i | [
"a) {}",
"b) i",
"c) def",
"d) return",
"e) #include"
] | b |
python | 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 )
, 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))) | 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 [MASK] ( a , b >> 1 ) if ( a > b ) : return f_gold ( ( a - b ) >> 1 , b ) return f_gold ( ( b - a ) >> 1 , a ) , 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))) | f_gold | [
"a) f_gold",
"b) (int",
"c) i",
"d) j",
"e) bool"
] | a |
python | def f_gold ( a , b , c ) :
if a > b :
if ( b > c ) :
return b
elif ( a > c ) :
return c
else :
return a
else :
if ( a > c ) :
return a
elif ( b > c ) :
return c
else :
return b
return c
else :
return a
else :
if ( a > c ) :
return a
elif ( b > c ) :
return c
else :
return b
#TOFILL
if __name__ == '__main__':
param = [
(43,24,7,),
(76,54,66,),
(57,5,40,),
(10,13,4,),
(59,47,56,),
(92,14,50,),
(49,62,65,),
(16,95,12,),
(33,41,90,),
(66,63,46,)
]
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))) | def f_gold ( a , b , c ) : if a > b : if ( b > c ) : return b elif ( a > c ) : return c else : return a else : if ( a > c ) : return a elif ( [MASK] > c ) : return c else : return b return c
else :
return a
else :
if ( a > c ) :
return a
elif ( b > c ) :
return c
else :
return b
#TOFILL
if __name__ == '__main__':
param = [
(43,24,7,),
(76,54,66,),
(57,5,40,),
(10,13,4,),
(59,47,56,),
(92,14,50,),
(49,62,65,),
(16,95,12,),
(33,41,90,),
(66,63,46,)
]
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))) | b | [
"a) return",
"b) b",
"c) n",
"d) <cstdlib>",
"e) ="
] | b |
python | def f_gold ( arr , n , k ) :
i = 0
l = 0
r = 0
res = 0
thi = [ ]
pol = [ ]
while i < n :
if arr [ i ] == 'P' :
pol.append ( i )
elif arr [ i ] == 'T' :
thi.append ( i )
i += 1
while l < len ( thi ) and r < len ( pol ) :
if ( abs ( thi [ l ] - pol [ r ] ) <= k ) :
res += 1
l += 1
r += 1
elif thi [ l ] < pol [ r ] :
l += 1
else :
r += 1
return res
l ] - pol [ r ] ) <= k ) :
res += 1
l += 1
r += 1
elif thi [ l ] < pol [ r ] :
l += 1
else :
r += 1
return res
#TOFILL
if __name__ == '__main__':
param = [
(['A', 'B', 'B', 'D', 'E', 'E', 'F', 'G', 'G', 'G', 'I', 'J', 'O', 'P', 'Q', 'Q', 'Q', 'Q', 'R', 'R', 'S', 'U', 'X', 'Y', 'Y', 'c', 'd', 'h', 'i', 'i', 'i', 'i', 'k', 'k', 'l', 'l', 'l', 'l', 'm', 'p', 'r', 'r', 's', 't', 't', 'u', 'x', 'z'],33,45,),
(['7', '6', '0', '1', '0', '1'],3,3,),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'],9,10,),
(['y', 'k', 'S', 'i', 's', 'r', 'i', 'z', 'y', 'f', 'E', 'U', 'y', 'G', 'f', 'f', 's', 'v', 'v', 'D', 'v', 'V', 'S', 'D', 'K', 'S', 'f', 'V', 'g', 'I', 'J', 'p', 'j', 'k', 'R', 'n', 'm', 'O', 'L', 'X', 'y', 'U', 'y', 'k', 'w'],24,44,),
(['1', '1', '5', '8', '8'],2,2,),
(['0', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '0', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0'],23,18,),
(['A', 'I', 'K', 'Q', 'Q', 'X', 'Z', 'f', 'g'],5,8,),
(['7', '0', '6', '9', '7', '5', '1', '3', '9', '8', '0', '0', '1', '3', '9', '2', '5', '5', '2', '7', '9', '3', '3', '9', '3', '8', '5', '5', '0', '4', '6', '2', '7', '4', '0', '4', '6', '4', '2', '3'],35,28,),
(['0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],8,10,),
(['D', 'C', 'P', 'H', 'G', 'o', 'u', 'P', 'T', 'G', 'E', 'U', 'n', 'E', 'U'],11,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))) | def f_gold ( arr , n , k ) : i = 0 l = 0 r = 0 res = 0 thi = [ ] pol = [ ] while i < n : if arr [ i ] == 'P' : pol.append ( i ) elif arr [ i ] == 'T' : thi.append ( i ) i += 1 while l < len ( [MASK] ) and r < len ( pol ) : if ( abs ( thi [ l ] - pol [ r ] ) <= k ) : res += 1 l += 1 r += 1 elif thi [ l ] < pol [ r ] : l += 1 else : r += 1 return resl ] - pol [ r ] ) <= k ) :
res += 1
l += 1
r += 1
elif thi [ l ] < pol [ r ] :
l += 1
else :
r += 1
return res
#TOFILL
if __name__ == '__main__':
param = [
(['A', 'B', 'B', 'D', 'E', 'E', 'F', 'G', 'G', 'G', 'I', 'J', 'O', 'P', 'Q', 'Q', 'Q', 'Q', 'R', 'R', 'S', 'U', 'X', 'Y', 'Y', 'c', 'd', 'h', 'i', 'i', 'i', 'i', 'k', 'k', 'l', 'l', 'l', 'l', 'm', 'p', 'r', 'r', 's', 't', 't', 'u', 'x', 'z'],33,45,),
(['7', '6', '0', '1', '0', '1'],3,3,),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'],9,10,),
(['y', 'k', 'S', 'i', 's', 'r', 'i', 'z', 'y', 'f', 'E', 'U', 'y', 'G', 'f', 'f', 's', 'v', 'v', 'D', 'v', 'V', 'S', 'D', 'K', 'S', 'f', 'V', 'g', 'I', 'J', 'p', 'j', 'k', 'R', 'n', 'm', 'O', 'L', 'X', 'y', 'U', 'y', 'k', 'w'],24,44,),
(['1', '1', '5', '8', '8'],2,2,),
(['0', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '0', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0'],23,18,),
(['A', 'I', 'K', 'Q', 'Q', 'X', 'Z', 'f', 'g'],5,8,),
(['7', '0', '6', '9', '7', '5', '1', '3', '9', '8', '0', '0', '1', '3', '9', '2', '5', '5', '2', '7', '9', '3', '3', '9', '3', '8', '5', '5', '0', '4', '6', '2', '7', '4', '0', '4', '6', '4', '2', '3'],35,28,),
(['0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],8,10,),
(['D', 'C', 'P', 'H', 'G', 'o', 'u', 'P', 'T', 'G', 'E', 'U', 'n', 'E', 'U'],11,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))) | thi | [
"a) 1",
"b) 1;",
"c) thi",
"d) (",
"e) rotation"
] | c |
python | def f_gold ( n ) :
return 1 if ( n == 1 or n == 0 ) else n * f_gold ( n - 1 )
code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( n ) :
return 1 if ( n == 1 or n == 0 ) else n * f_gold ( n - 1 )
#TOFILL
if __name__ == '__main__':
param = [
(24,),
(46,),
(47,),
(41,),
(98,),
(69,),
(83,),
(2,),
(12,),
(11,)
]
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))) | def f_gold ( n ) : return 1 if ( [MASK] == 1 or n == 0 ) else n * f_gold ( n - 1 ) code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( n ) :
return 1 if ( n == 1 or n == 0 ) else n * f_gold ( n - 1 )
#TOFILL
if __name__ == '__main__':
param = [
(24,),
(46,),
(47,),
(41,),
(98,),
(69,),
(83,),
(2,),
(12,),
(11,)
]
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))) | n | [
"a) +",
"b) n",
"c) 1",
"d) ]",
"e) )"
] | b |
python | def f_gold ( n ) :
return ( 1 + ( n * 2 ) + ( n * ( ( n * n ) - 1 ) // 2 ) )
e 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 * 2 ) + ( n * ( ( n * n ) - 1 ) // 2 ) )
#TOFILL
if __name__ == '__main__':
param = [
(55,),
(36,),
(69,),
(92,),
(73,),
(16,),
(88,),
(19,),
(66,),
(68,)
]
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))) | def f_gold ( n ) : return ( 1 + ( n * 2 ) + ( n * ( ( n * n ) - [MASK] ) // 2 ) )e 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 * 2 ) + ( n * ( ( n * n ) - 1 ) // 2 ) )
#TOFILL
if __name__ == '__main__':
param = [
(55,),
(36,),
(69,),
(92,),
(73,),
(16,),
(88,),
(19,),
(66,),
(68,)
]
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))) | 1 | [
"a) f",
"b) range",
"c) static",
"d) 1",
"e) accumulate"
] | d |
python | def f_gold ( arr , n ) :
index = 0
while index < n :
if index == 0 :
index = index + 1
if arr [ index ] >= arr [ index - 1 ] :
index = index + 1
else :
arr [ index ] , arr [ index - 1 ] = arr [ index - 1 ] , arr [ index ]
index = index - 1
return arr
rr [ index - 1 ] :
index = index + 1
else :
arr [ index ] , arr [ index - 1 ] = arr [ index - 1 ] , arr [ index ]
index = index - 1
return arr
#TOFILL
if __name__ == '__main__':
param = [
([5, 20, 27, 28, 31, 31, 31, 34, 49, 55, 61, 63, 68, 69, 73, 78, 78, 82, 85, 87, 98],17,),
([34, -54, 0, 16, 66, -58, 88, -38, -94, -10],7,),
([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],22,),
([10, 28, 65, 98, 25, 25, 77, 46, 77, 54, 16, 43, 52, 75, 9, 15, 1, 72, 56, 75, 73, 45, 5, 78, 11, 3, 93, 73, 31, 69, 8, 89, 44, 58, 64, 36, 7, 4],26,),
([-86, -50, -12, 26, 30, 68, 70, 80, 82],6,),
([1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0],17,),
([14, 28, 29, 31, 41, 59, 60, 62, 66, 67, 70, 70, 74, 76, 92, 96],13,),
([8, -22, 94, 28, 2, 14, 50, -54, 24, -26, -98, 58, -94, 4, -78, 98, 80, 72, -32, 58, -74],13,),
([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],24,),
([3, 30, 84, 92, 29, 47, 36, 54, 93, 73, 53, 91, 81, 16, 51, 69, 82, 74, 80, 66, 77, 14, 85, 59, 86, 25, 85, 29, 19, 28, 13, 47, 61, 54, 13, 82, 52, 11, 10, 63, 52, 30, 35, 74],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))) | def f_gold ( arr , n ) : index = 0 while index < n : if index == 0 : index = index + 1 if arr [ index ] >= arr [ index - 1 ] : index = index + 1 else : arr [ index ] , arr [MASK] index - 1 ] = arr [ index - 1 ] , arr [ index ] index = index - 1 return arrrr [ index - 1 ] :
index = index + 1
else :
arr [ index ] , arr [ index - 1 ] = arr [ index - 1 ] , arr [ index ]
index = index - 1
return arr
#TOFILL
if __name__ == '__main__':
param = [
([5, 20, 27, 28, 31, 31, 31, 34, 49, 55, 61, 63, 68, 69, 73, 78, 78, 82, 85, 87, 98],17,),
([34, -54, 0, 16, 66, -58, 88, -38, -94, -10],7,),
([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],22,),
([10, 28, 65, 98, 25, 25, 77, 46, 77, 54, 16, 43, 52, 75, 9, 15, 1, 72, 56, 75, 73, 45, 5, 78, 11, 3, 93, 73, 31, 69, 8, 89, 44, 58, 64, 36, 7, 4],26,),
([-86, -50, -12, 26, 30, 68, 70, 80, 82],6,),
([1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0],17,),
([14, 28, 29, 31, 41, 59, 60, 62, 66, 67, 70, 70, 74, 76, 92, 96],13,),
([8, -22, 94, 28, 2, 14, 50, -54, 24, -26, -98, 58, -94, 4, -78, 98, 80, 72, -32, 58, -74],13,),
([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],24,),
([3, 30, 84, 92, 29, 47, 36, 54, 93, 73, 53, 91, 81, 16, 51, 69, 82, 74, 80, 66, 77, 14, 85, 59, 86, 25, 85, 29, 19, 28, 13, 47, 61, 54, 13, 82, 52, 11, 10, 63, 52, 30, 35, 74],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))) | [ | [
"a) [",
"b) n",
"c) k",
"d) return",
"e) <math.h>"
] | a |
python | def f_gold ( arr , dep , n ) :
arr.sort ( )
dep.sort ( )
plat_needed = 1
result = 1
i = 1
j = 0
while ( i < n and j < n ) :
if ( arr [ i ] < dep [ j ] ) :
plat_needed += 1
i += 1
if ( plat_needed > result ) :
result = plat_needed
else :
plat_needed -= 1
j += 1
return result
needed += 1
i += 1
if ( plat_needed > result ) :
result = plat_needed
else :
plat_needed -= 1
j += 1
return result
#TOFILL
if __name__ == '__main__':
param = [
([8, 24, 28, 64, 75, 86, 93, 95],[19, 30, 41, 51, 62, 68, 85, 96],6,),
([2, -30, -8, -78, 58, -42, -94, 84, -58, 14, 78, 34, 30, 6, -18, -92, 0, 94, -54, 58, 0, -86, 66, 86, 8, -26, 50, 16, -30, -68, 98, -28, -4, -6],[40, 22, -24, 80, -76, -4, -8, -34, 96, -98, 16, 28, 14, 52, 10, -10, -62, 64, -48, 10, -64, -90, -52, 46, 34, 50, 50, -84, 68, -12, -44, 28, -22, 78],18,),
([0, 0, 0, 0, 0, 0, 1],[0, 0, 0, 0, 0, 1, 1],6,),
([51, 5, 48, 61, 71, 2, 4, 35, 50, 76, 59, 64, 81, 5, 21, 95],[67, 84, 86, 43, 50, 90, 49, 8, 40, 67, 5, 51, 40, 28, 31, 47],8,),
([-64, -52, 44, 52, 90],[-62, -16, 22, 26, 58],3,),
([0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1],[0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],17,),
([2, 15, 25, 55, 72, 96, 98],[3, 6, 11, 19, 26, 37, 39],6,),
([-60, 30, -58, 52, 40, 74, 74, 76, -72, -48, 8, -56, -24, -40, -98, -76, -56, -20, 30, -30, -34, 4, -34],[-96, -40, -76, 52, -20, -28, -64, -72, 36, 56, 52, 34, 14, 8, -50, 6, -82, -98, -8, 18, -76, -66, -22],20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],22,),
([37, 84, 20, 34, 56, 1, 87, 72],[68, 62, 84, 54, 15, 29, 70, 96],6,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , dep , n ) : arr.sort ( ) dep.sort ( ) plat_needed = 1 [MASK] = 1 i = 1 j = 0 while ( i < n and j < n ) : if ( arr [ i ] < dep [ j ] ) : plat_needed += 1 i += 1 if ( plat_needed > result ) : result = plat_needed else : plat_needed -= 1 j += 1 return resultneeded += 1
i += 1
if ( plat_needed > result ) :
result = plat_needed
else :
plat_needed -= 1
j += 1
return result
#TOFILL
if __name__ == '__main__':
param = [
([8, 24, 28, 64, 75, 86, 93, 95],[19, 30, 41, 51, 62, 68, 85, 96],6,),
([2, -30, -8, -78, 58, -42, -94, 84, -58, 14, 78, 34, 30, 6, -18, -92, 0, 94, -54, 58, 0, -86, 66, 86, 8, -26, 50, 16, -30, -68, 98, -28, -4, -6],[40, 22, -24, 80, -76, -4, -8, -34, 96, -98, 16, 28, 14, 52, 10, -10, -62, 64, -48, 10, -64, -90, -52, 46, 34, 50, 50, -84, 68, -12, -44, 28, -22, 78],18,),
([0, 0, 0, 0, 0, 0, 1],[0, 0, 0, 0, 0, 1, 1],6,),
([51, 5, 48, 61, 71, 2, 4, 35, 50, 76, 59, 64, 81, 5, 21, 95],[67, 84, 86, 43, 50, 90, 49, 8, 40, 67, 5, 51, 40, 28, 31, 47],8,),
([-64, -52, 44, 52, 90],[-62, -16, 22, 26, 58],3,),
([0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1],[0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],17,),
([2, 15, 25, 55, 72, 96, 98],[3, 6, 11, 19, 26, 37, 39],6,),
([-60, 30, -58, 52, 40, 74, 74, 76, -72, -48, 8, -56, -24, -40, -98, -76, -56, -20, 30, -30, -34, 4, -34],[-96, -40, -76, 52, -20, -28, -64, -72, 36, 56, 52, 34, 14, 8, -50, 6, -82, -98, -8, 18, -76, -66, -22],20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],22,),
([37, 84, 20, 34, 56, 1, 87, 72],[68, 62, 84, 54, 15, 29, 70, 96],6,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | result | [
"a) }",
"b) public",
"c) result",
"d) n",
"e) return"
] | c |
python | def f_gold ( N , insrt , remov , cpy ) :
if N == 0 :
return 0
if N == 1 :
return insrt
dp = [ 0 ] * ( N + 1 )
for i in range ( 1 , N + 1 ) :
if i % 2 == 0 :
dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ i // 2 ] + cpy )
else :
dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ ( i + 1 ) // 2 ] + cpy + remov )
return dp [ N ]
dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ i // 2 ] + cpy )
else :
dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ ( i + 1 ) // 2 ] + cpy + remov )
return dp [ N ]
#TOFILL
if __name__ == '__main__':
param = [
(59,75,12,45,),
(66,68,32,41,),
(98,55,69,5,),
(63,4,41,12,),
(99,37,98,55,),
(45,28,59,7,),
(60,53,40,52,),
(11,96,50,50,),
(96,95,48,84,),
(54,6,50,82,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( N , insrt , remov , cpy ) : if N == 0 : return 0 if N == 1 : return insrt dp = [ 0 ] * ( N + 1 ) for [MASK] in range ( 1 , N + 1 ) : if i % 2 == 0 : dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ i // 2 ] + cpy ) else : dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ ( i + 1 ) // 2 ] + cpy + remov ) return dp [ N ] dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ i // 2 ] + cpy )
else :
dp [ i ] = min ( dp [ i - 1 ] + insrt , dp [ ( i + 1 ) // 2 ] + cpy + remov )
return dp [ N ]
#TOFILL
if __name__ == '__main__':
param = [
(59,75,12,45,),
(66,68,32,41,),
(98,55,69,5,),
(63,4,41,12,),
(99,37,98,55,),
(45,28,59,7,),
(60,53,40,52,),
(11,96,50,50,),
(96,95,48,84,),
(54,6,50,82,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | i | [
"a) )",
"b) ;",
"c) #include",
"d) stack.append",
"e) i"
] | e |
python | def f_gold ( m , n ) :
for i in range ( 0 , n ) :
sum = 0
for j in range ( 0 , n ) :
sum = sum + abs ( m [ i ] [ j ] )
sum = sum - abs ( m [ i ] [ i ] )
if ( abs ( m [ i ] [ i ] ) < sum ) :
return False
return True
ange ( 0 , n ) :
sum = sum + abs ( m [ i ] [ j ] )
sum = sum - abs ( m [ i ] [ i ] )
if ( abs ( m [ i ] [ i ] ) < sum ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([[ 3, -2, 1 ], [ 1, -3, 2 ], [ -1, 2, 4 ]],2,),
([[ 2, -2, 1 ], [ 1, -3, 2 ], [ -1, 2, 4 ]],3,),
([[78, 46, 33, 58, 79, 94, 94, 31, 69], [83, 48, 11, 74, 33, 61, 88, 15, 29], [27, 20, 36, 14, 37, 88, 49, 36, 58], [93, 15, 39, 5, 97, 45, 1, 47, 34], [8, 88, 54, 87, 60, 77, 37, 46, 18], [10, 68, 71, 86, 76, 24, 47, 37, 72], [84, 43, 82, 25, 87, 18, 51, 46, 75], [59, 39, 78, 86, 38, 55, 79, 5, 5], [50, 42, 19, 34, 53, 80, 21, 45, 96]],1,),
([[88, 35, 82, 14, 86, 94, 12, 49, 76, 94, 3, 96, 27, 92, 82, 25, 15, 27, 15], [30, 75, 59, 45, 53, 78, 45, 92, 72, 61, 11, 78, 51, 86, 89, 74, 39, 24, 6], [33, 22, 60, 20, 11, 35, 35, 65, 90, 78, 49, 66, 46, 5, 39, 79, 85, 93, 51], [21, 38, 36, 14, 33, 23, 72, 84, 38, 47, 64, 47, 1, 42, 68, 78, 86, 76, 25], [57, 52, 7, 7, 56, 39, 70, 83, 58, 23, 10, 72, 36, 71, 3, 72, 77, 95, 13], [90, 48, 66, 3, 63, 15, 2, 61, 59, 17, 11, 5, 70, 67, 23, 96, 63, 4, 29], [17, 95, 35, 48, 85, 87, 48, 95, 53, 65, 75, 1, 7, 77, 84, 70, 30, 70, 98], [99, 84, 38, 30, 97, 54, 88, 95, 16, 16, 27, 22, 15, 46, 1, 28, 33, 15, 95], [57, 70, 68, 58, 20, 4, 10, 7, 91, 57, 6, 55, 31, 64, 36, 91, 13, 75, 73], [72, 61, 10, 66, 24, 99, 34, 50, 75, 1, 5, 27, 7, 1, 32, 17, 18, 68, 49], [13, 69, 22, 26, 68, 87, 5, 9, 77, 62, 73, 68, 90, 78, 2, 95, 50, 51, 90], [2, 41, 64, 44, 52, 37, 66, 92, 56, 23, 71, 39, 86, 60, 56, 36, 1, 98, 4], [41, 99, 53, 31, 33, 5, 43, 11, 32, 1, 43, 6, 92, 81, 11, 41, 27, 61, 76], [13, 95, 35, 25, 94, 36, 21, 55, 36, 28, 27, 12, 74, 26, 93, 45, 6, 89, 8], [75, 17, 38, 77, 41, 15, 83, 83, 74, 28, 25, 79, 35, 80, 37, 27, 5, 59, 88], [66, 99, 57, 61, 97, 96, 60, 64, 32, 16, 44, 87, 90, 69, 61, 71, 34, 74, 86], [21, 19, 52, 42, 39, 45, 89, 13, 43, 83, 71, 95, 66, 45, 4, 1, 60, 50, 87], [47, 17, 86, 35, 8, 56, 60, 55, 7, 65, 25, 24, 97, 75, 96, 93, 65, 47, 8], [45, 29, 31, 57, 99, 7, 31, 60, 56, 32, 94, 61, 61, 76, 99, 64, 10, 26, 69]],2,),
([[97, 37, 30, 97, 2, 42, 68, 90, 94], [35, 10, 31, 79, 85, 6, 65, 74, 2], [9, 81, 80, 66, 80, 99, 59, 92, 13], [6, 25, 63, 59, 90, 46, 15, 66, 86], [42, 92, 17, 23, 15, 38, 56, 34, 94], [65, 80, 89, 87, 97, 34, 73, 16, 50], [69, 42, 62, 12, 69, 87, 72, 99, 80], [84, 28, 30, 75, 50, 17, 10, 88, 95], [11, 47, 8, 31, 37, 33, 9, 46, 3]],4,),
([[28, 52, 61, 24, 10, 42, 37, 15, 28, 37, 65, 13, 59], [68, 56, 30, 64, 67, 20, 99, 27, 12, 41, 80, 96, 51], [97, 80, 29, 91, 95, 51, 59, 88, 31, 9, 70, 30, 90], [40, 7, 72, 59, 11, 3, 4, 97, 20, 5, 34, 14, 13], [61, 49, 45, 53, 24, 94, 63, 75, 9, 63, 56, 77, 77], [96, 71, 75, 42, 1, 64, 92, 72, 15, 69, 22, 20, 68], [45, 89, 80, 40, 46, 91, 63, 93, 12, 52, 7, 88, 55], [5, 47, 97, 38, 43, 70, 8, 86, 50, 78, 9, 13, 50], [96, 78, 35, 25, 61, 31, 49, 43, 45, 84, 7, 74, 6], [89, 50, 70, 45, 54, 17, 86, 87, 29, 64, 71, 99, 20], [26, 93, 29, 7, 34, 5, 77, 6, 96, 33, 43, 59, 33], [83, 61, 18, 14, 21, 39, 34, 31, 81, 7, 85, 71, 1], [86, 22, 87, 92, 63, 62, 46, 57, 94, 45, 74, 76, 80]],10,),
([[68, 37, 94, 90, 14, 37, 89, 91, 14, 66, 66, 33, 2], [98, 53, 89, 55, 45, 37, 27, 90, 52, 86, 47, 58, 7], [13, 48, 28, 45, 56, 92, 88, 35, 55, 97, 37, 9, 3], [2, 58, 22, 85, 24, 78, 54, 97, 17, 58, 58, 21, 77], [63, 63, 44, 40, 75, 66, 92, 67, 79, 46, 24, 72, 70], [96, 51, 99, 77, 92, 4, 31, 65, 30, 72, 40, 14, 44], [92, 34, 39, 4, 88, 27, 42, 11, 87, 32, 50, 53, 4], [19, 71, 33, 78, 77, 70, 83, 55, 9, 62, 99, 62, 48], [90, 68, 48, 92, 27, 55, 44, 71, 52, 57, 9, 98, 8], [56, 10, 65, 72, 45, 39, 46, 17, 82, 98, 99, 67, 76], [62, 68, 36, 9, 35, 67, 89, 52, 90, 91, 28, 58, 83], [24, 59, 37, 38, 25, 98, 15, 16, 55, 4, 26, 39, 57], [47, 90, 48, 92, 49, 37, 38, 62, 61, 74, 97, 8, 38]],7,),
([[85, 56, 45, 50, 20, 63, 55, 34, 92, 32, 76, 73, 43, 79, 13, 2, 61, 84, 14, 42, 15, 93, 85, 10, 56, 53, 58, 85, 99, 81, 62, 57, 63, 4, 78, 96], [82, 34, 32, 78, 34, 70, 40, 35, 15, 51, 20, 92, 37, 38, 21, 88, 10, 54, 9, 86, 42, 16, 24, 4, 44, 23, 42, 86, 66, 92, 19, 20, 28, 24, 91, 2], [7, 1, 11, 51, 60, 31, 30, 77, 24, 18, 58, 77, 17, 46, 94, 19, 12, 90, 82, 12, 50, 66, 20, 6, 1, 90, 7, 96, 55, 97, 74, 15, 95, 24, 29, 82], [71, 34, 78, 84, 93, 37, 42, 64, 95, 19, 23, 71, 6, 99, 93, 55, 77, 39, 25, 98, 83, 4, 88, 33, 66, 2, 14, 50, 11, 34, 38, 92, 39, 22, 42, 97], [95, 57, 78, 38, 9, 88, 29, 69, 42, 60, 39, 91, 72, 93, 60, 53, 76, 8, 21, 56, 48, 47, 9, 78, 1, 55, 31, 80, 91, 11, 66, 60, 31, 50, 60, 88], [62, 39, 3, 58, 68, 30, 67, 68, 58, 77, 53, 14, 10, 78, 81, 22, 63, 61, 46, 37, 21, 89, 3, 19, 32, 79, 24, 73, 74, 48, 96, 58, 40, 7, 46, 91], [15, 85, 74, 87, 5, 59, 70, 22, 28, 54, 19, 14, 48, 7, 79, 32, 22, 46, 85, 83, 13, 22, 10, 44, 24, 59, 62, 72, 72, 55, 49, 50, 19, 82, 58, 97], [48, 93, 96, 72, 96, 12, 86, 20, 45, 26, 81, 98, 31, 82, 59, 3, 18, 84, 21, 57, 99, 42, 62, 30, 61, 36, 55, 4, 15, 71, 96, 97, 57, 63, 77, 64], [17, 53, 40, 70, 50, 68, 15, 72, 34, 30, 87, 73, 24, 8, 57, 70, 25, 77, 34, 25, 18, 73, 97, 70, 14, 6, 82, 90, 36, 36, 75, 18, 15, 94, 89, 16], [76, 14, 47, 54, 58, 77, 30, 46, 16, 1, 41, 93, 27, 77, 62, 81, 28, 20, 55, 51, 69, 88, 73, 97, 34, 27, 97, 38, 29, 35, 20, 19, 5, 25, 93, 26], [51, 66, 61, 15, 45, 6, 58, 1, 73, 43, 16, 14, 74, 19, 51, 8, 48, 12, 70, 35, 70, 6, 99, 11, 38, 91, 26, 28, 72, 89, 83, 80, 50, 58, 26, 44], [15, 76, 24, 77, 59, 57, 17, 77, 81, 1, 11, 20, 31, 99, 39, 63, 6, 99, 28, 51, 53, 44, 65, 80, 12, 28, 79, 72, 68, 95, 30, 35, 6, 85, 30, 80], [63, 8, 91, 33, 43, 76, 43, 45, 87, 54, 65, 7, 36, 25, 85, 37, 12, 32, 49, 38, 56, 80, 65, 26, 57, 14, 56, 70, 41, 51, 84, 67, 12, 97, 49, 1], [19, 66, 58, 87, 72, 98, 4, 8, 27, 26, 97, 43, 40, 50, 67, 73, 74, 29, 85, 42, 18, 81, 21, 67, 62, 27, 96, 93, 47, 93, 26, 9, 91, 12, 16, 47], [56, 66, 51, 27, 73, 66, 62, 71, 8, 38, 6, 59, 19, 79, 56, 28, 94, 91, 10, 45, 95, 65, 50, 32, 61, 16, 6, 66, 62, 66, 67, 19, 4, 43, 18, 82], [46, 46, 85, 21, 30, 64, 41, 17, 5, 5, 73, 75, 48, 78, 38, 6, 58, 14, 72, 94, 59, 65, 89, 13, 27, 25, 56, 68, 59, 95, 49, 18, 81, 75, 76, 3], [79, 57, 6, 69, 31, 8, 10, 3, 12, 92, 76, 94, 19, 21, 81, 14, 75, 29, 7, 49, 65, 7, 14, 16, 99, 16, 85, 13, 82, 29, 85, 73, 95, 61, 37, 17], [31, 59, 88, 47, 6, 32, 31, 18, 9, 3, 71, 26, 13, 34, 43, 93, 33, 69, 36, 79, 74, 68, 47, 61, 45, 96, 88, 84, 48, 41, 38, 68, 75, 11, 16, 65], [97, 71, 67, 71, 1, 97, 71, 4, 82, 37, 14, 79, 25, 82, 4, 66, 43, 26, 84, 15, 6, 37, 43, 42, 13, 16, 42, 38, 66, 65, 5, 30, 95, 43, 32, 67], [67, 42, 5, 99, 86, 96, 59, 23, 8, 68, 70, 91, 19, 44, 93, 38, 44, 6, 3, 96, 80, 33, 66, 58, 26, 99, 28, 43, 75, 88, 16, 89, 23, 59, 35, 89], [41, 97, 22, 74, 1, 46, 22, 32, 87, 30, 87, 43, 12, 83, 71, 27, 26, 18, 92, 75, 66, 81, 61, 46, 29, 32, 15, 60, 82, 28, 27, 41, 47, 33, 44, 50], [10, 24, 34, 91, 20, 25, 55, 90, 43, 53, 85, 50, 55, 13, 49, 97, 10, 92, 97, 11, 78, 84, 20, 72, 79, 97, 83, 48, 76, 17, 33, 20, 46, 31, 51, 83], [19, 62, 44, 77, 38, 49, 65, 11, 27, 58, 64, 65, 15, 82, 89, 1, 19, 56, 64, 34, 64, 10, 76, 60, 39, 66, 32, 51, 26, 57, 84, 60, 55, 6, 7, 66], [81, 26, 95, 98, 82, 78, 5, 87, 1, 84, 2, 65, 10, 50, 51, 69, 41, 58, 77, 68, 24, 91, 56, 36, 2, 96, 56, 81, 12, 12, 85, 72, 22, 74, 84, 62], [64, 28, 89, 28, 4, 45, 90, 13, 83, 98, 80, 4, 61, 84, 26, 94, 6, 77, 56, 81, 27, 35, 97, 82, 58, 84, 63, 33, 95, 83, 97, 81, 33, 69, 40, 47], [45, 27, 7, 58, 14, 4, 82, 34, 80, 91, 38, 20, 46, 19, 1, 23, 62, 73, 28, 84, 80, 77, 33, 3, 79, 16, 30, 25, 78, 1, 33, 37, 29, 37, 61, 8], [1, 63, 88, 65, 46, 43, 10, 82, 85, 10, 62, 86, 51, 45, 73, 73, 45, 85, 58, 95, 66, 24, 97, 75, 65, 55, 51, 72, 73, 21, 47, 22, 29, 40, 3, 49], [25, 82, 11, 94, 89, 75, 98, 88, 48, 32, 3, 45, 89, 20, 20, 51, 81, 20, 82, 14, 98, 80, 32, 72, 42, 80, 39, 38, 64, 4, 99, 92, 63, 61, 78, 5], [66, 45, 50, 88, 3, 23, 11, 38, 56, 35, 65, 6, 70, 40, 90, 35, 13, 25, 86, 81, 78, 67, 68, 99, 47, 55, 92, 43, 2, 45, 48, 62, 38, 47, 4, 60], [49, 76, 34, 44, 94, 85, 56, 92, 42, 50, 69, 33, 98, 96, 91, 67, 42, 44, 68, 57, 36, 41, 56, 3, 56, 56, 65, 39, 40, 39, 27, 67, 94, 65, 74, 3], [3, 37, 98, 20, 11, 83, 91, 24, 70, 65, 83, 74, 32, 62, 55, 36, 66, 37, 14, 46, 77, 56, 50, 61, 17, 27, 54, 29, 13, 49, 25, 88, 23, 26, 48, 36], [6, 80, 74, 39, 57, 91, 66, 10, 72, 9, 77, 72, 27, 46, 63, 42, 85, 41, 34, 93, 30, 44, 80, 1, 45, 47, 93, 30, 22, 15, 84, 38, 23, 31, 57, 81], [35, 66, 53, 31, 26, 31, 72, 80, 12, 53, 56, 83, 62, 44, 58, 77, 65, 13, 61, 68, 51, 62, 48, 95, 63, 72, 91, 72, 51, 24, 86, 40, 29, 73, 17, 1], [96, 84, 1, 25, 41, 91, 23, 18, 95, 28, 85, 12, 88, 49, 97, 81, 97, 16, 27, 53, 92, 36, 7, 34, 65, 4, 26, 20, 51, 77, 99, 10, 8, 18, 17, 69], [30, 95, 39, 61, 24, 81, 98, 35, 79, 61, 75, 98, 72, 15, 36, 55, 37, 87, 62, 64, 39, 90, 98, 75, 12, 72, 8, 41, 69, 74, 3, 43, 37, 86, 57, 25], [4, 58, 37, 8, 94, 9, 79, 1, 13, 68, 16, 44, 65, 14, 91, 26, 32, 2, 16, 92, 49, 90, 75, 23, 94, 60, 95, 66, 20, 93, 74, 18, 59, 31, 4, 27]],35,),
([[95, 71, 19, 39, 66, 78, 46, 92, 38, 67, 29, 91, 57, 48, 52, 48, 61, 67, 48, 94, 82, 8, 74, 86, 88, 67, 14, 47, 24, 91, 62, 58, 34, 31, 48, 91, 45, 29, 29, 63, 48, 12, 78, 27], [47, 66, 37, 45, 57, 18, 13, 73, 29, 56, 74, 20, 29, 6, 26, 61, 86, 43, 47, 26, 81, 1, 95, 73, 26, 64, 62, 6, 62, 66, 42, 27, 65, 30, 82, 98, 85, 65, 47, 32, 34, 47, 14, 5], [36, 96, 9, 35, 25, 75, 46, 13, 61, 30, 98, 32, 30, 82, 56, 67, 71, 55, 98, 8, 43, 48, 58, 32, 78, 69, 7, 74, 20, 62, 21, 92, 29, 70, 38, 42, 3, 37, 17, 33, 10, 37, 33, 28], [87, 42, 58, 48, 51, 10, 8, 16, 96, 62, 49, 89, 15, 16, 81, 27, 47, 26, 72, 41, 11, 91, 9, 54, 11, 7, 28, 94, 62, 55, 36, 73, 99, 63, 51, 77, 48, 68, 10, 26, 67, 53, 43, 17], [27, 22, 36, 72, 33, 90, 95, 53, 11, 93, 29, 38, 58, 15, 54, 62, 57, 79, 71, 58, 49, 53, 29, 33, 46, 54, 80, 98, 85, 7, 29, 9, 49, 71, 78, 94, 88, 51, 98, 8, 55, 65, 98, 84], [95, 79, 15, 51, 34, 69, 86, 12, 45, 31, 54, 93, 22, 72, 64, 60, 28, 21, 75, 75, 87, 77, 43, 27, 23, 97, 90, 36, 97, 38, 16, 74, 43, 41, 44, 52, 17, 52, 43, 23, 1, 93, 25, 6], [74, 54, 78, 23, 19, 56, 53, 31, 38, 19, 1, 77, 50, 98, 58, 81, 32, 49, 98, 97, 92, 44, 29, 88, 48, 80, 77, 26, 7, 44, 14, 52, 32, 75, 32, 75, 84, 57, 52, 34, 61, 62, 86, 87], [93, 76, 31, 29, 31, 12, 35, 57, 41, 27, 15, 94, 71, 36, 24, 82, 24, 96, 76, 28, 75, 3, 3, 29, 32, 54, 38, 95, 56, 65, 21, 41, 20, 60, 75, 59, 74, 55, 3, 14, 45, 95, 99, 60], [49, 9, 54, 70, 93, 52, 63, 52, 22, 55, 3, 2, 59, 28, 37, 69, 9, 62, 32, 81, 75, 35, 47, 18, 36, 19, 25, 46, 60, 95, 23, 78, 27, 35, 77, 55, 36, 88, 97, 71, 9, 21, 32, 66], [44, 89, 65, 75, 80, 87, 15, 27, 16, 46, 97, 72, 48, 65, 19, 90, 37, 58, 55, 53, 47, 3, 88, 86, 62, 1, 39, 73, 33, 23, 34, 49, 49, 99, 49, 10, 96, 66, 71, 88, 67, 76, 39, 42], [91, 1, 46, 36, 96, 91, 44, 31, 97, 58, 96, 4, 53, 89, 93, 57, 73, 78, 50, 5, 52, 17, 32, 6, 69, 93, 92, 61, 10, 23, 53, 61, 19, 4, 46, 32, 84, 46, 62, 92, 54, 87, 67, 24], [66, 18, 96, 48, 46, 48, 62, 94, 27, 62, 78, 65, 52, 1, 50, 40, 72, 17, 1, 78, 77, 30, 77, 67, 22, 35, 56, 14, 45, 86, 33, 12, 24, 69, 57, 9, 2, 59, 95, 29, 93, 55, 94, 22], [85, 49, 12, 71, 89, 8, 97, 16, 40, 45, 64, 63, 51, 10, 76, 86, 71, 45, 85, 56, 86, 73, 84, 13, 64, 88, 30, 52, 54, 57, 18, 25, 53, 20, 11, 40, 98, 23, 90, 87, 42, 47, 56, 33], [89, 98, 26, 69, 29, 94, 60, 91, 37, 25, 74, 44, 34, 12, 93, 39, 19, 19, 29, 66, 90, 98, 94, 76, 20, 57, 97, 9, 2, 28, 34, 21, 83, 78, 81, 56, 5, 85, 22, 59, 40, 84, 92, 63], [32, 45, 83, 92, 87, 33, 82, 35, 46, 36, 62, 83, 90, 26, 7, 87, 5, 87, 32, 79, 91, 81, 84, 57, 80, 62, 28, 95, 80, 78, 74, 66, 97, 41, 86, 66, 64, 7, 41, 45, 44, 30, 38, 39], [19, 47, 38, 17, 74, 79, 69, 99, 4, 35, 1, 81, 85, 58, 22, 5, 60, 36, 9, 84, 57, 78, 84, 90, 4, 51, 39, 84, 52, 75, 71, 55, 31, 50, 8, 87, 15, 65, 10, 41, 88, 79, 48, 21], [86, 24, 74, 23, 80, 69, 33, 36, 25, 58, 90, 66, 98, 31, 44, 63, 45, 83, 82, 50, 67, 71, 87, 1, 71, 86, 67, 83, 94, 9, 99, 35, 13, 26, 45, 51, 92, 25, 56, 39, 3, 75, 94, 53], [33, 62, 98, 67, 69, 95, 4, 72, 59, 17, 22, 38, 88, 31, 49, 52, 89, 38, 96, 49, 90, 27, 23, 84, 27, 81, 14, 3, 27, 62, 14, 92, 44, 25, 61, 75, 52, 12, 97, 84, 34, 23, 19, 1], [74, 65, 5, 57, 22, 43, 2, 73, 7, 21, 71, 59, 9, 40, 73, 49, 12, 73, 10, 74, 17, 4, 64, 16, 49, 27, 6, 9, 58, 32, 38, 30, 78, 45, 29, 92, 22, 31, 81, 17, 54, 79, 47, 32], [28, 11, 39, 17, 76, 39, 73, 25, 26, 68, 62, 19, 13, 29, 54, 73, 42, 62, 71, 71, 21, 9, 45, 27, 48, 85, 69, 5, 72, 15, 77, 97, 44, 47, 32, 36, 49, 53, 23, 34, 18, 12, 87, 2], [27, 50, 31, 48, 86, 69, 17, 43, 71, 18, 66, 31, 63, 28, 67, 9, 97, 28, 92, 18, 15, 75, 89, 5, 41, 91, 76, 74, 73, 66, 73, 51, 16, 65, 85, 57, 37, 39, 65, 49, 47, 40, 14, 40], [48, 32, 88, 39, 33, 30, 26, 43, 55, 44, 78, 76, 3, 7, 85, 58, 91, 10, 10, 81, 42, 34, 82, 26, 60, 2, 73, 45, 5, 26, 79, 25, 26, 92, 87, 85, 22, 19, 10, 42, 31, 31, 99, 75], [81, 97, 86, 90, 36, 66, 32, 67, 63, 23, 50, 65, 69, 44, 58, 57, 37, 65, 18, 5, 82, 99, 96, 26, 33, 42, 88, 27, 54, 83, 82, 79, 91, 75, 24, 3, 39, 71, 12, 33, 22, 35, 14, 26], [83, 85, 54, 41, 45, 31, 69, 99, 17, 60, 96, 4, 10, 94, 9, 61, 90, 22, 21, 23, 61, 12, 95, 17, 55, 21, 54, 47, 41, 97, 15, 96, 59, 99, 15, 29, 11, 29, 86, 90, 82, 89, 85, 88], [56, 92, 53, 3, 13, 38, 70, 11, 23, 73, 56, 17, 9, 83, 99, 96, 92, 28, 79, 19, 97, 87, 92, 4, 47, 47, 31, 99, 5, 33, 48, 32, 79, 59, 98, 64, 47, 9, 35, 47, 88, 82, 17, 1], [55, 11, 33, 70, 56, 64, 93, 58, 20, 18, 78, 45, 43, 20, 57, 82, 27, 18, 17, 60, 89, 5, 6, 97, 15, 39, 80, 39, 88, 21, 13, 29, 98, 5, 67, 21, 9, 67, 44, 62, 94, 67, 62, 62], [60, 49, 39, 41, 50, 98, 17, 53, 55, 78, 75, 56, 1, 65, 64, 52, 15, 2, 12, 45, 57, 42, 2, 87, 62, 34, 17, 41, 78, 75, 84, 71, 65, 15, 38, 98, 73, 65, 9, 42, 66, 86, 89, 51], [78, 99, 80, 19, 31, 66, 32, 75, 8, 69, 98, 32, 47, 70, 8, 34, 4, 36, 44, 25, 26, 33, 9, 47, 72, 17, 15, 42, 54, 13, 50, 44, 3, 53, 56, 54, 57, 12, 93, 59, 65, 96, 37, 20], [72, 37, 31, 95, 25, 50, 49, 8, 94, 94, 91, 35, 13, 21, 73, 24, 48, 33, 1, 72, 3, 14, 14, 49, 33, 4, 38, 25, 47, 13, 39, 25, 73, 43, 38, 35, 93, 55, 50, 78, 34, 25, 42, 92], [51, 94, 37, 66, 85, 34, 83, 38, 31, 26, 76, 94, 26, 63, 48, 95, 79, 10, 36, 40, 26, 9, 53, 81, 70, 86, 80, 86, 53, 39, 61, 52, 68, 68, 73, 78, 42, 90, 67, 96, 75, 51, 3, 13], [13, 61, 24, 20, 74, 87, 97, 55, 35, 78, 80, 30, 83, 33, 41, 66, 49, 8, 84, 3, 85, 65, 85, 72, 2, 87, 41, 53, 75, 16, 9, 96, 39, 64, 36, 23, 47, 49, 55, 94, 10, 63, 95, 26], [48, 30, 2, 29, 54, 32, 38, 21, 27, 88, 34, 23, 78, 39, 69, 73, 45, 63, 8, 7, 30, 12, 20, 64, 29, 55, 12, 84, 22, 23, 48, 45, 26, 28, 55, 73, 69, 2, 28, 77, 79, 53, 14, 46], [78, 67, 74, 70, 20, 35, 48, 43, 20, 56, 3, 68, 11, 62, 61, 95, 58, 29, 38, 84, 88, 87, 22, 86, 41, 84, 63, 38, 50, 7, 24, 46, 25, 78, 29, 67, 93, 80, 85, 22, 85, 86, 9, 87], [49, 73, 96, 36, 5, 90, 4, 24, 41, 14, 91, 12, 82, 44, 9, 66, 38, 96, 77, 57, 47, 55, 88, 2, 83, 18, 66, 90, 57, 64, 88, 27, 53, 59, 29, 72, 95, 98, 14, 68, 43, 29, 57, 33], [21, 41, 1, 27, 2, 64, 51, 54, 74, 74, 30, 1, 95, 99, 29, 13, 73, 43, 41, 75, 88, 89, 58, 77, 14, 41, 67, 54, 6, 46, 77, 1, 29, 78, 76, 26, 58, 87, 3, 60, 14, 98, 23, 62], [10, 4, 39, 74, 88, 34, 88, 25, 52, 15, 12, 1, 9, 59, 14, 31, 88, 53, 63, 10, 43, 18, 67, 59, 76, 99, 23, 86, 75, 46, 49, 23, 12, 29, 89, 88, 59, 53, 68, 63, 29, 3, 95, 89], [37, 63, 23, 49, 86, 93, 77, 3, 22, 36, 10, 9, 56, 55, 19, 72, 33, 20, 94, 35, 31, 83, 50, 46, 78, 10, 67, 34, 51, 92, 83, 39, 90, 68, 12, 26, 71, 67, 90, 2, 12, 59, 32, 51], [11, 32, 64, 45, 79, 54, 6, 26, 8, 8, 38, 8, 17, 83, 3, 41, 73, 53, 97, 96, 96, 70, 62, 53, 59, 93, 81, 83, 95, 83, 23, 47, 35, 14, 65, 97, 49, 36, 1, 84, 22, 35, 3, 12], [37, 58, 77, 12, 2, 84, 65, 58, 60, 41, 35, 88, 90, 11, 52, 52, 62, 63, 15, 70, 40, 9, 70, 17, 23, 58, 95, 80, 51, 57, 86, 16, 45, 61, 12, 73, 6, 4, 81, 74, 35, 47, 85, 19], [27, 11, 70, 59, 41, 43, 28, 63, 67, 45, 24, 77, 64, 79, 73, 39, 99, 45, 61, 82, 43, 67, 92, 80, 42, 41, 47, 43, 23, 32, 74, 57, 38, 77, 15, 28, 13, 35, 2, 61, 65, 41, 96, 94], [86, 4, 53, 88, 14, 17, 14, 41, 62, 52, 27, 85, 40, 35, 90, 95, 59, 97, 49, 63, 11, 80, 6, 98, 41, 32, 21, 93, 75, 57, 5, 91, 28, 95, 75, 77, 70, 27, 94, 53, 48, 83, 78, 58], [9, 55, 45, 28, 28, 46, 25, 26, 62, 68, 67, 34, 21, 81, 34, 44, 76, 89, 21, 18, 36, 70, 84, 53, 20, 96, 95, 84, 94, 3, 84, 8, 85, 48, 23, 1, 2, 74, 37, 94, 51, 44, 24, 32], [56, 50, 64, 30, 38, 78, 55, 3, 25, 45, 62, 7, 81, 27, 23, 32, 2, 75, 34, 52, 61, 34, 7, 10, 89, 2, 30, 81, 29, 82, 60, 99, 17, 56, 86, 51, 25, 84, 16, 25, 15, 79, 57, 15], [56, 82, 37, 65, 33, 3, 49, 22, 54, 21, 27, 4, 99, 1, 4, 55, 24, 29, 22, 23, 85, 78, 8, 58, 80, 99, 88, 59, 90, 7, 25, 45, 90, 26, 30, 66, 53, 73, 39, 11, 79, 12, 99, 50]],29,),
([[16, 49, 32, 82, 45, 85, 80, 71, 5, 44, 41, 97, 95, 85, 67, 74, 75, 22, 17, 89, 92, 50, 84, 94, 31, 13, 74, 51, 33, 20, 48, 78, 72, 72, 92, 74, 14, 62, 51, 78, 70, 98, 81, 21, 92, 38, 15], [36, 9, 99, 59, 82, 54, 17, 82, 4, 84, 13, 75, 43, 97, 92, 8, 20, 82, 71, 61, 44, 97, 51, 58, 75, 30, 99, 84, 10, 94, 18, 25, 96, 34, 44, 39, 95, 92, 90, 68, 43, 20, 72, 2, 27, 34, 55], [36, 85, 72, 87, 72, 69, 65, 85, 44, 43, 74, 66, 21, 61, 13, 28, 30, 82, 2, 58, 83, 21, 90, 46, 89, 83, 25, 57, 20, 6, 18, 49, 82, 20, 34, 10, 33, 55, 19, 66, 47, 49, 67, 30, 83, 85, 59], [78, 31, 21, 17, 53, 51, 24, 40, 98, 47, 20, 16, 58, 49, 42, 12, 41, 58, 60, 24, 13, 34, 61, 27, 85, 67, 14, 41, 57, 30, 45, 74, 1, 92, 83, 94, 84, 52, 20, 23, 95, 96, 90, 78, 6, 33, 8], [63, 4, 13, 35, 93, 89, 34, 56, 11, 38, 93, 45, 86, 58, 34, 75, 92, 72, 24, 74, 79, 63, 39, 21, 36, 48, 84, 13, 2, 27, 7, 90, 94, 19, 40, 21, 58, 26, 74, 36, 44, 64, 27, 8, 90, 1, 23], [73, 31, 7, 9, 71, 92, 98, 53, 16, 74, 24, 74, 46, 29, 89, 30, 51, 83, 31, 30, 34, 92, 19, 75, 28, 6, 17, 91, 36, 1, 16, 68, 47, 23, 96, 67, 62, 85, 88, 15, 75, 67, 83, 43, 8, 98, 98], [44, 26, 67, 32, 64, 43, 74, 74, 62, 11, 78, 95, 9, 48, 6, 54, 62, 54, 99, 98, 56, 82, 87, 30, 3, 61, 15, 3, 15, 67, 29, 31, 71, 71, 55, 75, 92, 43, 25, 81, 55, 50, 38, 60, 85, 52, 84], [74, 70, 76, 81, 45, 97, 19, 5, 42, 93, 30, 65, 76, 79, 5, 38, 11, 84, 29, 14, 90, 98, 74, 91, 89, 10, 39, 60, 96, 98, 23, 97, 96, 22, 86, 87, 83, 23, 22, 62, 94, 19, 22, 1, 34, 26, 4], [48, 45, 12, 92, 37, 3, 28, 93, 84, 2, 56, 65, 46, 44, 18, 73, 37, 54, 25, 83, 62, 25, 52, 63, 15, 46, 56, 26, 64, 20, 67, 25, 21, 34, 88, 25, 65, 29, 32, 1, 35, 56, 16, 32, 79, 5, 10], [86, 72, 79, 20, 89, 12, 90, 68, 63, 26, 60, 74, 61, 15, 5, 32, 96, 22, 22, 12, 64, 75, 88, 80, 16, 65, 51, 87, 92, 32, 53, 3, 13, 92, 92, 58, 45, 24, 51, 13, 24, 5, 81, 50, 76, 49, 18], [33, 58, 31, 34, 94, 96, 74, 31, 99, 79, 27, 59, 27, 1, 76, 68, 23, 98, 52, 57, 87, 51, 83, 84, 63, 84, 93, 77, 28, 24, 22, 86, 40, 75, 8, 96, 88, 12, 49, 21, 67, 39, 62, 82, 58, 62, 70], [36, 45, 79, 15, 62, 38, 64, 88, 71, 9, 75, 80, 71, 25, 78, 65, 20, 28, 49, 34, 73, 20, 95, 85, 22, 77, 44, 47, 25, 22, 61, 52, 20, 96, 80, 20, 86, 45, 37, 15, 76, 9, 44, 15, 44, 86, 12], [27, 19, 25, 74, 99, 64, 12, 50, 72, 11, 83, 23, 88, 15, 63, 20, 89, 78, 10, 61, 93, 47, 49, 49, 76, 33, 87, 78, 23, 53, 37, 22, 93, 2, 20, 5, 91, 3, 82, 77, 86, 77, 12, 32, 58, 71, 70], [40, 6, 63, 25, 91, 69, 83, 73, 50, 40, 1, 46, 73, 39, 10, 49, 14, 46, 40, 89, 19, 17, 82, 46, 73, 65, 70, 38, 17, 73, 11, 53, 18, 7, 35, 44, 71, 39, 11, 10, 98, 88, 76, 9, 86, 96, 8], [48, 21, 80, 97, 89, 6, 59, 68, 23, 73, 75, 35, 12, 99, 71, 57, 29, 85, 67, 61, 61, 88, 30, 27, 93, 30, 55, 23, 37, 26, 36, 92, 63, 37, 51, 68, 93, 78, 63, 37, 97, 31, 78, 25, 73, 25, 46], [89, 30, 20, 23, 1, 15, 21, 30, 11, 90, 52, 30, 9, 69, 47, 34, 33, 98, 65, 51, 79, 31, 56, 76, 71, 45, 33, 96, 51, 5, 38, 5, 56, 81, 71, 89, 25, 67, 52, 36, 92, 23, 8, 31, 63, 21, 99], [50, 29, 60, 67, 44, 89, 2, 98, 15, 39, 40, 47, 76, 52, 88, 6, 70, 48, 58, 90, 3, 96, 46, 18, 56, 92, 33, 17, 32, 76, 85, 2, 26, 39, 63, 17, 34, 19, 62, 32, 50, 86, 45, 54, 82, 88, 1], [66, 40, 24, 52, 2, 61, 27, 66, 87, 33, 34, 62, 32, 3, 55, 27, 76, 8, 20, 52, 17, 33, 55, 75, 73, 98, 71, 16, 91, 79, 64, 88, 40, 58, 83, 23, 95, 94, 7, 59, 59, 3, 30, 10, 98, 13, 39], [77, 64, 25, 41, 98, 40, 62, 40, 34, 79, 3, 52, 46, 86, 98, 69, 41, 86, 60, 29, 8, 98, 4, 25, 50, 23, 25, 98, 70, 98, 21, 94, 56, 3, 79, 21, 83, 83, 49, 46, 98, 78, 68, 31, 46, 75, 44], [45, 75, 49, 4, 80, 57, 56, 38, 6, 82, 89, 24, 52, 39, 73, 37, 98, 34, 40, 40, 37, 92, 50, 11, 78, 59, 26, 60, 8, 28, 84, 60, 89, 10, 63, 61, 75, 26, 23, 63, 19, 18, 50, 19, 15, 16, 20], [19, 75, 71, 19, 88, 31, 52, 48, 8, 50, 61, 88, 8, 13, 74, 19, 50, 23, 57, 97, 30, 94, 29, 61, 35, 9, 72, 25, 64, 37, 38, 8, 90, 75, 40, 23, 96, 45, 1, 49, 9, 40, 28, 97, 96, 8, 37], [82, 71, 18, 76, 68, 77, 75, 80, 44, 78, 16, 52, 53, 86, 18, 40, 61, 25, 35, 71, 84, 27, 93, 10, 75, 20, 33, 77, 80, 11, 69, 67, 59, 66, 53, 38, 10, 6, 85, 95, 34, 49, 32, 29, 65, 33, 17], [98, 49, 16, 7, 13, 84, 4, 63, 69, 80, 73, 76, 78, 15, 5, 42, 18, 72, 8, 89, 68, 26, 75, 70, 33, 22, 93, 69, 1, 86, 35, 56, 95, 67, 3, 71, 1, 42, 58, 88, 94, 96, 96, 85, 64, 80, 4], [17, 77, 99, 40, 34, 56, 11, 89, 40, 94, 13, 24, 34, 8, 82, 7, 62, 46, 86, 71, 13, 2, 2, 29, 91, 82, 58, 2, 59, 53, 68, 61, 49, 46, 72, 59, 48, 9, 18, 50, 86, 75, 27, 32, 66, 66, 94], [22, 86, 24, 91, 75, 13, 91, 15, 49, 17, 39, 73, 87, 4, 57, 15, 43, 31, 6, 90, 59, 65, 86, 30, 58, 86, 97, 56, 69, 36, 46, 74, 1, 12, 67, 10, 1, 19, 82, 95, 55, 49, 55, 86, 68, 41, 55], [74, 74, 79, 69, 43, 81, 82, 57, 48, 50, 69, 8, 56, 91, 89, 26, 23, 41, 87, 93, 97, 59, 18, 71, 96, 71, 8, 58, 85, 17, 51, 33, 30, 66, 60, 46, 22, 32, 25, 8, 97, 63, 29, 81, 40, 45, 2], [49, 31, 68, 90, 9, 95, 10, 51, 70, 44, 26, 75, 79, 84, 78, 21, 91, 30, 71, 15, 80, 59, 84, 84, 86, 70, 20, 69, 53, 75, 2, 30, 8, 40, 8, 17, 99, 30, 1, 69, 64, 80, 36, 79, 49, 81, 77], [24, 4, 77, 62, 9, 26, 47, 16, 37, 70, 11, 2, 94, 83, 23, 47, 62, 76, 39, 6, 36, 62, 60, 79, 36, 77, 72, 89, 88, 31, 40, 60, 13, 93, 96, 37, 61, 18, 90, 18, 34, 54, 31, 79, 37, 84, 92], [68, 72, 58, 82, 96, 53, 87, 62, 79, 7, 31, 96, 40, 78, 83, 50, 80, 9, 65, 25, 8, 39, 32, 8, 13, 67, 66, 28, 4, 23, 34, 55, 71, 94, 58, 73, 19, 9, 23, 75, 13, 93, 31, 72, 19, 5, 91], [39, 14, 22, 22, 5, 62, 52, 80, 39, 26, 80, 56, 12, 80, 49, 12, 96, 5, 92, 51, 4, 93, 83, 25, 99, 24, 56, 19, 23, 95, 83, 96, 77, 46, 18, 61, 71, 45, 88, 46, 17, 15, 73, 34, 99, 8, 50], [11, 88, 42, 94, 85, 43, 35, 59, 12, 73, 12, 28, 93, 46, 40, 99, 29, 70, 16, 46, 92, 65, 29, 52, 40, 6, 27, 37, 22, 7, 1, 77, 48, 51, 14, 79, 12, 49, 41, 68, 85, 2, 85, 62, 57, 14, 44], [66, 75, 37, 78, 47, 61, 84, 99, 27, 49, 60, 70, 71, 45, 1, 13, 38, 17, 38, 1, 1, 83, 30, 77, 7, 20, 44, 73, 13, 39, 20, 89, 5, 52, 25, 12, 90, 56, 86, 1, 72, 49, 67, 22, 85, 85, 31], [1, 27, 2, 93, 1, 42, 8, 35, 35, 7, 23, 23, 46, 19, 79, 72, 97, 99, 13, 50, 31, 71, 84, 38, 57, 8, 14, 94, 51, 9, 13, 76, 66, 38, 21, 29, 84, 50, 64, 9, 15, 53, 97, 53, 71, 3, 87], [22, 39, 77, 9, 34, 12, 34, 45, 97, 50, 99, 28, 39, 3, 47, 12, 43, 77, 67, 18, 90, 10, 4, 12, 53, 51, 16, 17, 95, 26, 2, 29, 94, 47, 11, 34, 71, 29, 97, 49, 91, 16, 81, 75, 14, 13, 35], [90, 52, 25, 59, 76, 68, 42, 48, 91, 45, 72, 72, 29, 3, 21, 31, 13, 95, 81, 48, 96, 24, 2, 3, 26, 2, 33, 34, 90, 98, 38, 78, 95, 20, 10, 84, 33, 45, 60, 66, 61, 51, 12, 80, 9, 11, 21], [76, 68, 26, 63, 19, 17, 44, 61, 1, 72, 58, 94, 41, 24, 43, 81, 94, 9, 66, 90, 32, 91, 41, 11, 65, 18, 8, 27, 82, 9, 2, 81, 75, 46, 70, 5, 12, 44, 42, 99, 88, 30, 52, 81, 47, 36, 70], [32, 98, 44, 16, 71, 96, 17, 32, 14, 26, 73, 13, 89, 12, 45, 16, 94, 52, 21, 24, 43, 5, 33, 31, 9, 35, 8, 75, 17, 80, 20, 91, 78, 22, 54, 71, 75, 81, 77, 81, 75, 68, 80, 31, 85, 97, 13], [29, 79, 10, 33, 15, 77, 35, 54, 21, 30, 46, 42, 71, 49, 24, 80, 69, 6, 2, 3, 53, 10, 24, 33, 84, 22, 61, 96, 94, 67, 4, 51, 4, 39, 31, 57, 73, 30, 93, 89, 39, 99, 25, 58, 36, 11, 90], [46, 89, 21, 2, 74, 39, 99, 33, 31, 4, 67, 69, 81, 13, 65, 45, 39, 87, 89, 53, 31, 13, 1, 98, 29, 61, 95, 72, 2, 12, 56, 97, 94, 41, 27, 89, 38, 97, 52, 80, 32, 88, 2, 66, 20, 57, 62], [91, 86, 48, 83, 7, 67, 50, 34, 87, 69, 67, 88, 91, 34, 43, 21, 12, 32, 47, 86, 98, 87, 55, 65, 68, 17, 26, 95, 33, 64, 92, 10, 46, 73, 90, 51, 34, 14, 41, 90, 95, 38, 48, 43, 28, 41, 56], [81, 76, 91, 65, 60, 97, 13, 69, 52, 43, 92, 88, 84, 40, 42, 37, 84, 23, 67, 69, 79, 69, 98, 58, 46, 87, 47, 17, 9, 68, 94, 78, 30, 95, 61, 65, 58, 27, 66, 45, 40, 61, 41, 74, 88, 84, 42], [62, 80, 38, 60, 49, 18, 99, 94, 5, 11, 4, 61, 75, 12, 49, 28, 90, 34, 56, 65, 6, 33, 47, 24, 34, 72, 16, 80, 16, 98, 84, 14, 59, 62, 90, 66, 19, 61, 66, 26, 89, 49, 19, 49, 81, 30, 76], [57, 85, 36, 40, 28, 97, 46, 73, 82, 88, 32, 87, 58, 76, 98, 26, 70, 69, 87, 50, 79, 32, 58, 64, 77, 28, 97, 72, 80, 39, 96, 80, 45, 13, 20, 58, 19, 75, 91, 80, 9, 77, 19, 94, 55, 39, 17], [62, 94, 93, 60, 42, 2, 50, 67, 20, 1, 5, 97, 39, 87, 18, 68, 97, 90, 22, 30, 90, 1, 70, 81, 95, 51, 68, 74, 61, 48, 53, 34, 86, 86, 7, 39, 37, 63, 55, 15, 83, 74, 62, 68, 50, 41, 61], [25, 28, 82, 35, 83, 53, 84, 39, 97, 59, 65, 1, 45, 19, 48, 49, 73, 14, 67, 30, 65, 69, 87, 6, 84, 46, 42, 72, 61, 31, 79, 26, 58, 33, 52, 32, 54, 1, 5, 22, 95, 5, 8, 70, 63, 10, 62], [40, 47, 80, 56, 28, 56, 1, 52, 82, 62, 42, 47, 37, 11, 67, 29, 4, 95, 11, 30, 79, 79, 58, 32, 29, 43, 92, 85, 39, 11, 96, 27, 24, 37, 65, 32, 53, 1, 56, 34, 82, 29, 6, 57, 95, 14, 75], [69, 62, 86, 51, 13, 76, 4, 38, 4, 30, 54, 65, 61, 49, 31, 42, 50, 23, 78, 99, 81, 60, 32, 56, 56, 87, 34, 41, 39, 86, 42, 66, 20, 14, 38, 37, 37, 12, 92, 56, 8, 93, 21, 39, 48, 18, 63]],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))) | def f_gold ( m , n ) : for i in range ( 0 , n ) : sum = 0 for j in range ( 0 , n ) : sum = sum + abs ( m [ i ] [ j ] ) sum = sum [MASK] abs ( m [ i ] [ i ] ) if ( abs ( m [ i ] [ i ] ) < sum ) : return False return Trueange ( 0 , n ) :
sum = sum + abs ( m [ i ] [ j ] )
sum = sum - abs ( m [ i ] [ i ] )
if ( abs ( m [ i ] [ i ] ) < sum ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([[ 3, -2, 1 ], [ 1, -3, 2 ], [ -1, 2, 4 ]],2,),
([[ 2, -2, 1 ], [ 1, -3, 2 ], [ -1, 2, 4 ]],3,),
([[78, 46, 33, 58, 79, 94, 94, 31, 69], [83, 48, 11, 74, 33, 61, 88, 15, 29], [27, 20, 36, 14, 37, 88, 49, 36, 58], [93, 15, 39, 5, 97, 45, 1, 47, 34], [8, 88, 54, 87, 60, 77, 37, 46, 18], [10, 68, 71, 86, 76, 24, 47, 37, 72], [84, 43, 82, 25, 87, 18, 51, 46, 75], [59, 39, 78, 86, 38, 55, 79, 5, 5], [50, 42, 19, 34, 53, 80, 21, 45, 96]],1,),
([[88, 35, 82, 14, 86, 94, 12, 49, 76, 94, 3, 96, 27, 92, 82, 25, 15, 27, 15], [30, 75, 59, 45, 53, 78, 45, 92, 72, 61, 11, 78, 51, 86, 89, 74, 39, 24, 6], [33, 22, 60, 20, 11, 35, 35, 65, 90, 78, 49, 66, 46, 5, 39, 79, 85, 93, 51], [21, 38, 36, 14, 33, 23, 72, 84, 38, 47, 64, 47, 1, 42, 68, 78, 86, 76, 25], [57, 52, 7, 7, 56, 39, 70, 83, 58, 23, 10, 72, 36, 71, 3, 72, 77, 95, 13], [90, 48, 66, 3, 63, 15, 2, 61, 59, 17, 11, 5, 70, 67, 23, 96, 63, 4, 29], [17, 95, 35, 48, 85, 87, 48, 95, 53, 65, 75, 1, 7, 77, 84, 70, 30, 70, 98], [99, 84, 38, 30, 97, 54, 88, 95, 16, 16, 27, 22, 15, 46, 1, 28, 33, 15, 95], [57, 70, 68, 58, 20, 4, 10, 7, 91, 57, 6, 55, 31, 64, 36, 91, 13, 75, 73], [72, 61, 10, 66, 24, 99, 34, 50, 75, 1, 5, 27, 7, 1, 32, 17, 18, 68, 49], [13, 69, 22, 26, 68, 87, 5, 9, 77, 62, 73, 68, 90, 78, 2, 95, 50, 51, 90], [2, 41, 64, 44, 52, 37, 66, 92, 56, 23, 71, 39, 86, 60, 56, 36, 1, 98, 4], [41, 99, 53, 31, 33, 5, 43, 11, 32, 1, 43, 6, 92, 81, 11, 41, 27, 61, 76], [13, 95, 35, 25, 94, 36, 21, 55, 36, 28, 27, 12, 74, 26, 93, 45, 6, 89, 8], [75, 17, 38, 77, 41, 15, 83, 83, 74, 28, 25, 79, 35, 80, 37, 27, 5, 59, 88], [66, 99, 57, 61, 97, 96, 60, 64, 32, 16, 44, 87, 90, 69, 61, 71, 34, 74, 86], [21, 19, 52, 42, 39, 45, 89, 13, 43, 83, 71, 95, 66, 45, 4, 1, 60, 50, 87], [47, 17, 86, 35, 8, 56, 60, 55, 7, 65, 25, 24, 97, 75, 96, 93, 65, 47, 8], [45, 29, 31, 57, 99, 7, 31, 60, 56, 32, 94, 61, 61, 76, 99, 64, 10, 26, 69]],2,),
([[97, 37, 30, 97, 2, 42, 68, 90, 94], [35, 10, 31, 79, 85, 6, 65, 74, 2], [9, 81, 80, 66, 80, 99, 59, 92, 13], [6, 25, 63, 59, 90, 46, 15, 66, 86], [42, 92, 17, 23, 15, 38, 56, 34, 94], [65, 80, 89, 87, 97, 34, 73, 16, 50], [69, 42, 62, 12, 69, 87, 72, 99, 80], [84, 28, 30, 75, 50, 17, 10, 88, 95], [11, 47, 8, 31, 37, 33, 9, 46, 3]],4,),
([[28, 52, 61, 24, 10, 42, 37, 15, 28, 37, 65, 13, 59], [68, 56, 30, 64, 67, 20, 99, 27, 12, 41, 80, 96, 51], [97, 80, 29, 91, 95, 51, 59, 88, 31, 9, 70, 30, 90], [40, 7, 72, 59, 11, 3, 4, 97, 20, 5, 34, 14, 13], [61, 49, 45, 53, 24, 94, 63, 75, 9, 63, 56, 77, 77], [96, 71, 75, 42, 1, 64, 92, 72, 15, 69, 22, 20, 68], [45, 89, 80, 40, 46, 91, 63, 93, 12, 52, 7, 88, 55], [5, 47, 97, 38, 43, 70, 8, 86, 50, 78, 9, 13, 50], [96, 78, 35, 25, 61, 31, 49, 43, 45, 84, 7, 74, 6], [89, 50, 70, 45, 54, 17, 86, 87, 29, 64, 71, 99, 20], [26, 93, 29, 7, 34, 5, 77, 6, 96, 33, 43, 59, 33], [83, 61, 18, 14, 21, 39, 34, 31, 81, 7, 85, 71, 1], [86, 22, 87, 92, 63, 62, 46, 57, 94, 45, 74, 76, 80]],10,),
([[68, 37, 94, 90, 14, 37, 89, 91, 14, 66, 66, 33, 2], [98, 53, 89, 55, 45, 37, 27, 90, 52, 86, 47, 58, 7], [13, 48, 28, 45, 56, 92, 88, 35, 55, 97, 37, 9, 3], [2, 58, 22, 85, 24, 78, 54, 97, 17, 58, 58, 21, 77], [63, 63, 44, 40, 75, 66, 92, 67, 79, 46, 24, 72, 70], [96, 51, 99, 77, 92, 4, 31, 65, 30, 72, 40, 14, 44], [92, 34, 39, 4, 88, 27, 42, 11, 87, 32, 50, 53, 4], [19, 71, 33, 78, 77, 70, 83, 55, 9, 62, 99, 62, 48], [90, 68, 48, 92, 27, 55, 44, 71, 52, 57, 9, 98, 8], [56, 10, 65, 72, 45, 39, 46, 17, 82, 98, 99, 67, 76], [62, 68, 36, 9, 35, 67, 89, 52, 90, 91, 28, 58, 83], [24, 59, 37, 38, 25, 98, 15, 16, 55, 4, 26, 39, 57], [47, 90, 48, 92, 49, 37, 38, 62, 61, 74, 97, 8, 38]],7,),
([[85, 56, 45, 50, 20, 63, 55, 34, 92, 32, 76, 73, 43, 79, 13, 2, 61, 84, 14, 42, 15, 93, 85, 10, 56, 53, 58, 85, 99, 81, 62, 57, 63, 4, 78, 96], [82, 34, 32, 78, 34, 70, 40, 35, 15, 51, 20, 92, 37, 38, 21, 88, 10, 54, 9, 86, 42, 16, 24, 4, 44, 23, 42, 86, 66, 92, 19, 20, 28, 24, 91, 2], [7, 1, 11, 51, 60, 31, 30, 77, 24, 18, 58, 77, 17, 46, 94, 19, 12, 90, 82, 12, 50, 66, 20, 6, 1, 90, 7, 96, 55, 97, 74, 15, 95, 24, 29, 82], [71, 34, 78, 84, 93, 37, 42, 64, 95, 19, 23, 71, 6, 99, 93, 55, 77, 39, 25, 98, 83, 4, 88, 33, 66, 2, 14, 50, 11, 34, 38, 92, 39, 22, 42, 97], [95, 57, 78, 38, 9, 88, 29, 69, 42, 60, 39, 91, 72, 93, 60, 53, 76, 8, 21, 56, 48, 47, 9, 78, 1, 55, 31, 80, 91, 11, 66, 60, 31, 50, 60, 88], [62, 39, 3, 58, 68, 30, 67, 68, 58, 77, 53, 14, 10, 78, 81, 22, 63, 61, 46, 37, 21, 89, 3, 19, 32, 79, 24, 73, 74, 48, 96, 58, 40, 7, 46, 91], [15, 85, 74, 87, 5, 59, 70, 22, 28, 54, 19, 14, 48, 7, 79, 32, 22, 46, 85, 83, 13, 22, 10, 44, 24, 59, 62, 72, 72, 55, 49, 50, 19, 82, 58, 97], [48, 93, 96, 72, 96, 12, 86, 20, 45, 26, 81, 98, 31, 82, 59, 3, 18, 84, 21, 57, 99, 42, 62, 30, 61, 36, 55, 4, 15, 71, 96, 97, 57, 63, 77, 64], [17, 53, 40, 70, 50, 68, 15, 72, 34, 30, 87, 73, 24, 8, 57, 70, 25, 77, 34, 25, 18, 73, 97, 70, 14, 6, 82, 90, 36, 36, 75, 18, 15, 94, 89, 16], [76, 14, 47, 54, 58, 77, 30, 46, 16, 1, 41, 93, 27, 77, 62, 81, 28, 20, 55, 51, 69, 88, 73, 97, 34, 27, 97, 38, 29, 35, 20, 19, 5, 25, 93, 26], [51, 66, 61, 15, 45, 6, 58, 1, 73, 43, 16, 14, 74, 19, 51, 8, 48, 12, 70, 35, 70, 6, 99, 11, 38, 91, 26, 28, 72, 89, 83, 80, 50, 58, 26, 44], [15, 76, 24, 77, 59, 57, 17, 77, 81, 1, 11, 20, 31, 99, 39, 63, 6, 99, 28, 51, 53, 44, 65, 80, 12, 28, 79, 72, 68, 95, 30, 35, 6, 85, 30, 80], [63, 8, 91, 33, 43, 76, 43, 45, 87, 54, 65, 7, 36, 25, 85, 37, 12, 32, 49, 38, 56, 80, 65, 26, 57, 14, 56, 70, 41, 51, 84, 67, 12, 97, 49, 1], [19, 66, 58, 87, 72, 98, 4, 8, 27, 26, 97, 43, 40, 50, 67, 73, 74, 29, 85, 42, 18, 81, 21, 67, 62, 27, 96, 93, 47, 93, 26, 9, 91, 12, 16, 47], [56, 66, 51, 27, 73, 66, 62, 71, 8, 38, 6, 59, 19, 79, 56, 28, 94, 91, 10, 45, 95, 65, 50, 32, 61, 16, 6, 66, 62, 66, 67, 19, 4, 43, 18, 82], [46, 46, 85, 21, 30, 64, 41, 17, 5, 5, 73, 75, 48, 78, 38, 6, 58, 14, 72, 94, 59, 65, 89, 13, 27, 25, 56, 68, 59, 95, 49, 18, 81, 75, 76, 3], [79, 57, 6, 69, 31, 8, 10, 3, 12, 92, 76, 94, 19, 21, 81, 14, 75, 29, 7, 49, 65, 7, 14, 16, 99, 16, 85, 13, 82, 29, 85, 73, 95, 61, 37, 17], [31, 59, 88, 47, 6, 32, 31, 18, 9, 3, 71, 26, 13, 34, 43, 93, 33, 69, 36, 79, 74, 68, 47, 61, 45, 96, 88, 84, 48, 41, 38, 68, 75, 11, 16, 65], [97, 71, 67, 71, 1, 97, 71, 4, 82, 37, 14, 79, 25, 82, 4, 66, 43, 26, 84, 15, 6, 37, 43, 42, 13, 16, 42, 38, 66, 65, 5, 30, 95, 43, 32, 67], [67, 42, 5, 99, 86, 96, 59, 23, 8, 68, 70, 91, 19, 44, 93, 38, 44, 6, 3, 96, 80, 33, 66, 58, 26, 99, 28, 43, 75, 88, 16, 89, 23, 59, 35, 89], [41, 97, 22, 74, 1, 46, 22, 32, 87, 30, 87, 43, 12, 83, 71, 27, 26, 18, 92, 75, 66, 81, 61, 46, 29, 32, 15, 60, 82, 28, 27, 41, 47, 33, 44, 50], [10, 24, 34, 91, 20, 25, 55, 90, 43, 53, 85, 50, 55, 13, 49, 97, 10, 92, 97, 11, 78, 84, 20, 72, 79, 97, 83, 48, 76, 17, 33, 20, 46, 31, 51, 83], [19, 62, 44, 77, 38, 49, 65, 11, 27, 58, 64, 65, 15, 82, 89, 1, 19, 56, 64, 34, 64, 10, 76, 60, 39, 66, 32, 51, 26, 57, 84, 60, 55, 6, 7, 66], [81, 26, 95, 98, 82, 78, 5, 87, 1, 84, 2, 65, 10, 50, 51, 69, 41, 58, 77, 68, 24, 91, 56, 36, 2, 96, 56, 81, 12, 12, 85, 72, 22, 74, 84, 62], [64, 28, 89, 28, 4, 45, 90, 13, 83, 98, 80, 4, 61, 84, 26, 94, 6, 77, 56, 81, 27, 35, 97, 82, 58, 84, 63, 33, 95, 83, 97, 81, 33, 69, 40, 47], [45, 27, 7, 58, 14, 4, 82, 34, 80, 91, 38, 20, 46, 19, 1, 23, 62, 73, 28, 84, 80, 77, 33, 3, 79, 16, 30, 25, 78, 1, 33, 37, 29, 37, 61, 8], [1, 63, 88, 65, 46, 43, 10, 82, 85, 10, 62, 86, 51, 45, 73, 73, 45, 85, 58, 95, 66, 24, 97, 75, 65, 55, 51, 72, 73, 21, 47, 22, 29, 40, 3, 49], [25, 82, 11, 94, 89, 75, 98, 88, 48, 32, 3, 45, 89, 20, 20, 51, 81, 20, 82, 14, 98, 80, 32, 72, 42, 80, 39, 38, 64, 4, 99, 92, 63, 61, 78, 5], [66, 45, 50, 88, 3, 23, 11, 38, 56, 35, 65, 6, 70, 40, 90, 35, 13, 25, 86, 81, 78, 67, 68, 99, 47, 55, 92, 43, 2, 45, 48, 62, 38, 47, 4, 60], [49, 76, 34, 44, 94, 85, 56, 92, 42, 50, 69, 33, 98, 96, 91, 67, 42, 44, 68, 57, 36, 41, 56, 3, 56, 56, 65, 39, 40, 39, 27, 67, 94, 65, 74, 3], [3, 37, 98, 20, 11, 83, 91, 24, 70, 65, 83, 74, 32, 62, 55, 36, 66, 37, 14, 46, 77, 56, 50, 61, 17, 27, 54, 29, 13, 49, 25, 88, 23, 26, 48, 36], [6, 80, 74, 39, 57, 91, 66, 10, 72, 9, 77, 72, 27, 46, 63, 42, 85, 41, 34, 93, 30, 44, 80, 1, 45, 47, 93, 30, 22, 15, 84, 38, 23, 31, 57, 81], [35, 66, 53, 31, 26, 31, 72, 80, 12, 53, 56, 83, 62, 44, 58, 77, 65, 13, 61, 68, 51, 62, 48, 95, 63, 72, 91, 72, 51, 24, 86, 40, 29, 73, 17, 1], [96, 84, 1, 25, 41, 91, 23, 18, 95, 28, 85, 12, 88, 49, 97, 81, 97, 16, 27, 53, 92, 36, 7, 34, 65, 4, 26, 20, 51, 77, 99, 10, 8, 18, 17, 69], [30, 95, 39, 61, 24, 81, 98, 35, 79, 61, 75, 98, 72, 15, 36, 55, 37, 87, 62, 64, 39, 90, 98, 75, 12, 72, 8, 41, 69, 74, 3, 43, 37, 86, 57, 25], [4, 58, 37, 8, 94, 9, 79, 1, 13, 68, 16, 44, 65, 14, 91, 26, 32, 2, 16, 92, 49, 90, 75, 23, 94, 60, 95, 66, 20, 93, 74, 18, 59, 31, 4, 27]],35,),
([[95, 71, 19, 39, 66, 78, 46, 92, 38, 67, 29, 91, 57, 48, 52, 48, 61, 67, 48, 94, 82, 8, 74, 86, 88, 67, 14, 47, 24, 91, 62, 58, 34, 31, 48, 91, 45, 29, 29, 63, 48, 12, 78, 27], [47, 66, 37, 45, 57, 18, 13, 73, 29, 56, 74, 20, 29, 6, 26, 61, 86, 43, 47, 26, 81, 1, 95, 73, 26, 64, 62, 6, 62, 66, 42, 27, 65, 30, 82, 98, 85, 65, 47, 32, 34, 47, 14, 5], [36, 96, 9, 35, 25, 75, 46, 13, 61, 30, 98, 32, 30, 82, 56, 67, 71, 55, 98, 8, 43, 48, 58, 32, 78, 69, 7, 74, 20, 62, 21, 92, 29, 70, 38, 42, 3, 37, 17, 33, 10, 37, 33, 28], [87, 42, 58, 48, 51, 10, 8, 16, 96, 62, 49, 89, 15, 16, 81, 27, 47, 26, 72, 41, 11, 91, 9, 54, 11, 7, 28, 94, 62, 55, 36, 73, 99, 63, 51, 77, 48, 68, 10, 26, 67, 53, 43, 17], [27, 22, 36, 72, 33, 90, 95, 53, 11, 93, 29, 38, 58, 15, 54, 62, 57, 79, 71, 58, 49, 53, 29, 33, 46, 54, 80, 98, 85, 7, 29, 9, 49, 71, 78, 94, 88, 51, 98, 8, 55, 65, 98, 84], [95, 79, 15, 51, 34, 69, 86, 12, 45, 31, 54, 93, 22, 72, 64, 60, 28, 21, 75, 75, 87, 77, 43, 27, 23, 97, 90, 36, 97, 38, 16, 74, 43, 41, 44, 52, 17, 52, 43, 23, 1, 93, 25, 6], [74, 54, 78, 23, 19, 56, 53, 31, 38, 19, 1, 77, 50, 98, 58, 81, 32, 49, 98, 97, 92, 44, 29, 88, 48, 80, 77, 26, 7, 44, 14, 52, 32, 75, 32, 75, 84, 57, 52, 34, 61, 62, 86, 87], [93, 76, 31, 29, 31, 12, 35, 57, 41, 27, 15, 94, 71, 36, 24, 82, 24, 96, 76, 28, 75, 3, 3, 29, 32, 54, 38, 95, 56, 65, 21, 41, 20, 60, 75, 59, 74, 55, 3, 14, 45, 95, 99, 60], [49, 9, 54, 70, 93, 52, 63, 52, 22, 55, 3, 2, 59, 28, 37, 69, 9, 62, 32, 81, 75, 35, 47, 18, 36, 19, 25, 46, 60, 95, 23, 78, 27, 35, 77, 55, 36, 88, 97, 71, 9, 21, 32, 66], [44, 89, 65, 75, 80, 87, 15, 27, 16, 46, 97, 72, 48, 65, 19, 90, 37, 58, 55, 53, 47, 3, 88, 86, 62, 1, 39, 73, 33, 23, 34, 49, 49, 99, 49, 10, 96, 66, 71, 88, 67, 76, 39, 42], [91, 1, 46, 36, 96, 91, 44, 31, 97, 58, 96, 4, 53, 89, 93, 57, 73, 78, 50, 5, 52, 17, 32, 6, 69, 93, 92, 61, 10, 23, 53, 61, 19, 4, 46, 32, 84, 46, 62, 92, 54, 87, 67, 24], [66, 18, 96, 48, 46, 48, 62, 94, 27, 62, 78, 65, 52, 1, 50, 40, 72, 17, 1, 78, 77, 30, 77, 67, 22, 35, 56, 14, 45, 86, 33, 12, 24, 69, 57, 9, 2, 59, 95, 29, 93, 55, 94, 22], [85, 49, 12, 71, 89, 8, 97, 16, 40, 45, 64, 63, 51, 10, 76, 86, 71, 45, 85, 56, 86, 73, 84, 13, 64, 88, 30, 52, 54, 57, 18, 25, 53, 20, 11, 40, 98, 23, 90, 87, 42, 47, 56, 33], [89, 98, 26, 69, 29, 94, 60, 91, 37, 25, 74, 44, 34, 12, 93, 39, 19, 19, 29, 66, 90, 98, 94, 76, 20, 57, 97, 9, 2, 28, 34, 21, 83, 78, 81, 56, 5, 85, 22, 59, 40, 84, 92, 63], [32, 45, 83, 92, 87, 33, 82, 35, 46, 36, 62, 83, 90, 26, 7, 87, 5, 87, 32, 79, 91, 81, 84, 57, 80, 62, 28, 95, 80, 78, 74, 66, 97, 41, 86, 66, 64, 7, 41, 45, 44, 30, 38, 39], [19, 47, 38, 17, 74, 79, 69, 99, 4, 35, 1, 81, 85, 58, 22, 5, 60, 36, 9, 84, 57, 78, 84, 90, 4, 51, 39, 84, 52, 75, 71, 55, 31, 50, 8, 87, 15, 65, 10, 41, 88, 79, 48, 21], [86, 24, 74, 23, 80, 69, 33, 36, 25, 58, 90, 66, 98, 31, 44, 63, 45, 83, 82, 50, 67, 71, 87, 1, 71, 86, 67, 83, 94, 9, 99, 35, 13, 26, 45, 51, 92, 25, 56, 39, 3, 75, 94, 53], [33, 62, 98, 67, 69, 95, 4, 72, 59, 17, 22, 38, 88, 31, 49, 52, 89, 38, 96, 49, 90, 27, 23, 84, 27, 81, 14, 3, 27, 62, 14, 92, 44, 25, 61, 75, 52, 12, 97, 84, 34, 23, 19, 1], [74, 65, 5, 57, 22, 43, 2, 73, 7, 21, 71, 59, 9, 40, 73, 49, 12, 73, 10, 74, 17, 4, 64, 16, 49, 27, 6, 9, 58, 32, 38, 30, 78, 45, 29, 92, 22, 31, 81, 17, 54, 79, 47, 32], [28, 11, 39, 17, 76, 39, 73, 25, 26, 68, 62, 19, 13, 29, 54, 73, 42, 62, 71, 71, 21, 9, 45, 27, 48, 85, 69, 5, 72, 15, 77, 97, 44, 47, 32, 36, 49, 53, 23, 34, 18, 12, 87, 2], [27, 50, 31, 48, 86, 69, 17, 43, 71, 18, 66, 31, 63, 28, 67, 9, 97, 28, 92, 18, 15, 75, 89, 5, 41, 91, 76, 74, 73, 66, 73, 51, 16, 65, 85, 57, 37, 39, 65, 49, 47, 40, 14, 40], [48, 32, 88, 39, 33, 30, 26, 43, 55, 44, 78, 76, 3, 7, 85, 58, 91, 10, 10, 81, 42, 34, 82, 26, 60, 2, 73, 45, 5, 26, 79, 25, 26, 92, 87, 85, 22, 19, 10, 42, 31, 31, 99, 75], [81, 97, 86, 90, 36, 66, 32, 67, 63, 23, 50, 65, 69, 44, 58, 57, 37, 65, 18, 5, 82, 99, 96, 26, 33, 42, 88, 27, 54, 83, 82, 79, 91, 75, 24, 3, 39, 71, 12, 33, 22, 35, 14, 26], [83, 85, 54, 41, 45, 31, 69, 99, 17, 60, 96, 4, 10, 94, 9, 61, 90, 22, 21, 23, 61, 12, 95, 17, 55, 21, 54, 47, 41, 97, 15, 96, 59, 99, 15, 29, 11, 29, 86, 90, 82, 89, 85, 88], [56, 92, 53, 3, 13, 38, 70, 11, 23, 73, 56, 17, 9, 83, 99, 96, 92, 28, 79, 19, 97, 87, 92, 4, 47, 47, 31, 99, 5, 33, 48, 32, 79, 59, 98, 64, 47, 9, 35, 47, 88, 82, 17, 1], [55, 11, 33, 70, 56, 64, 93, 58, 20, 18, 78, 45, 43, 20, 57, 82, 27, 18, 17, 60, 89, 5, 6, 97, 15, 39, 80, 39, 88, 21, 13, 29, 98, 5, 67, 21, 9, 67, 44, 62, 94, 67, 62, 62], [60, 49, 39, 41, 50, 98, 17, 53, 55, 78, 75, 56, 1, 65, 64, 52, 15, 2, 12, 45, 57, 42, 2, 87, 62, 34, 17, 41, 78, 75, 84, 71, 65, 15, 38, 98, 73, 65, 9, 42, 66, 86, 89, 51], [78, 99, 80, 19, 31, 66, 32, 75, 8, 69, 98, 32, 47, 70, 8, 34, 4, 36, 44, 25, 26, 33, 9, 47, 72, 17, 15, 42, 54, 13, 50, 44, 3, 53, 56, 54, 57, 12, 93, 59, 65, 96, 37, 20], [72, 37, 31, 95, 25, 50, 49, 8, 94, 94, 91, 35, 13, 21, 73, 24, 48, 33, 1, 72, 3, 14, 14, 49, 33, 4, 38, 25, 47, 13, 39, 25, 73, 43, 38, 35, 93, 55, 50, 78, 34, 25, 42, 92], [51, 94, 37, 66, 85, 34, 83, 38, 31, 26, 76, 94, 26, 63, 48, 95, 79, 10, 36, 40, 26, 9, 53, 81, 70, 86, 80, 86, 53, 39, 61, 52, 68, 68, 73, 78, 42, 90, 67, 96, 75, 51, 3, 13], [13, 61, 24, 20, 74, 87, 97, 55, 35, 78, 80, 30, 83, 33, 41, 66, 49, 8, 84, 3, 85, 65, 85, 72, 2, 87, 41, 53, 75, 16, 9, 96, 39, 64, 36, 23, 47, 49, 55, 94, 10, 63, 95, 26], [48, 30, 2, 29, 54, 32, 38, 21, 27, 88, 34, 23, 78, 39, 69, 73, 45, 63, 8, 7, 30, 12, 20, 64, 29, 55, 12, 84, 22, 23, 48, 45, 26, 28, 55, 73, 69, 2, 28, 77, 79, 53, 14, 46], [78, 67, 74, 70, 20, 35, 48, 43, 20, 56, 3, 68, 11, 62, 61, 95, 58, 29, 38, 84, 88, 87, 22, 86, 41, 84, 63, 38, 50, 7, 24, 46, 25, 78, 29, 67, 93, 80, 85, 22, 85, 86, 9, 87], [49, 73, 96, 36, 5, 90, 4, 24, 41, 14, 91, 12, 82, 44, 9, 66, 38, 96, 77, 57, 47, 55, 88, 2, 83, 18, 66, 90, 57, 64, 88, 27, 53, 59, 29, 72, 95, 98, 14, 68, 43, 29, 57, 33], [21, 41, 1, 27, 2, 64, 51, 54, 74, 74, 30, 1, 95, 99, 29, 13, 73, 43, 41, 75, 88, 89, 58, 77, 14, 41, 67, 54, 6, 46, 77, 1, 29, 78, 76, 26, 58, 87, 3, 60, 14, 98, 23, 62], [10, 4, 39, 74, 88, 34, 88, 25, 52, 15, 12, 1, 9, 59, 14, 31, 88, 53, 63, 10, 43, 18, 67, 59, 76, 99, 23, 86, 75, 46, 49, 23, 12, 29, 89, 88, 59, 53, 68, 63, 29, 3, 95, 89], [37, 63, 23, 49, 86, 93, 77, 3, 22, 36, 10, 9, 56, 55, 19, 72, 33, 20, 94, 35, 31, 83, 50, 46, 78, 10, 67, 34, 51, 92, 83, 39, 90, 68, 12, 26, 71, 67, 90, 2, 12, 59, 32, 51], [11, 32, 64, 45, 79, 54, 6, 26, 8, 8, 38, 8, 17, 83, 3, 41, 73, 53, 97, 96, 96, 70, 62, 53, 59, 93, 81, 83, 95, 83, 23, 47, 35, 14, 65, 97, 49, 36, 1, 84, 22, 35, 3, 12], [37, 58, 77, 12, 2, 84, 65, 58, 60, 41, 35, 88, 90, 11, 52, 52, 62, 63, 15, 70, 40, 9, 70, 17, 23, 58, 95, 80, 51, 57, 86, 16, 45, 61, 12, 73, 6, 4, 81, 74, 35, 47, 85, 19], [27, 11, 70, 59, 41, 43, 28, 63, 67, 45, 24, 77, 64, 79, 73, 39, 99, 45, 61, 82, 43, 67, 92, 80, 42, 41, 47, 43, 23, 32, 74, 57, 38, 77, 15, 28, 13, 35, 2, 61, 65, 41, 96, 94], [86, 4, 53, 88, 14, 17, 14, 41, 62, 52, 27, 85, 40, 35, 90, 95, 59, 97, 49, 63, 11, 80, 6, 98, 41, 32, 21, 93, 75, 57, 5, 91, 28, 95, 75, 77, 70, 27, 94, 53, 48, 83, 78, 58], [9, 55, 45, 28, 28, 46, 25, 26, 62, 68, 67, 34, 21, 81, 34, 44, 76, 89, 21, 18, 36, 70, 84, 53, 20, 96, 95, 84, 94, 3, 84, 8, 85, 48, 23, 1, 2, 74, 37, 94, 51, 44, 24, 32], [56, 50, 64, 30, 38, 78, 55, 3, 25, 45, 62, 7, 81, 27, 23, 32, 2, 75, 34, 52, 61, 34, 7, 10, 89, 2, 30, 81, 29, 82, 60, 99, 17, 56, 86, 51, 25, 84, 16, 25, 15, 79, 57, 15], [56, 82, 37, 65, 33, 3, 49, 22, 54, 21, 27, 4, 99, 1, 4, 55, 24, 29, 22, 23, 85, 78, 8, 58, 80, 99, 88, 59, 90, 7, 25, 45, 90, 26, 30, 66, 53, 73, 39, 11, 79, 12, 99, 50]],29,),
([[16, 49, 32, 82, 45, 85, 80, 71, 5, 44, 41, 97, 95, 85, 67, 74, 75, 22, 17, 89, 92, 50, 84, 94, 31, 13, 74, 51, 33, 20, 48, 78, 72, 72, 92, 74, 14, 62, 51, 78, 70, 98, 81, 21, 92, 38, 15], [36, 9, 99, 59, 82, 54, 17, 82, 4, 84, 13, 75, 43, 97, 92, 8, 20, 82, 71, 61, 44, 97, 51, 58, 75, 30, 99, 84, 10, 94, 18, 25, 96, 34, 44, 39, 95, 92, 90, 68, 43, 20, 72, 2, 27, 34, 55], [36, 85, 72, 87, 72, 69, 65, 85, 44, 43, 74, 66, 21, 61, 13, 28, 30, 82, 2, 58, 83, 21, 90, 46, 89, 83, 25, 57, 20, 6, 18, 49, 82, 20, 34, 10, 33, 55, 19, 66, 47, 49, 67, 30, 83, 85, 59], [78, 31, 21, 17, 53, 51, 24, 40, 98, 47, 20, 16, 58, 49, 42, 12, 41, 58, 60, 24, 13, 34, 61, 27, 85, 67, 14, 41, 57, 30, 45, 74, 1, 92, 83, 94, 84, 52, 20, 23, 95, 96, 90, 78, 6, 33, 8], [63, 4, 13, 35, 93, 89, 34, 56, 11, 38, 93, 45, 86, 58, 34, 75, 92, 72, 24, 74, 79, 63, 39, 21, 36, 48, 84, 13, 2, 27, 7, 90, 94, 19, 40, 21, 58, 26, 74, 36, 44, 64, 27, 8, 90, 1, 23], [73, 31, 7, 9, 71, 92, 98, 53, 16, 74, 24, 74, 46, 29, 89, 30, 51, 83, 31, 30, 34, 92, 19, 75, 28, 6, 17, 91, 36, 1, 16, 68, 47, 23, 96, 67, 62, 85, 88, 15, 75, 67, 83, 43, 8, 98, 98], [44, 26, 67, 32, 64, 43, 74, 74, 62, 11, 78, 95, 9, 48, 6, 54, 62, 54, 99, 98, 56, 82, 87, 30, 3, 61, 15, 3, 15, 67, 29, 31, 71, 71, 55, 75, 92, 43, 25, 81, 55, 50, 38, 60, 85, 52, 84], [74, 70, 76, 81, 45, 97, 19, 5, 42, 93, 30, 65, 76, 79, 5, 38, 11, 84, 29, 14, 90, 98, 74, 91, 89, 10, 39, 60, 96, 98, 23, 97, 96, 22, 86, 87, 83, 23, 22, 62, 94, 19, 22, 1, 34, 26, 4], [48, 45, 12, 92, 37, 3, 28, 93, 84, 2, 56, 65, 46, 44, 18, 73, 37, 54, 25, 83, 62, 25, 52, 63, 15, 46, 56, 26, 64, 20, 67, 25, 21, 34, 88, 25, 65, 29, 32, 1, 35, 56, 16, 32, 79, 5, 10], [86, 72, 79, 20, 89, 12, 90, 68, 63, 26, 60, 74, 61, 15, 5, 32, 96, 22, 22, 12, 64, 75, 88, 80, 16, 65, 51, 87, 92, 32, 53, 3, 13, 92, 92, 58, 45, 24, 51, 13, 24, 5, 81, 50, 76, 49, 18], [33, 58, 31, 34, 94, 96, 74, 31, 99, 79, 27, 59, 27, 1, 76, 68, 23, 98, 52, 57, 87, 51, 83, 84, 63, 84, 93, 77, 28, 24, 22, 86, 40, 75, 8, 96, 88, 12, 49, 21, 67, 39, 62, 82, 58, 62, 70], [36, 45, 79, 15, 62, 38, 64, 88, 71, 9, 75, 80, 71, 25, 78, 65, 20, 28, 49, 34, 73, 20, 95, 85, 22, 77, 44, 47, 25, 22, 61, 52, 20, 96, 80, 20, 86, 45, 37, 15, 76, 9, 44, 15, 44, 86, 12], [27, 19, 25, 74, 99, 64, 12, 50, 72, 11, 83, 23, 88, 15, 63, 20, 89, 78, 10, 61, 93, 47, 49, 49, 76, 33, 87, 78, 23, 53, 37, 22, 93, 2, 20, 5, 91, 3, 82, 77, 86, 77, 12, 32, 58, 71, 70], [40, 6, 63, 25, 91, 69, 83, 73, 50, 40, 1, 46, 73, 39, 10, 49, 14, 46, 40, 89, 19, 17, 82, 46, 73, 65, 70, 38, 17, 73, 11, 53, 18, 7, 35, 44, 71, 39, 11, 10, 98, 88, 76, 9, 86, 96, 8], [48, 21, 80, 97, 89, 6, 59, 68, 23, 73, 75, 35, 12, 99, 71, 57, 29, 85, 67, 61, 61, 88, 30, 27, 93, 30, 55, 23, 37, 26, 36, 92, 63, 37, 51, 68, 93, 78, 63, 37, 97, 31, 78, 25, 73, 25, 46], [89, 30, 20, 23, 1, 15, 21, 30, 11, 90, 52, 30, 9, 69, 47, 34, 33, 98, 65, 51, 79, 31, 56, 76, 71, 45, 33, 96, 51, 5, 38, 5, 56, 81, 71, 89, 25, 67, 52, 36, 92, 23, 8, 31, 63, 21, 99], [50, 29, 60, 67, 44, 89, 2, 98, 15, 39, 40, 47, 76, 52, 88, 6, 70, 48, 58, 90, 3, 96, 46, 18, 56, 92, 33, 17, 32, 76, 85, 2, 26, 39, 63, 17, 34, 19, 62, 32, 50, 86, 45, 54, 82, 88, 1], [66, 40, 24, 52, 2, 61, 27, 66, 87, 33, 34, 62, 32, 3, 55, 27, 76, 8, 20, 52, 17, 33, 55, 75, 73, 98, 71, 16, 91, 79, 64, 88, 40, 58, 83, 23, 95, 94, 7, 59, 59, 3, 30, 10, 98, 13, 39], [77, 64, 25, 41, 98, 40, 62, 40, 34, 79, 3, 52, 46, 86, 98, 69, 41, 86, 60, 29, 8, 98, 4, 25, 50, 23, 25, 98, 70, 98, 21, 94, 56, 3, 79, 21, 83, 83, 49, 46, 98, 78, 68, 31, 46, 75, 44], [45, 75, 49, 4, 80, 57, 56, 38, 6, 82, 89, 24, 52, 39, 73, 37, 98, 34, 40, 40, 37, 92, 50, 11, 78, 59, 26, 60, 8, 28, 84, 60, 89, 10, 63, 61, 75, 26, 23, 63, 19, 18, 50, 19, 15, 16, 20], [19, 75, 71, 19, 88, 31, 52, 48, 8, 50, 61, 88, 8, 13, 74, 19, 50, 23, 57, 97, 30, 94, 29, 61, 35, 9, 72, 25, 64, 37, 38, 8, 90, 75, 40, 23, 96, 45, 1, 49, 9, 40, 28, 97, 96, 8, 37], [82, 71, 18, 76, 68, 77, 75, 80, 44, 78, 16, 52, 53, 86, 18, 40, 61, 25, 35, 71, 84, 27, 93, 10, 75, 20, 33, 77, 80, 11, 69, 67, 59, 66, 53, 38, 10, 6, 85, 95, 34, 49, 32, 29, 65, 33, 17], [98, 49, 16, 7, 13, 84, 4, 63, 69, 80, 73, 76, 78, 15, 5, 42, 18, 72, 8, 89, 68, 26, 75, 70, 33, 22, 93, 69, 1, 86, 35, 56, 95, 67, 3, 71, 1, 42, 58, 88, 94, 96, 96, 85, 64, 80, 4], [17, 77, 99, 40, 34, 56, 11, 89, 40, 94, 13, 24, 34, 8, 82, 7, 62, 46, 86, 71, 13, 2, 2, 29, 91, 82, 58, 2, 59, 53, 68, 61, 49, 46, 72, 59, 48, 9, 18, 50, 86, 75, 27, 32, 66, 66, 94], [22, 86, 24, 91, 75, 13, 91, 15, 49, 17, 39, 73, 87, 4, 57, 15, 43, 31, 6, 90, 59, 65, 86, 30, 58, 86, 97, 56, 69, 36, 46, 74, 1, 12, 67, 10, 1, 19, 82, 95, 55, 49, 55, 86, 68, 41, 55], [74, 74, 79, 69, 43, 81, 82, 57, 48, 50, 69, 8, 56, 91, 89, 26, 23, 41, 87, 93, 97, 59, 18, 71, 96, 71, 8, 58, 85, 17, 51, 33, 30, 66, 60, 46, 22, 32, 25, 8, 97, 63, 29, 81, 40, 45, 2], [49, 31, 68, 90, 9, 95, 10, 51, 70, 44, 26, 75, 79, 84, 78, 21, 91, 30, 71, 15, 80, 59, 84, 84, 86, 70, 20, 69, 53, 75, 2, 30, 8, 40, 8, 17, 99, 30, 1, 69, 64, 80, 36, 79, 49, 81, 77], [24, 4, 77, 62, 9, 26, 47, 16, 37, 70, 11, 2, 94, 83, 23, 47, 62, 76, 39, 6, 36, 62, 60, 79, 36, 77, 72, 89, 88, 31, 40, 60, 13, 93, 96, 37, 61, 18, 90, 18, 34, 54, 31, 79, 37, 84, 92], [68, 72, 58, 82, 96, 53, 87, 62, 79, 7, 31, 96, 40, 78, 83, 50, 80, 9, 65, 25, 8, 39, 32, 8, 13, 67, 66, 28, 4, 23, 34, 55, 71, 94, 58, 73, 19, 9, 23, 75, 13, 93, 31, 72, 19, 5, 91], [39, 14, 22, 22, 5, 62, 52, 80, 39, 26, 80, 56, 12, 80, 49, 12, 96, 5, 92, 51, 4, 93, 83, 25, 99, 24, 56, 19, 23, 95, 83, 96, 77, 46, 18, 61, 71, 45, 88, 46, 17, 15, 73, 34, 99, 8, 50], [11, 88, 42, 94, 85, 43, 35, 59, 12, 73, 12, 28, 93, 46, 40, 99, 29, 70, 16, 46, 92, 65, 29, 52, 40, 6, 27, 37, 22, 7, 1, 77, 48, 51, 14, 79, 12, 49, 41, 68, 85, 2, 85, 62, 57, 14, 44], [66, 75, 37, 78, 47, 61, 84, 99, 27, 49, 60, 70, 71, 45, 1, 13, 38, 17, 38, 1, 1, 83, 30, 77, 7, 20, 44, 73, 13, 39, 20, 89, 5, 52, 25, 12, 90, 56, 86, 1, 72, 49, 67, 22, 85, 85, 31], [1, 27, 2, 93, 1, 42, 8, 35, 35, 7, 23, 23, 46, 19, 79, 72, 97, 99, 13, 50, 31, 71, 84, 38, 57, 8, 14, 94, 51, 9, 13, 76, 66, 38, 21, 29, 84, 50, 64, 9, 15, 53, 97, 53, 71, 3, 87], [22, 39, 77, 9, 34, 12, 34, 45, 97, 50, 99, 28, 39, 3, 47, 12, 43, 77, 67, 18, 90, 10, 4, 12, 53, 51, 16, 17, 95, 26, 2, 29, 94, 47, 11, 34, 71, 29, 97, 49, 91, 16, 81, 75, 14, 13, 35], [90, 52, 25, 59, 76, 68, 42, 48, 91, 45, 72, 72, 29, 3, 21, 31, 13, 95, 81, 48, 96, 24, 2, 3, 26, 2, 33, 34, 90, 98, 38, 78, 95, 20, 10, 84, 33, 45, 60, 66, 61, 51, 12, 80, 9, 11, 21], [76, 68, 26, 63, 19, 17, 44, 61, 1, 72, 58, 94, 41, 24, 43, 81, 94, 9, 66, 90, 32, 91, 41, 11, 65, 18, 8, 27, 82, 9, 2, 81, 75, 46, 70, 5, 12, 44, 42, 99, 88, 30, 52, 81, 47, 36, 70], [32, 98, 44, 16, 71, 96, 17, 32, 14, 26, 73, 13, 89, 12, 45, 16, 94, 52, 21, 24, 43, 5, 33, 31, 9, 35, 8, 75, 17, 80, 20, 91, 78, 22, 54, 71, 75, 81, 77, 81, 75, 68, 80, 31, 85, 97, 13], [29, 79, 10, 33, 15, 77, 35, 54, 21, 30, 46, 42, 71, 49, 24, 80, 69, 6, 2, 3, 53, 10, 24, 33, 84, 22, 61, 96, 94, 67, 4, 51, 4, 39, 31, 57, 73, 30, 93, 89, 39, 99, 25, 58, 36, 11, 90], [46, 89, 21, 2, 74, 39, 99, 33, 31, 4, 67, 69, 81, 13, 65, 45, 39, 87, 89, 53, 31, 13, 1, 98, 29, 61, 95, 72, 2, 12, 56, 97, 94, 41, 27, 89, 38, 97, 52, 80, 32, 88, 2, 66, 20, 57, 62], [91, 86, 48, 83, 7, 67, 50, 34, 87, 69, 67, 88, 91, 34, 43, 21, 12, 32, 47, 86, 98, 87, 55, 65, 68, 17, 26, 95, 33, 64, 92, 10, 46, 73, 90, 51, 34, 14, 41, 90, 95, 38, 48, 43, 28, 41, 56], [81, 76, 91, 65, 60, 97, 13, 69, 52, 43, 92, 88, 84, 40, 42, 37, 84, 23, 67, 69, 79, 69, 98, 58, 46, 87, 47, 17, 9, 68, 94, 78, 30, 95, 61, 65, 58, 27, 66, 45, 40, 61, 41, 74, 88, 84, 42], [62, 80, 38, 60, 49, 18, 99, 94, 5, 11, 4, 61, 75, 12, 49, 28, 90, 34, 56, 65, 6, 33, 47, 24, 34, 72, 16, 80, 16, 98, 84, 14, 59, 62, 90, 66, 19, 61, 66, 26, 89, 49, 19, 49, 81, 30, 76], [57, 85, 36, 40, 28, 97, 46, 73, 82, 88, 32, 87, 58, 76, 98, 26, 70, 69, 87, 50, 79, 32, 58, 64, 77, 28, 97, 72, 80, 39, 96, 80, 45, 13, 20, 58, 19, 75, 91, 80, 9, 77, 19, 94, 55, 39, 17], [62, 94, 93, 60, 42, 2, 50, 67, 20, 1, 5, 97, 39, 87, 18, 68, 97, 90, 22, 30, 90, 1, 70, 81, 95, 51, 68, 74, 61, 48, 53, 34, 86, 86, 7, 39, 37, 63, 55, 15, 83, 74, 62, 68, 50, 41, 61], [25, 28, 82, 35, 83, 53, 84, 39, 97, 59, 65, 1, 45, 19, 48, 49, 73, 14, 67, 30, 65, 69, 87, 6, 84, 46, 42, 72, 61, 31, 79, 26, 58, 33, 52, 32, 54, 1, 5, 22, 95, 5, 8, 70, 63, 10, 62], [40, 47, 80, 56, 28, 56, 1, 52, 82, 62, 42, 47, 37, 11, 67, 29, 4, 95, 11, 30, 79, 79, 58, 32, 29, 43, 92, 85, 39, 11, 96, 27, 24, 37, 65, 32, 53, 1, 56, 34, 82, 29, 6, 57, 95, 14, 75], [69, 62, 86, 51, 13, 76, 4, 38, 4, 30, 54, 65, 61, 49, 31, 42, 50, 23, 78, 99, 81, 60, 32, 56, 56, 87, 34, 41, 39, 86, 42, 66, 20, 14, 38, 37, 37, 12, 92, 56, 8, 93, 21, 39, 48, 18, 63]],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))) | - | [
"a) -",
"b) 0;",
"c) i",
"d) ,",
"e) :"
] | a |
python | def f_gold ( str ) :
zeros = 0
ones = 0
for i in range ( 0 , len ( str ) ) :
ch = str [ i ] ;
if ( ch == '0' ) :
zeros = zeros + 1
else :
ones = ones + 1
return ( zeros == 1 or ones == 1 ) ;
ge ( 0 , len ( str ) ) :
ch = str [ i ] ;
if ( ch == '0' ) :
zeros = zeros + 1
else :
ones = ones + 1
return ( zeros == 1 or ones == 1 ) ;
#TOFILL
if __name__ == '__main__':
param = [
("00001",),
("0000",),
("11",),
("111110",),
("1",),
("111010111010",),
("hUInqJXNdbfP",),
("5191",),
("1110101101",),
('NupSrU xz',)
]
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))) | def f_gold ( str ) : zeros = 0 ones = [MASK] for i in range ( 0 , len ( str ) ) : ch = str [ i ] ; if ( ch == '0' ) : zeros = zeros + 1 else : ones = ones + 1 return ( zeros == 1 or ones == 1 ) ;ge ( 0 , len ( str ) ) :
ch = str [ i ] ;
if ( ch == '0' ) :
zeros = zeros + 1
else :
ones = ones + 1
return ( zeros == 1 or ones == 1 ) ;
#TOFILL
if __name__ == '__main__':
param = [
("00001",),
("0000",),
("11",),
("111110",),
("1",),
("111010111010",),
("hUInqJXNdbfP",),
("5191",),
("1110101101",),
('NupSrU xz',)
]
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))) | 0 | [
"a) arr",
"b) javafx.util.Pair;",
"c) 10",
"d) 0",
"e) n"
] | d |
python | def f_gold ( arr , n , x ) :
curr_sum = 0 ;
min_len = n + 1 ;
start = 0 ;
end = 0 ;
while ( end < n ) :
while ( curr_sum <= x and end < n ) :
if ( curr_sum <= 0 and x > 0 ) :
start = end ;
curr_sum = 0 ;
curr_sum += arr [ end ] ;
end += 1 ;
while ( curr_sum > x and start < n ) :
if ( end - start < min_len ) :
min_len = end - start ;
curr_sum -= arr [ start ] ;
start += 1 ;
return min_len ;
> x and start < n ) :
if ( end - start < min_len ) :
min_len = end - start ;
curr_sum -= arr [ start ] ;
start += 1 ;
return min_len ;
#TOFILL
if __name__ == '__main__':
param = [
([2, 4, 5, 10, 14, 15, 16, 20, 23, 28, 31, 35, 36, 36, 43, 48, 49, 55, 57, 57, 58, 61, 64, 64, 68, 70, 70, 73, 74, 76, 76, 77, 81, 81, 82, 87, 89, 92, 99],33,28,),
([66, -20, 12, -48, 22, 28, 40, -30, -6, -96, 10, -88, 40],11,12,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],42,23,),
([28, 19, 38, 31, 17, 27, 60, 35, 19, 47, 34, 51, 3, 95, 33, 29, 84, 46, 74, 87],15,15,),
([-48, -2],1,1,),
([1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1],12,15,),
([1, 4, 4, 6, 8, 10, 12, 12, 13, 15, 18, 20, 21, 23, 25, 28, 28, 33, 33, 35, 35, 36, 37, 38, 42, 44, 63, 63, 65, 65, 65, 66, 70, 74, 77, 78, 80, 80, 84, 87, 87, 89, 92, 93, 94, 97, 98, 99],42,27,),
([-82, -12, -40, 58, 22, -76, -94, -28, 42, 36, 64],10,6,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],10,14,),
([76, 65, 96, 76, 1, 91, 22, 29, 95, 21, 73, 68, 30, 52, 73, 86, 52, 66, 67, 37, 76, 53, 68, 6, 95, 81, 98, 42, 63, 38, 92, 78, 59, 86, 10, 38, 18, 15, 52, 62, 16, 66],23,35,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n , x ) : curr_sum = 0 ; min_len = n + 1 ; start = 0 ; end = 0 ; while ( end < n ) : while ( curr_sum <= x and end < n ) : if ( curr_sum <= 0 and x > 0 ) : start = end ; curr_sum = 0 ; curr_sum += arr [ end ] ; end += 1 ; while ( curr_sum > x and start < n ) : if ( end - start < min_len ) : [MASK] = end - start ; curr_sum -= arr [ start ] ; start += 1 ; return min_len ;> x and start < n ) :
if ( end - start < min_len ) :
min_len = end - start ;
curr_sum -= arr [ start ] ;
start += 1 ;
return min_len ;
#TOFILL
if __name__ == '__main__':
param = [
([2, 4, 5, 10, 14, 15, 16, 20, 23, 28, 31, 35, 36, 36, 43, 48, 49, 55, 57, 57, 58, 61, 64, 64, 68, 70, 70, 73, 74, 76, 76, 77, 81, 81, 82, 87, 89, 92, 99],33,28,),
([66, -20, 12, -48, 22, 28, 40, -30, -6, -96, 10, -88, 40],11,12,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],42,23,),
([28, 19, 38, 31, 17, 27, 60, 35, 19, 47, 34, 51, 3, 95, 33, 29, 84, 46, 74, 87],15,15,),
([-48, -2],1,1,),
([1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1],12,15,),
([1, 4, 4, 6, 8, 10, 12, 12, 13, 15, 18, 20, 21, 23, 25, 28, 28, 33, 33, 35, 35, 36, 37, 38, 42, 44, 63, 63, 65, 65, 65, 66, 70, 74, 77, 78, 80, 80, 84, 87, 87, 89, 92, 93, 94, 97, 98, 99],42,27,),
([-82, -12, -40, 58, 22, -76, -94, -28, 42, 36, 64],10,6,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],10,14,),
([76, 65, 96, 76, 1, 91, 22, 29, 95, 21, 73, 68, 30, 52, 73, 86, 52, 66, 67, 37, 76, 53, 68, 6, 95, 81, 98, 42, 63, 38, 92, 78, 59, 86, 10, 38, 18, 15, 52, 62, 16, 66],23,35,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | min_len | [
"a) ]",
"b) =",
"c) min_len",
"d) );",
"e) ("
] | c |
python | def f_gold ( A , N , M ) :
ans = 0
h = [ 0 ] * M
for i in range ( 0 , N ) :
A [ i ] = A [ i ] % M
h [ A [ i ] ] = h [ A [ i ] ] + 1
for i in range ( 0 , M ) :
for j in range ( i , M ) :
rem = ( M - ( i + j ) % M ) % M
if ( rem < j ) :
continue
if ( i == j and rem == j ) :
ans = ans + h [ i ] * ( h [ i ] - 1 ) * ( h [ i ] - 2 ) / 6
elif ( i == j ) :
ans = ans + ( h [ i ] * ( h [ i ] - 1 ) * h [ rem ] / 2 )
elif ( i == rem ) :
ans = ans + h [ i ] * ( h [ i ] - 1 ) * h [ j ] / 2
elif ( rem == j ) :
ans = ans + h [ j ] * ( h [ j ] - 1 ) * h [ i ] / 2
else :
ans = ans + h [ i ] * h [ j ] * h [ rem ]
return ans
elif ( rem == j ) :
ans = ans + h [ j ] * ( h [ j ] - 1 ) * h [ i ] / 2
else :
ans = ans + h [ i ] * h [ j ] * h [ rem ]
return ans
#TOFILL
if __name__ == '__main__':
param = [
([6, 7, 13, 16, 19, 20, 21, 25, 28, 31, 36, 38, 42, 44, 50, 54, 55, 56, 63, 63, 63, 65, 65, 65, 67, 71, 73, 73, 76, 78, 87, 90, 91, 99],27,21,),
([28, -8, -86, -6, -28, 74, 82, 88, -62, -24, -14, 68, 36, -54, -16, -52, -78, -24, 68, -2, 30, -56, 30, -86, -54, 54, 62, -30, -82, 66, 94, 12, 10, 4, 40, -72, 20, -2, -90, -90],29,21,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],29,43,),
([45, 14, 91, 37, 91],3,4,),
([-88, -78, -74, -50, -44, -34, -26, -22, 14, 46, 48, 80, 82, 86, 88],13,12,),
([1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1],11,15,),
([9, 14, 16, 18, 23, 36, 37, 58, 78],7,4,),
([-56, 86, 58, -58, 46, -62, 8, -22, 80, 96, -74, -94, -94, -2, -4],13,14,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],37,34,),
([62, 36, 66, 84, 20, 43, 93, 47, 85, 70, 50, 96, 3, 8, 38, 96, 15, 31, 97, 90, 1, 69, 77, 20, 68, 11, 2, 92, 50, 8, 23, 83, 76, 6, 32, 43, 92],18,35,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( A , N , M ) : ans = 0 h = [ 0 ] * M for i in range ( 0 , N ) : A [ i ] = A [ i ] % M h [ A [ i ] ] = h [ A [ i ] ] + 1 for i in range ( 0 , M ) : for j in range ( i , M ) : rem = ( M - ( i + j ) % M ) % M if ( rem < j ) : continue if ( i == j and rem == j ) : ans = ans + h [ i ] * ( h [ i ] - 1 ) * ( h [ i ] - 2 ) / 6 elif ( i == j ) : ans = ans + ( h [ i ] * ( h [ i ] - 1 ) * h [ rem ] / 2 ) elif ( i == rem ) : ans = ans + h [ i ] * ( h [ i ] - 1 ) * h [ j ] / 2 elif ( rem == j ) : ans = ans + h [ j ] * ( h [ j ] - 1 ) * h [ i ] / 2 else : ans = ans + h [MASK] i ] * h [ j ] * h [ rem ] return ans elif ( rem == j ) :
ans = ans + h [ j ] * ( h [ j ] - 1 ) * h [ i ] / 2
else :
ans = ans + h [ i ] * h [ j ] * h [ rem ]
return ans
#TOFILL
if __name__ == '__main__':
param = [
([6, 7, 13, 16, 19, 20, 21, 25, 28, 31, 36, 38, 42, 44, 50, 54, 55, 56, 63, 63, 63, 65, 65, 65, 67, 71, 73, 73, 76, 78, 87, 90, 91, 99],27,21,),
([28, -8, -86, -6, -28, 74, 82, 88, -62, -24, -14, 68, 36, -54, -16, -52, -78, -24, 68, -2, 30, -56, 30, -86, -54, 54, 62, -30, -82, 66, 94, 12, 10, 4, 40, -72, 20, -2, -90, -90],29,21,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],29,43,),
([45, 14, 91, 37, 91],3,4,),
([-88, -78, -74, -50, -44, -34, -26, -22, 14, 46, 48, 80, 82, 86, 88],13,12,),
([1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1],11,15,),
([9, 14, 16, 18, 23, 36, 37, 58, 78],7,4,),
([-56, 86, 58, -58, 46, -62, 8, -22, 80, 96, -74, -94, -94, -2, -4],13,14,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],37,34,),
([62, 36, 66, 84, 20, 43, 93, 47, 85, 70, 50, 96, 3, 8, 38, 96, 15, 31, 97, 90, 1, 69, 77, 20, 68, 11, 2, 92, 50, 8, 23, 83, 76, 6, 32, 43, 92],18,35,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | [ | [
"a) [",
"b) void",
"c) return",
"d) f_gold",
"e) <vector>"
] | a |
python | def f_gold ( s1 , s2 , index ) :
s2 [ index ] = s1 [ index ] ;
if ( index == len ( s1 ) - 1 ) :
return ;
f_gold ( s1 , s2 , index + 1 ) ;
directory of this source tree.
#
def f_gold ( s1 , s2 , index ) :
s2 [ index ] = s1 [ index ] ;
if ( index == len ( s1 ) - 1 ) :
return ;
f_gold ( s1 , s2 , index + 1 ) ;
#TOFILL
if __name__ == '__main__':
param = [
(['v'],['Z'],0,),
(['6', '8', '3', '3', '5', '2', '5', '6', '9', '9', '2', '6', '2', '1', '9', '3', '7'],['8', '6', '0', '2', '8', '0', '8', '7', '0', '5', '4', '5', '9', '4', '5', '4', '4'],11,),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],34,),
(['e', 'G', 'a', 'r', 'F', 'U', 'W', 'k', 'u', 'z', 'y', 'v', 'A', 'W', 'm', 'G', 'H', 'O', 'I', 'a', 'u', 'V', 'f', 'B', 'q', 'e', 'E', 'e', 'L', 'c', ' ', 'w', 'K', ' ', 'K', 'j', 'j', 's', 'q', 'u', 'n', 'i', 'T', 'a', 'Y'],['S', 'm', 'd', 'a', 'W', 'N', 'F', 'H', 'B', 'E', 'h', 'M', 'z', 'H', 'c', 'X', 'l', 'a', 'R', 'e', 'D', 'D', 'q', 'V', 'U', 'w', 'o', 'K', 'u', 'n', 'b', 'k', 'Y', 'M', 'L', 'H', 'L', 'X', 'H', 'r', 'D', 'o', 'A', 'Y', 'H'],41,),
(['0', '0', '0', '0', '1', '1', '1', '2', '2', '2', '2', '2', '2', '3', '3', '3', '3', '4', '4', '4', '4', '5', '5', '6', '6', '6', '7', '7', '7', '7', '7', '7', '8', '8', '9', '9', '9', '9'],['0', '0', '0', '0', '0', '1', '1', '1', '2', '2', '2', '3', '3', '4', '4', '4', '5', '5', '5', '5', '6', '6', '7', '7', '7', '7', '7', '8', '8', '8', '8', '9', '9', '9', '9', '9', '9', '9'],33,),
(['1', '0', '0', '1', '0', '1', '1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '1', '1'],['1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '1', '0', '1', '1', '0', '1', '1', '0', '1'],13,),
([' ', 'B', 'D', 'D', 'D', 'E', 'E', 'E', 'G', 'H', 'J', 'K', 'K', 'K', 'L', 'N', 'O', 'S', 'V', 'W', 'Y', 'Z', 'b', 'c', 'd', 'd', 'f', 'f', 'f', 'f', 'f', 'f', 'i', 'k', 'k', 'o', 't', 'u', 'v', 'x', 'x', 'z'],['G', 'G', 'J', 'K', 'L', 'N', 'Q', 'R', 'R', 'S', 'U', 'W', 'X', 'Y', 'Y', 'a', 'b', 'b', 'b', 'c', 'd', 'e', 'e', 'f', 'f', 'h', 'j', 'j', 'k', 'k', 'l', 'm', 'm', 'n', 'o', 's', 't', 't', 'w', 'z', 'z', 'z'],40,),
(['4'],['8'],0,),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'],12,),
(['D', 'I', 'u', 'K', 'e', 's', 'n', 'z', 'd', 'y', 'S', 'P', 'y', 'r'],['N', 'h', 'M', 'N', 'n', 'F', 'Y', 'L', 'G', 'w', 'o', 'G', 'y', 'q'],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))) | def f_gold ( s1 , s2 , index ) : s2 [ index ] = [MASK] [ index ] ; if ( index == len ( s1 ) - 1 ) : return ; f_gold ( s1 , s2 , index + 1 ) ;directory of this source tree.
#
def f_gold ( s1 , s2 , index ) :
s2 [ index ] = s1 [ index ] ;
if ( index == len ( s1 ) - 1 ) :
return ;
f_gold ( s1 , s2 , index + 1 ) ;
#TOFILL
if __name__ == '__main__':
param = [
(['v'],['Z'],0,),
(['6', '8', '3', '3', '5', '2', '5', '6', '9', '9', '2', '6', '2', '1', '9', '3', '7'],['8', '6', '0', '2', '8', '0', '8', '7', '0', '5', '4', '5', '9', '4', '5', '4', '4'],11,),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],34,),
(['e', 'G', 'a', 'r', 'F', 'U', 'W', 'k', 'u', 'z', 'y', 'v', 'A', 'W', 'm', 'G', 'H', 'O', 'I', 'a', 'u', 'V', 'f', 'B', 'q', 'e', 'E', 'e', 'L', 'c', ' ', 'w', 'K', ' ', 'K', 'j', 'j', 's', 'q', 'u', 'n', 'i', 'T', 'a', 'Y'],['S', 'm', 'd', 'a', 'W', 'N', 'F', 'H', 'B', 'E', 'h', 'M', 'z', 'H', 'c', 'X', 'l', 'a', 'R', 'e', 'D', 'D', 'q', 'V', 'U', 'w', 'o', 'K', 'u', 'n', 'b', 'k', 'Y', 'M', 'L', 'H', 'L', 'X', 'H', 'r', 'D', 'o', 'A', 'Y', 'H'],41,),
(['0', '0', '0', '0', '1', '1', '1', '2', '2', '2', '2', '2', '2', '3', '3', '3', '3', '4', '4', '4', '4', '5', '5', '6', '6', '6', '7', '7', '7', '7', '7', '7', '8', '8', '9', '9', '9', '9'],['0', '0', '0', '0', '0', '1', '1', '1', '2', '2', '2', '3', '3', '4', '4', '4', '5', '5', '5', '5', '6', '6', '7', '7', '7', '7', '7', '8', '8', '8', '8', '9', '9', '9', '9', '9', '9', '9'],33,),
(['1', '0', '0', '1', '0', '1', '1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '1', '1'],['1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '1', '0', '1', '1', '0', '1', '1', '0', '1'],13,),
([' ', 'B', 'D', 'D', 'D', 'E', 'E', 'E', 'G', 'H', 'J', 'K', 'K', 'K', 'L', 'N', 'O', 'S', 'V', 'W', 'Y', 'Z', 'b', 'c', 'd', 'd', 'f', 'f', 'f', 'f', 'f', 'f', 'i', 'k', 'k', 'o', 't', 'u', 'v', 'x', 'x', 'z'],['G', 'G', 'J', 'K', 'L', 'N', 'Q', 'R', 'R', 'S', 'U', 'W', 'X', 'Y', 'Y', 'a', 'b', 'b', 'b', 'c', 'd', 'e', 'e', 'f', 'f', 'h', 'j', 'j', 'k', 'k', 'l', 'm', 'm', 'n', 'o', 's', 't', 't', 'w', 'z', 'z', 'z'],40,),
(['4'],['8'],0,),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'],12,),
(['D', 'I', 'u', 'K', 'e', 's', 'n', 'z', 'd', 'y', 'S', 'P', 'y', 'r'],['N', 'h', 'M', 'N', 'n', 'F', 'Y', 'L', 'G', 'w', 'o', 'G', 'y', 'q'],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))) | s1 | [
"a) j",
"b) count",
"c) s1",
"d) f_gold",
"e) ((int)"
] | c |
python | def f_gold ( n ) :
num = n ;
dec_value = 0 ;
base = 1 ;
temp = num ;
while ( temp ) :
last_digit = temp % 10 ;
temp = int ( temp / 10 ) ;
dec_value += last_digit * base ;
base = base * 8 ;
return dec_value ;
emp = num ;
while ( temp ) :
last_digit = temp % 10 ;
temp = int ( temp / 10 ) ;
dec_value += last_digit * base ;
base = base * 8 ;
return dec_value ;
#TOFILL
if __name__ == '__main__':
param = [
(37,),
(25,),
(63,),
(66,),
(32,),
(5,),
(41,),
(82,),
(54,),
(5,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( n ) : num = n ; dec_value = 0 ; base = 1 ; temp = num ; while ( temp ) : last_digit = temp % 10 ; temp = int ( temp / 10 ) ; dec_value += last_digit * base ; base = base * 8 ; [MASK] dec_value ;emp = num ;
while ( temp ) :
last_digit = temp % 10 ;
temp = int ( temp / 10 ) ;
dec_value += last_digit * base ;
base = base * 8 ;
return dec_value ;
#TOFILL
if __name__ == '__main__':
param = [
(37,),
(25,),
(63,),
(66,),
(32,),
(5,),
(41,),
(82,),
(54,),
(5,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | return | [
"a) =",
"b) return",
"c) x,",
"d) *",
"e) 1;"
] | b |
python | def f_gold ( m , n , x ) :
table = [ [ 0 ] * ( x + 1 ) for i in range ( n + 1 ) ]
for j in range ( 1 , min ( m + 1 , x + 1 ) ) :
table [ 1 ] [ j ] = 1
for i in range ( 2 , n + 1 ) :
for j in range ( 1 , x + 1 ) :
for k in range ( 1 , min ( m + 1 , j ) ) :
table [ i ] [ j ] += table [ i - 1 ] [ j - k ]
return table [ - 1 ] [ - 1 ]
for j in range ( 1 , x + 1 ) :
for k in range ( 1 , min ( m + 1 , j ) ) :
table [ i ] [ j ] += table [ i - 1 ] [ j - k ]
return table [ - 1 ] [ - 1 ]
#TOFILL
if __name__ == '__main__':
param = [
(94,4,69,),
(7,12,33,),
(20,44,24,),
(90,94,88,),
(50,58,27,),
(32,90,29,),
(46,25,6,),
(82,50,87,),
(43,82,70,),
(6,83,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))) | def f_gold ( m , n , x ) : table = [ [ 0 ] * ( x + 1 ) for i in range ( n + 1 ) ] for j in range ( 1 , min ( m + 1 , x + 1 ) ) : table [ 1 ] [ j [MASK] = 1 for i in range ( 2 , n + 1 ) : for j in range ( 1 , x + 1 ) : for k in range ( 1 , min ( m + 1 , j ) ) : table [ i ] [ j ] += table [ i - 1 ] [ j - k ] return table [ - 1 ] [ - 1 ]
for j in range ( 1 , x + 1 ) :
for k in range ( 1 , min ( m + 1 , j ) ) :
table [ i ] [ j ] += table [ i - 1 ] [ j - k ]
return table [ - 1 ] [ - 1 ]
#TOFILL
if __name__ == '__main__':
param = [
(94,4,69,),
(7,12,33,),
(20,44,24,),
(90,94,88,),
(50,58,27,),
(32,90,29,),
(46,25,6,),
(82,50,87,),
(43,82,70,),
(6,83,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))) | ] | [
"a) ]",
"b) -",
"c) f_filled",
"d) void",
"e) sizeof(int),"
] | a |
python | def f_gold ( arr , n ) :
leftMax = [ None ] * n
leftMax [ 0 ] = float ( '-inf' )
for i in range ( 1 , n ) :
leftMax [ i ] = max ( leftMax [ i - 1 ] , arr [ i - 1 ] )
rightMin = float ( 'inf' )
for i in range ( n - 1 , - 1 , - 1 ) :
if leftMax [ i ] < arr [ i ] and rightMin > arr [ i ] :
return i
rightMin = min ( rightMin , arr [ i ] )
return - 1
for i in range ( n - 1 , - 1 , - 1 ) :
if leftMax [ i ] < arr [ i ] and rightMin > arr [ i ] :
return i
rightMin = min ( rightMin , arr [ i ] )
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([4, 24, 30, 33, 56, 67, 87, 90],4,),
([72, -48, 12, 4, 46, 36, 2, 58, 82, -88, -14, 56, 90, 76, 18, -6, -28, 18, 88, 90, 40, -68, -10, -82, -28, 16, 32, -90, 12, -86, -16, 78, -98, -52, -26, 80, 6, 50, 40, -12, 52, 38, -92, 94, -32, 14, -80, -88, 48],28,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],30,),
([51, 87, 46, 76, 2, 89, 56, 34, 49, 61, 44, 73, 14, 60, 89],11,),
([-90, -90, -80, -72, -68, -64, -62, -62, -60, -46, -44, -44, -44, -42, -42, -32, -22, -22, -18, -2, 4, 6, 10, 12, 14, 30, 34, 34, 40, 56, 56, 56, 58, 68, 74, 78, 78, 82, 84, 86, 88, 90, 92],29,),
([0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0],26,),
([7, 8, 11, 12, 15, 17, 28, 34, 57, 61, 66, 76, 92],9,),
([-22, -96, -78, -60, 34, -18, 86, -42, -78, 76, 8, 28, -80, 80, 6, -72, 34, 66, 84, 50, -4, 18, 72, -66, -68, -24, 56, -12, -70, 24, -82],19,),
([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],9,),
([79, 81, 55, 6, 78, 93, 81, 33, 29, 1, 27, 49, 21, 58, 22, 65, 44, 95, 6, 51, 75, 42, 14, 55, 79, 82, 90, 8, 15, 15, 53, 98, 76, 43, 33],30,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : leftMax = [ None ] * n leftMax [ 0 ] = float ( '-inf' ) for i in range ( 1 , n ) : leftMax [ i ] [MASK] max ( leftMax [ i - 1 ] , arr [ i - 1 ] ) rightMin = float ( 'inf' ) for i in range ( n - 1 , - 1 , - 1 ) : if leftMax [ i ] < arr [ i ] and rightMin > arr [ i ] : return i rightMin = min ( rightMin , arr [ i ] ) return - 1 for i in range ( n - 1 , - 1 , - 1 ) :
if leftMax [ i ] < arr [ i ] and rightMin > arr [ i ] :
return i
rightMin = min ( rightMin , arr [ i ] )
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([4, 24, 30, 33, 56, 67, 87, 90],4,),
([72, -48, 12, 4, 46, 36, 2, 58, 82, -88, -14, 56, 90, 76, 18, -6, -28, 18, 88, 90, 40, -68, -10, -82, -28, 16, 32, -90, 12, -86, -16, 78, -98, -52, -26, 80, 6, 50, 40, -12, 52, 38, -92, 94, -32, 14, -80, -88, 48],28,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],30,),
([51, 87, 46, 76, 2, 89, 56, 34, 49, 61, 44, 73, 14, 60, 89],11,),
([-90, -90, -80, -72, -68, -64, -62, -62, -60, -46, -44, -44, -44, -42, -42, -32, -22, -22, -18, -2, 4, 6, 10, 12, 14, 30, 34, 34, 40, 56, 56, 56, 58, 68, 74, 78, 78, 82, 84, 86, 88, 90, 92],29,),
([0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0],26,),
([7, 8, 11, 12, 15, 17, 28, 34, 57, 61, 66, 76, 92],9,),
([-22, -96, -78, -60, 34, -18, 86, -42, -78, 76, 8, 28, -80, 80, 6, -72, 34, 66, 84, 50, -4, 18, 72, -66, -68, -24, 56, -12, -70, 24, -82],19,),
([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],9,),
([79, 81, 55, 6, 78, 93, 81, 33, 29, 1, 27, 49, 21, 58, 22, 65, 44, 95, 6, 51, 75, 42, 14, 55, 79, 82, 90, 8, 15, 15, 53, 98, 76, 43, 33],30,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | = | [
"a) =",
"b) int",
"c) *",
"d) java.lang.*;",
"e) ];"
] | a |
python | def f_gold ( arr , n ) :
found = False
for i in range ( n - 1 ) :
s = set ( )
for j in range ( i + 1 , n ) :
x = - ( arr [ i ] + arr [ j ] )
if x in s :
print ( x , arr [ i ] , arr [ j ] )
found = True
else :
s.add ( arr [ j ] )
if found == False :
print ( "No Triplet Found" )
print ( x , arr [ i ] , arr [ j ] )
found = True
else :
s.add ( arr [ j ] )
if found == False :
print ( "No Triplet Found" )
#TOFILL
if __name__ == '__main__':
param = [
([1, 7, 12, 18, 18, 25, 26, 28, 29, 33, 33, 37, 39, 39, 53, 54, 55, 59, 61, 63, 63, 65, 66, 68, 68, 71, 71, 77, 81, 85, 90, 93, 94, 95, 97],18,),
([38, 68, 16, 96, -10, 6, 86, -42, -66, -2, -10, 48, 16, -28, 92, -24, 0, 46, -58, -58, 56, -70, 10, -2, -92, -80, 14, -78, 16, -84, -88, 42, -24, 6, 86, 82, 84],19,),
([0, 0, 0, 0, 1, 1, 1, 1],6,),
([45],0,),
([-80, -68, -54, -44, -40, -38, -32, -28, -22, -18, -12, -10, 14, 24, 38, 38, 40, 42, 46, 46, 64, 64, 66, 68, 68, 68, 70, 96],20,),
([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0],13,),
([1, 3, 4, 6, 8, 9, 10, 10, 11, 17, 17, 21, 22, 22, 25, 32, 34, 38, 46, 46, 48, 51, 58, 59, 62, 63, 64, 65, 70, 70, 72, 72, 72, 74, 77, 78, 81, 82, 83, 89, 90, 92, 95, 97],43,),
([-70, 78, 70, 20, -52, 36, -42, 34, -56, -94],9,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],7,),
([72, 50, 10, 44, 66, 67, 76, 19, 3, 24, 76, 56, 53, 42, 15, 50, 86, 43, 77, 28, 42, 65, 92, 73, 60, 86, 52, 65],21,)
]
filled_function_param = [
([1, 7, 12, 18, 18, 25, 26, 28, 29, 33, 33, 37, 39, 39, 53, 54, 55, 59, 61, 63, 63, 65, 66, 68, 68, 71, 71, 77, 81, 85, 90, 93, 94, 95, 97],18,),
([38, 68, 16, 96, -10, 6, 86, -42, -66, -2, -10, 48, 16, -28, 92, -24, 0, 46, -58, -58, 56, -70, 10, -2, -92, -80, 14, -78, 16, -84, -88, 42, -24, 6, 86, 82, 84],19,),
([0, 0, 0, 0, 1, 1, 1, 1],6,),
([45],0,),
([-80, -68, -54, -44, -40, -38, -32, -28, -22, -18, -12, -10, 14, 24, 38, 38, 40, 42, 46, 46, 64, 64, 66, 68, 68, 68, 70, 96],20,),
([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0],13,),
([1, 3, 4, 6, 8, 9, 10, 10, 11, 17, 17, 21, 22, 22, 25, 32, 34, 38, 46, 46, 48, 51, 58, 59, 62, 63, 64, 65, 70, 70, 72, 72, 72, 74, 77, 78, 81, 82, 83, 89, 90, 92, 95, 97],43,),
([-70, 78, 70, 20, -52, 36, -42, 34, -56, -94],9,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],7,),
([72, 50, 10, 44, 66, 67, 76, 19, 3, 24, 76, 56, 53, 42, 15, 50, 86, 43, 77, 28, 42, 65, 92, 73, 60, 86, 52, 65],21,)
]
n_success = 0
for i, parameters_set in enumerate(param):
f_filled(*(filled_function_param[i]))
f_gold(*parameters_set)
if parameters_set == filled_function_param[i]:
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : found = False for i in range ( n - 1 ) : s = set ( ) for j in range ( i + 1 , n ) : x = - ( arr [ i ] + arr [ j ] ) if x in s : print ( x , arr [ i ] , arr [ j ] ) found = True else : s.add ( arr [ j ] ) if found == False : print ( [MASK] Triplet Found" ) print ( x , arr [ i ] , arr [ j ] )
found = True
else :
s.add ( arr [ j ] )
if found == False :
print ( "No Triplet Found" )
#TOFILL
if __name__ == '__main__':
param = [
([1, 7, 12, 18, 18, 25, 26, 28, 29, 33, 33, 37, 39, 39, 53, 54, 55, 59, 61, 63, 63, 65, 66, 68, 68, 71, 71, 77, 81, 85, 90, 93, 94, 95, 97],18,),
([38, 68, 16, 96, -10, 6, 86, -42, -66, -2, -10, 48, 16, -28, 92, -24, 0, 46, -58, -58, 56, -70, 10, -2, -92, -80, 14, -78, 16, -84, -88, 42, -24, 6, 86, 82, 84],19,),
([0, 0, 0, 0, 1, 1, 1, 1],6,),
([45],0,),
([-80, -68, -54, -44, -40, -38, -32, -28, -22, -18, -12, -10, 14, 24, 38, 38, 40, 42, 46, 46, 64, 64, 66, 68, 68, 68, 70, 96],20,),
([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0],13,),
([1, 3, 4, 6, 8, 9, 10, 10, 11, 17, 17, 21, 22, 22, 25, 32, 34, 38, 46, 46, 48, 51, 58, 59, 62, 63, 64, 65, 70, 70, 72, 72, 72, 74, 77, 78, 81, 82, 83, 89, 90, 92, 95, 97],43,),
([-70, 78, 70, 20, -52, 36, -42, 34, -56, -94],9,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],7,),
([72, 50, 10, 44, 66, 67, 76, 19, 3, 24, 76, 56, 53, 42, 15, 50, 86, 43, 77, 28, 42, 65, 92, 73, 60, 86, 52, 65],21,)
]
filled_function_param = [
([1, 7, 12, 18, 18, 25, 26, 28, 29, 33, 33, 37, 39, 39, 53, 54, 55, 59, 61, 63, 63, 65, 66, 68, 68, 71, 71, 77, 81, 85, 90, 93, 94, 95, 97],18,),
([38, 68, 16, 96, -10, 6, 86, -42, -66, -2, -10, 48, 16, -28, 92, -24, 0, 46, -58, -58, 56, -70, 10, -2, -92, -80, 14, -78, 16, -84, -88, 42, -24, 6, 86, 82, 84],19,),
([0, 0, 0, 0, 1, 1, 1, 1],6,),
([45],0,),
([-80, -68, -54, -44, -40, -38, -32, -28, -22, -18, -12, -10, 14, 24, 38, 38, 40, 42, 46, 46, 64, 64, 66, 68, 68, 68, 70, 96],20,),
([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0],13,),
([1, 3, 4, 6, 8, 9, 10, 10, 11, 17, 17, 21, 22, 22, 25, 32, 34, 38, 46, 46, 48, 51, 58, 59, 62, 63, 64, 65, 70, 70, 72, 72, 72, 74, 77, 78, 81, 82, 83, 89, 90, 92, 95, 97],43,),
([-70, 78, 70, 20, -52, 36, -42, 34, -56, -94],9,),
([0, 0, 0, 0, 1, 1, 1, 1, 1],7,),
([72, 50, 10, 44, 66, 67, 76, 19, 3, 24, 76, 56, 53, 42, 15, 50, 86, 43, 77, 28, 42, 65, 92, 73, 60, 86, 52, 65],21,)
]
n_success = 0
for i, parameters_set in enumerate(param):
f_filled(*(filled_function_param[i]))
f_gold(*parameters_set)
if parameters_set == filled_function_param[i]:
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | "No | [
"a) \"No",
"b) const",
"c) 10",
"d) (",
"e) {"
] | a |
python | def f_gold ( n ) :
dp = [ [ 0 for j in range ( 27 ) ] for i in range ( n + 1 ) ]
for i in range ( 0 , 26 ) :
dp [ 1 ] [ i ] = 1
for i in range ( 2 , n + 1 ) :
for j in range ( 0 , 26 ) :
if ( j == 0 ) :
dp [ i ] [ j ] = dp [ i - 1 ] [ j + 1 ] ;
else :
dp [ i ] [ j ] = ( dp [ i - 1 ] [ j - 1 ] + dp [ i - 1 ] [ j + 1 ] )
sum = 0
for i in range ( 0 , 26 ) :
sum = sum + dp [ n ] [ i ]
return sum
else :
dp [ i ] [ j ] = ( dp [ i - 1 ] [ j - 1 ] + dp [ i - 1 ] [ j + 1 ] )
sum = 0
for i in range ( 0 , 26 ) :
sum = sum + dp [ n ] [ i ]
return sum
#TOFILL
if __name__ == '__main__':
param = [
(7,),
(47,),
(72,),
(66,),
(71,),
(56,),
(61,),
(68,),
(78,),
(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))) | def f_gold ( n ) : dp = [ [ 0 for j in range ( 27 ) ] for i in range ( n + 1 ) ] for i in range ( 0 , [MASK] ) : dp [ 1 ] [ i ] = 1 for i in range ( 2 , n + 1 ) : for j in range ( 0 , 26 ) : if ( j == 0 ) : dp [ i ] [ j ] = dp [ i - 1 ] [ j + 1 ] ; else : dp [ i ] [ j ] = ( dp [ i - 1 ] [ j - 1 ] + dp [ i - 1 ] [ j + 1 ] ) sum = 0 for i in range ( 0 , 26 ) : sum = sum + dp [ n ] [ i ] return sum else :
dp [ i ] [ j ] = ( dp [ i - 1 ] [ j - 1 ] + dp [ i - 1 ] [ j + 1 ] )
sum = 0
for i in range ( 0 , 26 ) :
sum = sum + dp [ n ] [ i ]
return sum
#TOFILL
if __name__ == '__main__':
param = [
(7,),
(47,),
(72,),
(66,),
(71,),
(56,),
(61,),
(68,),
(78,),
(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))) | 26 | [
"a) import",
"b) (",
"c) 26",
"d) range",
"e) #include"
] | c |
python | def f_gold ( arr , n ) :
arr = sorted ( arr )
diff = 10 ** 20
for i in range ( n - 1 ) :
if arr [ i + 1 ] - arr [ i ] < diff :
diff = arr [ i + 1 ] - arr [ i ]
return diff
, n ) :
arr = sorted ( arr )
diff = 10 ** 20
for i in range ( n - 1 ) :
if arr [ i + 1 ] - arr [ i ] < diff :
diff = arr [ i + 1 ] - arr [ i ]
return diff
#TOFILL
if __name__ == '__main__':
param = [
([3, 25, 44, 46, 54, 60, 81],3,),
([82, 68, -98, -66, -36, -42, 98, -38, 58, -6, -28, 70, -24, 18, 16, 10, 92, 44, 28, -96, -72, 24, 28, -80, -4, 38, 88, 76],22,),
([1, 1, 1],2,),
([87, 25, 80, 45, 44, 20, 48, 47, 51, 54, 68, 47, 89, 95, 15, 29, 5, 45, 2, 64, 53, 96, 94, 22, 23, 43, 61, 75, 74, 50],15,),
([-74, -48, -42, -26, -16, -12, 0, 4, 8, 18, 46, 46, 62, 70, 74, 88, 92, 96, 98],18,),
([0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0],36,),
([27, 42, 59, 80],2,),
([-96, -94, 10, -36, 18, -40],4,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],12,),
([96],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))) | def f_gold ( arr , n ) : arr = sorted ( arr ) diff = 10 ** 20 for i in range ( n - 1 ) : if arr [ i + 1 ] - arr [ i ] < diff : diff = arr [ i + 1 [MASK] - arr [ i ] return diff, n ) :
arr = sorted ( arr )
diff = 10 ** 20
for i in range ( n - 1 ) :
if arr [ i + 1 ] - arr [ i ] < diff :
diff = arr [ i + 1 ] - arr [ i ]
return diff
#TOFILL
if __name__ == '__main__':
param = [
([3, 25, 44, 46, 54, 60, 81],3,),
([82, 68, -98, -66, -36, -42, 98, -38, 58, -6, -28, 70, -24, 18, 16, 10, 92, 44, 28, -96, -72, 24, 28, -80, -4, 38, 88, 76],22,),
([1, 1, 1],2,),
([87, 25, 80, 45, 44, 20, 48, 47, 51, 54, 68, 47, 89, 95, 15, 29, 5, 45, 2, 64, 53, 96, 94, 22, 23, 43, 61, 75, 74, 50],15,),
([-74, -48, -42, -26, -16, -12, 0, 4, 8, 18, 46, 46, 62, 70, 74, 88, 92, 96, 98],18,),
([0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0],36,),
([27, 42, 59, 80],2,),
([-96, -94, 10, -36, 18, -40],4,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],12,),
([96],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))) | ] | [
"a) ]",
"b) mid",
"c) i",
"d) n",
"e) int"
] | a |
python | import sys
def f_gold ( arr , n ) :
longest_start = - 1 ;
longest_end = 0 ;
for start in range ( n ) :
min = sys.maxsize ;
max = - sys.maxsize ;
for end in range ( start , n ) :
val = arr [ end ] ;
if ( val < min ) :
min = val ;
if ( val > max ) :
max = val ;
if ( 2 * min <= max ) :
break ;
if ( end - start > longest_end - longest_start or longest_start == - 1 ) :
longest_start = start ;
longest_end = end ;
if ( longest_start == - 1 ) :
return n ;
return ( n - ( longest_end - longest_start + 1 ) ) ;
) :
longest_start = start ;
longest_end = end ;
if ( longest_start == - 1 ) :
return n ;
return ( n - ( longest_end - longest_start + 1 ) ) ;
#TOFILL
if __name__ == '__main__':
param = [
([32, 50, 66, 73, 76, 87],5,),
([68, 74, 16, 40, 6, -44, -36, 94, 6, -24, -4, -58, -16, 24],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],11,),
([91, 22],1,),
([-84, -80, -78, -76, -58, -54, -52, -48, -42, -42, -40, -38, -34, -32, -28, -24, -6, 2, 2, 4, 10, 14, 16, 18, 26, 26, 36, 40, 50, 52, 62, 64, 72, 74, 84, 90, 94, 96, 98],35,),
([1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1],13,),
([10, 19, 25, 29, 32, 37, 40, 43, 43, 44, 46, 51, 51, 54, 56, 58, 63, 79, 83, 86, 87, 97, 97],11,),
([-48, -28, 10, 30, 78, -72, 78, 52, -52, -68, 56, 42, 8, -42, 16, -56, 2, -90, -26, -28, -56, -2, 80, -50, 98, -64, -96, 10, -10, 44, 98, -48, -88, 42, 30, 24, 38, -26, -52, -12, 0, 34, -82, -80, 0, -84, -20],25,),
([0, 0, 1, 1, 1, 1, 1, 1],6,),
([25, 82],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))) | import sys def f_gold ( arr , n ) : longest_start = - 1 ; longest_end = 0 ; for start in range ( n ) : min = sys.maxsize ; max = - sys.maxsize ; for end in range ( start , n ) : val = arr [ end ] ; if ( val < min ) : min = val ; if ( val > max ) : max = val ; if ( 2 * min <= max ) : break ; if ( end - start > longest_end - longest_start or longest_start == - 1 ) : longest_start = start ; longest_end = end ; if ( longest_start == - 1 ) : [MASK] n ; return ( n - ( longest_end - longest_start + 1 ) ) ; ) :
longest_start = start ;
longest_end = end ;
if ( longest_start == - 1 ) :
return n ;
return ( n - ( longest_end - longest_start + 1 ) ) ;
#TOFILL
if __name__ == '__main__':
param = [
([32, 50, 66, 73, 76, 87],5,),
([68, 74, 16, 40, 6, -44, -36, 94, 6, -24, -4, -58, -16, 24],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],11,),
([91, 22],1,),
([-84, -80, -78, -76, -58, -54, -52, -48, -42, -42, -40, -38, -34, -32, -28, -24, -6, 2, 2, 4, 10, 14, 16, 18, 26, 26, 36, 40, 50, 52, 62, 64, 72, 74, 84, 90, 94, 96, 98],35,),
([1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1],13,),
([10, 19, 25, 29, 32, 37, 40, 43, 43, 44, 46, 51, 51, 54, 56, 58, 63, 79, 83, 86, 87, 97, 97],11,),
([-48, -28, 10, 30, 78, -72, 78, 52, -52, -68, 56, 42, 8, -42, 16, -56, 2, -90, -26, -28, -56, -2, 80, -50, 98, -64, -96, 10, -10, 44, 98, -48, -88, 42, 30, 24, 38, -26, -52, -12, 0, 34, -82, -80, 0, -84, -20],25,),
([0, 0, 1, 1, 1, 1, 1, 1],6,),
([25, 82],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))) | return | [
"a) <",
"b) );",
"c) javafx.util.Pair;",
"d) return",
"e) bin_rem"
] | d |
python | def f_gold ( arr , n ) :
count = 0
arr.sort ( )
for i in range ( 0 , n - 1 ) :
if ( arr [ i ] != arr [ i + 1 ] and arr [ i ] != arr [ i + 1 ] - 1 ) :
count += arr [ i + 1 ] - arr [ i ] - 1 ;
return count
rt ( )
for i in range ( 0 , n - 1 ) :
if ( arr [ i ] != arr [ i + 1 ] and arr [ i ] != arr [ i + 1 ] - 1 ) :
count += arr [ i + 1 ] - arr [ i ] - 1 ;
return count
#TOFILL
if __name__ == '__main__':
param = [
([4, 4, 5, 7, 7, 9, 13, 15, 18, 19, 25, 27, 27, 29, 32, 36, 48, 51, 53, 53, 55, 65, 66, 67, 72, 74, 74, 76, 77, 79, 80, 81, 82, 83, 83, 86, 87, 97, 98, 98, 99],30,),
([34, 6, -16, -26, -80, -90, -74, 16, -84, 64, -8, 14, -52, -26, -90, -84, 94, 92, -88, -84, 72],17,),
([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],24,),
([25, 29, 12, 79, 23, 92, 54, 43, 26, 10, 43, 39, 32, 12, 62, 13, 13],14,),
([-94, -86, -72, -64, -64, -58, -56, -56, -56, -56, -54, -54, -52, -42, -42, -40, -36, -32, -28, -22, -20, -18, -12, -8, -6, -4, 0, 2, 4, 10, 16, 30, 32, 48, 48, 60, 70, 74, 76, 84],35,),
([1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0],29,),
([4, 5, 8, 12, 16, 16, 17, 20, 20, 23, 26, 26, 27, 28, 32, 34, 40, 40, 41, 41, 44, 45, 47, 49, 51, 52, 54, 57, 60, 62, 63, 64, 66, 68, 69, 70, 71, 76, 77, 80, 80, 80, 90, 91, 92, 94, 96, 98, 99],42,),
([66, -46, -92, -40, 76, 74, 10, 20, 56, -46, 88, -18, 48, 96, -48, -86, 38, -98, 50, 4, -52, -38, 14, -48, 96, 16, -74, -26, 80, 14, -92, -60, -78, -68, 96, -72, -44, -92, 2, 60, 4, 48, 84, -92],37,),
([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],17,),
([49, 84, 66],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))) | def f_gold ( arr , n ) [MASK] count = 0 arr.sort ( ) for i in range ( 0 , n - 1 ) : if ( arr [ i ] != arr [ i + 1 ] and arr [ i ] != arr [ i + 1 ] - 1 ) : count += arr [ i + 1 ] - arr [ i ] - 1 ; return countrt ( )
for i in range ( 0 , n - 1 ) :
if ( arr [ i ] != arr [ i + 1 ] and arr [ i ] != arr [ i + 1 ] - 1 ) :
count += arr [ i + 1 ] - arr [ i ] - 1 ;
return count
#TOFILL
if __name__ == '__main__':
param = [
([4, 4, 5, 7, 7, 9, 13, 15, 18, 19, 25, 27, 27, 29, 32, 36, 48, 51, 53, 53, 55, 65, 66, 67, 72, 74, 74, 76, 77, 79, 80, 81, 82, 83, 83, 86, 87, 97, 98, 98, 99],30,),
([34, 6, -16, -26, -80, -90, -74, 16, -84, 64, -8, 14, -52, -26, -90, -84, 94, 92, -88, -84, 72],17,),
([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],24,),
([25, 29, 12, 79, 23, 92, 54, 43, 26, 10, 43, 39, 32, 12, 62, 13, 13],14,),
([-94, -86, -72, -64, -64, -58, -56, -56, -56, -56, -54, -54, -52, -42, -42, -40, -36, -32, -28, -22, -20, -18, -12, -8, -6, -4, 0, 2, 4, 10, 16, 30, 32, 48, 48, 60, 70, 74, 76, 84],35,),
([1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0],29,),
([4, 5, 8, 12, 16, 16, 17, 20, 20, 23, 26, 26, 27, 28, 32, 34, 40, 40, 41, 41, 44, 45, 47, 49, 51, 52, 54, 57, 60, 62, 63, 64, 66, 68, 69, 70, 71, 76, 77, 80, 80, 80, 90, 91, 92, 94, 96, 98, 99],42,),
([66, -46, -92, -40, 76, 74, 10, 20, 56, -46, 88, -18, 48, 96, -48, -86, 38, -98, 50, 4, -52, -38, 14, -48, 96, 16, -74, -26, 80, 14, -92, -60, -78, -68, 96, -72, -44, -92, 2, 60, 4, 48, 84, -92],37,),
([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],17,),
([49, 84, 66],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))) | : | [
"a) ]",
"b) int",
"c) for",
"d) -",
"e) :"
] | e |
python | def f_gold ( n ) :
table = [ 0 for i in range ( n + 1 ) ]
table [ 0 ] = 1
for i in range ( 3 , n + 1 ) :
table [ i ] += table [ i - 3 ]
for i in range ( 5 , n + 1 ) :
table [ i ] += table [ i - 5 ]
for i in range ( 10 , n + 1 ) :
table [ i ] += table [ i - 10 ]
return table [ n ]
= table [ i - 3 ]
for i in range ( 5 , n + 1 ) :
table [ i ] += table [ i - 5 ]
for i in range ( 10 , n + 1 ) :
table [ i ] += table [ i - 10 ]
return table [ n ]
#TOFILL
if __name__ == '__main__':
param = [
(83,),
(29,),
(17,),
(12,),
(93,),
(55,),
(97,),
(75,),
(22,),
(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))) | def f_gold ( n ) : table = [ 0 for i in range ( n + 1 ) ] table [ 0 ] = 1 for i in range ( 3 , n + 1 ) : table [ i ] += table [ i - 3 ] for i in range ( 5 , n + 1 ) : table [ i ] += table [ i - 5 [MASK] for i in range ( 10 , n + 1 ) : table [ i ] += table [ i - 10 ] return table [ n ]= table [ i - 3 ]
for i in range ( 5 , n + 1 ) :
table [ i ] += table [ i - 5 ]
for i in range ( 10 , n + 1 ) :
table [ i ] += table [ i - 10 ]
return table [ n ]
#TOFILL
if __name__ == '__main__':
param = [
(83,),
(29,),
(17,),
(12,),
(93,),
(55,),
(97,),
(75,),
(22,),
(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))) | ] | [
"a) max(int",
"b) ]",
"c) (",
"d) static",
"e) 1"
] | b |
python | import sys
def f_gold ( arr , n ) :
if n < 3 :
return - 1
max_product = - ( sys.maxsize - 1 )
for i in range ( 0 , n - 2 ) :
for j in range ( i + 1 , n - 1 ) :
for k in range ( j + 1 , n ) :
max_product = max ( max_product , arr [ i ] * arr [ j ] * arr [ k ] )
return max_product
for j in range ( i + 1 , n - 1 ) :
for k in range ( j + 1 , n ) :
max_product = max ( max_product , arr [ i ] * arr [ j ] * arr [ k ] )
return max_product
#TOFILL
if __name__ == '__main__':
param = [
([41, 66, 77],2,),
([92, -34, -36, -50, 20, -94, 2, -86, 22, -50, 74, 84, 52, -84, 98, -50, 88, 26, -36, -36, 6, -50, -48, -84, 38, -96, -62, 34, 52, 92, 40, -84, 18, -90, 54, -38, -74, -98, -8, -92, -60, 86, -36, 94, 56],40,),
([0, 0, 1],1,),
([2, 77, 99, 95, 78, 15, 69, 39, 34, 43, 66, 45, 97, 27, 67, 62, 64, 2, 28, 94, 41, 87, 97, 52, 14, 61, 78, 50],26,),
([-62, -28, 40, 76],3,),
([0, 1, 1, 0, 1, 1, 1, 1, 1],5,),
([2, 6, 10, 11, 12, 12, 17, 18, 18, 19, 20, 22, 24, 25, 30, 35, 36, 37, 40, 41, 42, 47, 60, 60, 64, 69, 69, 70, 73, 79, 80, 83, 97, 97, 97],25,),
([-72, 98, 68, 18, 92, -84, 50, 32, -90, -40, 50, 60, -50, -50, 50, 24, 30, 94, -98, -6, 46, -46, -24, -62, -20, 62, -76],14,),
([0, 0, 0, 0, 0, 1, 1, 1],7,),
([85, 36, 7, 69, 9, 45, 18, 47, 1, 78, 72, 53, 37, 20, 95, 71, 58, 41],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))) | import sys def f_gold ( arr , n ) : if n < 3 : return - 1 max_product = - ( sys.maxsize - 1 ) for i in range ( 0 , n - 2 ) : for j in range ( i + 1 , n - 1 ) : [MASK] k in range ( j + 1 , n ) : max_product = max ( max_product , arr [ i ] * arr [ j ] * arr [ k ] ) return max_product for j in range ( i + 1 , n - 1 ) :
for k in range ( j + 1 , n ) :
max_product = max ( max_product , arr [ i ] * arr [ j ] * arr [ k ] )
return max_product
#TOFILL
if __name__ == '__main__':
param = [
([41, 66, 77],2,),
([92, -34, -36, -50, 20, -94, 2, -86, 22, -50, 74, 84, 52, -84, 98, -50, 88, 26, -36, -36, 6, -50, -48, -84, 38, -96, -62, 34, 52, 92, 40, -84, 18, -90, 54, -38, -74, -98, -8, -92, -60, 86, -36, 94, 56],40,),
([0, 0, 1],1,),
([2, 77, 99, 95, 78, 15, 69, 39, 34, 43, 66, 45, 97, 27, 67, 62, 64, 2, 28, 94, 41, 87, 97, 52, 14, 61, 78, 50],26,),
([-62, -28, 40, 76],3,),
([0, 1, 1, 0, 1, 1, 1, 1, 1],5,),
([2, 6, 10, 11, 12, 12, 17, 18, 18, 19, 20, 22, 24, 25, 30, 35, 36, 37, 40, 41, 42, 47, 60, 60, 64, 69, 69, 70, 73, 79, 80, 83, 97, 97, 97],25,),
([-72, 98, 68, 18, 92, -84, 50, 32, -90, -40, 50, 60, -50, -50, 50, 24, 30, 94, -98, -6, 46, -46, -24, -62, -20, 62, -76],14,),
([0, 0, 0, 0, 0, 1, 1, 1],7,),
([85, 36, 7, 69, 9, 45, 18, 47, 1, 78, 72, 53, 37, 20, 95, 71, 58, 41],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))) | for | [
"a) (int",
"b) :",
"c) for",
"d) 2",
"e) int"
] | c |
python | def f_gold ( b , m ) :
return ( b / m - 1 ) * ( b / m ) / 2
d.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( b , m ) :
return ( b / m - 1 ) * ( b / m ) / 2
#TOFILL
if __name__ == '__main__':
param = [
(40,74,),
(38,35,),
(47,71,),
(52,29,),
(21,9,),
(50,33,),
(8,82,),
(56,80,),
(93,5,),
(21,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))) | def f_gold ( b , m ) : return ( b / m [MASK] 1 ) * ( b / m ) / 2d.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( b , m ) :
return ( b / m - 1 ) * ( b / m ) / 2
#TOFILL
if __name__ == '__main__':
param = [
(40,74,),
(38,35,),
(47,71,),
(52,29,),
(21,9,),
(50,33,),
(8,82,),
(56,80,),
(93,5,),
(21,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))) | - | [
"a) =",
"b) -",
"c) ==",
"d) (",
"e) neg"
] | b |
python | 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 ;
nt = 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))) | def f_gold ( x ) : res = 0 ; count = 0 ; count += 1 ; if ( count == 1 ) : res = x ; else : i = random.randrange ( [MASK] ) ; if ( i == count - 1 ) : res = x ; return res ;nt = 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))) | count | [
"a) count",
"b) *;",
"c) if",
"d) %",
"e) arr"
] | a |
python | def f_gold ( n ) :
n -= 1
n |= n >> 1
n |= n >> 2
n |= n >> 4
n |= n >> 8
n |= n >> 16
n += 1
return n
CENSE file in the root directory of this source tree.
#
def f_gold ( n ) :
n -= 1
n |= n >> 1
n |= n >> 2
n |= n >> 4
n |= n >> 8
n |= n >> 16
n += 1
return n
#TOFILL
if __name__ == '__main__':
param = [
(60,),
(20,),
(33,),
(34,),
(68,),
(79,),
(20,),
(41,),
(36,),
(17,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( n ) : n -= 1 n |= n >> 1 n |= n >> 2 n |= n >> 4 n |= n >> 8 n |= n >> [MASK] n += 1 return nCENSE file in the root directory of this source tree.
#
def f_gold ( n ) :
n -= 1
n |= n >> 1
n |= n >> 2
n |= n >> 4
n |= n >> 8
n |= n >> 16
n += 1
return n
#TOFILL
if __name__ == '__main__':
param = [
(60,),
(20,),
(33,),
(34,),
(68,),
(79,),
(20,),
(41,),
(36,),
(17,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | 16 | [
"a) 16",
"b) rotation",
"c) int",
"d) *",
"e) range(n):"
] | a |
python | def f_gold ( s ) :
length = int ( s / 3 )
s -= length
breadth = s / 2
height = s - breadth
return int ( length * breadth * height )
root directory of this source tree.
#
def f_gold ( s ) :
length = int ( s / 3 )
s -= length
breadth = s / 2
height = s - breadth
return int ( length * breadth * height )
#TOFILL
if __name__ == '__main__':
param = [
(8,),
(96,),
(96,),
(96,),
(12,),
(95,),
(72,),
(81,),
(42,),
(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))) | def f_gold ( s ) : length = [MASK] ( s / 3 ) s -= length breadth = s / 2 height = s - breadth return int ( length * breadth * height ) root directory of this source tree.
#
def f_gold ( s ) :
length = int ( s / 3 )
s -= length
breadth = s / 2
height = s - breadth
return int ( length * breadth * height )
#TOFILL
if __name__ == '__main__':
param = [
(8,),
(96,),
(96,),
(96,),
(12,),
(95,),
(72,),
(81,),
(42,),
(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))) | int | [
"a) )",
"b) class",
"c) javafx.util.Pair;",
"d) n",
"e) int"
] | e |
python | def f_gold ( st ) :
l = len ( st )
arr = [ 0 ] * l
for i in range ( 0 , l ) :
for j in range ( i , l ) :
for k in range ( j , l ) :
if ( arr [ i ] % 8 == 0 ) :
return True
elif ( ( arr [ i ] * 10 + arr [ j ] ) % 8 == 0 and i != j ) :
return True
elif ( ( arr [ i ] * 100 + arr [ j ] * 10 + arr [ k ] ) % 8 == 0 and i != j and j != k and i != k ) :
return True
return False
return True
elif ( ( arr [ i ] * 100 + arr [ j ] * 10 + arr [ k ] ) % 8 == 0 and i != j and j != k and i != k ) :
return True
return False
#TOFILL
if __name__ == '__main__':
param = [
('1787075866',),
('8',),
('1110101110111',),
('6673177113',),
('7',),
('000001',),
('dbxMF',),
('71733',),
('01101101100',),
('',)
]
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))) | def f_gold ( st ) : l = len ( st ) arr = [ 0 ] * l for i in range ( 0 , l ) : for j in range ( i , l ) : for k in range ( j , l ) : if ( arr [ i ] % 8 == 0 ) : return True elif ( ( arr [ i ] * 10 + arr [ j ] ) % 8 == 0 and i != j ) : return True elif ( ( arr [ i ] * 100 [MASK] arr [ j ] * 10 + arr [ k ] ) % 8 == 0 and i != j and j != k and i != k ) : return True return False return True
elif ( ( arr [ i ] * 100 + arr [ j ] * 10 + arr [ k ] ) % 8 == 0 and i != j and j != k and i != k ) :
return True
return False
#TOFILL
if __name__ == '__main__':
param = [
('1787075866',),
('8',),
('1110101110111',),
('6673177113',),
('7',),
('000001',),
('dbxMF',),
('71733',),
('01101101100',),
('',)
]
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))) | + | [
"a) [",
"b) d",
"c) increment",
"d) +",
"e) ["
] | d |
python | def f_gold(k, n):
f1 = 0
f2 = 1
i = 2
while i != 0:
f3 = f1 + f2
f1 = f2
f2 = f3
if f2 % k == 0:
return n * i
i += 1
return
_gold(k, n):
f1 = 0
f2 = 1
i = 2
while i != 0:
f3 = f1 + f2
f1 = f2
f2 = f3
if f2 % k == 0:
return n * i
i += 1
return
#TOFILL
if __name__ == '__main__':
param = [
(50, 60,),
(52, 45,),
(42, 17,),
(2, 68,),
(37, 43,),
(48, 46,),
(31, 4,),
(9, 64,),
(78, 14,),
(64, 80,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print("#Results: %i, %i" % (n_success, len(param)))
| def f_gold(k, n): f1 = 0 f2 = 1 i = 2 while i != [MASK] f3 = f1 + f2 f1 = f2 f2 = f3 if f2 % k == 0: return n * i i += 1 return_gold(k, n):
f1 = 0
f2 = 1
i = 2
while i != 0:
f3 = f1 + f2
f1 = f2
f2 = f3
if f2 % k == 0:
return n * i
i += 1
return
#TOFILL
if __name__ == '__main__':
param = [
(50, 60,),
(52, 45,),
(42, 17,),
(2, 68,),
(37, 43,),
(48, 46,),
(31, 4,),
(9, 64,),
(78, 14,),
(64, 80,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print("#Results: %i, %i" % (n_success, len(param)))
| 0: | [
"a) int",
"b) return",
"c) =",
"d) [",
"e) 0:"
] | e |
python | 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
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))) | def f_gold ( a , arr_size ) : lo = 0 hi = arr_size - 1 mid = 0 while mid <= hi : if a [ mid ] == 0 : [MASK] [ 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 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))) | a | [
"a) {",
"b) false",
"c) )",
"d) a",
"e) int"
] | d |
python | import math
def f_gold ( side ) :
return ( 2 * ( math.sqrt ( 3 ) ) * ( side * side ) )
icensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import math
def f_gold ( side ) :
return ( 2 * ( math.sqrt ( 3 ) ) * ( side * side ) )
#TOFILL
if __name__ == '__main__':
param = [
(1449.255716877097,),
(-8772.104874265995,),
(2948.419328234334,),
(-1184.220109553511,),
(7422.825800698956,),
(-5808.280006171851,),
(829.8963781665169,),
(-7368.438572511732,),
(5572.033890611617,),
(-3998.9441642787706,)
]
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))) | import math def f_gold ( side [MASK] : return ( 2 * ( math.sqrt ( 3 ) ) * ( side * side ) )icensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import math
def f_gold ( side ) :
return ( 2 * ( math.sqrt ( 3 ) ) * ( side * side ) )
#TOFILL
if __name__ == '__main__':
param = [
(1449.255716877097,),
(-8772.104874265995,),
(2948.419328234334,),
(-1184.220109553511,),
(7422.825800698956,),
(-5808.280006171851,),
(829.8963781665169,),
(-7368.438572511732,),
(5572.033890611617,),
(-3998.9441642787706,)
]
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))) | ) | [
"a) unsigned",
"b) ==",
"c) i",
"d) import",
"e) )"
] | e |
python | def f_gold ( text , word ) :
word_list = text.split ( )
result = ''
stars = '*' * len ( word )
count = 0
index = 0 ;
for i in word_list :
if i == word :
word_list [ index ] = stars
index += 1
result = ' '.join ( word_list )
return result
count = 0
index = 0 ;
for i in word_list :
if i == word :
word_list [ index ] = stars
index += 1
result = ' '.join ( word_list )
return result
#TOFILL
if __name__ == '__main__':
param = [
('IggvAXtmJ','kzHdEJuCaO',),
('76711241128','5',),
('010','0101001',),
('HIKOn','XlnBwpx',),
('3680369217','017523',),
('1111','1011',),
('zIi','ONNXygON',),
('06','54171617',),
('111','0010001011001',),
('NJNnrVU','AGwmS',)
]
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))) | def f_gold ( text , word ) : word_list = text.split ( ) result = '' stars = '*' * len [MASK] word ) count = 0 index = 0 ; for i in word_list : if i == word : word_list [ index ] = stars index += 1 result = ' '.join ( word_list ) return result count = 0
index = 0 ;
for i in word_list :
if i == word :
word_list [ index ] = stars
index += 1
result = ' '.join ( word_list )
return result
#TOFILL
if __name__ == '__main__':
param = [
('IggvAXtmJ','kzHdEJuCaO',),
('76711241128','5',),
('010','0101001',),
('HIKOn','XlnBwpx',),
('3680369217','017523',),
('1111','1011',),
('zIi','ONNXygON',),
('06','54171617',),
('111','0010001011001',),
('NJNnrVU','AGwmS',)
]
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))) | ( | [
"a) [",
"b) (",
"c) while",
"d) (int",
"e) ],"
] | b |
python | def f_gold ( arr , n , x ) :
curr_sum = 0
min_len = n + 1
start = 0
end = 0
while ( end < n ) :
while ( curr_sum <= x and end < n ) :
curr_sum += arr [ end ]
end += 1
while ( curr_sum > x and start < n ) :
if ( end - start < min_len ) :
min_len = end - start
curr_sum -= arr [ start ]
start += 1
return min_len
urr_sum > x and start < n ) :
if ( end - start < min_len ) :
min_len = end - start
curr_sum -= arr [ start ]
start += 1
return min_len
#TOFILL
if __name__ == '__main__':
param = [
([6, 11, 11, 14, 18, 19, 21, 22, 22, 23, 26, 27, 28, 28, 29, 30, 31, 34, 39, 42, 42, 44, 45, 49, 49, 53, 57, 61, 65, 66, 67, 70, 71, 73, 74, 74, 78, 85, 88, 94, 95, 97],37,23,),
([-30, -22, -66, -80, 18, -64, -28, -46, 94, 60, -64, 2, 26, -94, 58, 56, 56, 88, 50, -78, -12, 68, 54, -78, 42, -30, 24, -48, 84, 12, -88, 0, 54, -92, -4, 42, -60, -72, -32],31,29,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1],8,12,),
([86, 8, 23, 40, 55, 93, 11, 35, 33, 37, 96, 91, 35, 66, 37, 57, 83, 99, 96, 15, 18, 93],16,13,),
([-92, -68, -48, -48, -42, -26, -22, -18, 2, 4, 8, 14, 20, 22, 32, 46, 52, 62, 70, 96, 98],17,14,),
([0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0],11,10,),
([4, 4, 11, 11, 13, 15, 16, 18, 19, 19, 19, 23, 26, 27, 34, 39, 39, 40, 41, 46, 47, 51, 52, 52, 53, 57, 58, 58, 60, 64, 68, 70, 72, 84, 84, 85, 95, 98, 99],31,35,),
([12, -22, 2, -90, -92, 84, -26, -76, -72, 50, -36, 30, 78, -18, -94, -30, 22, 28, 10, 32, 34, -86, 0, -4, 40, 0, 80, 50, 66, -48, -40, -94, 64, 58, -14, 0, -32, -58, -22, -94, -68, -36, -94, -48, 40, 78, -74],42,26,),
([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],25,21,),
([1, 33, 20, 32, 76, 27, 8, 95, 78, 72, 25, 56],9,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))) | def f_gold ( arr , n , x ) : curr_sum = 0 min_len = n + 1 start = 0 end = 0 while ( end < n ) : while ( curr_sum <= x and end < n ) : curr_sum += arr [ end ] end += 1 while ( curr_sum > x and start < n ) : if ( end - start < min_len ) : min_len = end - start curr_sum -= arr [ start ] [MASK] += 1 return min_lenurr_sum > x and start < n ) :
if ( end - start < min_len ) :
min_len = end - start
curr_sum -= arr [ start ]
start += 1
return min_len
#TOFILL
if __name__ == '__main__':
param = [
([6, 11, 11, 14, 18, 19, 21, 22, 22, 23, 26, 27, 28, 28, 29, 30, 31, 34, 39, 42, 42, 44, 45, 49, 49, 53, 57, 61, 65, 66, 67, 70, 71, 73, 74, 74, 78, 85, 88, 94, 95, 97],37,23,),
([-30, -22, -66, -80, 18, -64, -28, -46, 94, 60, -64, 2, 26, -94, 58, 56, 56, 88, 50, -78, -12, 68, 54, -78, 42, -30, 24, -48, 84, 12, -88, 0, 54, -92, -4, 42, -60, -72, -32],31,29,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1],8,12,),
([86, 8, 23, 40, 55, 93, 11, 35, 33, 37, 96, 91, 35, 66, 37, 57, 83, 99, 96, 15, 18, 93],16,13,),
([-92, -68, -48, -48, -42, -26, -22, -18, 2, 4, 8, 14, 20, 22, 32, 46, 52, 62, 70, 96, 98],17,14,),
([0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0],11,10,),
([4, 4, 11, 11, 13, 15, 16, 18, 19, 19, 19, 23, 26, 27, 34, 39, 39, 40, 41, 46, 47, 51, 52, 52, 53, 57, 58, 58, 60, 64, 68, 70, 72, 84, 84, 85, 95, 98, 99],31,35,),
([12, -22, 2, -90, -92, 84, -26, -76, -72, 50, -36, 30, 78, -18, -94, -30, 22, 28, 10, 32, 34, -86, 0, -4, 40, 0, 80, 50, 66, -48, -40, -94, 64, 58, -14, 0, -32, -58, -22, -94, -68, -36, -94, -48, 40, 78, -74],42,26,),
([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],25,21,),
([1, 33, 20, 32, 76, 27, 8, 95, 78, 72, 25, 56],9,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))) | start | [
"a) int",
"b) )",
"c) start",
"d) return",
"e) )"
] | c |
python | def f_gold ( arr , n ) :
for i in range ( 0 , n - 1 ) :
if ( arr [ i ] > arr [ i + 1 ] ) :
if ( arr [ i ] - arr [ i + 1 ] == 1 ) :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
else :
return False
return True
) :
if ( arr [ i ] - arr [ i + 1 ] == 1 ) :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
else :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([1, 4, 12, 16, 37, 44, 47, 51, 55, 57, 57, 62, 62, 62, 64, 69, 69, 70, 72, 81, 81, 88, 89, 97],15,),
([-86, 0, 14, -16, -12, -72, 62, -34, -72, 30, 84, -60, 84, -64, 50, 74, 18, -82, -64, -64, -74, -56, 86, 84, -32, -10, 20, 4, 8, 96, 82, 26, 42],18,),
([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],31,),
([48, 66, 83, 12, 77, 98, 18, 33, 21, 16, 28, 24, 46, 43],13,),
([-92, -58, -36, -28, -6, 2, 4, 26, 48, 58, 60, 62, 62, 98],10,),
([1, 0, 0, 0, 0, 1],4,),
([22, 38, 41, 41, 42, 51, 54, 58, 68, 76, 80, 85],9,),
([84, -38, 52, -72, -24, 82, 54, 74, 0],8,),
([0, 1, 1],2,),
([63, 31, 14, 19, 77, 64, 62, 23, 22, 19, 39, 9, 79, 1, 87, 29, 58, 3, 3, 39, 1, 39, 35, 64, 64],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))) | def f_gold ( arr , n ) : for i [MASK] range ( 0 , n - 1 ) : if ( arr [ i ] > arr [ i + 1 ] ) : if ( arr [ i ] - arr [ i + 1 ] == 1 ) : arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ] else : return False return True ) :
if ( arr [ i ] - arr [ i + 1 ] == 1 ) :
arr [ i ] , arr [ i + 1 ] = arr [ i + 1 ] , arr [ i ]
else :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([1, 4, 12, 16, 37, 44, 47, 51, 55, 57, 57, 62, 62, 62, 64, 69, 69, 70, 72, 81, 81, 88, 89, 97],15,),
([-86, 0, 14, -16, -12, -72, 62, -34, -72, 30, 84, -60, 84, -64, 50, 74, 18, -82, -64, -64, -74, -56, 86, 84, -32, -10, 20, 4, 8, 96, 82, 26, 42],18,),
([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],31,),
([48, 66, 83, 12, 77, 98, 18, 33, 21, 16, 28, 24, 46, 43],13,),
([-92, -58, -36, -28, -6, 2, 4, 26, 48, 58, 60, 62, 62, 98],10,),
([1, 0, 0, 0, 0, 1],4,),
([22, 38, 41, 41, 42, 51, 54, 58, 68, 76, 80, 85],9,),
([84, -38, 52, -72, -24, 82, 54, 74, 0],8,),
([0, 1, 1],2,),
([63, 31, 14, 19, 77, 64, 62, 23, 22, 19, 39, 9, 79, 1, 87, 29, 58, 3, 3, 39, 1, 39, 35, 64, 64],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))) | in | [
"a) in",
"b) result",
"c) [",
"d) n",
"e) sum"
] | a |
python | def f_gold ( n ) :
i = 1 ;
res = 0.0 ;
sign = True ;
while ( n > 0 ) :
n = n - 1 ;
if ( sign ) :
sign = False ;
res = res + ( i + 1 ) / ( i + 2 ) ;
i = i + 2 ;
else :
sign = True ;
res = res - ( i + 1 ) / ( i + 2 ) ;
i = i + 2 ;
return res ;
res = res + ( i + 1 ) / ( i + 2 ) ;
i = i + 2 ;
else :
sign = True ;
res = res - ( i + 1 ) / ( i + 2 ) ;
i = i + 2 ;
return res ;
#TOFILL
if __name__ == '__main__':
param = [
(49,),
(4,),
(60,),
(90,),
(96,),
(29,),
(86,),
(47,),
(77,),
(87,)
]
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))) | def f_gold ( n ) : i = 1 ; res = 0.0 ; sign = True ; while ( n > 0 ) : n = n - 1 ; if ( sign ) : sign = False ; res = res + ( i + 1 ) / ( i + 2 ) ; i [MASK] i + 2 ; else : sign = True ; res = res - ( i + 1 ) / ( i + 2 ) ; i = i + 2 ; return res ; res = res + ( i + 1 ) / ( i + 2 ) ;
i = i + 2 ;
else :
sign = True ;
res = res - ( i + 1 ) / ( i + 2 ) ;
i = i + 2 ;
return res ;
#TOFILL
if __name__ == '__main__':
param = [
(49,),
(4,),
(60,),
(90,),
(96,),
(29,),
(86,),
(47,),
(77,),
(87,)
]
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))) | = | [
"a) %",
"b) =",
"c) i",
"d) f_gold",
"e) :"
] | b |
python | def f_gold ( arr , n , k ) :
count = 0
arr.sort ( )
l = 0
r = 0
while r < n :
if arr [ r ] - arr [ l ] == k :
count += 1
l += 1
r += 1
elif arr [ r ] - arr [ l ] > k :
l += 1
else :
r += 1
return count
- arr [ l ] == k :
count += 1
l += 1
r += 1
elif arr [ r ] - arr [ l ] > k :
l += 1
else :
r += 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 10, 19, 29, 32, 40, 60, 65, 70, 72, 89, 92],7,12,),
([-38, 40, 8, 64, -38, 56, 4, 8, 84, 60, -48, -78, -82, -88, -30, 58, -58, 62, -52, -98, 24, 22, 14, 68, -74, 48, -56, -72, -90, 26, -10, 58, 40, 36, -80, 68, 58, -74, -46, -62, -12, 74, -58],24,36,),
([0, 0, 1],1,1,),
([16, 80, 59, 29, 14, 44, 13, 76, 7, 65, 62, 1, 34, 49, 70, 96, 73, 71, 42, 73, 66, 96],12,16,),
([-98, -88, -58, -56, -48, -34, -22, -18, -14, -14, -8, -4, -2, 2, 18, 38, 42, 46, 54, 68, 70, 90, 94, 96, 98],23,22,),
([0, 1, 1],2,1,),
([11, 43, 50, 58, 60, 68, 75],4,4,),
([86, 94, -80, 0, 52, -56, 42, 88, -10, 24, 6, 8],11,9,),
([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],29,30,),
([54, 99, 4, 14, 9, 34, 81, 36, 80, 50, 34, 9, 7],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))) | def f_gold ( arr , n , k ) : count = 0 arr.sort ( ) l = 0 r = 0 while r < n : if arr [ r ] - arr [ l ] == k : count += 1 l += 1 r [MASK] 1 elif arr [ r ] - arr [ l ] > k : l += 1 else : r += 1 return count- arr [ l ] == k :
count += 1
l += 1
r += 1
elif arr [ r ] - arr [ l ] > k :
l += 1
else :
r += 1
return count
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 10, 19, 29, 32, 40, 60, 65, 70, 72, 89, 92],7,12,),
([-38, 40, 8, 64, -38, 56, 4, 8, 84, 60, -48, -78, -82, -88, -30, 58, -58, 62, -52, -98, 24, 22, 14, 68, -74, 48, -56, -72, -90, 26, -10, 58, 40, 36, -80, 68, 58, -74, -46, -62, -12, 74, -58],24,36,),
([0, 0, 1],1,1,),
([16, 80, 59, 29, 14, 44, 13, 76, 7, 65, 62, 1, 34, 49, 70, 96, 73, 71, 42, 73, 66, 96],12,16,),
([-98, -88, -58, -56, -48, -34, -22, -18, -14, -14, -8, -4, -2, 2, 18, 38, 42, 46, 54, 68, 70, 90, 94, 96, 98],23,22,),
([0, 1, 1],2,1,),
([11, 43, 50, 58, 60, 68, 75],4,4,),
([86, 94, -80, 0, 52, -56, 42, 88, -10, 24, 6, 8],11,9,),
([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],29,30,),
([54, 99, 4, 14, 9, 34, 81, 36, 80, 50, 34, 9, 7],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))) | += | [
"a) return",
"b) n",
"c) +=",
"d) ]",
"e) '"
] | c |
python | def f_gold ( arr , arr_size ) :
for i in range ( 0 , arr_size ) :
count = 0
for j in range ( 0 , arr_size ) :
if arr [ i ] == arr [ j ] :
count += 1
if ( count % 2 != 0 ) :
return arr [ i ]
return - 1
t = 0
for j in range ( 0 , arr_size ) :
if arr [ i ] == arr [ j ] :
count += 1
if ( count % 2 != 0 ) :
return arr [ i ]
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([1, 5, 5, 8, 14, 15, 17, 17, 18, 23, 23, 25, 26, 35, 36, 39, 51, 53, 56, 56, 60, 62, 64, 64, 65, 66, 67, 68, 71, 75, 80, 82, 83, 88, 89, 91, 91, 92, 93, 95, 99],31,),
([-56, 98, 44, 30, -88, 18, 60, 86, 4, 16, 10, 64, -22, -86, -66, -16, 70, -44, 98, 78, -96, -66, 92, 10, 40, -16],19,),
([0, 0, 0, 0, 0, 1, 1, 1],6,),
([36, 11, 83, 41, 42, 14, 46, 89, 91, 96, 57, 42, 74, 73, 9, 26, 79, 40, 31, 69, 44, 39, 14, 92, 34, 20, 52, 47, 14],25,),
([-84, -84, -84, -78, -66, -62, -62, -36, -24, -10, -10, -8, -4, -2, 12, 14, 20, 22, 36, 42, 46, 66, 84, 96, 96, 98],23,),
([1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],19,),
([11, 12, 14, 28, 42, 48, 50, 58, 67, 74, 86, 89, 95],7,),
([52, -56, -6, 74, 10, 68, 74, 10, 16, -80, 82, -32, 6, -6, 82, 20],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],31,),
([4, 80, 92],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))) | def f_gold ( arr , [MASK] ) : for i in range ( 0 , arr_size ) : count = 0 for j in range ( 0 , arr_size ) : if arr [ i ] == arr [ j ] : count += 1 if ( count % 2 != 0 ) : return arr [ i ] return - 1t = 0
for j in range ( 0 , arr_size ) :
if arr [ i ] == arr [ j ] :
count += 1
if ( count % 2 != 0 ) :
return arr [ i ]
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([1, 5, 5, 8, 14, 15, 17, 17, 18, 23, 23, 25, 26, 35, 36, 39, 51, 53, 56, 56, 60, 62, 64, 64, 65, 66, 67, 68, 71, 75, 80, 82, 83, 88, 89, 91, 91, 92, 93, 95, 99],31,),
([-56, 98, 44, 30, -88, 18, 60, 86, 4, 16, 10, 64, -22, -86, -66, -16, 70, -44, 98, 78, -96, -66, 92, 10, 40, -16],19,),
([0, 0, 0, 0, 0, 1, 1, 1],6,),
([36, 11, 83, 41, 42, 14, 46, 89, 91, 96, 57, 42, 74, 73, 9, 26, 79, 40, 31, 69, 44, 39, 14, 92, 34, 20, 52, 47, 14],25,),
([-84, -84, -84, -78, -66, -62, -62, -36, -24, -10, -10, -8, -4, -2, 12, 14, 20, 22, 36, 42, 46, 66, 84, 96, 96, 98],23,),
([1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],19,),
([11, 12, 14, 28, 42, 48, 50, 58, 67, 74, 86, 89, 95],7,),
([52, -56, -6, 74, 10, 68, 74, 10, 16, -80, 82, -32, 6, -6, 82, 20],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],31,),
([4, 80, 92],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))) | arr_size | [
"a) arr_size",
"b) int",
"c) if",
"d) =",
"e) y)"
] | a |
python | 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 ;
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 = [
(13,),
(27,),
(1,),
(24,),
(98,),
(94,),
(36,),
(41,),
(74,),
(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))) | def f_gold ( n ) : count = 0 ; if ( n and not ( n & ( n - 1 ) ) ) : return n while ( n != 0 ) [MASK] n >>= 1 count += 1 return 1 << count ; 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 = [
(13,),
(27,),
(1,),
(24,),
(98,),
(94,),
(36,),
(41,),
(74,),
(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))) | : | [
"a) k",
"b) arr",
"c) :",
"d) javafx.util.Pair;",
"e) b"
] | c |
python | def f_gold ( n ) :
C = [ [ 0 for i in range ( n + 1 ) ] for j in range ( n + 1 ) ]
for i in range ( 0 , n + 1 ) :
for j in range ( 0 , min ( i , n ) + 1 ) :
if ( j == 0 or j == i ) :
C [ i ] [ j ] = 1
else :
C [ i ] [ j ] = ( C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ] )
sum = 0
for i in range ( 0 , n + 1 ) :
sum = sum + ( C [ n ] [ i ] * C [ n ] [ i ] )
return sum
C [ i ] [ j ] = ( C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ] )
sum = 0
for i in range ( 0 , n + 1 ) :
sum = sum + ( C [ n ] [ i ] * C [ n ] [ i ] )
return sum
#TOFILL
if __name__ == '__main__':
param = [
(57,),
(44,),
(19,),
(24,),
(64,),
(60,),
(57,),
(22,),
(15,),
(63,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( n ) : C = [ [ 0 for i in range ( n + 1 ) ] for j in range ( n + 1 ) ] for i in range ( 0 , n + 1 ) : for j in range ( [MASK] , min ( i , n ) + 1 ) : if ( j == 0 or j == i ) : C [ i ] [ j ] = 1 else : C [ i ] [ j ] = ( C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ] ) sum = 0 for i in range ( 0 , n + 1 ) : sum = sum + ( C [ n ] [ i ] * C [ n ] [ i ] ) return sum C [ i ] [ j ] = ( C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ] )
sum = 0
for i in range ( 0 , n + 1 ) :
sum = sum + ( C [ n ] [ i ] * C [ n ] [ i ] )
return sum
#TOFILL
if __name__ == '__main__':
param = [
(57,),
(44,),
(19,),
(24,),
(64,),
(60,),
(57,),
(22,),
(15,),
(63,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | 0 | [
"a) arr_size",
"b) }",
"c) ;",
"d) arr",
"e) 0"
] | e |
python | 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 ]
] >= 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))) | def f_gold ( k , s1 , s2 ) : n = len [MASK] 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 ]] >= 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))) | ( | [
"a) (",
"b) x:",
"c) -",
"d) >=",
"e) return"
] | a |
python | def f_gold ( arr , n ) :
sum = 0
arr.sort ( )
for i in range ( 0 , int ( n / 2 ) ) :
sum -= ( 2 * arr [ i ] )
sum += ( 2 * arr [ n - i - 1 ] )
return sum
e.
#
def f_gold ( arr , n ) :
sum = 0
arr.sort ( )
for i in range ( 0 , int ( n / 2 ) ) :
sum -= ( 2 * arr [ i ] )
sum += ( 2 * arr [ n - i - 1 ] )
return sum
#TOFILL
if __name__ == '__main__':
param = [
([8, 9, 12, 13, 17, 21, 24, 29, 37, 37, 39, 40, 41, 45, 49, 50, 53, 54, 56, 59, 60, 60, 70, 71, 72, 74, 77, 77, 78, 85, 89, 89, 90, 90, 95, 98, 98],34,),
([0, 48, -32, 28, -84, 14, 30, -80, 92, 76, -52, -20, 52, 78, 20, 32, 96, 66, 48, 26, 88, 6, 94, 32, -40, 44, -84, 54, -84, -80, -80, -64, -92, -84, -16, -18],24,),
([0, 0, 0, 1, 1, 1],3,),
([47, 7, 84, 96, 59, 53, 80],5,),
([-88, -80, -68, -62, -60, -60, -48, -46, -44, -38, -16, -16, 0, 0, 2, 8, 20, 36, 40, 40, 44, 54, 60, 68, 70, 82, 82, 84, 92, 94, 96],29,),
([1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1],32,),
([2, 5, 10, 11, 13, 14, 15, 17, 17, 23, 23, 24, 27, 27, 28, 29, 30, 40, 42, 43, 46, 47, 51, 52, 57, 64, 65, 73, 74, 75, 76, 77, 81, 81, 82, 87, 89, 93, 95, 95, 99],35,),
([-72, -84, 84, 2, -76, 48, 12, -72, -92, -72, 38, 26, -38, 26, 50, 2, 20, 26, -48, 30, 24, -12, -84, -54, 20, -16, -94, 26, -22, 86],21,),
([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],37,),
([57, 74, 53, 52, 80, 31, 27, 53, 8, 57, 46, 73, 46, 56, 73, 84, 37, 7, 97],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))) | def f_gold ( arr , n ) : sum = 0 arr.sort ( ) for i in [MASK] ( 0 , int ( n / 2 ) ) : sum -= ( 2 * arr [ i ] ) sum += ( 2 * arr [ n - i - 1 ] ) return sume.
#
def f_gold ( arr , n ) :
sum = 0
arr.sort ( )
for i in range ( 0 , int ( n / 2 ) ) :
sum -= ( 2 * arr [ i ] )
sum += ( 2 * arr [ n - i - 1 ] )
return sum
#TOFILL
if __name__ == '__main__':
param = [
([8, 9, 12, 13, 17, 21, 24, 29, 37, 37, 39, 40, 41, 45, 49, 50, 53, 54, 56, 59, 60, 60, 70, 71, 72, 74, 77, 77, 78, 85, 89, 89, 90, 90, 95, 98, 98],34,),
([0, 48, -32, 28, -84, 14, 30, -80, 92, 76, -52, -20, 52, 78, 20, 32, 96, 66, 48, 26, 88, 6, 94, 32, -40, 44, -84, 54, -84, -80, -80, -64, -92, -84, -16, -18],24,),
([0, 0, 0, 1, 1, 1],3,),
([47, 7, 84, 96, 59, 53, 80],5,),
([-88, -80, -68, -62, -60, -60, -48, -46, -44, -38, -16, -16, 0, 0, 2, 8, 20, 36, 40, 40, 44, 54, 60, 68, 70, 82, 82, 84, 92, 94, 96],29,),
([1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1],32,),
([2, 5, 10, 11, 13, 14, 15, 17, 17, 23, 23, 24, 27, 27, 28, 29, 30, 40, 42, 43, 46, 47, 51, 52, 57, 64, 65, 73, 74, 75, 76, 77, 81, 81, 82, 87, 89, 93, 95, 95, 99],35,),
([-72, -84, 84, 2, -76, 48, 12, -72, -92, -72, 38, 26, -38, 26, 50, 2, 20, 26, -48, 30, 24, -12, -84, -54, 20, -16, -94, 26, -22, 86],21,),
([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],37,),
([57, 74, 53, 52, 80, 31, 27, 53, 8, 57, 46, 73, 46, 56, 73, 84, 37, 7, 97],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))) | range | [
"a) arr",
"b) ,",
"c) ;",
"d) range",
"e) ="
] | d |
python | 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 ) ) )
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))) | 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 [MASK] y / 2 ) ) ) else : return ( x * f_gold ( x , int ( y / 2 ) ) * f_gold ( x , int ( y / 2 ) ) ) 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))) | ( | [
"a) 100;",
"b) (",
"c) static",
"d) int",
"e) +"
] | b |
python | def f_gold ( N ) :
dp = [ 0 for i in range ( N ) ]
dp [ 0 ] = 1
dp [ 1 ] = 2
i = 1
while dp [ i ] <= N :
i = i + 1
dp [ i ] = dp [ i - 1 ] + dp [ i - 2 ]
return ( i - 1 )
dp = [ 0 for i in range ( N ) ]
dp [ 0 ] = 1
dp [ 1 ] = 2
i = 1
while dp [ i ] <= N :
i = i + 1
dp [ i ] = dp [ i - 1 ] + dp [ i - 2 ]
return ( i - 1 )
#TOFILL
if __name__ == '__main__':
param = [
(73,),
(28,),
(33,),
(23,),
(84,),
(31,),
(48,),
(46,),
(45,),
(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))) | def f_gold ( N ) [MASK] dp = [ 0 for i in range ( N ) ] dp [ 0 ] = 1 dp [ 1 ] = 2 i = 1 while dp [ i ] <= N : i = i + 1 dp [ i ] = dp [ i - 1 ] + dp [ i - 2 ] return ( i - 1 ) dp = [ 0 for i in range ( N ) ]
dp [ 0 ] = 1
dp [ 1 ] = 2
i = 1
while dp [ i ] <= N :
i = i + 1
dp [ i ] = dp [ i - 1 ] + dp [ i - 2 ]
return ( i - 1 )
#TOFILL
if __name__ == '__main__':
param = [
(73,),
(28,),
(33,),
(23,),
(84,),
(31,),
(48,),
(46,),
(45,),
(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))) | : | [
"a) =",
"b) #include",
"c) <vector>",
"d) :",
"e) while"
] | d |
python | def f_gold ( a , n ) :
return ( ( n - 1 ) * min ( a ) )
erved.
#
# 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 ) :
return ( ( n - 1 ) * min ( a ) )
#TOFILL
if __name__ == '__main__':
param = [
([1, 2, 3, 4, 7, 8, 10, 10, 16, 20, 22, 22, 23, 23, 23, 27, 29, 32, 35, 39, 41, 46, 51, 53, 54, 59, 59, 60, 61, 69, 70, 70, 79, 79, 81, 84, 90, 91, 98],25,),
([-6, 10],1,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,),
([20, 61, 92, 45, 75, 26, 83, 5, 85, 27, 39, 88, 36, 39, 83, 41, 56, 77, 39, 69, 72, 98, 39, 15, 29, 69, 64, 92, 96, 49, 59, 62, 53, 82, 40, 37, 29, 41],23,),
([-88, -60, -60, -58, -56, -56, -46, -44, -40, -38, -32, -28, -22, -18, -12, -4, -2, 10, 24, 24, 28, 38, 42, 46, 54, 64, 72, 74, 78, 96, 96],26,),
([0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1],39,),
([1, 4, 6, 9, 10, 12, 17, 17, 18, 21, 22, 26, 26, 31, 32, 33, 34, 39, 42, 43, 45, 46, 48, 50, 53, 53, 54, 55, 60, 61, 62, 63, 63, 64, 70, 70, 70, 71, 71, 78, 86, 88, 91, 92, 95, 95, 96, 97, 99],28,),
([-42, 44, -80, -60, 48, 66, 54, -76, 26, -74, -10, 46, -50, 42, -26, -24, -14, 36, -2, -26, 16, -10, 20, -88, -78],19,),
([0, 0, 0, 0, 1, 1, 1, 1, 1, 1],5,),
([65, 32, 66, 82, 86, 98, 15, 33, 57, 3, 73, 45, 90, 82, 33, 99, 44, 76, 50, 89, 5, 7, 64],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))) | def f_gold [MASK] a , n ) : return ( ( n - 1 ) * min ( a ) )erved.
#
# 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 ) :
return ( ( n - 1 ) * min ( a ) )
#TOFILL
if __name__ == '__main__':
param = [
([1, 2, 3, 4, 7, 8, 10, 10, 16, 20, 22, 22, 23, 23, 23, 27, 29, 32, 35, 39, 41, 46, 51, 53, 54, 59, 59, 60, 61, 69, 70, 70, 79, 79, 81, 84, 90, 91, 98],25,),
([-6, 10],1,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,),
([20, 61, 92, 45, 75, 26, 83, 5, 85, 27, 39, 88, 36, 39, 83, 41, 56, 77, 39, 69, 72, 98, 39, 15, 29, 69, 64, 92, 96, 49, 59, 62, 53, 82, 40, 37, 29, 41],23,),
([-88, -60, -60, -58, -56, -56, -46, -44, -40, -38, -32, -28, -22, -18, -12, -4, -2, 10, 24, 24, 28, 38, 42, 46, 54, 64, 72, 74, 78, 96, 96],26,),
([0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1],39,),
([1, 4, 6, 9, 10, 12, 17, 17, 18, 21, 22, 26, 26, 31, 32, 33, 34, 39, 42, 43, 45, 46, 48, 50, 53, 53, 54, 55, 60, 61, 62, 63, 63, 64, 70, 70, 70, 71, 71, 78, 86, 88, 91, 92, 95, 95, 96, 97, 99],28,),
([-42, 44, -80, -60, 48, 66, 54, -76, 26, -74, -10, 46, -50, 42, -26, -24, -14, 36, -2, -26, 16, -10, 20, -88, -78],19,),
([0, 0, 0, 0, 1, 1, 1, 1, 1, 1],5,),
([65, 32, 66, 82, 86, 98, 15, 33, 57, 3, 73, 45, 90, 82, 33, 99, 44, 76, 50, 89, 5, 7, 64],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))) | ( | [
"a) a,",
"b) num",
"c) )",
"d) (",
"e) b"
] | d |
python | def f_gold ( side ) :
area = side * side
return area
rved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( side ) :
area = side * side
return area
#TOFILL
if __name__ == '__main__':
param = [
(50,),
(64,),
(92,),
(23,),
(38,),
(55,),
(67,),
(56,),
(60,),
(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))) | def f_gold ( [MASK] ) : area = side * side return arearved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( side ) :
area = side * side
return area
#TOFILL
if __name__ == '__main__':
param = [
(50,),
(64,),
(92,),
(23,),
(38,),
(55,),
(67,),
(56,),
(60,),
(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))) | side | [
"a) 0",
"b) const",
"c) java.lang.*;",
"d) 0:",
"e) side"
] | e |
python | def f_gold ( arr , n ) :
s = [ ]
j = 0
ans = 0
for i in range ( n ) :
while ( j < n and ( arr [ j ] not in s ) ) :
s.append ( arr [ j ] )
j += 1
ans += ( ( j - i ) * ( j - i + 1 ) ) // 2
s.remove ( arr [ i ] )
return ans
e ( j < n and ( arr [ j ] not in s ) ) :
s.append ( arr [ j ] )
j += 1
ans += ( ( j - i ) * ( j - i + 1 ) ) // 2
s.remove ( arr [ i ] )
return ans
#TOFILL
if __name__ == '__main__':
param = [
([3, 4, 5, 6, 12, 15, 16, 17, 20, 20, 22, 24, 24, 27, 28, 34, 37, 39, 39, 41, 43, 49, 49, 51, 55, 62, 63, 67, 71, 74, 74, 74, 77, 84, 84, 89, 89, 97, 99],24,),
([-8, 54, -22, 18, 20, 44, 0, 54, 90, -4, 4, 40, -74, -16],13,),
([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],28,),
([36, 71, 36, 58, 38, 90, 17],4,),
([-90, -32, -16, 18, 38, 82],5,),
([1, 0, 1],2,),
([3, 11, 21, 25, 28, 28, 38, 42, 48, 53, 55, 55, 55, 58, 71, 75, 79, 80, 80, 94, 96, 99],20,),
([-16, -52, -4, -46, 54, 0, 8, -64, -82, -10, -62, -10, 58, 44, -28, 86, -24, 16, 44, 22, -28, -42, -52, 8, 76, -44, -34, 2, 88, -88, -14, -84, -36, -68, 76, 20, 20, -50],35,),
([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],27,),
([19, 13, 61, 32, 92, 90, 12, 81, 52],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))) | def f_gold ( arr , n ) : s = [ ] j = 0 ans = 0 for i in range ( n ) : while ( j < n and ( arr [ j ] not in s ) ) : s.append ( arr [ j ] ) j += 1 ans += ( ( j - i ) * ( j - i + 1 ) ) // 2 s.remove ( arr [MASK] i ] ) return anse ( j < n and ( arr [ j ] not in s ) ) :
s.append ( arr [ j ] )
j += 1
ans += ( ( j - i ) * ( j - i + 1 ) ) // 2
s.remove ( arr [ i ] )
return ans
#TOFILL
if __name__ == '__main__':
param = [
([3, 4, 5, 6, 12, 15, 16, 17, 20, 20, 22, 24, 24, 27, 28, 34, 37, 39, 39, 41, 43, 49, 49, 51, 55, 62, 63, 67, 71, 74, 74, 74, 77, 84, 84, 89, 89, 97, 99],24,),
([-8, 54, -22, 18, 20, 44, 0, 54, 90, -4, 4, 40, -74, -16],13,),
([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],28,),
([36, 71, 36, 58, 38, 90, 17],4,),
([-90, -32, -16, 18, 38, 82],5,),
([1, 0, 1],2,),
([3, 11, 21, 25, 28, 28, 38, 42, 48, 53, 55, 55, 55, 58, 71, 75, 79, 80, 80, 94, 96, 99],20,),
([-16, -52, -4, -46, 54, 0, 8, -64, -82, -10, -62, -10, 58, 44, -28, 86, -24, 16, 44, 22, -28, -42, -52, 8, 76, -44, -34, 2, 88, -88, -14, -84, -36, -68, 76, 20, 20, -50],35,),
([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],27,),
([19, 13, 61, 32, 92, 90, 12, 81, 52],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))) | [ | [
"a) length",
"b) <",
"c) [",
"d) len",
"e) 3"
] | c |
python | def f_gold ( arr , n , k ) :
for i in range ( n ) :
count = 0
for j in range ( n ) :
if arr [ j ] == arr [ i ] :
count += 1
if count > 2 * k :
return False
return True
count = 0
for j in range ( n ) :
if arr [ j ] == arr [ i ] :
count += 1
if count > 2 * k :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([1,1,2,3,1],5,2,),
([2,3,3,5,3,3],6,2,),
([0, 0, 1, 1, 1],2,1,),
([7, 60, 78, 91, 80, 75, 85, 21, 41, 63, 1, 84, 69, 13, 94, 25, 54, 54, 52, 68, 53, 35, 17, 37, 98, 27, 2, 31],24,2,),
([-96, -94, -82, -80, -78, -66, -36, -24, -18, -12, -2, -2, 6, 8, 10, 12, 36, 38, 42, 58, 64, 68, 82, 84, 86, 88, 94],24,3,),
([0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0],34,2,),
([16, 19, 25, 25, 32, 37, 48, 59, 60, 60, 71, 74, 77, 81, 91, 94],10,8,),
([-62, -94, 72, -22, 86, -80, 64, 98, -82, -50, 12, -4, 56, 46, -80, 2, -86, -44, -26, 68, -94, -82, 74, 26, 94, 40, 50, -40, -42, -10],20,4,),
([0, 0, 0, 0, 0, 1, 1, 1],5,2,),
([83, 57, 2, 47, 70, 22, 49, 51, 25, 57, 32, 7, 8, 99, 6, 86, 24, 79, 42, 43, 1, 24, 68, 11, 24, 12, 43, 40, 14, 45, 11, 46, 12, 80, 66],21,33,)
]
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))) | def f_gold ( arr , n , k ) : for i in range ( n ) : count = 0 for j in range ( n ) : if arr [ j ] == arr [ i ] : count += 1 if count > [MASK] * k : return False return True count = 0
for j in range ( n ) :
if arr [ j ] == arr [ i ] :
count += 1
if count > 2 * k :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([1,1,2,3,1],5,2,),
([2,3,3,5,3,3],6,2,),
([0, 0, 1, 1, 1],2,1,),
([7, 60, 78, 91, 80, 75, 85, 21, 41, 63, 1, 84, 69, 13, 94, 25, 54, 54, 52, 68, 53, 35, 17, 37, 98, 27, 2, 31],24,2,),
([-96, -94, -82, -80, -78, -66, -36, -24, -18, -12, -2, -2, 6, 8, 10, 12, 36, 38, 42, 58, 64, 68, 82, 84, 86, 88, 94],24,3,),
([0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0],34,2,),
([16, 19, 25, 25, 32, 37, 48, 59, 60, 60, 71, 74, 77, 81, 91, 94],10,8,),
([-62, -94, 72, -22, 86, -80, 64, 98, -82, -50, 12, -4, 56, 46, -80, 2, -86, -44, -26, 68, -94, -82, 74, 26, 94, 40, 50, -40, -42, -10],20,4,),
([0, 0, 0, 0, 0, 1, 1, 1],5,2,),
([83, 57, 2, 47, 70, 22, 49, 51, 25, 57, 32, 7, 8, 99, 6, 86, 24, 79, 42, 43, 1, 24, 68, 11, 24, 12, 43, 40, 14, 45, 11, 46, 12, 80, 66],21,33,)
]
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))) | 2 | [
"a) (",
"b) ;",
"c) 2",
"d) n",
"e) import"
] | c |
python | import math
def f_gold ( n ) :
fibo = 2.078087 * math.log ( n ) + 1.672276
return round ( fibo )
the license found in the
# LICENSE file in the root directory of this source tree.
#
import math
def f_gold ( n ) :
fibo = 2.078087 * math.log ( n ) + 1.672276
return round ( fibo )
#TOFILL
if __name__ == '__main__':
param = [
(20,),
(95,),
(39,),
(21,),
(94,),
(79,),
(56,),
(62,),
(23,),
(3,)
]
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))) | import math def f_gold ( n ) : fibo = 2.078087 * math.log ( n ) + 1.672276 return round ( [MASK] )the license found in the
# LICENSE file in the root directory of this source tree.
#
import math
def f_gold ( n ) :
fibo = 2.078087 * math.log ( n ) + 1.672276
return round ( fibo )
#TOFILL
if __name__ == '__main__':
param = [
(20,),
(95,),
(39,),
(21,),
(94,),
(79,),
(56,),
(62,),
(23,),
(3,)
]
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))) | fibo | [
"a) static",
"b) fibo",
"c) (",
"d) ]",
"e) ["
] | b |
python | def f_gold ( string ) :
l = 0
h = len ( string ) - 1
while h > l :
l += 1
h -= 1
if string [ l - 1 ] != string [ h + 1 ] :
return False
return True
d ( string ) :
l = 0
h = len ( string ) - 1
while h > l :
l += 1
h -= 1
if string [ l - 1 ] != string [ h + 1 ] :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
('aadaa',),
('2674377254',),
('11',),
('0011000',),
('26382426486138',),
('111010111010',),
('abccba',),
('5191',),
('1110101101',),
('abcdecbe',)
]
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))) | def f_gold ( string ) : l = 0 h = len ( string ) - 1 while h > l : l += 1 h -= 1 if string [ l - 1 ] [MASK] string [ h + 1 ] : return False return Trued ( string ) :
l = 0
h = len ( string ) - 1
while h > l :
l += 1
h -= 1
if string [ l - 1 ] != string [ h + 1 ] :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
('aadaa',),
('2674377254',),
('11',),
('0011000',),
('26382426486138',),
('111010111010',),
('abccba',),
('5191',),
('1110101101',),
('abcdecbe',)
]
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))) | != | [
"a) int",
"b) f_gold",
"c) !=",
"d) ;",
"e) #include"
] | c |
python | def f_gold ( arr , n , x , k ) :
i = 0
while ( i < n ) :
if ( arr [ i ] == x ) :
return i
i = i + max ( 1 , int ( abs ( arr [ i ] - x ) / k ) )
print ( "number is not present!" )
return - 1
while ( i < n ) :
if ( arr [ i ] == x ) :
return i
i = i + max ( 1 , int ( abs ( arr [ i ] - x ) / k ) )
print ( "number is not present!" )
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([1, 5, 9, 11, 14, 18, 19, 21, 26, 32, 38, 38, 43, 47, 49, 52, 55, 61, 65, 67, 69, 73, 74, 79, 84, 90, 91, 91, 92, 93, 94, 99],22,19,26,),
([12, -86, -66, -50, -48, 78, -92, -56, -2, 66, 64],5,10,5,),
([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, 1, 1],35,37,43,),
([10, 87, 39, 87, 45, 33, 5, 37, 70, 69, 88, 78, 90, 3],9,8,10,),
([-78, -70, -68, -60, -52, -34, -24, -4, 12, 18, 58, 58, 64, 76, 84, 94],14,9,13,),
([0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0],26,36,32,),
([5, 5, 7, 11, 11, 15, 22, 23, 28, 38, 41, 53, 54, 57, 59, 68, 71, 89],16,17,16,),
([-4, 0, 60, -14, -48, 54, -96, -68, -40, 64, -50, -74, -20, -22, 48, -48, 42, 62, 66, 84, 54, -52, -52, 6, 46, -90, -18, 90],18,14,23,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],9,8,9,),
([30, 91, 34, 44, 3, 76, 43, 75, 49, 33, 74, 72, 68, 79, 26, 62, 23, 5, 32, 75, 82, 25, 7, 19, 32, 87, 87, 94, 34, 62, 3, 32, 59],32,30,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))) | def f_gold ( arr , n , x , k ) : i = 0 while ( i < n ) : if ( arr [ i [MASK] == x ) : return i i = i + max ( 1 , int ( abs ( arr [ i ] - x ) / k ) ) print ( "number is not present!" ) return - 1 while ( i < n ) :
if ( arr [ i ] == x ) :
return i
i = i + max ( 1 , int ( abs ( arr [ i ] - x ) / k ) )
print ( "number is not present!" )
return - 1
#TOFILL
if __name__ == '__main__':
param = [
([1, 5, 9, 11, 14, 18, 19, 21, 26, 32, 38, 38, 43, 47, 49, 52, 55, 61, 65, 67, 69, 73, 74, 79, 84, 90, 91, 91, 92, 93, 94, 99],22,19,26,),
([12, -86, -66, -50, -48, 78, -92, -56, -2, 66, 64],5,10,5,),
([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, 1, 1],35,37,43,),
([10, 87, 39, 87, 45, 33, 5, 37, 70, 69, 88, 78, 90, 3],9,8,10,),
([-78, -70, -68, -60, -52, -34, -24, -4, 12, 18, 58, 58, 64, 76, 84, 94],14,9,13,),
([0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0],26,36,32,),
([5, 5, 7, 11, 11, 15, 22, 23, 28, 38, 41, 53, 54, 57, 59, 68, 71, 89],16,17,16,),
([-4, 0, 60, -14, -48, 54, -96, -68, -40, 64, -50, -74, -20, -22, 48, -48, 42, 62, 66, 84, 54, -52, -52, 6, 46, -90, -18, 90],18,14,23,),
([0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],9,8,9,),
([30, 91, 34, 44, 3, 76, 43, 75, 49, 33, 74, 72, 68, 79, 26, 62, 23, 5, 32, 75, 82, 25, 7, 19, 32, 87, 87, 94, 34, 62, 3, 32, 59],32,30,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))) | ] | [
"a) <bits/stdc++.h>",
"b) );",
"c) ]",
"d) {",
"e) ["
] | c |
python | def f_gold ( n , r , p ) :
C = [ 0 for i in range ( r + 1 ) ]
C [ 0 ] = 1
for i in range ( 1 , n + 1 ) :
for j in range ( min ( i , r ) , 0 , - 1 ) :
C [ j ] = ( C [ j ] + C [ j - 1 ] ) % p
return C [ r ]
nge ( r + 1 ) ]
C [ 0 ] = 1
for i in range ( 1 , n + 1 ) :
for j in range ( min ( i , r ) , 0 , - 1 ) :
C [ j ] = ( C [ j ] + C [ j - 1 ] ) % p
return C [ r ]
#TOFILL
if __name__ == '__main__':
param = [
(82,5,94,),
(45,24,95,),
(44,68,61,),
(88,24,43,),
(90,75,57,),
(98,55,43,),
(80,54,88,),
(60,75,65,),
(52,73,86,),
(71,26,45,)
]
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))) | def f_gold ( n , r , p ) : C = [ 0 for i in range ( r + 1 ) ] C [ 0 ] = 1 for i in range ( 1 , n + 1 ) : for j in range ( min ( i , r ) , 0 , - 1 ) : C [MASK] j ] = ( C [ j ] + C [ j - 1 ] ) % p return C [ r ]nge ( r + 1 ) ]
C [ 0 ] = 1
for i in range ( 1 , n + 1 ) :
for j in range ( min ( i , r ) , 0 , - 1 ) :
C [ j ] = ( C [ j ] + C [ j - 1 ] ) % p
return C [ r ]
#TOFILL
if __name__ == '__main__':
param = [
(82,5,94,),
(45,24,95,),
(44,68,61,),
(88,24,43,),
(90,75,57,),
(98,55,43,),
(80,54,88,),
(60,75,65,),
(52,73,86,),
(71,26,45,)
]
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))) | [ | [
"a) )",
"b) i",
"c) y)",
"d) [",
"e) }"
] | d |
python | def f_gold ( arr , n ) :
i = - 1
j = 0
while ( j != n ) :
if ( arr [ j ] % 2 == 0 ) :
i = i + 1
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
j = j + 1
for i in arr :
print ( str ( i ) + " " , end = '' )
if ( arr [ j ] % 2 == 0 ) :
i = i + 1
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
j = j + 1
for i in arr :
print ( str ( i ) + " " , end = '' )
#TOFILL
if __name__ == '__main__':
param = [
([20, 67],1,),
([-54, 22, -42, -22, -48, -20, 34, -50, -22, -30, -94, 62, -24, 70, -54, -38, 84],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([62, 45, 87, 31, 67, 53, 61, 9, 20, 8, 99, 18, 69, 54, 99, 64, 35, 88, 85, 74, 58, 93, 65, 30, 96, 4, 77, 24, 54, 88, 43, 84, 62, 34, 93],28,),
([-28, -6, 18, 42, 98],2,),
([0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],21,),
([10, 42, 46],2,),
([88, 4, -88, 2, -16, -74, -18, -60, 86, 88, -2, 82, -8, 54, -84, -4, 32, 20],17,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],35,),
([80, 52, 9, 56, 68, 69, 48, 40, 64, 73, 44, 4, 97, 20, 25, 66, 46, 64, 72, 79, 24],15,)
]
filled_function_param = [
([20, 67],1,),
([-54, 22, -42, -22, -48, -20, 34, -50, -22, -30, -94, 62, -24, 70, -54, -38, 84],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([62, 45, 87, 31, 67, 53, 61, 9, 20, 8, 99, 18, 69, 54, 99, 64, 35, 88, 85, 74, 58, 93, 65, 30, 96, 4, 77, 24, 54, 88, 43, 84, 62, 34, 93],28,),
([-28, -6, 18, 42, 98],2,),
([0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],21,),
([10, 42, 46],2,),
([88, 4, -88, 2, -16, -74, -18, -60, 86, 88, -2, 82, -8, 54, -84, -4, 32, 20],17,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],35,),
([80, 52, 9, 56, 68, 69, 48, 40, 64, 73, 44, 4, 97, 20, 25, 66, 46, 64, 72, 79, 24],15,)
]
n_success = 0
for i, parameters_set in enumerate(param):
f_filled(*(filled_function_param[i]))
f_gold(*parameters_set)
if parameters_set == filled_function_param[i]:
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : i = - 1 j = 0 while ( j != n ) : if ( arr [ [MASK] ] % 2 == 0 ) : i = i + 1 arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ] j = j + 1 for i in arr : print ( str ( i ) + " " , end = '' ) if ( arr [ j ] % 2 == 0 ) :
i = i + 1
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
j = j + 1
for i in arr :
print ( str ( i ) + " " , end = '' )
#TOFILL
if __name__ == '__main__':
param = [
([20, 67],1,),
([-54, 22, -42, -22, -48, -20, 34, -50, -22, -30, -94, 62, -24, 70, -54, -38, 84],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([62, 45, 87, 31, 67, 53, 61, 9, 20, 8, 99, 18, 69, 54, 99, 64, 35, 88, 85, 74, 58, 93, 65, 30, 96, 4, 77, 24, 54, 88, 43, 84, 62, 34, 93],28,),
([-28, -6, 18, 42, 98],2,),
([0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],21,),
([10, 42, 46],2,),
([88, 4, -88, 2, -16, -74, -18, -60, 86, 88, -2, 82, -8, 54, -84, -4, 32, 20],17,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],35,),
([80, 52, 9, 56, 68, 69, 48, 40, 64, 73, 44, 4, 97, 20, 25, 66, 46, 64, 72, 79, 24],15,)
]
filled_function_param = [
([20, 67],1,),
([-54, 22, -42, -22, -48, -20, 34, -50, -22, -30, -94, 62, -24, 70, -54, -38, 84],11,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([62, 45, 87, 31, 67, 53, 61, 9, 20, 8, 99, 18, 69, 54, 99, 64, 35, 88, 85, 74, 58, 93, 65, 30, 96, 4, 77, 24, 54, 88, 43, 84, 62, 34, 93],28,),
([-28, -6, 18, 42, 98],2,),
([0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],21,),
([10, 42, 46],2,),
([88, 4, -88, 2, -16, -74, -18, -60, 86, 88, -2, 82, -8, 54, -84, -4, 32, 20],17,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],35,),
([80, 52, 9, 56, 68, 69, 48, 40, 64, 73, 44, 4, 97, 20, 25, 66, 46, 64, 72, 79, 24],15,)
]
n_success = 0
for i, parameters_set in enumerate(param):
f_filled(*(filled_function_param[i]))
f_gold(*parameters_set)
if parameters_set == filled_function_param[i]:
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | j | [
"a) def",
"b) arr",
"c) <stdlib.h>",
"d) j",
"e) return"
] | d |
python | 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
um - 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))) | 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 + [MASK] , 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 Falseum - 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))) | 1 | [
"a) .",
"b) 1",
"c) ;",
"d) !=",
"e) (x"
] | b |
python | def f_gold ( x ) :
return ( 3 * x * ( x + 1 ) ) / 2
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 ( 3 * x * ( x + 1 ) ) / 2
#TOFILL
if __name__ == '__main__':
param = [
(6,),
(25,),
(15,),
(30,),
(17,),
(80,),
(27,),
(13,),
(12,),
(67,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( x ) : return ( 3 [MASK] x * ( x + 1 ) ) / 2 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 ( 3 * x * ( x + 1 ) ) / 2
#TOFILL
if __name__ == '__main__':
param = [
(6,),
(25,),
(15,),
(30,),
(17,),
(80,),
(27,),
(13,),
(12,),
(67,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | * | [
"a) *",
"b) n",
"c) [",
"d) java.util.",
"e) ,"
] | a |
python | def f_gold ( string ) :
string = string [ : : - 1 ]
return string
s source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( string ) :
string = string [ : : - 1 ]
return string
#TOFILL
if __name__ == '__main__':
param = [
(['A', 'C', 'E', 'M', 'R', 'd', 'g', 'o'],),
(['5', '7', '5', '2', '0', '8', '2', '4', '1', '5', '8', '0', '8', '8'],),
(['0', '0', '0', '1', '1', '1', '1', '1', '1'],),
(['p', 'M', 'h', 'O', 'b', 'I', 'P', 'X', 'V', 'z', 'Q', 'i', 'k', 'S', 'Z', 'j', 'O', 'q', 'f', 'A', 'Q', 'I', 'X', 'R', 'x', 's', 'a', 'Q', 'N', 'r', 'l', 'M', 'D', 'O', 'S', 'k', 'x', 'l', 'C', 'P'],),
(['5'],),
(['0', '0', '0', '0'],),
(['L', 'R', 'W', 'g', 'l', 'w'],),
(['0', '7', '9', '9', '9', '9', '9', '2', '9', '0', '3', '7', '8', '0', '2', '0', '9', '8', '7', '8', '0', '9', '1'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['J', 'y', 'F', 'z', 'V', 'E', 'm', 'G', 'x', 'Y', 'G', 'F', 'J', 's', 'm', 'e', 'd', 'S', 'T', 'H', 'L', 'V', 'j', 't', 'B', 'u'],)
]
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))) | [MASK] f_gold ( string ) : string = string [ : : - 1 ] return strings source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( string ) :
string = string [ : : - 1 ]
return string
#TOFILL
if __name__ == '__main__':
param = [
(['A', 'C', 'E', 'M', 'R', 'd', 'g', 'o'],),
(['5', '7', '5', '2', '0', '8', '2', '4', '1', '5', '8', '0', '8', '8'],),
(['0', '0', '0', '1', '1', '1', '1', '1', '1'],),
(['p', 'M', 'h', 'O', 'b', 'I', 'P', 'X', 'V', 'z', 'Q', 'i', 'k', 'S', 'Z', 'j', 'O', 'q', 'f', 'A', 'Q', 'I', 'X', 'R', 'x', 's', 'a', 'Q', 'N', 'r', 'l', 'M', 'D', 'O', 'S', 'k', 'x', 'l', 'C', 'P'],),
(['5'],),
(['0', '0', '0', '0'],),
(['L', 'R', 'W', 'g', 'l', 'w'],),
(['0', '7', '9', '9', '9', '9', '9', '2', '9', '0', '3', '7', '8', '0', '2', '0', '9', '8', '7', '8', '0', '9', '1'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['J', 'y', 'F', 'z', 'V', 'E', 'm', 'G', 'x', 'Y', 'G', 'F', 'J', 's', 'm', 'e', 'd', 'S', 'T', 'H', 'L', 'V', 'j', 't', 'B', 'u'],)
]
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))) | def | [
"a) def",
"b) ==",
"c) (",
"d) n",
"e) b"
] | a |
python | def f_gold ( str ) :
n = len ( str ) - 1
i = n
while ( i > 0 and str [ i - 1 ] <= str [ i ] ) :
i -= 1
if ( i <= 0 ) :
return False
j = i - 1
while ( j + 1 <= n and str [ j + 1 ] <= str [ i - 1 ] ) :
j += 1
str = list ( str )
temp = str [ i - 1 ]
str [ i - 1 ] = str [ j ]
str [ j ] = temp
str = ''.join ( str )
str [ : : - 1 ]
return True , str
1 ] ) :
j += 1
str = list ( str )
temp = str [ i - 1 ]
str [ i - 1 ] = str [ j ]
str [ j ] = temp
str = ''.join ( str )
str [ : : - 1 ]
return True , str
#TOFILL
if __name__ == '__main__':
param = [
(['B', 'I', 'K', 'M', 'Q', 'Y', 'b', 'e', 'e', 't', 'x'],),
(['7', '0', '2', '5', '1', '1', '4', '4', '8', '0', '2', '6', '4', '4', '0', '6', '7', '1', '7', '9', '8', '6', '1', '8', '3', '0', '6', '4', '4', '6', '3', '1', '3', '1', '9', '9', '4', '7', '4', '4', '3', '1', '4', '2', '9', '8', '1', '2', '4'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['o', 'S', 'R', 'm', 'i', 'S', 'z', 'z', 'W', 'X', 'A', 'A', 'M', 'L', 'V', 'Q', 'F', 'i', ' ', 'i', 'G', 'D', 'T', 'a', 'm', 'S', 'N', 's', 'j', 'P', 'E', 'n', 'a', 'Q', 'm'],),
(['0', '0', '0', '0', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '3', '3', '3', '3', '3', '3', '3', '3', '4', '4', '4', '5', '5', '5', '5', '5', '5', '5', '5', '6', '7', '7', '8', '8', '8', '9', '9', '9', '9', '9'],),
(['0', '0', '1', '0', '1', '0', '0'],),
([' ', 'B', 'D', 'D', 'E', 'E', 'G', 'J', 'J', 'K', 'L', 'L', 'L', 'M', 'N', 'N', 'P', 'Q', 'V', 'W', 'W', 'X', 'Y', 'a', 'b', 'b', 'd', 'f', 'h', 'i', 'j', 'j', 'k', 'k', 'l', 'm', 'm', 'm', 'n', 'p', 'r', 's', 'u', 'v', 'v', 'w', 'x'],),
(['5', '4', '4', '7', '5', '5', '1', '8', '6', '6', '9', '9', '6', '6', '8', '7', '4', '0', '7', '3', '6', '0', '9'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['q', 'a', 'U', 'N', 'V', 'v', 'U', 'R', 'x', 'i', 'S', 'N', 'V', 'V', 'j', 'r', 'e', 'N', 'M'],)
]
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))) | def f_gold ( str ) : n = len ( str ) - 1 i = n while ( i > 0 and str [ i - [MASK] ] <= str [ i ] ) : i -= 1 if ( i <= 0 ) : return False j = i - 1 while ( j + 1 <= n and str [ j + 1 ] <= str [ i - 1 ] ) : j += 1 str = list ( str ) temp = str [ i - 1 ] str [ i - 1 ] = str [ j ] str [ j ] = temp str = ''.join ( str ) str [ : : - 1 ] return True , str 1 ] ) :
j += 1
str = list ( str )
temp = str [ i - 1 ]
str [ i - 1 ] = str [ j ]
str [ j ] = temp
str = ''.join ( str )
str [ : : - 1 ]
return True , str
#TOFILL
if __name__ == '__main__':
param = [
(['B', 'I', 'K', 'M', 'Q', 'Y', 'b', 'e', 'e', 't', 'x'],),
(['7', '0', '2', '5', '1', '1', '4', '4', '8', '0', '2', '6', '4', '4', '0', '6', '7', '1', '7', '9', '8', '6', '1', '8', '3', '0', '6', '4', '4', '6', '3', '1', '3', '1', '9', '9', '4', '7', '4', '4', '3', '1', '4', '2', '9', '8', '1', '2', '4'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['o', 'S', 'R', 'm', 'i', 'S', 'z', 'z', 'W', 'X', 'A', 'A', 'M', 'L', 'V', 'Q', 'F', 'i', ' ', 'i', 'G', 'D', 'T', 'a', 'm', 'S', 'N', 's', 'j', 'P', 'E', 'n', 'a', 'Q', 'm'],),
(['0', '0', '0', '0', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '3', '3', '3', '3', '3', '3', '3', '3', '4', '4', '4', '5', '5', '5', '5', '5', '5', '5', '5', '6', '7', '7', '8', '8', '8', '9', '9', '9', '9', '9'],),
(['0', '0', '1', '0', '1', '0', '0'],),
([' ', 'B', 'D', 'D', 'E', 'E', 'G', 'J', 'J', 'K', 'L', 'L', 'L', 'M', 'N', 'N', 'P', 'Q', 'V', 'W', 'W', 'X', 'Y', 'a', 'b', 'b', 'd', 'f', 'h', 'i', 'j', 'j', 'k', 'k', 'l', 'm', 'm', 'm', 'n', 'p', 'r', 's', 'u', 'v', 'v', 'w', 'x'],),
(['5', '4', '4', '7', '5', '5', '1', '8', '6', '6', '9', '9', '6', '6', '8', '7', '4', '0', '7', '3', '6', '0', '9'],),
(['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'],),
(['q', 'a', 'U', 'N', 'V', 'v', 'U', 'R', 'x', 'i', 'S', 'N', 'V', 'V', 'j', 'r', 'e', 'N', 'M'],)
]
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))) | 1 | [
"a) #include",
"b) ;",
"c) *",
"d) 1",
"e) )"
] | d |
python | def f_gold ( n ) :
n -= 1
sum = 0
sum += ( n * ( n + 1 ) ) / 2
sum += ( n * ( n + 1 ) * ( 2 * n + 1 ) ) / 6
return int ( sum )
n 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))) | def f_gold ( n ) : n -= 1 sum = 0 [MASK] += ( n * ( n + 1 ) ) / 2 sum += ( n * ( n + 1 ) * ( 2 * n + 1 ) ) / 6 return int ( sum )n 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))) | sum | [
"a) )",
"b) n",
"c) *",
"d) )",
"e) sum"
] | e |
python | def f_gold ( arr , n , k ) :
result = + 2147483647
arr.sort ( )
for i in range ( n - k + 1 ) :
result = int ( min ( result , arr [ i + k - 1 ] - arr [ i ] ) )
return result
gold ( arr , n , k ) :
result = + 2147483647
arr.sort ( )
for i in range ( n - k + 1 ) :
result = int ( min ( result , arr [ i + k - 1 ] - arr [ i ] ) )
return result
#TOFILL
if __name__ == '__main__':
param = [
([1, 1, 2, 7, 8, 14, 16, 20, 20, 23, 24, 24, 29, 30, 32, 34, 35, 37, 38, 43, 44, 46, 50, 52, 55, 57, 61, 71, 79, 86, 86, 89, 91, 91, 95],33,17,),
([78, -4, 76, 0, -62, 54, -70, 62, 90, -80, -68, 90, -34, -66, -46, 34, -18, -74, -66, 34, 34, -28, 6, 80, 58, -50, -60, 54, 8, -52, -60, 68, 42, 16, 42, 72, 54, 88, 44, 46, 84, -34],33,33,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],8,13,),
([32],0,0,),
([-96, -78, -76, -72, -72, -70, -54, -46, -40, -34, -30, -26, -24, -22, -18, -16, -6, -4, -4, 2, 6, 14, 16, 18, 30, 30, 36, 54, 54, 58, 66, 72, 78, 80, 80, 82, 88, 98],26,25,),
([0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1],39,41,),
([3, 13, 14, 18, 23, 32, 67, 72, 75, 76, 87, 95],10,8,),
([8, 30],1,1,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],27,33,),
([31, 15, 19, 41, 73, 29, 67, 36, 87, 74, 95, 27, 36, 83, 37, 33, 30, 86, 94, 93, 9, 42, 3, 95, 3, 69, 67, 63, 16, 53, 35, 52, 2, 57, 57, 25, 21, 7, 72, 52, 78, 40],36,37,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n , k ) : result = + 2147483647 arr.sort ( ) for i in range ( n - k + 1 ) : result = int ( min ( result , arr [ i + k - 1 ] - arr [MASK] i ] ) ) return resultgold ( arr , n , k ) :
result = + 2147483647
arr.sort ( )
for i in range ( n - k + 1 ) :
result = int ( min ( result , arr [ i + k - 1 ] - arr [ i ] ) )
return result
#TOFILL
if __name__ == '__main__':
param = [
([1, 1, 2, 7, 8, 14, 16, 20, 20, 23, 24, 24, 29, 30, 32, 34, 35, 37, 38, 43, 44, 46, 50, 52, 55, 57, 61, 71, 79, 86, 86, 89, 91, 91, 95],33,17,),
([78, -4, 76, 0, -62, 54, -70, 62, 90, -80, -68, 90, -34, -66, -46, 34, -18, -74, -66, 34, 34, -28, 6, 80, 58, -50, -60, 54, 8, -52, -60, 68, 42, 16, 42, 72, 54, 88, 44, 46, 84, -34],33,33,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1],8,13,),
([32],0,0,),
([-96, -78, -76, -72, -72, -70, -54, -46, -40, -34, -30, -26, -24, -22, -18, -16, -6, -4, -4, 2, 6, 14, 16, 18, 30, 30, 36, 54, 54, 58, 66, 72, 78, 80, 80, 82, 88, 98],26,25,),
([0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1],39,41,),
([3, 13, 14, 18, 23, 32, 67, 72, 75, 76, 87, 95],10,8,),
([8, 30],1,1,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],27,33,),
([31, 15, 19, 41, 73, 29, 67, 36, 87, 74, 95, 27, 36, 83, 37, 33, 30, 86, 94, 93, 9, 42, 3, 95, 3, 69, 67, 63, 16, 53, 35, 52, 2, 57, 57, 25, 21, 7, 72, 52, 78, 40],36,37,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | [ | [
"a) (sizeof",
"b) f_gold",
"c) [",
"d) for",
"e) ("
] | c |
python | def f_gold ( a , b ) :
if ( a == 0 or b == 0 ) :
return False
result = a * b
if ( result >= 9223372036854775807 or result <= - 9223372036854775808 ) :
result = 0
if ( a == ( result // b ) ) :
print ( result // b )
return False
else :
return True
3372036854775807 or result <= - 9223372036854775808 ) :
result = 0
if ( a == ( result // b ) ) :
print ( result // b )
return False
else :
return True
#TOFILL
if __name__ == '__main__':
param = [
(37,80,),
(10000000000,-10000000000,),
(10000000000,10000000000,),
(999999999,999999999,),
(39,36,),
(92,56,),
(14,21,),
(19,38,),
(14,82,),
(88,41,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( a , b ) : if ( a == 0 or b [MASK] 0 ) : return False result = a * b if ( result >= 9223372036854775807 or result <= - 9223372036854775808 ) : result = 0 if ( a == ( result // b ) ) : print ( result // b ) return False else : return True3372036854775807 or result <= - 9223372036854775808 ) :
result = 0
if ( a == ( result // b ) ) :
print ( result // b )
return False
else :
return True
#TOFILL
if __name__ == '__main__':
param = [
(37,80,),
(10000000000,-10000000000,),
(10000000000,10000000000,),
(999999999,999999999,),
(39,36,),
(92,56,),
(14,21,),
(19,38,),
(14,82,),
(88,41,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | == | [
"a) =",
"b) ==",
"c) arr",
"d) using",
"e) b)"
] | b |
python | def f_gold ( arr , n ) :
for i in range ( int ( ( n - 2 ) / 2 ) + 1 ) :
if arr [ 2 * i + 1 ] > arr [ i ] :
return False
if ( 2 * i + 2 < n and arr [ 2 * i + 2 ] > arr [ i ] ) :
return False
return True
) / 2 ) + 1 ) :
if arr [ 2 * i + 1 ] > arr [ i ] :
return False
if ( 2 * i + 2 < n and arr [ 2 * i + 2 ] > arr [ i ] ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([2, 2, 2, 7, 10, 14, 24, 38, 42, 50, 59, 60, 72, 73, 79, 83, 89],9,),
([-48, 98, 96, -56, -2, 58, 52, -50, 58, 50, 62, 86, -26, -98, 34, 20, -28, 56, -36],9,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([91, 50, 37],2,),
([-80, -26, 0, 0, 6, 14, 22, 76, 82, 88, 98],10,),
([1, 0],1,),
([9, 24, 24, 33, 48, 50, 55, 61, 69, 79, 83],8,),
([30, 32, -82, -48, 88, -24, 74, 2, 90, 98, 68, 82, 32, -60, 2, -94, 18, 14, 46, 50, -60, -74, -76, 66, -76, -34, -20, 82, -44, -62, 34, 48, -56, 2, 64, -78, -64, 98, -10, -28, 78, -42],27,),
([0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],6,),
([38, 74, 99, 75, 44, 75, 24, 70, 78, 74, 60, 59, 34, 27, 7, 23, 19, 95, 4, 35, 38, 22, 46, 1, 44, 20, 52, 1, 96, 57, 5, 76, 49, 1, 37, 35],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))) | def f_gold ( arr , n ) : for i in range ( int ( ( n - 2 ) / 2 ) + 1 ) : if arr [ 2 * i + 1 ] > arr [ i ] : return False if ( 2 * i + 2 < n and arr [ 2 * i + 2 [MASK] > arr [ i ] ) : return False return True ) / 2 ) + 1 ) :
if arr [ 2 * i + 1 ] > arr [ i ] :
return False
if ( 2 * i + 2 < n and arr [ 2 * i + 2 ] > arr [ i ] ) :
return False
return True
#TOFILL
if __name__ == '__main__':
param = [
([2, 2, 2, 7, 10, 14, 24, 38, 42, 50, 59, 60, 72, 73, 79, 83, 89],9,),
([-48, 98, 96, -56, -2, 58, 52, -50, 58, 50, 62, 86, -26, -98, 34, 20, -28, 56, -36],9,),
([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],20,),
([91, 50, 37],2,),
([-80, -26, 0, 0, 6, 14, 22, 76, 82, 88, 98],10,),
([1, 0],1,),
([9, 24, 24, 33, 48, 50, 55, 61, 69, 79, 83],8,),
([30, 32, -82, -48, 88, -24, 74, 2, 90, 98, 68, 82, 32, -60, 2, -94, 18, 14, 46, 50, -60, -74, -76, 66, -76, -34, -20, 82, -44, -62, 34, 48, -56, 2, 64, -78, -64, 98, -10, -28, 78, -42],27,),
([0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],6,),
([38, 74, 99, 75, 44, 75, 24, 70, 78, 74, 60, 59, 34, 27, 7, 23, 19, 95, 4, 35, 38, 22, 46, 1, 44, 20, 52, 1, 96, 57, 5, 76, 49, 1, 37, 35],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))) | ] | [
"a) {return",
"b) ]",
"c) fact",
"d) =",
"e) y)?"
] | b |
python | def f_gold ( a , b ) :
return ( ( 2 * a ) + ( 2 * b ) )
erved.
#
# 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 ) :
return ( ( 2 * a ) + ( 2 * b ) )
#TOFILL
if __name__ == '__main__':
param = [
(801.0366882228715,456.71190645582783,),
(-7069.610056819919,-4226.483870778477,),
(7723.966966568705,5894.65405158763,),
(-7935.859205856963,-5333.225064296693,),
(6094.247432557289,1660.420120702062,),
(-7371.490363309265,-1095.4543576847332,),
(8368.473889617526,4735.838330834498,),
(-3761.921143166053,-5315.871691690649,),
(3139.1089185587884,6490.194159517967,),
(-5218.286665567171,-8265.153014320813,)
]
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))) | def f_gold ( a , b ) [MASK] return ( ( 2 * a ) + ( 2 * b ) )erved.
#
# 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 ) :
return ( ( 2 * a ) + ( 2 * b ) )
#TOFILL
if __name__ == '__main__':
param = [
(801.0366882228715,456.71190645582783,),
(-7069.610056819919,-4226.483870778477,),
(7723.966966568705,5894.65405158763,),
(-7935.859205856963,-5333.225064296693,),
(6094.247432557289,1660.420120702062,),
(-7371.490363309265,-1095.4543576847332,),
(8368.473889617526,4735.838330834498,),
(-3761.921143166053,-5315.871691690649,),
(3139.1089185587884,6490.194159517967,),
(-5218.286665567171,-8265.153014320813,)
]
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))) | : | [
"a) :",
"b) {",
"c) arr",
"d) /",
"e) -"
] | a |
python | def f_gold ( arr , N , k ) :
MS = [ 0 for i in range ( N ) ]
MS [ N - 1 ] = arr [ N - 1 ]
for i in range ( N - 2 , - 1 , - 1 ) :
if ( i + k + 1 >= N ) :
MS [ i ] = max ( arr [ i ] , MS [ i + 1 ] )
else :
MS [ i ] = max ( arr [ i ] + MS [ i + k + 1 ] , MS [ i + 1 ] )
return MS [ 0 ]
if ( i + k + 1 >= N ) :
MS [ i ] = max ( arr [ i ] , MS [ i + 1 ] )
else :
MS [ i ] = max ( arr [ i ] + MS [ i + k + 1 ] , MS [ i + 1 ] )
return MS [ 0 ]
#TOFILL
if __name__ == '__main__':
param = [
([3, 5, 20, 21, 23, 26, 27, 31, 33, 38, 39, 41, 48, 48, 50, 51, 56, 57, 64, 68, 69, 70, 71, 74, 76, 86, 97],23,15,),
([32, 34, -40, 90, -82, -70, 30, 26, -76, -46, -84, 76, -76],9,10,),
([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],22,34,),
([96, 15, 30, 25, 83],2,3,),
([-90, -82, -80, -76, -62, -58, -50, -48, -46, -38, -38, -38, -38, -38, -34, -32, -24, -22, -16, -16, -4, -2, 10, 10, 20, 26, 26, 32, 38, 38, 44, 44, 46, 48, 58, 62, 64, 66, 76, 78, 78, 82, 92, 96, 96, 98],27,30,),
([1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0],9,9,),
([1, 2, 9, 17, 24, 31, 31, 33, 56, 57, 61, 71, 73, 74, 76, 77, 79, 83, 86, 95, 99],12,10,),
([-12, 52, -44, 80, -66, 34, 42, -46, 8, 12, -22, -56, 74, -98, -44, 2, -24, -14, -54, -56, -26, -18, -72],13,19,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,13,),
([65, 1, 34, 38, 15, 6, 55, 21, 32, 90, 39, 25, 43, 48, 64, 66, 88, 70, 82, 75, 25, 56, 23, 27, 41, 33, 33, 55, 60, 90, 41, 58, 42, 53, 38, 90, 7, 15],37,33,)
]
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))) | def f_gold ( arr , N , k ) : MS = [ 0 for i in range ( N ) ] MS [ N - 1 ] = arr [ N - 1 ] for i in range ( N - 2 , - 1 , - 1 ) : if ( i + k + 1 >= N ) : MS [ i ] = max ( arr [ i ] , MS [ i + 1 ] ) else : MS [ i ] = max [MASK] arr [ i ] + MS [ i + k + 1 ] , MS [ i + 1 ] ) return MS [ 0 ] if ( i + k + 1 >= N ) :
MS [ i ] = max ( arr [ i ] , MS [ i + 1 ] )
else :
MS [ i ] = max ( arr [ i ] + MS [ i + k + 1 ] , MS [ i + 1 ] )
return MS [ 0 ]
#TOFILL
if __name__ == '__main__':
param = [
([3, 5, 20, 21, 23, 26, 27, 31, 33, 38, 39, 41, 48, 48, 50, 51, 56, 57, 64, 68, 69, 70, 71, 74, 76, 86, 97],23,15,),
([32, 34, -40, 90, -82, -70, 30, 26, -76, -46, -84, 76, -76],9,10,),
([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],22,34,),
([96, 15, 30, 25, 83],2,3,),
([-90, -82, -80, -76, -62, -58, -50, -48, -46, -38, -38, -38, -38, -38, -34, -32, -24, -22, -16, -16, -4, -2, 10, 10, 20, 26, 26, 32, 38, 38, 44, 44, 46, 48, 58, 62, 64, 66, 76, 78, 78, 82, 92, 96, 96, 98],27,30,),
([1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0],9,9,),
([1, 2, 9, 17, 24, 31, 31, 33, 56, 57, 61, 71, 73, 74, 76, 77, 79, 83, 86, 95, 99],12,10,),
([-12, 52, -44, 80, -66, 34, 42, -46, 8, 12, -22, -56, 74, -98, -44, 2, -24, -14, -54, -56, -26, -18, -72],13,19,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,13,),
([65, 1, 34, 38, 15, 6, 55, 21, 32, 90, 39, 25, 43, 48, 64, 66, 88, 70, 82, 75, 25, 56, 23, 27, 41, 33, 33, 55, 60, 90, 41, 58, 42, 53, 38, 90, 7, 15],37,33,)
]
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))) | ( | [
"a) (",
"b) i",
"c) 1",
"d) *;",
"e) j"
] | a |
python | def f_gold ( str ) :
l = len ( str )
open = [ None ] * ( l + 1 )
close = [ None ] * ( l + 1 )
index = - 1
open [ 0 ] = 0
close [ l ] = 0
if ( str [ 0 ] == '(' ) :
open [ 1 ] = 1
if ( str [ l - 1 ] == ')' ) :
close [ l - 1 ] = 1
for i in range ( 1 , l ) :
if ( str [ i ] == '(' ) :
open [ i + 1 ] = open [ i ] + 1
else :
open [ i + 1 ] = open [ i ]
for i in range ( l - 2 , - 1 , - 1 ) :
if ( str [ i ] == ')' ) :
close [ i ] = close [ i + 1 ] + 1
else :
close [ i ] = close [ i + 1 ]
if ( open [ l ] == 0 ) :
return len
if ( close [ 0 ] == 0 ) :
return 0
for i in range ( l + 1 ) :
if ( open [ i ] == close [ i ] ) :
index = i
return index
] == 0 ) :
return len
if ( close [ 0 ] == 0 ) :
return 0
for i in range ( l + 1 ) :
if ( open [ i ] == close [ i ] ) :
index = i
return index
#TOFILL
if __name__ == '__main__':
param = [
("(())))(",),
("))",),
("((",),
("))(()(()()(",),
(")((()(()",),
("))(()",),
("()))",),
("()",),
('1100110',),
('dhfSnebD',)
]
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))) | def f_gold ( str ) : l = len ( str ) open = [ None ] * ( l + 1 ) close = [ None ] * ( l + 1 ) index = - 1 open [ 0 ] = 0 close [ l ] = 0 if ( str [ 0 ] == '(' ) : open [ 1 ] = 1 if ( str [ l - 1 ] == ')' ) : close [ l - 1 ] = 1 for i in range ( 1 , l ) : if ( str [ i ] == '(' ) : open [ i + 1 ] = open [ i ] + 1 else : open [ i + 1 ] = open [ i ] for i in range ( l - 2 , - 1 , - 1 ) : if ( str [ i ] [MASK] ')' ) : close [ i ] = close [ i + 1 ] + 1 else : close [ i ] = close [ i + 1 ] if ( open [ l ] == 0 ) : return len if ( close [ 0 ] == 0 ) : return 0 for i in range ( l + 1 ) : if ( open [ i ] == close [ i ] ) : index = i return index ] == 0 ) :
return len
if ( close [ 0 ] == 0 ) :
return 0
for i in range ( l + 1 ) :
if ( open [ i ] == close [ i ] ) :
index = i
return index
#TOFILL
if __name__ == '__main__':
param = [
("(())))(",),
("))",),
("((",),
("))(()(()()(",),
(")((()(()",),
("))(()",),
("()))",),
("()",),
('1100110',),
('dhfSnebD',)
]
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))) | == | [
"a) ==",
"b) i",
"c) String",
"d) <vector>",
"e) javafx.util.Pair;"
] | a |
python | def f_gold ( x ) :
return ( ( x & 0x0F ) << 4 | ( x & 0xF0 ) >> 4 )
his 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 & 0x0F ) << 4 | ( x & 0xF0 ) >> 4 )
#TOFILL
if __name__ == '__main__':
param = [
(57,),
(99,),
(66,),
(97,),
(95,),
(42,),
(95,),
(89,),
(3,),
(84,)
]
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))) | def f_gold ( x ) : return ( ( x & 0x0F ) << 4 | ( x & 0xF0 ) >> [MASK] )his 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 & 0x0F ) << 4 | ( x & 0xF0 ) >> 4 )
#TOFILL
if __name__ == '__main__':
param = [
(57,),
(99,),
(66,),
(97,),
(95,),
(42,),
(95,),
(89,),
(3,),
(84,)
]
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))) | 4 | [
"a) res",
"b) 4",
"c) x",
"d) 1",
"e) )"
] | b |
python | def f_gold(x1, y1, x2, y2, r1, r2):
distSq = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)
radSumSq = (r1 + r2) * (r1 + r2)
if (distSq == radSumSq):
return 1
elif (distSq > radSumSq):
return - 1
else:
return 0
1 - x2) + (y1 - y2) * (y1 - y2)
radSumSq = (r1 + r2) * (r1 + r2)
if (distSq == radSumSq):
return 1
elif (distSq > radSumSq):
return - 1
else:
return 0
#TOFILL
if __name__ == '__main__':
param = [
(11, 36, 62, 64, 50, 4,),
(87, 1, 62, 64, 54, 41,),
(51, 1, 47, 90, 14, 71,),
(89, 67, 9, 52, 94, 21,),
(64, 10, 79, 45, 67, 78,),
(57, 86, 99, 43, 83, 63,),
(65, 90, 42, 82, 77, 32,),
(32, 23, 28, 26, 60, 45,),
(73, 61, 63, 77, 92, 76,),
(3, 99, 6, 19, 21, 28,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print("#Results: %i, %i" % (n_success, len(param)))
| def f_gold(x1, y1, x2, y2, r1, r2): distSq = (x1 - x2) * [MASK] - x2) + (y1 - y2) * (y1 - y2) radSumSq = (r1 + r2) * (r1 + r2) if (distSq == radSumSq): return 1 elif (distSq > radSumSq): return - 1 else: return 01 - x2) + (y1 - y2) * (y1 - y2)
radSumSq = (r1 + r2) * (r1 + r2)
if (distSq == radSumSq):
return 1
elif (distSq > radSumSq):
return - 1
else:
return 0
#TOFILL
if __name__ == '__main__':
param = [
(11, 36, 62, 64, 50, 4,),
(87, 1, 62, 64, 54, 41,),
(51, 1, 47, 90, 14, 71,),
(89, 67, 9, 52, 94, 21,),
(64, 10, 79, 45, 67, 78,),
(57, 86, 99, 43, 83, 63,),
(65, 90, 42, 82, 77, 32,),
(32, 23, 28, 26, 60, 45,),
(73, 61, 63, 77, 92, 76,),
(3, 99, 6, 19, 21, 28,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print("#Results: %i, %i" % (n_success, len(param)))
| (x1 | [
"a) [",
"b) return",
"c) (x1",
"d) )",
"e) y)"
] | c |
python | def f_gold ( arr , n ) :
dp = [ 1 for i in range ( n ) ]
for i in range ( n ) :
for j in range ( i ) :
if ( ( arr [ i ] == arr [ j ] + 1 ) or ( arr [ i ] == arr [ j ] - 1 ) ) :
dp [ i ] = max ( dp [ i ] , dp [ j ] + 1 )
result = 1
for i in range ( n ) :
if ( result < dp [ i ] ) :
result = dp [ i ]
return result
) ) :
dp [ i ] = max ( dp [ i ] , dp [ j ] + 1 )
result = 1
for i in range ( n ) :
if ( result < dp [ i ] ) :
result = dp [ i ]
return result
#TOFILL
if __name__ == '__main__':
param = [
([2, 13, 15, 17, 18, 20, 22, 24, 28, 34, 37, 43, 46, 47, 49, 51, 52, 54, 58, 64, 65, 77, 78, 79, 87, 90, 92, 93, 94, 97],23,),
([-86, -56, 76, 86, 42, -40, 8, 34, -48, -54, -80, 6, 42, 48, 76, -26, 6],15,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],16,),
([5, 22, 15, 26, 29, 47, 22],5,),
([-90, -84, -76, -76, -74, -74, -66, -58, -58, -56, -56, -44, -38, -36, -34, -32, -16, -10, 2, 6, 24, 24, 24, 34, 36, 54, 60, 68, 70, 76, 88],17,),
([0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1],26,),
([1, 3, 12, 12, 12, 12, 14, 17, 18, 19, 23, 27, 28, 30, 35, 38, 42, 44, 45, 48, 52, 59, 61, 64, 65, 69, 73, 76, 77, 82, 83, 85, 87, 99],23,),
([-54, -20, 24, -78, -58, 64, 34, 70, -36, -24],8,),
([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],27,),
([5, 35, 75, 21, 82, 32, 28, 53, 20, 27, 42, 92, 32, 70, 81, 75, 72, 66, 97, 60, 11, 83, 14, 30, 5, 68, 17, 27, 62, 86, 26, 20, 97, 91, 44, 69],20,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold ( arr , n ) : dp = [ 1 for i in range ( n ) ] for i in range ( n ) : for j in range ( i ) : if ( ( arr [ i ] == arr [ j ] + 1 [MASK] or ( arr [ i ] == arr [ j ] - 1 ) ) : dp [ i ] = max ( dp [ i ] , dp [ j ] + 1 ) result = 1 for i in range ( n ) : if ( result < dp [ i ] ) : result = dp [ i ] return result ) ) :
dp [ i ] = max ( dp [ i ] , dp [ j ] + 1 )
result = 1
for i in range ( n ) :
if ( result < dp [ i ] ) :
result = dp [ i ]
return result
#TOFILL
if __name__ == '__main__':
param = [
([2, 13, 15, 17, 18, 20, 22, 24, 28, 34, 37, 43, 46, 47, 49, 51, 52, 54, 58, 64, 65, 77, 78, 79, 87, 90, 92, 93, 94, 97],23,),
([-86, -56, 76, 86, 42, -40, 8, 34, -48, -54, -80, 6, 42, 48, 76, -26, 6],15,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],16,),
([5, 22, 15, 26, 29, 47, 22],5,),
([-90, -84, -76, -76, -74, -74, -66, -58, -58, -56, -56, -44, -38, -36, -34, -32, -16, -10, 2, 6, 24, 24, 24, 34, 36, 54, 60, 68, 70, 76, 88],17,),
([0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1],26,),
([1, 3, 12, 12, 12, 12, 14, 17, 18, 19, 23, 27, 28, 30, 35, 38, 42, 44, 45, 48, 52, 59, 61, 64, 65, 69, 73, 76, 77, 82, 83, 85, 87, 99],23,),
([-54, -20, 24, -78, -58, 64, 34, 70, -36, -24],8,),
([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],27,),
([5, 35, 75, 21, 82, 32, 28, 53, 20, 27, 42, 92, 32, 70, 81, 75, 72, 66, 97, 60, 11, 83, 14, 30, 5, 68, 17, 27, 62, 86, 26, 20, 97, 91, 44, 69],20,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | ) | [
"a) j",
"b) {",
"c) )",
"d) );}",
"e) if"
] | c |
python | def f_gold ( set , n ) :
if ( n <= 2 ) :
return n
L = [ [ 0 for x in range ( n ) ] for y in range ( n ) ]
llap = 2
for i in range ( n ) :
L [ i ] [ n - 1 ] = 2
for j in range ( n - 2 , 0 , - 1 ) :
i = j - 1
k = j + 1
while ( i >= 0 and k <= n - 1 ) :
if ( set [ i ] + set [ k ] < 2 * set [ j ] ) :
k += 1
elif ( set [ i ] + set [ k ] > 2 * set [ j ] ) :
L [ i ] [ j ] = 2
i -= 1
else :
L [ i ] [ j ] = L [ j ] [ k ] + 1
llap = max ( llap , L [ i ] [ j ] )
i -= 1
k += 1
while ( i >= 0 ) :
L [ i ] [ j ] = 2
i -= 1
return llap
max ( llap , L [ i ] [ j ] )
i -= 1
k += 1
while ( i >= 0 ) :
L [ i ] [ j ] = 2
i -= 1
return llap
#TOFILL
if __name__ == '__main__':
param = [
([3, 4, 4, 7, 8, 19, 21, 22, 25, 27, 28, 29, 38, 40, 41, 42, 43, 46, 50, 50, 53, 53, 54, 55, 60, 64, 64, 69, 70, 75, 77, 81, 81, 82, 86, 87, 87, 88, 91, 94, 97],27,),
([40, -6, 50, -18, 42, 78, 38, -90, -44, -42, -86, 78, -68, 2, -32, -20, -44, 54, 80, 54, 70, 26, 82, -14, -74, -20, 74, 82],21,),
([0, 0, 0, 0, 1, 1, 1],5,),
([76, 80],1,),
([-92, -90, -88, -76, -76, -60, -46, -40, -24, -8, -8, -6, 2, 12, 36, 38, 58, 76, 80],13,),
([1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1],15,),
([5, 8, 11, 27, 27, 32, 32, 37, 50, 51, 55, 61, 62, 68, 73, 83],8,),
([52, -74, -32, -64, -52, -60, -70, 36, 70, 40, 40, -18, 90, -70, -82, -64, -8, -6, 36, 4, -58, 62, -96, 78, 36, 90, -70, -6, -84, 24, 84, 32, -90, 36, 70, -60, -56, 78, 48, 34, -16, 80, 82, 58, 14, -6, -8, 76],29,),
([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],27,),
([11, 21, 76, 45, 8, 49, 97, 66, 17, 11, 87, 4, 34, 89, 79, 88, 6, 91, 19, 56, 91, 25, 17, 90, 26, 59, 34, 32, 43, 17, 98, 39, 72, 78, 93, 43],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))) | def f_gold ( set , n ) : if ( n <= 2 ) : return n L = [ [ 0 for x in range ( n ) ] for y in range ( n ) ] llap = 2 for i in range ( n ) : L [ i ] [ n - 1 ] = 2 for [MASK] in range ( n - 2 , 0 , - 1 ) : i = j - 1 k = j + 1 while ( i >= 0 and k <= n - 1 ) : if ( set [ i ] + set [ k ] < 2 * set [ j ] ) : k += 1 elif ( set [ i ] + set [ k ] > 2 * set [ j ] ) : L [ i ] [ j ] = 2 i -= 1 else : L [ i ] [ j ] = L [ j ] [ k ] + 1 llap = max ( llap , L [ i ] [ j ] ) i -= 1 k += 1 while ( i >= 0 ) : L [ i ] [ j ] = 2 i -= 1 return llapmax ( llap , L [ i ] [ j ] )
i -= 1
k += 1
while ( i >= 0 ) :
L [ i ] [ j ] = 2
i -= 1
return llap
#TOFILL
if __name__ == '__main__':
param = [
([3, 4, 4, 7, 8, 19, 21, 22, 25, 27, 28, 29, 38, 40, 41, 42, 43, 46, 50, 50, 53, 53, 54, 55, 60, 64, 64, 69, 70, 75, 77, 81, 81, 82, 86, 87, 87, 88, 91, 94, 97],27,),
([40, -6, 50, -18, 42, 78, 38, -90, -44, -42, -86, 78, -68, 2, -32, -20, -44, 54, 80, 54, 70, 26, 82, -14, -74, -20, 74, 82],21,),
([0, 0, 0, 0, 1, 1, 1],5,),
([76, 80],1,),
([-92, -90, -88, -76, -76, -60, -46, -40, -24, -8, -8, -6, 2, 12, 36, 38, 58, 76, 80],13,),
([1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1],15,),
([5, 8, 11, 27, 27, 32, 32, 37, 50, 51, 55, 61, 62, 68, 73, 83],8,),
([52, -74, -32, -64, -52, -60, -70, 36, 70, 40, 40, -18, 90, -70, -82, -64, -8, -6, 36, 4, -58, 62, -96, 78, 36, 90, -70, -6, -84, 24, 84, 32, -90, 36, 70, -60, -56, 78, 48, 34, -16, 80, 82, 58, 14, -6, -8, 76],29,),
([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],27,),
([11, 21, 76, 45, 8, 49, 97, 66, 17, 11, 87, 4, 34, 89, 79, 88, 6, 91, 19, 56, 91, 25, 17, 90, 26, 59, 34, 32, 43, 17, 98, 39, 72, 78, 93, 43],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))) | j | [
"a) *",
"b) return",
"c) j",
"d) 1",
"e) ("
] | c |
python | def f_gold ( n ) :
C = [ [ 0 ] * ( n + 2 ) for i in range ( 0 , n + 2 ) ]
for i in range ( 0 , n + 1 ) :
for j in range ( 0 , min ( i , n ) + 1 ) :
if ( j == 0 or j == i ) :
C [ i ] [ j ] = 1
else :
C [ i ] [ j ] = C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ]
sum = 0
for i in range ( 0 , n + 1 ) :
sum += C [ n ] [ i ]
return sum
] = 1
else :
C [ i ] [ j ] = C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ]
sum = 0
for i in range ( 0 , n + 1 ) :
sum += C [ n ] [ i ]
return sum
#TOFILL
if __name__ == '__main__':
param = [
(8,),
(39,),
(25,),
(44,),
(72,),
(6,),
(72,),
(62,),
(48,),
(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))) | def f_gold ( n ) : C = [ [ 0 ] * ( n + 2 ) for i in range ( 0 , n + 2 ) ] for i in range ( 0 , n + 1 ) : for j in range ( 0 , min ( i , n ) + 1 ) : if ( j == 0 or j == i ) : C [ i ] [ j ] = 1 else : C [MASK] i ] [ j ] = C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ] sum = 0 for i in range ( 0 , n + 1 ) : sum += C [ n ] [ i ] return sum ] = 1
else :
C [ i ] [ j ] = C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ]
sum = 0
for i in range ( 0 , n + 1 ) :
sum += C [ n ] [ i ]
return sum
#TOFILL
if __name__ == '__main__':
param = [
(8,),
(39,),
(25,),
(44,),
(72,),
(6,),
(72,),
(62,),
(48,),
(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))) | [ | [
"a) (",
"b) [",
"c) const",
"d) (",
"e) &"
] | b |
python | def f_gold ( n ) :
DP = [ 0 for i in range ( 0 , n + 1 ) ]
DP [ 0 ] = DP [ 1 ] = DP [ 2 ] = 1
DP [ 3 ] = 2
for i in range ( 4 , n + 1 ) :
DP [ i ] = DP [ i - 1 ] + DP [ i - 3 ] + DP [ i - 4 ]
return DP [ n ]
e ( 0 , n + 1 ) ]
DP [ 0 ] = DP [ 1 ] = DP [ 2 ] = 1
DP [ 3 ] = 2
for i in range ( 4 , n + 1 ) :
DP [ i ] = DP [ i - 1 ] + DP [ i - 3 ] + DP [ i - 4 ]
return DP [ n ]
#TOFILL
if __name__ == '__main__':
param = [
(44,),
(9,),
(19,),
(10,),
(78,),
(94,),
(70,),
(81,),
(81,),
(49,)
]
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))) | def f_gold ( n ) : DP = [ 0 for i in range ( 0 , n + 1 ) ] DP [ 0 ] = DP [ 1 ] = DP [ 2 ] [MASK] 1 DP [ 3 ] = 2 for i in range ( 4 , n + 1 ) : DP [ i ] = DP [ i - 1 ] + DP [ i - 3 ] + DP [ i - 4 ] return DP [ n ]e ( 0 , n + 1 ) ]
DP [ 0 ] = DP [ 1 ] = DP [ 2 ] = 1
DP [ 3 ] = 2
for i in range ( 4 , n + 1 ) :
DP [ i ] = DP [ i - 1 ] + DP [ i - 3 ] + DP [ i - 4 ]
return DP [ n ]
#TOFILL
if __name__ == '__main__':
param = [
(44,),
(9,),
(19,),
(10,),
(78,),
(94,),
(70,),
(81,),
(81,),
(49,)
]
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))) | = | [
"a) )",
"b) return",
"c) =",
"d) ]",
"e) int"
] | c |
python | def f_gold ( arr , n ) :
count = 0
cummulative_sum = 0
arr.sort ( )
for i in range ( n ) :
if arr [ i ] >= cummulative_sum :
count += 1
cummulative_sum += arr [ i ]
return count
cummulative_sum = 0
arr.sort ( )
for i in range ( n ) :
if arr [ i ] >= cummulative_sum :
count += 1
cummulative_sum += arr [ i ]
return count
#TOFILL
if __name__ == '__main__':
param = [
([7, 33, 34, 42, 42, 45, 73],5,),
([32, -10, -64, -20, 92, -66, 6, 44, -62, -98, 4, -48, 44, 42, 12, -90, 52, 86, -30, -80, 64, 94, 14],16,),
([0, 0, 0, 0, 1],2,),
([11, 85, 89, 71, 82, 44],3,),
([-96, -92, -78, -72, -68, -58, -52, -50, -50, -48, -42, -32, -20, -18, -4, 0, 0, 2, 18, 18, 20, 24, 32, 34, 36, 38, 38, 60, 66, 68, 70, 72, 72, 74, 76, 96, 98],21,),
([0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1],16,),
([8, 9, 10, 11, 12, 15, 17, 19, 20, 21, 24, 30, 33, 35, 36, 39, 41, 41, 42, 54, 62, 63, 68, 70, 71, 72, 77, 85, 86, 86, 94, 95, 97, 97],31,),
([96, 22, -60, 4, -94, -16, 46, 10, 76, -90, 4, 70, -72, 60, 28, -24, -66, 92, -70, 72, 36],20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,),
([90, 63, 16, 40, 28, 97, 20, 63, 42, 31, 57, 84, 10, 12, 59, 69, 47, 7, 53, 67],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))) | def f_gold ( arr , n ) : count = 0 cummulative_sum = 0 arr.sort ( ) for i in range ( n ) [MASK] if arr [ i ] >= cummulative_sum : count += 1 cummulative_sum += arr [ i ] return count cummulative_sum = 0
arr.sort ( )
for i in range ( n ) :
if arr [ i ] >= cummulative_sum :
count += 1
cummulative_sum += arr [ i ]
return count
#TOFILL
if __name__ == '__main__':
param = [
([7, 33, 34, 42, 42, 45, 73],5,),
([32, -10, -64, -20, 92, -66, 6, 44, -62, -98, 4, -48, 44, 42, 12, -90, 52, 86, -30, -80, 64, 94, 14],16,),
([0, 0, 0, 0, 1],2,),
([11, 85, 89, 71, 82, 44],3,),
([-96, -92, -78, -72, -68, -58, -52, -50, -50, -48, -42, -32, -20, -18, -4, 0, 0, 2, 18, 18, 20, 24, 32, 34, 36, 38, 38, 60, 66, 68, 70, 72, 72, 74, 76, 96, 98],21,),
([0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1],16,),
([8, 9, 10, 11, 12, 15, 17, 19, 20, 21, 24, 30, 33, 35, 36, 39, 41, 41, 42, 54, 62, 63, 68, 70, 71, 72, 77, 85, 86, 86, 94, 95, 97, 97],31,),
([96, 22, -60, 4, -94, -16, 46, 10, 76, -90, 4, 70, -72, 60, 28, -24, -66, 92, -70, 72, 36],20,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],13,),
([90, 63, 16, 40, 28, 97, 20, 63, 42, 31, 57, 84, 10, 12, 59, 69, 47, 7, 53, 67],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))) | : | [
"a) (int",
"b) i",
"c) a,",
"d) :",
"e) )"
] | d |
python | import random
def f_gold ( arr , n ) :
for i in range ( n - 1 , 0 , - 1 ) :
j = random.randint ( 0 , i + 1 )
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
return arr
import random
def f_gold ( arr , n ) :
for i in range ( n - 1 , 0 , - 1 ) :
j = random.randint ( 0 , i + 1 )
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
return arr
#TOFILL
if __name__ == '__main__':
param = [
([4, 4, 10, 10, 10, 12, 14, 16, 20, 21, 21, 22, 23, 25, 26, 28, 29, 29, 31, 32, 36, 38, 39, 40, 42, 43, 44, 46, 49, 56, 58, 61, 64, 67, 67, 73, 76, 80, 81, 82, 89, 89, 90, 92, 96, 97],38,),
([30, 78, -42, 0, 98, -58],3,),
([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],32,),
([78, 5, 87, 36, 49, 89, 35, 84, 76, 91, 7, 64, 56, 80, 92, 10, 32, 7, 77, 97, 2, 60, 27, 65, 72, 39, 97],16,),
([-98, -98, -96, -94, -86, -86, -84, -84, -78, -76, -72, -52, -48, -46, -46, -40, -38, -32, -24, -24, 2, 4, 18, 18, 18, 24, 24, 24, 26, 40, 40, 42, 48, 50, 54, 56, 58, 62, 80, 88, 92],23,),
([1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1],21,),
([2, 15, 20, 37, 42, 50, 61, 99],7,),
([-14, 86, -46, 24, -4, 18, 88, -64, 72, 68, 22, -90, -78, -20, -70, -30, 12, 92, 68, -80, 88, 98, 6, 8, -34, 96, -68, -76, -68, 84, -78, 92, -32, -82, 14, -60],22,),
([0, 1],1,),
([23, 40, 62, 21, 87, 54, 76, 72, 76, 60, 89, 74, 13, 75, 91, 53, 96, 94, 12, 36, 60, 62, 55, 82, 27, 80, 97, 42, 25, 98, 9, 8, 45, 47, 55, 67, 91, 25],32,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | import random def f_gold ( arr , n ) : for i in range ( n - 1 , 0 , - 1 ) : j = random.randint ( [MASK] , i + 1 ) arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ] return arrimport random
def f_gold ( arr , n ) :
for i in range ( n - 1 , 0 , - 1 ) :
j = random.randint ( 0 , i + 1 )
arr [ i ] , arr [ j ] = arr [ j ] , arr [ i ]
return arr
#TOFILL
if __name__ == '__main__':
param = [
([4, 4, 10, 10, 10, 12, 14, 16, 20, 21, 21, 22, 23, 25, 26, 28, 29, 29, 31, 32, 36, 38, 39, 40, 42, 43, 44, 46, 49, 56, 58, 61, 64, 67, 67, 73, 76, 80, 81, 82, 89, 89, 90, 92, 96, 97],38,),
([30, 78, -42, 0, 98, -58],3,),
([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],32,),
([78, 5, 87, 36, 49, 89, 35, 84, 76, 91, 7, 64, 56, 80, 92, 10, 32, 7, 77, 97, 2, 60, 27, 65, 72, 39, 97],16,),
([-98, -98, -96, -94, -86, -86, -84, -84, -78, -76, -72, -52, -48, -46, -46, -40, -38, -32, -24, -24, 2, 4, 18, 18, 18, 24, 24, 24, 26, 40, 40, 42, 48, 50, 54, 56, 58, 62, 80, 88, 92],23,),
([1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1],21,),
([2, 15, 20, 37, 42, 50, 61, 99],7,),
([-14, 86, -46, 24, -4, 18, 88, -64, 72, 68, 22, -90, -78, -20, -70, -30, 12, 92, 68, -80, 88, 98, 6, 8, -34, 96, -68, -76, -68, 84, -78, 92, -32, -82, 14, -60],22,),
([0, 1],1,),
([23, 40, 62, 21, 87, 54, 76, 72, 76, 60, 89, 74, 13, 75, 91, 53, 96, 94, 12, 36, 60, 62, 55, 82, 27, 80, 97, 42, 25, 98, 9, 8, 45, 47, 55, 67, 91, 25],32,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | 0 | [
"a) c",
"b) 2",
"c) arr",
"d) 0",
"e) ."
] | d |
python | def f_gold ( f , d , s ) :
mem = [ [ 0 for i in range ( s + 1 ) ] for j in range ( d + 1 ) ]
mem [ 0 ] [ 0 ] = 1
for i in range ( 1 , d + 1 ) :
for j in range ( 1 , s + 1 ) :
mem [ i ] [ j ] = mem [ i ] [ j - 1 ] + mem [ i - 1 ] [ j - 1 ]
if j - f - 1 >= 0 :
mem [ i ] [ j ] -= mem [ i - 1 ] [ j - f - 1 ]
return mem [ d ] [ s ]
mem [ i ] [ j ] = mem [ i ] [ j - 1 ] + mem [ i - 1 ] [ j - 1 ]
if j - f - 1 >= 0 :
mem [ i ] [ j ] -= mem [ i - 1 ] [ j - f - 1 ]
return mem [ d ] [ s ]
#TOFILL
if __name__ == '__main__':
param = [
(57,5,33,),
(58,45,4,),
(38,89,9,),
(5,39,30,),
(91,90,47,),
(76,56,46,),
(38,43,84,),
(97,26,52,),
(97,90,90,),
(99,2,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))) | def f_gold ( f , d , s ) : mem = [ [ 0 for i in range ( s + 1 ) ] for j in range ( d + 1 ) ] mem [ 0 ] [ 0 ] = 1 for i in range ( 1 , d + 1 ) : for j in range ( 1 , s + 1 ) : mem [ i ] [ j ] = mem [ i ] [ j - 1 ] + mem [ i - 1 [MASK] [ j - 1 ] if j - f - 1 >= 0 : mem [ i ] [ j ] -= mem [ i - 1 ] [ j - f - 1 ] return mem [ d ] [ s ] mem [ i ] [ j ] = mem [ i ] [ j - 1 ] + mem [ i - 1 ] [ j - 1 ]
if j - f - 1 >= 0 :
mem [ i ] [ j ] -= mem [ i - 1 ] [ j - f - 1 ]
return mem [ d ] [ s ]
#TOFILL
if __name__ == '__main__':
param = [
(57,5,33,),
(58,45,4,),
(38,89,9,),
(5,39,30,),
(91,90,47,),
(76,56,46,),
(38,43,84,),
(97,26,52,),
(97,90,90,),
(99,2,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))) | ] | [
"a) <bits/stdc++.h>",
"b) ]",
"c) static",
"d) n)",
"e) n"
] | b |
python | 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
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))) | 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 [MASK] 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 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))) | : | [
"a) *",
"b) void",
"c) :",
"d) y)",
"e) )"
] | c |
python | def f_gold ( mat , n ) :
flip = 0
for i in range ( n ) :
for j in range ( i ) :
if mat [ i ] [ j ] != mat [ j ] [ i ] :
flip += 1
return flip
def f_gold ( mat , n ) :
flip = 0
for i in range ( n ) :
for j in range ( i ) :
if mat [ i ] [ j ] != mat [ j ] [ i ] :
flip += 1
return flip
#TOFILL
if __name__ == '__main__':
param = [
([[16, 16, 47, 49, 50, 64, 70, 83, 88], [11, 12, 24, 32, 36, 39, 48, 58, 62], [29, 31, 35, 49, 71, 78, 82, 92, 96], [6, 21, 46, 53, 83, 88, 94, 94, 97], [29, 36, 41, 52, 83, 89, 89, 90, 90], [3, 11, 35, 45, 47, 79, 81, 85, 96], [31, 43, 62, 62, 62, 65, 66, 68, 81], [8, 9, 10, 26, 36, 43, 58, 70, 95], [2, 8, 24, 31, 42, 43, 58, 90, 94]],8,),
([[20, 8, -42, -16, 58, 58, 80], [-28, -20, 54, 94, 62, 22, -86], [-26, 86, 48, -28, 10, 90, -40], [68, 76, 16, -50, -58, 18, -86], [40, -52, 8, -14, -8, 54, 78], [82, 92, 2, 54, 62, 80, 14], [-56, -90, 74, -16, -92, 76, 32]],6,),
([[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, 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,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36, 62], [96, 13, 34, 87, 16, 6, 91, 65, 13]],7,),
([[-94, -68, -54, -36, -32, -28, -10, 10, 30, 38, 58, 66, 78, 90], [-98, -62, -44, -38, -36, -34, -34, -26, 28, 30, 34, 64, 90, 98], [-90, -88, -84, -62, -54, -24, 4, 6, 30, 32, 40, 50, 56, 68], [-98, -80, -74, -48, -18, -14, -10, 10, 24, 42, 54, 54, 74, 96], [-84, -68, -52, -32, -16, -8, -4, 6, 44, 48, 50, 78, 80, 84], [-96, -84, -78, -42, -38, -36, -16, -14, 2, 14, 16, 24, 28, 40], [-94, -92, -86, -84, -62, -58, -52, -46, -22, -12, 16, 32, 62, 68], [-92, -72, -68, -62, -50, -50, -38, -12, 22, 40, 40, 42, 48, 70], [-90, -72, -42, -28, 16, 22, 26, 36, 42, 50, 68, 82, 90, 94], [-86, -78, -66, -60, -46, -30, -26, -20, -14, 54, 60, 66, 76, 84], [-98, -96, -76, -64, -30, -16, -4, 14, 22, 28, 48, 64, 74, 96], [-88, -68, -58, -50, -28, -16, -8, 2, 18, 20, 28, 58, 60, 82], [-94, -82, -70, 14, 14, 24, 30, 36, 48, 50, 50, 76, 78, 96], [-88, -74, -12, 6, 10, 18, 28, 46, 56, 58, 84, 90, 90, 96]],11,),
([[1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0], [0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1], [1, 0, 0, 0, 1, 0, 1, 0, 0, 0,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, 1, 0, 0], [0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1]],14,),
([[1, 4, 11, 16, 18, 19, 20, 25, 27, 29, 30, 30, 33, 34, 35, 36, 37, 38, 40, 40, 49, 49, 51, 51, 53, 56, 57, 59, 60, 61, 61, 62, 63, 69, 72, 77, 79, 82, 85, 86, 89, 94, 97, 98], [2, 6, 8, 10, 11, 11, 11, 14, 15, 19, 20, 21, 21, 23, 26, 31, 31, 34, 37, 37, 40, 40, 41, 47, 47, 48, 52, 53, 55, 59, 67, 77, 81, 82, 82, 83, 88, 92, 92, 93, 94, 96, 97, 98], [3, 4, 4, 6, 10, 13, 13, 13, 16, 18, 24, 25, 26, 27, 28, 31, 32, 34, 35, 38, 45, 50, 52, 53, 55, 57, 57, 58, 62, 64, 65, 70, 71, 72, 75, 77, 82, 86, 86, 92, 93, 94, 98, 99], [2, 4, 5, 8, 10, 10, 13, 14, 15, 18, 19, 21, 21, 21, 24, 24, 28, 30, 30, 31, 36, 37, 38, 48, 48, 52, 53, 58, 59, 60, 61, 67, 75, 77, 77, 78, 80, 81, 86, 87, 89, 89, 96, 96], [2, 4, 8, 16, 20, 20, 24, 26, 27, 28, 29, 36, 37, 43, 43, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 56, 59, 59, 62, 70, 71, 71, 72, 73, 79, 79, 86, 86, 89, 91, 91, 91, 97], [1, 1, 2, 5, 6, 10, 17, 21, 22, 23, 23, 28, 31, 34, 36, 38, 41, 42, 43, 44, 52, 53, 54, 56, 56, 58, 59, 62, 64, 67, 67, 68, 70, 71, 77, 81, 82, 83, 83, 85, 88, 89, 90, 98], [1, 1, 2, 3, 3, 4, 6, 6, 7, 10, 11, 12, 13, 14, 15, 15, 19, 21, 25, 27, 42, 45, 46, 50, 51, 51, 52, 55, 60, 60, 67, 70, 71, 71, 77, 78, 81, 85, 86, 86, 87, 90, 95, 99], [2, 4, 7, 9, 9, 11, 15, 17, 19, 22, 27, 27, 30, 32, 34, 35, 35, 36, 41, 42, 46, 46, 48, 54, 55, 56, 59, 61, 61, 65, 66, 67, 70, 73, 80, 81, 85, 89, 90, 91, 92, 96, 96, 97], [7, 8, 12, 14, 17, 19, 21, 24, 27, 28, 34, 36, 38, 48, 54, 57, 59, 59, 62, 66, 66, 67, 70, 71, 71, 71, 72, 73, 74, 74, 76, 76, 78, 79, 80, 80, 83, 88, 88, 90, 92, 95, 96, 98], [3, 3, 8, 10, 10, 15, 16, 20, 25, 25, 25, 29, 34, 36, 42, 50, 52, 54, 56, 58, 59, 63, 64, 65, 71, 73, 73, 74, 75, 75, 76, 76, 78, 80, 82, 86, 86, 87, 87, 92, 94, 94, 96, 99], [7, 9, 12, 15, 24, 24, 25, 26, 27, 28, 32, 37, 38, 43, 44, 46, 50, 50, 52, 52, 55, 56, 56, 56, 58, 58, 59, 62, 64, 65, 68, 72, 72, 80, 85, 85, 86, 90, 91, 92, 98, 98, 98, 99], [2, 7, 9, 18, 28, 29, 31, 32, 32, 38, 39, 39, 41, 41, 45, 48, 49, 49, 49, 50, 50, 58, 58, 62, 62, 63, 68, 69, 69, 71, 72, 74, 74, 75, 77, 78, 79, 81, 82, 82, 83, 83, 95, 98], [3, 5, 6, 6, 7, 10, 10, 13, 15, 17, 22, 23, 25, 25, 25, 25, 27, 29, 35, 37, 38, 46, 47, 50, 50, 51, 53, 56, 56, 59, 71, 71, 72, 74, 77, 79, 80, 83, 84, 90, 90, 92, 95, 98], [1, 9, 19, 20, 22, 22, 22, 23, 24, 28, 32, 32, 32, 36, 36, 37, 37, 39, 45, 50, 53, 56, 58, 58, 60, 64, 66, 68, 68, 69, 72, 73, 73, 73, 75, 75, 79, 80, 80, 82, 86, 87, 91, 99], [5, 9, 12, 13, 14, 18, 23, 25, 25, 28, 29, 32, 33, 34, 39, 41, 46, 49, 50, 52, 55, 55, 56, 59, 61, 63, 65, 65, 67, 69, 69, 74, 75, 78, 80, 81, 85, 85, 86, 88, 88, 92, 96, 98], [4, 4, 9, 11, 12, 20, 23, 23, 24, 27, 33, 35, 37, 40, 41, 43, 44, 45, 45, 49, 50, 51, 54, 54, 56, 58, 63, 65, 71, 71, 72, 73, 75, 76, 76, 78, 81, 84, 86, 88, 90, 90, 96, 99], [1, 2, 8, 9, 10, 15, 17, 18, 18, 19, 20, 21, 21, 21, 26, 27, 29, 32, 33, 34, 34, 39, 44, 47, 55, 56, 58, 60, 62, 64, 65, 70, 70, 72, 74, 74, 75, 76, 79, 81, 84, 86, 90, 93], [2, 2, 6, 8, 9, 13, 15, 16, 16, 17, 18, 20, 24, 28, 33, 34, 36, 39, 40, 44, 46, 48, 50, 53, 53, 54, 61, 67, 69, 71, 72, 75, 76, 78, 83, 87, 88, 91, 93, 94, 94, 96, 97, 98], [2, 6, 9, 10, 12, 13, 14, 15, 16, 17, 21, 22, 29, 29, 31, 31, 34, 38, 38, 39, 40, 43, 44, 46, 48, 50, 52, 52, 57, 62, 65, 66, 68, 69, 69, 73, 74, 77, 79, 80, 83, 84, 87, 95], [7, 7, 13, 14, 19, 22, 24, 24, 25, 30, 30, 32, 39, 41, 43, 48, 49, 50, 50, 52, 53, 54, 58, 61, 62, 65, 65, 66, 66, 67, 69, 70, 73, 73, 75, 77, 88, 89, 92, 92, 96, 96, 97, 98], [1, 3, 3, 4, 12, 14, 27, 32, 32, 33, 33, 37, 42, 42, 42, 43, 47, 49, 53, 55, 56, 57, 59, 60, 61, 61, 61, 65, 66, 66, 67, 71, 72, 73, 78, 79, 80, 82, 87, 89, 92, 94, 95, 96], [5, 6, 6, 11, 11, 13, 18, 18, 19, 21, 25, 28, 31, 37, 40, 40, 43, 45, 51, 53, 53, 58, 63, 64, 67, 68, 73, 75, 75, 77, 82, 84, 84, 86, 88, 91, 92, 94, 94, 96, 97, 97, 98, 99], [1, 2, 3, 7, 8, 8, 8, 17, 23, 23, 24, 31, 33, 33, 36, 37, 38, 38, 43, 44, 47, 47, 47, 49, 52, 55, 56, 56, 59, 68, 71, 72, 72, 75, 79, 79, 80, 82, 83, 92, 93, 97, 97, 98], [1, 2, 6, 6, 11, 13, 15, 15, 17, 20, 20, 24, 27, 27, 28, 30, 30, 33, 36, 37, 38, 40, 40, 40, 40, 42, 46, 51, 58, 60, 64, 65, 67, 71, 72, 75, 78, 82, 85, 87, 89, 97, 98, 98], [1, 2, 3, 5, 7, 7, 7, 16, 16, 18, 20, 20, 23, 23, 32, 32, 33, 33, 34, 38, 39, 41, 42, 43, 45, 47, 47, 50, 50, 53, 53, 56, 59, 60, 61, 64, 72, 79, 79, 84, 85, 89, 94, 98], [2, 9, 11, 11, 14, 25, 26, 27, 29, 31, 32, 34, 35, 38, 38, 38, 40, 46, 47, 47, 48, 49, 51, 55, 58, 63, 63, 66, 67, 67, 68, 69, 70, 77, 80, 81, 83, 85, 89, 90, 92, 95, 97, 98], [1, 2, 5, 8, 8, 9, 12, 12, 17, 19, 20, 28, 29, 35, 38, 38, 38, 41, 43, 45, 48, 51, 56, 62, 68, 69, 70, 73, 74, 74, 77, 79, 81, 83, 84, 87, 88, 89, 92, 93, 93, 97, 98, 99], [2, 3, 4, 5, 6, 6, 10, 11, 11, 13, 14, 14, 18, 18, 19, 20, 26, 30, 31, 32, 32, 34, 34, 35, 38, 42, 43, 44, 48, 53, 55, 56, 59, 59, 65, 72, 78, 84, 85, 88, 90, 97, 97, 98], [1, 9, 10, 15, 17, 17, 18, 18, 20, 24, 25, 26, 30, 31, 33, 35, 36, 42, 43, 43, 44, 46, 46, 48, 49, 49, 49, 49, 51, 51, 52, 59, 62, 64, 65, 71, 72, 74, 79, 79, 89, 90, 94, 97], [1, 2, 10, 11, 15, 18, 18, 19, 21, 22, 25, 28, 28, 30, 37, 38, 40, 41, 46, 46, 49, 51, 52, 53, 53, 56, 64, 69, 69, 72, 72, 74, 77, 77, 77, 78, 78, 84, 85, 96, 97, 98, 98, 99], [1, 6, 6, 6, 7, 7, 10, 11, 16, 17, 18, 18, 27, 27, 33, 33, 35, 38, 41, 46, 47, 53, 54, 54, 56, 62, 63, 63, 66, 67, 67, 77, 77, 78, 79, 83, 88, 88, 89, 92, 95, 95, 96, 99], [3, 4, 6, 8, 8, 8, 10, 12, 15, 17, 19, 19, 22, 22, 25, 28, 28, 29, 34, 34, 39, 41, 42, 43, 46, 46, 46, 53, 53, 54, 56, 56, 56, 63, 64, 68, 70, 75, 82, 84, 85, 94, 95, 96], [3, 4, 4, 5, 8, 9, 17, 21, 23, 25, 31, 32, 35, 38, 38, 39, 39, 43, 49, 54, 56, 61, 61, 64, 64, 65, 65, 65, 69, 70, 70, 70, 71, 72, 74, 74, 77, 78, 78, 80, 84, 90, 96, 99], [1, 3, 6, 12, 13, 13, 13, 20, 21, 21, 24, 29, 33, 33, 38, 40, 42, 42, 45, 46, 47, 49, 55, 57, 58, 60, 60, 62, 63, 63, 67, 68, 69, 70, 72, 72, 74, 75, 75, 77, 77, 88, 95, 99], [3, 4, 4, 8, 9, 9, 9, 11, 12, 12, 15, 16, 17, 18, 20, 21, 22, 22, 25, 28, 29, 33, 34, 35, 36, 43, 46, 57, 58, 59, 63, 68, 69, 72, 76, 78, 83, 89, 90, 91, 93, 96, 97, 99], [1, 9, 11, 12, 13, 15, 19, 26, 27, 32, 34, 42, 42, 44, 48, 54, 54, 56, 57, 58, 60, 64, 76, 80, 81, 82, 82, 82, 83, 84, 85, 85, 85, 86, 87, 92, 94, 95, 96, 97, 97, 97, 98, 98], [5, 7, 16, 20, 21, 22, 27, 29, 30, 31, 32, 33, 36, 37, 38, 44, 47, 47, 50, 53, 54, 56, 58, 60, 60, 61, 62, 63, 63, 64, 64, 68, 69, 77, 81, 81, 82, 82, 84, 86, 87, 90, 92, 96], [3, 3, 6, 6, 8, 8, 9, 13, 20, 21, 27, 27, 29, 32, 34, 40, 43, 47, 49, 49, 50, 53, 54, 54, 57, 61, 63, 65, 66, 71, 72, 72, 73, 73, 74, 75, 75, 75, 79, 82, 85, 90, 92, 94], [2, 3, 5, 5, 9, 9, 14, 17, 20, 21, 23, 27, 29, 31, 33, 36, 38, 42, 43, 45, 45, 46, 47, 47, 48, 53, 54, 55, 56, 58, 60, 64, 67, 67, 69, 77, 77, 84, 87, 92, 92, 93, 94, 98], [4, 9, 10, 12, 13, 15, 16, 20, 24, 25, 26, 27, 31, 34, 38, 38, 40, 41, 43, 44, 46, 46, 47, 47, 48, 57, 64, 74, 77, 78, 79, 82, 82, 85, 87, 87, 88, 89, 91, 92, 94, 96, 97, 99], [2, 2, 4, 8, 10, 12, 13, 20, 21, 21, 29, 32, 34, 40, 40, 40, 43, 45, 46, 47, 47, 48, 49, 51, 57, 67, 68, 68, 70, 72, 76, 76, 77, 78, 79, 81, 84, 88, 89, 91, 94, 95, 97, 98], [3, 4, 4, 6, 8, 8, 9, 11, 14, 14, 15, 16, 16, 22, 22, 23, 25, 30, 30, 33, 33, 35, 36, 37, 40, 40, 42, 42, 44, 52, 55, 56, 56, 58, 60, 64, 64, 66, 67, 69, 80, 81, 81, 91], [7, 10, 10, 11, 13, 13, 13, 15, 23, 25, 27, 28, 28, 30, 34, 35, 37, 38, 39, 44, 45, 46, 49, 50, 53, 53, 56, 60, 60, 64, 64, 65, 66, 68, 68, 70, 77, 78, 79, 80, 81, 85, 92, 95], [1, 3, 7, 7, 9, 11, 12, 19, 19, 20, 22, 22, 25, 26, 34, 38, 43, 45, 47, 49, 50, 54, 55, 55, 57, 60, 62, 62, 64, 69, 70, 72, 72, 76, 77, 79, 83, 89, 93, 94, 95, 98, 99, 99]],22,),
([[-6]],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, 1, 1, 1, 1, 1, 1, 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 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, 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,),
([[57, 35, 39, 48, 79, 25, 49, 44, 40, 59, 90, 18, 4, 14, 32, 39, 2, 15, 34, 91, 11, 16, 23, 1, 7, 3, 40, 93, 14, 33, 51, 35, 78, 35, 67, 3, 38, 71], [57, 4, 10, 9, 40, 48, 47, 9, 33, 91, 47, 12, 66, 45, 90, 89, 94, 69, 71, 43, 83, 23, 30, 15, 52, 78, 42, 34, 65, 45, 35, 9, 48, 4, 6, 1, 40, 13], [58, 15, 43, 30, 58, 15, 58, 90, 96, 92, 80, 66, 14, 16, 79, 49, 91, 19, 1, 64, 21, 27, 41, 48, 21, 21, 21, 26, 70, 97, 63, 35, 92, 96, 61, 3, 86, 47], [92, 91, 51, 18, 77, 83, 67, 81, 77, 78, 53, 40, 53, 35, 43, 16, 39, 69, 10, 38, 19, 3, 33, 94, 60, 84, 95, 76, 23, 52, 72, 67, 14, 61, 26, 52, 81, 62], [27, 60, 67, 50, 57, 97, 65, 22, 57, 91, 71, 61, 5, 56, 59, 55, 67, 23, 89, 88, 61, 21, 70, 69, 63, 59, 36, 29, 63, 60, 82, 33, 60, 83, 24, 22, 69, 96], [89, 59, 51, 55, 68, 44, 41, 11, 19, 44, 14, 47, 14, 3, 23, 84, 76, 95, 19, 69, 67, 62, 42, 69, 43, 18, 93, 93, 6, 18, 16, 37, 28, 46, 53, 82, 5, 64], [73, 22, 7, 71, 4, 28, 4, 43, 3, 28, 82, 66, 45, 52, 59, 66, 80, 50, 84, 82, 22, 52, 98, 13, 48, 33, 58, 15, 44, 79, 91, 80, 30, 67, 72, 23, 14, 1], [70, 78, 31, 58, 42, 81, 50, 88, 23, 99, 7, 59, 1, 63, 60, 8, 69, 81, 19, 96, 61, 16, 37, 47, 69, 83, 70, 77, 72, 45, 41, 34, 78, 71, 71, 6, 94, 53], [38, 46, 91, 77, 24, 94, 98, 68, 4, 23, 30, 65, 12, 71, 20, 21, 84, 39, 83, 98, 79, 72, 76, 71, 99, 73, 27, 47, 55, 43, 4, 10, 38, 93, 14, 65, 18, 98], [66, 76, 94, 19, 66, 43, 17, 53, 69, 25, 48, 29, 70, 65, 90, 93, 6, 85, 21, 33, 12, 90, 66, 32, 14, 88, 13, 6, 12, 5, 57, 75, 87, 44, 72, 45, 66, 48], [66, 44, 52, 38, 99, 65, 41, 88, 18, 93, 96, 39, 45, 19, 35, 53, 68, 76, 14, 6, 74, 30, 18, 28, 39, 67, 20, 48, 9, 77, 25, 45, 72, 48, 36, 24, 36, 16], [14, 90, 11, 65, 5, 97, 61, 91, 5, 47, 11, 85, 83, 39, 69, 12, 76, 44, 52, 24, 35, 99, 23, 94, 56, 55, 71, 19, 3, 86, 7, 1, 44, 20, 95, 81, 77, 43], [10, 93, 48, 53, 66, 88, 68, 58, 67, 17, 7, 54, 16, 33, 46, 15, 34, 56, 84, 18, 46, 93, 54, 99, 63, 47, 28, 48, 35, 94, 77, 34, 56, 36, 43, 12, 73, 90], [8, 56, 60, 26, 78, 18, 28, 30, 65, 81, 84, 40, 74, 17, 52, 46, 28, 4, 14, 41, 2, 91, 9, 16, 85, 82, 59, 58, 63, 35, 1, 13, 48, 39, 1, 12, 31, 34], [48, 3, 7, 11, 44, 41, 4, 35, 30, 23, 86, 98, 35, 82, 72, 49, 58, 32, 71, 58, 92, 49, 88, 84, 80, 3, 86, 37, 65, 91, 12, 7, 44, 74, 50, 65, 52, 16], [27, 21, 48, 22, 70, 83, 45, 34, 84, 45, 39, 9, 33, 76, 51, 19, 82, 27, 30, 83, 93, 62, 21, 84, 13, 24, 22, 95, 86, 33, 18, 74, 88, 95, 41, 91, 51, 7], [62, 22, 26, 38, 15, 3, 28, 93, 54, 23, 46, 10, 36, 83, 66, 14, 32, 80, 73, 58, 79, 51, 34, 94, 70, 24, 7, 64, 76, 96, 3, 85, 93, 79, 12, 37, 94, 93], [33, 20, 76, 50, 37, 56, 92, 79, 66, 76, 28, 69, 38, 6, 90, 30, 51, 95, 34, 15, 40, 24, 47, 99, 50, 3, 5, 8, 50, 35, 27, 30, 44, 31, 64, 79, 13, 73], [69, 56, 99, 12, 4, 16, 97, 89, 62, 15, 41, 67, 82, 6, 20, 80, 98, 42, 78, 86, 77, 59, 21, 11, 96, 96, 34, 69, 84, 67, 91, 64, 67, 75, 50, 47, 59, 79], [82, 78, 57, 77, 3, 60, 27, 93, 26, 98, 24, 38, 49, 31, 57, 44, 23, 33, 68, 66, 26, 17, 4, 76, 11, 10, 7, 98, 73, 57, 55, 37, 41, 57, 82, 29, 80, 86], [78, 61, 89, 44, 96, 59, 79, 39, 55, 23, 94, 23, 59, 4, 37, 19, 10, 94, 72, 90, 25, 86, 50, 68, 71, 34, 56, 72, 46, 45, 28, 85, 91, 50, 34, 71, 49, 68], [46, 60, 27, 21, 44, 61, 86, 9, 64, 78, 53, 97, 30, 57, 24, 67, 38, 30, 61, 87, 79, 40, 20, 59, 31, 20, 2, 22, 96, 63, 9, 8, 81, 96, 19, 60, 97, 40], [61, 59, 30, 75, 21, 33, 92, 89, 85, 72, 98, 3, 23, 61, 87, 93, 92, 83, 9, 82, 44, 89, 68, 54, 14, 76, 49, 29, 44, 33, 94, 23, 17, 46, 45, 50, 1, 88], [53, 90, 59, 33, 63, 59, 94, 93, 7, 61, 96, 16, 51, 52, 3, 42, 9, 10, 94, 66, 14, 89, 72, 94, 99, 14, 74, 45, 78, 99, 54, 53, 80, 19, 87, 48, 12, 38], [9, 17, 96, 94, 10, 97, 46, 40, 35, 37, 16, 11, 88, 65, 94, 87, 75, 42, 16, 32, 95, 4, 54, 42, 62, 10, 90, 31, 79, 45, 42, 88, 96, 47, 88, 4, 10, 76], [1, 14, 14, 41, 6, 62, 47, 66, 23, 51, 65, 6, 16, 47, 32, 22, 93, 54, 72, 82, 40, 24, 94, 62, 25, 61, 41, 14, 95, 50, 98, 30, 65, 22, 85, 79, 3, 10], [64, 40, 52, 51, 32, 35, 71, 5, 89, 12, 91, 33, 78, 88, 39, 68, 44, 30, 5, 57, 18, 30, 58, 57, 22, 44, 12, 16, 50, 42, 80, 85, 53, 29, 5, 56, 14, 92], [35, 81, 5, 71, 97, 39, 34, 19, 78, 75, 51, 49, 39, 12, 80, 2, 90, 35, 25, 48, 87, 75, 23, 92, 33, 78, 39, 37, 70, 74, 62, 92, 12, 99, 18, 33, 89, 28], [79, 82, 20, 51, 35, 70, 24, 9, 34, 25, 27, 53, 84, 45, 31, 20, 58, 55, 12, 51, 78, 45, 48, 66, 92, 7, 93, 72, 93, 59, 70, 66, 67, 11, 10, 95, 57, 65], [56, 23, 53, 92, 41, 98, 86, 27, 56, 38, 95, 34, 5, 83, 80, 49, 10, 71, 54, 40, 81, 44, 91, 61, 96, 22, 53, 7, 60, 35, 65, 93, 2, 59, 92, 60, 80, 70], [58, 75, 10, 84, 37, 32, 71, 91, 66, 98, 51, 28, 17, 91, 45, 22, 13, 19, 93, 85, 19, 11, 66, 2, 87, 58, 24, 42, 15, 21, 95, 59, 67, 27, 39, 48, 94, 53], [48, 39, 19, 44, 34, 20, 42, 38, 95, 24, 69, 5, 12, 75, 17, 5, 72, 70, 91, 24, 20, 45, 14, 29, 43, 10, 27, 98, 93, 21, 89, 23, 40, 38, 36, 99, 90, 82], [38, 1, 96, 18, 20, 6, 20, 88, 73, 92, 41, 90, 2, 18, 78, 89, 7, 81, 34, 8, 36, 88, 60, 64, 56, 70, 53, 27, 41, 54, 35, 94, 30, 20, 90, 47, 18, 75], [49, 44, 96, 84, 67, 89, 40, 83, 21, 42, 41, 3, 19, 59, 94, 65, 56, 16, 79, 61, 59, 63, 35, 32, 2, 8, 73, 65, 87, 56, 83, 16, 85, 83, 80, 11, 92, 74], [59, 63, 9, 66, 85, 47, 15, 81, 41, 75, 3, 5, 73, 2, 99, 89, 87, 67, 10, 2, 97, 20, 57, 75, 18, 77, 66, 36, 78, 43, 5, 76, 31, 3, 87, 62, 13, 38], [68, 88, 92, 3, 70, 43, 61, 91, 7, 17, 56, 91, 74, 15, 31, 8, 17, 25, 75, 5, 55, 46, 73, 48, 21, 53, 9, 23, 45, 30, 63, 67, 29, 53, 30, 68, 58, 41], [14, 51, 22, 93, 95, 99, 28, 63, 48, 48, 31, 5, 8, 96, 86, 98, 21, 34, 16, 31, 2, 27, 25, 34, 30, 68, 27, 86, 30, 24, 25, 14, 72, 6, 28, 5, 30, 97], [93, 73, 8, 62, 72, 47, 31, 64, 16, 42, 84, 12, 40, 49, 52, 62, 96, 3, 95, 10, 35, 62, 69, 77, 31, 90, 51, 13, 91, 58, 6, 77, 5, 86, 81, 19, 76, 12]],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))) | def f_gold ( mat , n ) : flip = 0 for i in range ( [MASK] ) : for j in range ( i ) : if mat [ i ] [ j ] != mat [ j ] [ i ] : flip += 1 return flip
def f_gold ( mat , n ) :
flip = 0
for i in range ( n ) :
for j in range ( i ) :
if mat [ i ] [ j ] != mat [ j ] [ i ] :
flip += 1
return flip
#TOFILL
if __name__ == '__main__':
param = [
([[16, 16, 47, 49, 50, 64, 70, 83, 88], [11, 12, 24, 32, 36, 39, 48, 58, 62], [29, 31, 35, 49, 71, 78, 82, 92, 96], [6, 21, 46, 53, 83, 88, 94, 94, 97], [29, 36, 41, 52, 83, 89, 89, 90, 90], [3, 11, 35, 45, 47, 79, 81, 85, 96], [31, 43, 62, 62, 62, 65, 66, 68, 81], [8, 9, 10, 26, 36, 43, 58, 70, 95], [2, 8, 24, 31, 42, 43, 58, 90, 94]],8,),
([[20, 8, -42, -16, 58, 58, 80], [-28, -20, 54, 94, 62, 22, -86], [-26, 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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, 1]],38,),
([[66, 95, 76, 26, 11, 80, 1, 59, 16], [79, 5, 47, 12, 55, 11, 49, 12, 84], [77, 16, 8, 92, 95, 71, 16, 71, 44], [14, 17, 30, 80, 42, 42, 35, 62, 87], [47, 75, 69, 34, 25, 54, 87, 49, 62], [9, 20, 35, 98, 95, 57, 51, 64, 72], [66, 38, 22, 59, 82, 49, 40, 46, 64], [31, 15, 63, 84, 6, 18, 93, 36, 62], [96, 13, 34, 87, 16, 6, 91, 65, 13]],7,),
([[-94, -68, -54, -36, -32, -28, -10, 10, 30, 38, 58, 66, 78, 90], [-98, -62, -44, -38, -36, -34, -34, -26, 28, 30, 34, 64, 90, 98], [-90, -88, -84, -62, -54, -24, 4, 6, 30, 32, 40, 50, 56, 68], [-98, -80, -74, -48, -18, -14, -10, 10, 24, 42, 54, 54, 74, 96], [-84, -68, -52, -32, -16, -8, -4, 6, 44, 48, 50, 78, 80, 84], [-96, -84, -78, -42, -38, -36, -16, -14, 2, 14, 16, 24, 28, 40], [-94, -92, -86, -84, -62, -58, -52, -46, -22, -12, 16, 32, 62, 68], [-92, -72, -68, -62, -50, -50, -38, -12, 22, 40, 40, 42, 48, 70], [-90, -72, -42, -28, 16, 22, 26, 36, 42, 50, 68, 82, 90, 94], [-86, -78, -66, -60, -46, -30, -26, -20, -14, 54, 60, 66, 76, 84], [-98, -96, -76, -64, -30, -16, -4, 14, 22, 28, 48, 64, 74, 96], [-88, -68, -58, -50, -28, -16, -8, 2, 18, 20, 28, 58, 60, 82], [-94, -82, -70, 14, 14, 24, 30, 36, 48, 50, 50, 76, 78, 96], [-88, -74, -12, 6, 10, 18, 28, 46, 56, 58, 84, 90, 90, 96]],11,),
([[1, 0, 1, 1, 1, 0,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, 0, 1, 1, 0, 0, 0, 1], [0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0], [1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1], [0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0], [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1]],14,),
([[1, 4, 11, 16, 18, 19, 20, 25, 27, 29, 30, 30, 33, 34, 35, 36, 37, 38, 40, 40, 49, 49, 51, 51, 53, 56, 57, 59, 60, 61, 61, 62, 63, 69, 72, 77, 79, 82, 85, 86, 89, 94, 97, 98], [2, 6, 8, 10, 11, 11, 11, 14, 15, 19, 20, 21, 21, 23, 26, 31, 31, 34, 37, 37, 40, 40, 41, 47, 47, 48, 52, 53, 55, 59, 67, 77, 81, 82, 82, 83, 88, 92, 92, 93, 94, 96, 97, 98], [3, 4, 4, 6, 10, 13, 13, 13, 16, 18, 24, 25, 26, 27, 28, 31, 32, 34, 35, 38, 45, 50, 52, 53, 55, 57, 57, 58, 62, 64, 65, 70, 71, 72, 75, 77, 82, 86, 86, 92, 93, 94, 98, 99], [2, 4, 5, 8, 10, 10, 13, 14, 15, 18, 19, 21, 21, 21, 24, 24, 28, 30, 30, 31, 36, 37, 38, 48, 48, 52, 53, 58, 59, 60, 61, 67, 75, 77, 77, 78, 80, 81, 86, 87, 89, 89, 96, 96], [2, 4, 8, 16, 20, 20, 24, 26, 27, 28, 29, 36, 37, 43, 43, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 56, 59, 59, 62, 70, 71, 71, 72, 73, 79, 79, 86, 86, 89, 91, 91, 91, 97], [1, 1, 2, 5, 6, 10, 17, 21, 22, 23, 23, 28, 31, 34, 36, 38, 41, 42, 43, 44, 52, 53, 54, 56, 56, 58, 59, 62, 64, 67, 67, 68, 70, 71, 77, 81, 82, 83, 83, 85, 88, 89, 90, 98], [1, 1, 2, 3, 3, 4, 6, 6, 7, 10, 11, 12, 13, 14, 15, 15, 19, 21, 25, 27, 42, 45, 46, 50, 51, 51, 52, 55, 60, 60, 67, 70, 71, 71, 77, 78, 81, 85, 86, 86, 87, 90, 95, 99], [2, 4, 7, 9, 9, 11, 15, 17, 19, 22, 27, 27, 30, 32, 34, 35, 35, 36, 41, 42, 46, 46, 48, 54, 55, 56, 59, 61, 61, 65, 66, 67, 70, 73, 80, 81, 85, 89, 90, 91, 92, 96, 96, 97], [7, 8, 12, 14, 17, 19, 21, 24, 27, 28, 34, 36, 38, 48, 54, 57, 59, 59, 62, 66, 66, 67, 70, 71, 71, 71, 72, 73, 74, 74, 76, 76, 78, 79, 80, 80, 83, 88, 88, 90, 92, 95, 96, 98], [3, 3, 8, 10, 10, 15, 16, 20, 25, 25, 25, 29, 34, 36, 42, 50, 52, 54, 56, 58, 59, 63, 64, 65, 71, 73, 73, 74, 75, 75, 76, 76, 78, 80, 82, 86, 86, 87, 87, 92, 94, 94, 96, 99], [7, 9, 12, 15, 24, 24, 25, 26, 27, 28, 32, 37, 38, 43, 44, 46, 50, 50, 52, 52, 55, 56, 56, 56, 58, 58, 59, 62, 64, 65, 68, 72, 72, 80, 85, 85, 86, 90, 91, 92, 98, 98, 98, 99], [2, 7, 9, 18, 28, 29, 31, 32, 32, 38, 39, 39, 41, 41, 45, 48, 49, 49, 49, 50, 50, 58, 58, 62, 62, 63, 68, 69, 69, 71, 72, 74, 74, 75, 77, 78, 79, 81, 82, 82, 83, 83, 95, 98], [3, 5, 6, 6, 7, 10, 10, 13, 15, 17, 22, 23, 25, 25, 25, 25, 27, 29, 35, 37, 38, 46, 47, 50, 50, 51, 53, 56, 56, 59, 71, 71, 72, 74, 77, 79, 80, 83, 84, 90, 90, 92, 95, 98], [1, 9, 19, 20, 22, 22, 22, 23, 24, 28, 32, 32, 32, 36, 36, 37, 37, 39, 45, 50, 53, 56, 58, 58, 60, 64, 66, 68, 68, 69, 72, 73, 73, 73, 75, 75, 79, 80, 80, 82, 86, 87, 91, 99], [5, 9, 12, 13, 14, 18, 23, 25, 25, 28, 29, 32, 33, 34, 39, 41, 46, 49, 50, 52, 55, 55, 56, 59, 61, 63, 65, 65, 67, 69, 69, 74, 75, 78, 80, 81, 85, 85, 86, 88, 88, 92, 96, 98], [4, 4, 9, 11, 12, 20, 23, 23, 24, 27, 33, 35, 37, 40, 41, 43, 44, 45, 45, 49, 50, 51, 54, 54, 56, 58, 63, 65, 71, 71, 72, 73, 75, 76, 76, 78, 81, 84, 86, 88, 90, 90, 96, 99], [1, 2, 8, 9, 10, 15, 17, 18, 18, 19, 20, 21, 21, 21, 26, 27, 29, 32, 33, 34, 34, 39, 44, 47, 55, 56, 58, 60, 62, 64, 65, 70, 70, 72, 74, 74, 75, 76, 79, 81, 84, 86, 90, 93], [2, 2, 6, 8, 9, 13, 15, 16, 16, 17, 18, 20, 24, 28, 33, 34, 36, 39, 40, 44, 46, 48, 50, 53, 53, 54, 61, 67, 69, 71, 72, 75, 76, 78, 83, 87, 88, 91, 93, 94, 94, 96, 97, 98], [2, 6, 9, 10, 12, 13, 14, 15, 16, 17, 21, 22, 29, 29, 31, 31, 34, 38, 38, 39, 40, 43, 44, 46, 48, 50, 52, 52, 57, 62, 65, 66, 68, 69, 69, 73, 74, 77, 79, 80, 83, 84, 87, 95], [7, 7, 13, 14, 19, 22, 24, 24, 25, 30, 30, 32, 39, 41, 43, 48, 49, 50, 50, 52, 53, 54, 58, 61, 62, 65, 65, 66, 66, 67, 69, 70, 73, 73, 75, 77, 88, 89, 92, 92, 96, 96, 97, 98], [1, 3, 3, 4, 12, 14, 27, 32, 32, 33, 33, 37, 42, 42, 42, 43, 47, 49, 53, 55, 56, 57, 59, 60, 61, 61, 61, 65, 66, 66, 67, 71, 72, 73, 78, 79, 80, 82, 87, 89, 92, 94, 95, 96], [5, 6, 6, 11, 11, 13, 18, 18, 19, 21, 25, 28, 31, 37, 40, 40, 43, 45, 51, 53, 53, 58, 63, 64, 67, 68, 73, 75, 75, 77, 82, 84, 84, 86, 88, 91, 92, 94, 94, 96, 97, 97, 98, 99], [1, 2, 3, 7, 8, 8, 8, 17, 23, 23, 24, 31, 33, 33, 36, 37, 38, 38, 43, 44, 47, 47, 47, 49, 52, 55, 56, 56, 59, 68, 71, 72, 72, 75, 79, 79, 80, 82, 83, 92, 93, 97, 97, 98], [1, 2, 6, 6, 11, 13, 15, 15, 17, 20, 20, 24, 27, 27, 28, 30, 30, 33, 36, 37, 38, 40, 40, 40, 40, 42, 46, 51, 58, 60, 64, 65, 67, 71, 72, 75, 78, 82, 85, 87, 89, 97, 98, 98], [1, 2, 3, 5, 7, 7, 7, 16, 16, 18, 20, 20, 23, 23, 32, 32, 33, 33, 34, 38, 39, 41, 42, 43, 45, 47, 47, 50, 50, 53, 53, 56, 59, 60, 61, 64, 72, 79, 79, 84, 85, 89, 94, 98], [2, 9, 11, 11, 14, 25, 26, 27, 29, 31, 32, 34, 35, 38, 38, 38, 40, 46, 47, 47, 48, 49, 51, 55, 58, 63, 63, 66, 67, 67, 68, 69, 70, 77, 80, 81, 83, 85, 89, 90, 92, 95, 97, 98], [1, 2, 5, 8, 8, 9, 12, 12, 17, 19, 20, 28, 29, 35, 38, 38, 38, 41, 43, 45, 48, 51, 56, 62, 68, 69, 70, 73, 74, 74, 77, 79, 81, 83, 84, 87, 88, 89, 92, 93, 93, 97, 98, 99], [2, 3, 4, 5, 6, 6, 10, 11, 11, 13, 14, 14, 18, 18, 19, 20, 26, 30, 31, 32, 32, 34, 34, 35, 38, 42, 43, 44, 48, 53, 55, 56, 59, 59, 65, 72, 78, 84, 85, 88, 90, 97, 97, 98], [1, 9, 10, 15, 17, 17, 18, 18, 20, 24, 25, 26, 30, 31, 33, 35, 36, 42, 43, 43, 44, 46, 46, 48, 49, 49, 49, 49, 51, 51, 52, 59, 62, 64, 65, 71, 72, 74, 79, 79, 89, 90, 94, 97], [1, 2, 10, 11, 15, 18, 18, 19, 21, 22, 25, 28, 28, 30, 37, 38, 40, 41, 46, 46, 49, 51, 52, 53, 53, 56, 64, 69, 69, 72, 72, 74, 77, 77, 77, 78, 78, 84, 85, 96, 97, 98, 98, 99], [1, 6, 6, 6, 7, 7, 10, 11, 16, 17, 18, 18, 27, 27, 33, 33, 35, 38, 41, 46, 47, 53, 54, 54, 56, 62, 63, 63, 66, 67, 67, 77, 77, 78, 79, 83, 88, 88, 89, 92, 95, 95, 96, 99], [3, 4, 6, 8, 8, 8, 10, 12, 15, 17, 19, 19, 22, 22, 25, 28, 28, 29, 34, 34, 39, 41, 42, 43, 46, 46, 46, 53, 53, 54, 56, 56, 56, 63, 64, 68, 70, 75, 82, 84, 85, 94, 95, 96], [3, 4, 4, 5, 8, 9, 17, 21, 23, 25, 31, 32, 35, 38, 38, 39, 39, 43, 49, 54, 56, 61, 61, 64, 64, 65, 65, 65, 69, 70, 70, 70, 71, 72, 74, 74, 77, 78, 78, 80, 84, 90, 96, 99], [1, 3, 6, 12, 13, 13, 13, 20, 21, 21, 24, 29, 33, 33, 38, 40, 42, 42, 45, 46, 47, 49, 55, 57, 58, 60, 60, 62, 63, 63, 67, 68, 69, 70, 72, 72, 74, 75, 75, 77, 77, 88, 95, 99], [3, 4, 4, 8, 9, 9, 9, 11, 12, 12, 15, 16, 17, 18, 20, 21, 22, 22, 25, 28, 29, 33, 34, 35, 36, 43, 46, 57, 58, 59, 63, 68, 69, 72, 76, 78, 83, 89, 90, 91, 93, 96, 97, 99], [1, 9, 11, 12, 13, 15, 19, 26, 27, 32, 34, 42, 42, 44, 48, 54, 54, 56, 57, 58, 60, 64, 76, 80, 81, 82, 82, 82, 83, 84, 85, 85, 85, 86, 87, 92, 94, 95, 96, 97, 97, 97, 98, 98], [5, 7, 16, 20, 21, 22, 27, 29, 30, 31, 32, 33, 36, 37, 38, 44, 47, 47, 50, 53, 54, 56, 58, 60, 60, 61, 62, 63, 63, 64, 64, 68, 69, 77, 81, 81, 82, 82, 84, 86, 87, 90, 92, 96], [3, 3, 6, 6, 8, 8, 9, 13, 20, 21, 27, 27, 29, 32, 34, 40, 43, 47, 49, 49, 50, 53, 54, 54, 57, 61, 63, 65, 66, 71, 72, 72, 73, 73, 74, 75, 75, 75, 79, 82, 85, 90, 92, 94], [2, 3, 5, 5, 9, 9, 14, 17, 20, 21, 23, 27, 29, 31, 33, 36, 38, 42, 43, 45, 45, 46, 47, 47, 48, 53, 54, 55, 56, 58, 60, 64, 67, 67, 69, 77, 77, 84, 87, 92, 92, 93, 94, 98], [4, 9, 10, 12, 13, 15, 16, 20, 24, 25, 26, 27, 31, 34, 38, 38, 40, 41, 43, 44, 46, 46, 47, 47, 48, 57, 64, 74, 77, 78, 79, 82, 82, 85, 87, 87, 88, 89, 91, 92, 94, 96, 97, 99], [2, 2, 4, 8, 10, 12, 13, 20, 21, 21, 29, 32, 34, 40, 40, 40, 43, 45, 46, 47, 47, 48, 49, 51, 57, 67, 68, 68, 70, 72, 76, 76, 77, 78, 79, 81, 84, 88, 89, 91, 94, 95, 97, 98], [3, 4, 4, 6, 8, 8, 9, 11, 14, 14, 15, 16, 16, 22, 22, 23, 25, 30, 30, 33, 33, 35, 36, 37, 40, 40, 42, 42, 44, 52, 55, 56, 56, 58, 60, 64, 64, 66, 67, 69, 80, 81, 81, 91], [7, 10, 10, 11, 13, 13, 13, 15, 23, 25, 27, 28, 28, 30, 34, 35, 37, 38, 39, 44, 45, 46, 49, 50, 53, 53, 56, 60, 60, 64, 64, 65, 66, 68, 68, 70, 77, 78, 79, 80, 81, 85, 92, 95], [1, 3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 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],37,),
([[57, 35, 39, 48, 79, 25, 49, 44, 40, 59, 90, 18, 4, 14, 32, 39, 2, 15, 34, 91, 11, 16, 23, 1, 7, 3, 40, 93, 14, 33, 51, 35, 78, 35, 67, 3, 38, 71], [57, 4, 10, 9, 40, 48, 47, 9, 33, 91, 47, 12, 66, 45, 90, 89, 94, 69, 71, 43, 83, 23, 30, 15, 52, 78, 42, 34, 65, 45, 35, 9, 48, 4, 6, 1, 40, 13], [58, 15, 43, 30, 58, 15, 58, 90, 96, 92, 80, 66, 14, 16, 79, 49, 91, 19, 1, 64, 21, 27, 41, 48, 21, 21, 21, 26, 70, 97, 63, 35, 92, 96, 61, 3, 86, 47], [92, 91, 51, 18, 77, 83, 67, 81, 77, 78, 53, 40, 53, 35, 43, 16, 39, 69, 10, 38, 19, 3, 33, 94, 60, 84, 95, 76, 23, 52, 72, 67, 14, 61, 26, 52, 81, 62], [27, 60, 67, 50, 57, 97, 65, 22, 57, 91, 71, 61, 5, 56, 59, 55, 67, 23, 89, 88, 61, 21, 70, 69, 63, 59, 36, 29, 63, 60, 82, 33, 60, 83, 24, 22, 69, 96], [89, 59, 51, 55, 68, 44, 41, 11, 19, 44, 14, 47, 14, 3, 23, 84, 76, 95, 19, 69, 67, 62, 42, 69, 43, 18, 93, 93, 6, 18, 16, 37, 28, 46, 53, 82, 5, 64], [73, 22, 7, 71, 4, 28, 4, 43, 3, 28, 82, 66, 45, 52, 59, 66, 80, 50, 84, 82, 22, 52, 98, 13, 48, 33, 58, 15, 44, 79, 91, 80, 30, 67, 72, 23, 14, 1], [70, 78, 31, 58, 42, 81, 50, 88, 23, 99, 7, 59, 1, 63, 60, 8, 69, 81, 19, 96, 61, 16, 37, 47, 69, 83, 70, 77, 72, 45, 41, 34, 78, 71, 71, 6, 94, 53], [38, 46, 91, 77, 24, 94, 98, 68, 4, 23, 30, 65, 12, 71, 20, 21, 84, 39, 83, 98, 79, 72, 76, 71, 99, 73, 27, 47, 55, 43, 4, 10, 38, 93, 14, 65, 18, 98], [66, 76, 94, 19, 66, 43, 17, 53, 69, 25, 48, 29, 70, 65, 90, 93, 6, 85, 21, 33, 12, 90, 66, 32, 14, 88, 13, 6, 12, 5, 57, 75, 87, 44, 72, 45, 66, 48], [66, 44, 52, 38, 99, 65, 41, 88, 18, 93, 96, 39, 45, 19, 35, 53, 68, 76, 14, 6, 74, 30, 18, 28, 39, 67, 20, 48, 9, 77, 25, 45, 72, 48, 36, 24, 36, 16], [14, 90, 11, 65, 5, 97, 61, 91, 5, 47, 11, 85, 83, 39, 69, 12, 76, 44, 52, 24, 35, 99, 23, 94, 56, 55, 71, 19, 3, 86, 7, 1, 44, 20, 95, 81, 77, 43], [10, 93, 48, 53, 66, 88, 68, 58, 67, 17, 7, 54, 16, 33, 46, 15, 34, 56, 84, 18, 46, 93, 54, 99, 63, 47, 28, 48, 35, 94, 77, 34, 56, 36, 43, 12, 73, 90], [8, 56, 60, 26, 78, 18, 28, 30, 65, 81, 84, 40, 74, 17, 52, 46, 28, 4, 14, 41, 2, 91, 9, 16, 85, 82, 59, 58, 63, 35, 1, 13, 48, 39, 1, 12, 31, 34], [48, 3, 7, 11, 44, 41, 4, 35, 30, 23, 86, 98, 35, 82, 72, 49, 58, 32, 71, 58, 92, 49, 88, 84, 80, 3, 86, 37, 65, 91, 12, 7, 44, 74, 50, 65, 52, 16], [27, 21, 48, 22, 70, 83, 45, 34, 84, 45, 39, 9, 33, 76, 51, 19, 82, 27, 30, 83, 93, 62, 21, 84, 13, 24, 22, 95, 86, 33, 18, 74, 88, 95, 41, 91, 51, 7], [62, 22, 26, 38, 15, 3, 28, 93, 54, 23, 46, 10, 36, 83, 66, 14, 32, 80, 73, 58, 79, 51, 34, 94, 70, 24, 7, 64, 76, 96, 3, 85, 93, 79, 12, 37, 94, 93], [33, 20, 76, 50, 37, 56, 92, 79, 66, 76, 28, 69, 38, 6, 90, 30, 51, 95, 34, 15, 40, 24, 47, 99, 50, 3, 5, 8, 50, 35, 27, 30, 44, 31, 64, 79, 13, 73], [69, 56, 99, 12, 4, 16, 97, 89, 62, 15, 41, 67, 82, 6, 20, 80, 98, 42, 78, 86, 77, 59, 21, 11, 96, 96, 34, 69, 84, 67, 91, 64, 67, 75, 50, 47, 59, 79], [82, 78, 57, 77, 3, 60, 27, 93, 26, 98, 24, 38, 49, 31, 57, 44, 23, 33, 68, 66, 26, 17, 4, 76, 11, 10, 7, 98, 73, 57, 55, 37, 41, 57, 82, 29, 80, 86], [78, 61, 89, 44, 96, 59, 79, 39, 55, 23, 94, 23, 59, 4, 37, 19, 10, 94, 72, 90, 25, 86, 50, 68, 71, 34, 56, 72, 46, 45, 28, 85, 91, 50, 34, 71, 49, 68], [46, 60, 27, 21, 44, 61, 86, 9, 64, 78, 53, 97, 30, 57, 24, 67, 38, 30, 61, 87, 79, 40, 20, 59, 31, 20, 2, 22, 96, 63, 9, 8, 81, 96, 19, 60, 97, 40], [61, 59, 30, 75, 21, 33, 92, 89, 85, 72, 98, 3, 23, 61, 87, 93, 92, 83, 9, 82, 44, 89, 68, 54, 14, 76, 49, 29, 44, 33, 94, 23, 17, 46, 45, 50, 1, 88], [53, 90, 59, 33, 63, 59, 94, 93, 7, 61, 96, 16, 51, 52, 3, 42, 9, 10, 94, 66, 14, 89, 72, 94, 99, 14, 74, 45, 78, 99, 54, 53, 80, 19, 87, 48, 12, 38], [9, 17, 96, 94, 10, 97, 46, 40, 35, 37, 16, 11, 88, 65, 94, 87, 75, 42, 16, 32, 95, 4, 54, 42, 62, 10, 90, 31, 79, 45, 42, 88, 96, 47, 88, 4, 10, 76], [1, 14, 14, 41, 6, 62, 47, 66, 23, 51, 65, 6, 16, 47, 32, 22, 93, 54, 72, 82, 40, 24, 94, 62, 25, 61, 41, 14, 95, 50, 98, 30, 65, 22, 85, 79, 3, 10], [64, 40, 52, 51, 32, 35, 71, 5, 89, 12, 91, 33, 78, 88, 39, 68, 44, 30, 5, 57, 18, 30, 58, 57, 22, 44, 12, 16, 50, 42, 80, 85, 53, 29, 5, 56, 14, 92], [35, 81, 5, 71, 97, 39, 34, 19, 78, 75, 51, 49, 39, 12, 80, 2, 90, 35, 25, 48, 87, 75, 23, 92, 33, 78, 39, 37, 70, 74, 62, 92, 12, 99, 18, 33, 89, 28], [79, 82, 20, 51, 35, 70, 24, 9, 34, 25, 27, 53, 84, 45, 31, 20, 58, 55, 12, 51, 78, 45, 48, 66, 92, 7, 93, 72, 93, 59, 70, 66, 67, 11, 10, 95, 57, 65], [56, 23, 53, 92, 41, 98, 86, 27, 56, 38, 95, 34, 5, 83, 80, 49, 10, 71, 54, 40, 81, 44, 91, 61, 96, 22, 53, 7, 60, 35, 65, 93, 2, 59, 92, 60, 80, 70], [58, 75, 10, 84, 37, 32, 71, 91, 66, 98, 51, 28, 17, 91, 45, 22, 13, 19, 93, 85, 19, 11, 66, 2, 87, 58, 24, 42, 15, 21, 95, 59, 67, 27, 39, 48, 94, 53], [48, 39, 19, 44, 34, 20, 42, 38, 95, 24, 69, 5, 12, 75, 17, 5, 72, 70, 91, 24, 20, 45, 14, 29, 43, 10, 27, 98, 93, 21, 89, 23, 40, 38, 36, 99, 90, 82], [38, 1, 96, 18, 20, 6, 20, 88, 73, 92, 41, 90, 2, 18, 78, 89, 7, 81, 34, 8, 36, 88, 60, 64, 56, 70, 53, 27, 41, 54, 35, 94, 30, 20, 90, 47, 18, 75], [49, 44, 96, 84, 67, 89, 40, 83, 21, 42, 41, 3, 19, 59, 94, 65, 56, 16, 79, 61, 59, 63, 35, 32, 2, 8, 73, 65, 87, 56, 83, 16, 85, 83, 80, 11, 92, 74], [59, 63, 9, 66, 85, 47, 15, 81, 41, 75, 3, 5, 73, 2, 99, 89, 87, 67, 10, 2, 97, 20, 57, 75, 18, 77, 66, 36, 78, 43, 5, 76, 31, 3, 87, 62, 13, 38], [68, 88, 92, 3, 70, 43, 61, 91, 7, 17, 56, 91, 74, 15, 31, 8, 17, 25, 75, 5, 55, 46, 73, 48, 21, 53, 9, 23, 45, 30, 63, 67, 29, 53, 30, 68, 58, 41], [14, 51, 22, 93, 95, 99, 28, 63, 48, 48, 31, 5, 8, 96, 86, 98, 21, 34, 16, 31, 2, 27, 25, 34, 30, 68, 27, 86, 30, 24, 25, 14, 72, 6, 28, 5, 30, 97], [93, 73, 8, 62, 72, 47, 31, 64, 16, 42, 84, 12, 40, 49, 52, 62, 96, 3, 95, 10, 35, 62, 69, 77, 31, 90, 51, 13, 91, 58, 6, 77, 5, 86, 81, 19, 76, 12]],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))) | n | [
"a) if",
"b) n",
"c) n2",
"d) ]",
"e) public"
] | b |
python | def f_gold ( A , arr_size , sum ) :
for i in range ( 0 , arr_size - 2 ) :
for j in range ( i + 1 , arr_size - 1 ) :
for k in range ( j + 1 , arr_size ) :
if A [ i ] + A [ j ] + A [ k ] == sum :
print ( "Triplet is" , A [ i ] , ", " , A [ j ] , ", " , A [ k ] )
return True
return False
if A [ i ] + A [ j ] + A [ k ] == sum :
print ( "Triplet is" , A [ i ] , ", " , A [ j ] , ", " , A [ k ] )
return True
return False
#TOFILL
if __name__ == '__main__':
param = [
([15, 18, 38, 47, 75, 88],5,4,),
([28, -2, 62, 38, 86, -86, 56, 58, 96, 6, -28, 8, 68, -16, -80, -4, 98, -92, 4, -4, 58, -62, 46, 64],22,18,),
([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],27,23,),
([19, 77, 17, 91, 6, 35, 22, 4, 30, 23, 97, 56, 78, 16, 22, 23, 95, 57, 43, 27, 47, 44, 23, 10, 3, 94, 55, 22, 93, 32, 89, 28, 64, 22, 13, 24, 38, 44, 6, 1, 80],22,29,),
([-98, -98, -94, -88, -80, -74, -68, -68, -64, -44, -36, -24, -10, -8, -8, 0, 4, 6, 8, 8, 12, 14, 16, 38, 50, 52, 54, 56, 66, 68, 76, 88],18,19,),
([1, 1, 0, 0, 1, 0, 1, 1],4,5,),
([7, 22, 24, 30, 42, 44, 49, 49, 65, 70, 70, 74, 74, 75, 90, 95, 96],8,13,),
([40, -76, -68, -86, -14, 82, -20, 54, -26, 56, -24, -44, 44, 60, 52, -20, 80, -24, -90, -30, -2],11,18,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,17,),
([33, 92, 6, 99, 83, 97, 49, 97, 85, 52],6,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))) | def f_gold ( A , arr_size , sum ) : for i in range ( 0 , arr_size - 2 ) : for j in range ( i + 1 , arr_size - 1 ) : for k in range ( j + 1 , arr_size [MASK] : if A [ i ] + A [ j ] + A [ k ] == sum : print ( "Triplet is" , A [ i ] , ", " , A [ j ] , ", " , A [ k ] ) return True return False if A [ i ] + A [ j ] + A [ k ] == sum :
print ( "Triplet is" , A [ i ] , ", " , A [ j ] , ", " , A [ k ] )
return True
return False
#TOFILL
if __name__ == '__main__':
param = [
([15, 18, 38, 47, 75, 88],5,4,),
([28, -2, 62, 38, 86, -86, 56, 58, 96, 6, -28, 8, 68, -16, -80, -4, 98, -92, 4, -4, 58, -62, 46, 64],22,18,),
([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],27,23,),
([19, 77, 17, 91, 6, 35, 22, 4, 30, 23, 97, 56, 78, 16, 22, 23, 95, 57, 43, 27, 47, 44, 23, 10, 3, 94, 55, 22, 93, 32, 89, 28, 64, 22, 13, 24, 38, 44, 6, 1, 80],22,29,),
([-98, -98, -94, -88, -80, -74, -68, -68, -64, -44, -36, -24, -10, -8, -8, 0, 4, 6, 8, 8, 12, 14, 16, 38, 50, 52, 54, 56, 66, 68, 76, 88],18,19,),
([1, 1, 0, 0, 1, 0, 1, 1],4,5,),
([7, 22, 24, 30, 42, 44, 49, 49, 65, 70, 70, 74, 74, 75, 90, 95, 96],8,13,),
([40, -76, -68, -86, -14, 82, -20, 54, -26, 56, -24, -44, 44, 60, 52, -20, 80, -24, -90, -30, -2],11,18,),
([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1],15,17,),
([33, 92, 6, 99, 83, 97, 49, 97, 85, 52],6,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))) | ) | [
"a) subtract",
"b) ;",
"c) )",
"d) ;",
"e) int"
] | c |
python | def f_gold ( num , divisor ) :
return ( num - divisor * ( num // divisor ) )
e code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( num , divisor ) :
return ( num - divisor * ( num // divisor ) )
#TOFILL
if __name__ == '__main__':
param = [
(80,54,),
(63,21,),
(1,56,),
(22,39,),
(66,7,),
(61,67,),
(45,63,),
(29,44,),
(95,65,),
(9,68,)
]
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))) | def f_gold ( num , divisor ) : return ( num - divisor * ( num [MASK] divisor ) )e code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( num , divisor ) :
return ( num - divisor * ( num // divisor ) )
#TOFILL
if __name__ == '__main__':
param = [
(80,54,),
(63,21,),
(1,56,),
(22,39,),
(66,7,),
(61,67,),
(45,63,),
(29,44,),
(95,65,),
(9,68,)
]
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))) | // | [
"a) return",
"b) }",
"c) //",
"d) const",
"e) <fstream>"
] | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.