[gcj] Re: My code( in Python 3 ) works fine during the test but it shows Wrong answer during submission of Round A allocation(kisckstart 2020)

2020-05-01 Thread porker2008
Your output should match the given format and shouldn't contain extra white spaces *T = int(input())* *for i in range(1,T+1):* *N, B = input().split()* *N, B = int(N), int(B)* *A = []* *expense = 0* *y = 0* *A = [int(x) for x in input().split()]* *for k in

[gcj] Re: Robot Programming Strategy

2020-05-01 Thread porker2008
Try this case Input: *1* *2* *R* *S* Expected Output: *Case #1: RP* -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gcj] Robot Programming Strategy

2020-05-01 Thread Aman Chhabra
Hello Team, I was trying to attempt a previous Google code jam competition question - Robot Programming Strategy I am getting WA though I tried it with many test scenarios and it seems to be working

[gcj] Code jam round 1B problem blindfolded bullseye explanation and code

2020-05-01 Thread walleeva
go to this blog -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gcj] My code( in Python 3 ) works fine during the test but it shows Wrong answer during submission of Round A allocation(kisckstart 2020)

2020-05-01 Thread Liza Jivnani
T = int(input()) for i in range(1,T+1): N, B = input().split() N, B = int(N), int(B) A = [] expense = 0 y = 0 A = [int(x) for x in input().split()] for k in range(len(A)): expense += A.pop(A.index(min(A))) if expense <= B: y += 1