ZhenlongDai/ACPR huggingface dataset:
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int, input().split())
count = 0
if k > s:
    print(0)
else:
    for kx in range(0, k+1):
        for ky in range(0, k+1):
            kz = s - kx -ky
            if 0 <= kz <= k and kx + ky + kz == s:
                count += 1
    print(count)

Failing test case input:
111 72

Expected output:
2701


Actual output:
0


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())
count = 0
for kx in range(0, k+1):
    for ky in range(0, k+1):
        kz = s - kx -ky
        if 0 <= kz <= k and kx + ky + kz == s:
            count += 1
print(count)

Problem: p03835
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
k, s = map(int, input().split())
ans = 0

for x in range(0, k+1):
    for y in range(0, k+1):
          if (x + y + (s-(x+y))) == s:
              ans+=1

print(ans)


Failing test case input:
110 28

Expected output:
435


Actual output:
12321


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())
ans = 0

for x in range(0, k+1):
    for y in range(0, k+1):
          if ((x + y + (s-x-y)) == s) and (0 <= s-x-y <= k):
              ans+=1

print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ks = input()
k, s = [int(x) for x in ks.split(" ")]
comb = []
for x in range(k + 1)[::-1]:
    for y in range(min(x + 1, s - x))[::-1]:
        z = s - x - y
        if (x <= k and y <= k and z <= k and y <= x and z <= x and y <= z):
            comb.append([x,y,z])
count = 0
for c in comb:
    l = len(set(c))
    if l == 1:
        count += 1
    elif l == 2:
        count += 3
    else:
        count += 6
print(count)

Failing test case input:
110 28

Expected output:
435


Actual output:
432


Fixed submission (verdict: Accepted):
ks = input()
k, s = [int(x) for x in ks.split(" ")]
comb = []
for x in range(min(k,s) + 1)[::-1]:
    for y in range(min(x + 1, s - x + 1))[::-1]:
        z = s - x - y
        if (x <= k and y <= k and z <= k and y <= x and z <= y):
            comb.append([x,y,z])
count = 0
for c in comb:
    l = len(set(c))
    if l == 1:
        count += 1
    elif l == 2:
        count += 3
    else:
        count += 6
print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = input().strip().split(' ')
k,s = [int(k),int(s)]
cnt = 0
for i in range(k+1):
	if i>s:	
		break;
	for j in range(k+1):
		if i+j>s:
			break;
		else:
			cnt+=1
print (cnt)

Failing test case input:
7 13

Expected output:
42


Actual output:
63


Fixed submission (verdict: Accepted):
k,s = input().strip().split(' ')
k,s = [int(k),int(s)]
cnt = 0
for i in range(k+1):
	if i>s:	
		break;
	for j in range(k+1):
		if i+j>s:
			break;
		elif s-i-j<=k:
			cnt+=1
print (cnt)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())
cnt = 0
for i in range(K+1):
    for j in range(K-i+1):
        if S - i - (K - j) <= K:
            cnt += 1
print(cnt)


Failing test case input:
278 20

Expected output:
231


Actual output:
39060


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())
cnt = 0
for i in range(K+1):
    for j in range(K+1):
        if 0 <= S - i - j <= K:
            cnt += 1
print(cnt)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int, input().split())
cnt = 0

for i in range(k+1):
   for j in range(k+1):
      for k in range(k+1):
         if i + j + k == s:
            cnt += 1
         elif i + j + k >s:
            break

print(cnt)

Failing test case input:
7 13

Expected output:
42


Actual output:
20


Fixed submission (verdict: Accepted):
k,s = map(int, input().split())
cnt = 0

for x in range(k+1):
   for y in range(k+1):
         z = s - x - y
         if 0 <= z and z <= k:
            cnt += 1

print(cnt)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())
a = 0
for x in range(K+1):
  for y in range(K+1):
    if S-x-y<=K :
      a+=1   
print(a)

Failing test case input:
100 22

Expected output:
276


Actual output:
10201


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())
a = 0
for x in range(K+1):
  for y in range(K+1):
    if 0<=S-x-y<=K :
      a+=1   
print(a)

Problem: p03835
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
K,S = map(int,input().split())
x,y,z = 0,0,0
n = 0

for i in range(K+1):
    x = i
    for j in range(K+1-i):
        y = j
        for k in range(K+1-i-j):
            z = k
            if x+y+z == S:
                n += 1

print(n)

Failing test case input:
12 13

Expected output:
102


Actual output:
0


Fixed submission (verdict: Accepted):
K,S = map(int,input().split())
x,y,z = 0,0,0
n = 0

for i in range(K+1):
    x = i
    for j in range(K+1):
        y = j
        z = S-(x+y)
        if 0 <= z <=K:
            n += 1

print(n)

Problem: p03835
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
k,x=map(int,input().split())
ans=0
for i in range(k+1):
  for j in range(k+1-i):
    ans+=1
print(ans)

Failing test case input:
17 4

Expected output:
15


Actual output:
171


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
ans=0
for i in range(k+1):
  for j in range(k+1):
    if 0<=s-i-j<=k:
      ans+=1
print(ans)
Problem: p03835
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
K,S = map(int, input().split())

ans = 0
for x in range(K, -1):
  for y in range(K, -1):
    for z in range(K, -1):
      if x+y+z==S:
        ans+=1
      elif x+y+z<S:
        break

print(ans)

Failing test case input:
5 5

Expected output:
21


Actual output:
0


Fixed submission (verdict: Accepted):
K,S = map(int, input().split())

ans = 0
if K*3<S:
  print(0)
  exit()

for x in range(K, -1, -1):
  if x >S:
    continue
  for y in range(min(S-x, K), -1, -1):
    if x+y >S:
      continue
    for z in range(min(S-x-y, K), -1, -1):
      if x+y+z==S:
        ans+=1
      elif x+y+z<S:
        break

print(ans)

Problem: p03835
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
k, s = map(int, input().split())

ans = 0
for x in range(k+1)[::-1]:
    y = max(0, min(s-x, k))
    z = s-x-y
    if z > k or z < 0:
        break
    ans += y - z + 1

print(ans)

Failing test case input:
110 28

Expected output:
435


Actual output:
0


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())

ans = 0
for x in range(k+1)[::-1]:
    y = min(s-x, k)
    z = s-x-y
    if z > k:
        break
    if x >= 0 and y >= 0 and z >= 0:
        ans += y - z + 1

print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K,S=map(int,input().split())
c=0
for x in range(K+1):
    for y in range(K+1):
        if S-x-y>=0:
            c+=1
        
print(c)


Failing test case input:
8 10

Expected output:
57


Actual output:
60


Fixed submission (verdict: Accepted):
K,S=map(int,input().split())
c=0
for x in range(K+1):
    for y in range(K+1):
        if S-x-y>=0 and S-x-y<=K:
            c+=1
        
print(c)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())
c=0
for i in range(k+1):
  if s-i>2*k:
    continue
  for j in range(k+1):
    if s-(i+j)>k:
      continue
    else:
      c+=1
print(c)

Failing test case input:
5 5

Expected output:
21


Actual output:
36


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
c=0
for i in range(k+1):
  if s-i>2*k:
    continue
  for j in range(k+1):
    if s-(i+j)>k or s<(i+j):
      continue
    else:
      c+=1
print(c)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())

count=0

for i in range(k+1):
    for j in range(k+1):
        z=s-(i+j)
        
        if 0<=z<=s:
            count+=1
print(count)


Failing test case input:
5 15

Expected output:
1

Actual output:
36


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())

count=0

for i in range(k+1):
    for j in range(k+1):
        if s-k<=i+j<=s:
            count+=1
print(count)
Problem: p03835
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k,s = map(int,input().split())
start = s
ans = 0
if s < k:
    k = s

for i in range(start,k+1):
    for j in range(start,k+1):
        for l in range(start,k+1):
            if i+j+l == s:
                ans += 1
print(ans)

Failing test case input:
278 24

Expected output:
325


Actual output:
0


Fixed submission (verdict: Accepted):
k,s = map(int,input().split())
ans = 0
for i in range(k+1):
    for j in range(k+1):
        dum = (s - (i + j))
        if dum < 0:
            continue
        if dum <= k:
            ans += 1
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int,input().split())
 
l1 = tuple([i for i in range(K+1)])
r = 0
for i in l1:
  if i > S:
    continue
  else:
    for j in l1:
      if S - i - j <= K:        
        r += 1
print(r)

Failing test case input:
12 9

Expected output:
55


Actual output:
130


Fixed submission (verdict: Accepted):
K, S = map(int,input().split())
 
l1 = tuple([i for i in range(K+1)])
r = 0
for i in l1:
  if i > S:
    continue
  else:
    for j in l1:
      if i + j > S:
        continue
      elif S - i - j <= K:        
        r += 1
print(r)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int , input().strip().split(" "))


count = 0
for x in range(K+1):
    if x > S or S - x > 2*K:
        break
    for y in range(K+1):
        if x + y > S or S - (x+y) > K:
            break
        for z in range(K+1):
            if x + y + z > S:
                break
            elif x + y + z == S:
                count +=1
print(count)


Failing test case input:
5 9

Expected output:
25


Actual output:
11


Fixed submission (verdict: Accepted):
K, S = map(int , input().strip().split(" "))


count = 0
for x in range(K+1):
    if x > S :
        break
    elif S - x > 2*K:
        continue
    for y in range(K+1):
        if x + y > S:
            break
        elif S - (x+y) > K:
            continue
        count+= 1
print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())
cnt=0
for x in range(k+1):
  if s-x<=k:
    cnt+=(s-x)+1
  elif s-x>2*k:
    cnt+=0
  elif s-x>k:
    cnt+=2*k-(s-x)+1
print(cnt)

Failing test case input:
110 28

Expected output:
435


Actual output:
-2886


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
cnt=0
for x in range(k+1):
  if s-x<0:
    break
  elif s-x<=k:
    cnt+=(s-x)+1
  elif s-x>2*k:
    cnt+=0
  elif s-x>k:
    cnt+=2*k-(s-x)+1
print(cnt)

Problem: p03835
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
K, S = list(map(int, input().split()))
ct = 0
for a in range(K+1):
    for b in range(K+1):
        if 0 <= a+b <= S:
            ct += 1
print(ct)

Failing test case input:
6 7

Expected output:
33


Actual output:
34


Fixed submission (verdict: Accepted):
K, S = list(map(int, input().split()))
ct = 0
for a in range(K+1):
    for b in range(K+1):
        if S-K <= a+b <= S:
            ct += 1
print(ct)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K,S = map(int,input().split())

count = 0

for x in range(S+1):
    for y in range(S+1):
        z = S - x - y
        if 0<=z & z<=K:
            count+=1


print(count)


Failing test case input:
5 7

Expected output:
27


Actual output:
33


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())
 
count = 0
 
for x in range(0, k + 1):
    for y in range(0, k + 1):
        z = s - x - y
        if 0 <= z and z <= k:
            count += 1
 
print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())
u=min(k,s)
sum=0
if s-2*k>=0:
    for i in range(s-2*k,u+1):
        if s-i<2*k:
            sum+=2*k-s+i+1
        else:
            sum+=1
    print(sum)
else:
    for i in range(u+1):
        if s-i<2*k:
            sum+=s-i+1
        else:
            sum+=1
    print(sum)




Failing test case input:
8 10

Expected output:
57


Actual output:
63


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
u=min(k,s)
sum=0
if s-2*k>=0:
    for i in range(s-2*k,u+1):
        if s-i<2*k:
            sum+=2*k-s+i+1
        else:
            sum+=1
    print(sum)
elif s-k>=0:
    for i in range(u+1):
        if s-i<k:
            sum+=s-i+1
        else:
            sum+=2*k-s+i+1
    print(sum)
else:
    for i in range(u+1):
        if s-i<2*k:
            sum+=s-i+1
        else:
            sum+=1
    print(sum)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    K, S = map(int, input().split())

    ans = 0
    for x in range(K + 1):
        if x == S:
            ans += 1
            continue
        for y in range(K + 1):
            if x + y == S:
                ans += 1
                continue
            if S - x - y <= K:
                ans += S - x - y
    print(ans)


if __name__ == "__main__":
    main()


Failing test case input:
6 7

Expected output:
33


Actual output:
48


Fixed submission (verdict: Accepted):
def main():
    K, S = map(int, input().split())

    ans = 0
    for x in range(K + 1):
        for y in range(K + 1):
            z = S - x - y
            if z >= 0 and z <= K:
                ans += 1
    print(ans)


if __name__ == "__main__":
    main()

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int,input().split())
o=0
for i in range(k+1):
  for j in range(k+1):
      if s-i-j <= k:
        o +=1
print(o)

Failing test case input:
111 79

Expected output:
3240


Actual output:
12544


Fixed submission (verdict: Accepted):
k,s = map(int,input().split())
o=0
for i in range(k+1):
  for j in range(k+1):
      if (s-i-j <= k and s-i-j>=0):
        o +=1
print(o)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int, input().split())
count = 0

for x in range(k+1):
    for y in range(k+1):
        z = s-x-y
        if z <= k:
            count += 1

print(count)

Failing test case input:
5 7

Expected output:
27


Actual output:
33


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())
count = 0

for x in range(k+1):
    for y in range(k+1):
        z = s-x-y
        if z < 0:
            break
        if z <= k:
            count += 1

print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int,input().split())
ans = 0
for i in range(k+1):
    for j in range(k+1):
        if i + j <= s:
            ans += 1
        else:
            break
print(ans)

Failing test case input:
8 10

Expected output:
57


Actual output:
60


Fixed submission (verdict: Accepted):
k, s = map(int,input().split())
ans = 0
for i in range(k+1):
    for j in range(k+1):
        if 0 <= s-i-j and s-i-j <= k:
            ans += 1
        else:
            continue
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K,S=map(int,input().split())
a=0

for x in range(K+1):
  if K<S-x<=2*K:
    a+=2*K-S+x+1
  elif S-x<=K:
    a+=S-x+1
  else:
    a+=0

print(a)



Failing test case input:
17 4

Expected output:
15


Actual output:
-63


Fixed submission (verdict: Accepted):
K,S=map(int,input().split())
a=0

for x in range(K+1):
  if K<S-x<=2*K:
    a+=2*K-S+x+1
  elif 0<=S-x<=K:
    a+=S-x+1
  else:
    a+=0

print(a)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def f(K, S):
    z = list(range(0,K+1))
    answer = []

    for i in z:
      s_z = S - i
      if K < s_z:
        if (K + 1) > (s_z - K):
          answer.append(K + 1 - (s_z - K))

      else:
          answer.append(s_z + 1)

    return sum(answer)

Failing test case input:
6 7

Expected output:
33


Actual output:

Fixed submission (verdict: Accepted):
K,S=map(int,input().split())

z = list(range(0,K+1))
answer = []

for i in z:
  s_z = S - i
  if s_z < 0:
    pass
  elif K < s_z:
    if (K + 1) > (s_z - K):
      answer.append(K + 1 - (s_z - K))
  else:
    answer.append(s_z + 1)

print(sum(answer))

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

K,S=[int(i) for i in input().split()]
ans=0
for x in range(K+1):
     for y in range(K-x+1):
         if S-x-y<=K:
             ans+=1
print(ans)

Failing test case input:
24 13

Expected output:
105


Actual output:
325


Fixed submission (verdict: Accepted):

K,S=[int(i) for i in input().split()]
ans=0
for x in range(K+1):
     for y in range(min(S-x+1,K+1)):
        if S-x-y<=K:
             ans+=1
print(ans)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())
c=0
for i in range(0,k+1):
  for j in range(0,k+1):
    if i+j+k<s:
      pass
    elif i+j>k:
      pass
    else:
      c+=1
print(c)
  


Failing test case input:
100 22

Expected output:
276


Actual output:
5151


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
c=0
for i in range(0,k+1):
  for j in range(0,k+1):
    if i+j+k<s:
      pass
    elif i+j>s:
      pass
    else:
      c+=1
print(c)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K,S = map(int, input().split())

ans = 0

for X in range(K+1):
	S1 = S - X
	if S1 < 0:
		break
	else:
		if S1 <= K:
			ans += S1 + 1
		elif S1 <= 2 * K:
			ans += S1 - 2*K + 1
		else:
			continue

print(ans)

Failing test case input:
5 7

Expected output:
27


Actual output:
13


Fixed submission (verdict: Accepted):
K,S = map(int, input().split())
 
ans = 0
 
for X in range(K+1):
	S1 = S - X
	if S1 < 0:
		break
	else:
		if S1 <= K:
			ans += S1 + 1
		elif S1 <= 2 * K:
			ans += 2*K - S1 + 1
 
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def f(K, S):
    num=0
    for a in range(K+1):
      if S-a>=0 and S-a<=2*K:
        if S-a<=K:
          num+=S-a+1
        else:
          num+=min((S-a)-K,K)
    return num

  
K,S=(int(x) for x in input().split())
print(f(K,S))



Failing test case input:
5 9

Expected output:
25


Actual output:
21


Fixed submission (verdict: Accepted):
def f(K, S):
    num=0
    for a in range(K+1):
      if S-a>=0 and S-a<=2*K:
        if S-a<=K:
          num+=S-a+1
        else:
          num+=(K-((S-a)-K))+1
    return num

  
K,S=(int(x) for x in input().split())
print(f(K,S))

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())
cnt=0
for x in range(k+1):
  for y in range(k+1):
      if s-(x+y)<=k:
        cnt+=1
print(cnt)

Failing test case input:
111 79

Expected output:
3240


Actual output:
12544


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
cnt=0
for x in range(k+1):
  for y in range(k+1):
      if (s-(x+y)>=0)and(s-(x+y)<=k):
        cnt+=1
print(cnt)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K , S = map(int, input().split())
x , y , z , cnt = 0 , 0 , 0 , 0
A = K + 1
if K * 3 == S:
    cnt = 1
else :
    for i in range(A):
        for j in range(A):
                if  S - (i + j) <= K :
                    cnt += 1

print(cnt)


Failing test case input:
24 13

Expected output:
105


Actual output:
625


Fixed submission (verdict: Accepted):
K , S = map(int, input().split())
x , y , z , cnt = 0 , 0 , 0 , 0
A = K + 1
if K * 3 == S:
    cnt = 1
else :
    for i in range(A):
        for j in range(A):
            if  S - (i + j) <= K :
                if 0 <= S - (i + j): 
                    cnt += 1
print(cnt)
Problem: p03835
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
k,s=map(int,input().split())
ans=0
for i in range(k+1):
  for j in range(k+1-i):
    if s-i-j<=2500:
      ans+=1
print(ans)

Failing test case input:
100 50

Expected output:
1326


Actual output:
5151


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
ans=0
for i in range(k+1):
  for j in range(k+1):
    if 0<=s-i-j<=k:
      ans+=1
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

K, S = map(int, input().split())
ans = 0
for i in range(K + 1):
    if S - i > 2 * K:
        continue
    if S - i > K:
        ans += 2 * K + 1 - S + i
    else:
        ans += S - i + 1
print(ans)


Failing test case input:
111 79

Expected output:
3240


Actual output:
2744


Fixed submission (verdict: Accepted):

K, S = map(int, input().split())
ans = 0
for i in range(K + 1):
    if S - i > 2 * K:
        continue
    elif S - i < 0:
        break
    if S - i > K:
        ans += 2 * K + 1 - S + i
    else:
        ans += S - i + 1
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())
cnt=0
for i in range(s+1):
    if i>k:
        break
    cnt+= max(0,min(i+k,s)-max(s-k,s-i)+1)
print(cnt)


Failing test case input:
3 7

Expected output:
6


Actual output:
4


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
cnt=0
for i in range(s+1):
    if i>k:
        break
    cnt+= max(0,min(i+k,s)-max(s-k,i)+1)
print(cnt)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == '__main__':
    b, c = map(int, input().split())
    num = b*3 -c
    if num == 0 or c ==0:
        num =1
    else:
        if num > b:
            num = b*3
        else:
            num = c*3
    print(num)


Failing test case input:
5 9

Expected output:
25


Actual output:
15


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    b, c = map(int, input().split())
    num = b*3 -c

    count = 0
    for i in range (0,b+1):
        for j in range(0,b+1):
            if c-(i+j)<=b and c-(i+j) >=0:
                count+=1
    print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int, input().split())

sum_set = []
for i in range(k + 1):
    for j in range(k + 1):
        m = s - i - j
        if 0 <= m <= k:
            comb = [i, j, m]
            sum_set.append(comb)
            break
print(len(sum_set))


Failing test case input:
24 13

Expected output:
105


Actual output:
14


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())

count = 0
for i in range(k + 1):
    for j in range(k + 1):
        m = s - i - j
        if 0 <= m <= k:
            count += 1
print(count)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())
ans = 0
for x in range(K+1):
  for y in range(K+1):
    z = K - x - y
    if 0 <= z <= K:
      ans += 1
print(ans)


Failing test case input:
3 7

Expected output:
6


Actual output:
10


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())
ans = 0
for x in range(K+1):
  for y in range(K+1):
    z = S - x - y
    if 0 <= z <= K:
      ans += 1
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())
res = 0
for x in range(K + 1):
    for y in range(K + 1):
        z = S- x + y
        if z>=0 and z<=K:
            res += 1
print(res)

Failing test case input:
100 50

Expected output:
1326


Actual output:
7651


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())
res = 0
for x in range(K + 1):
    for y in range(K + 1):
        z = S- (x + y)
        if z>=0 and z<=K:
            res += 1
print(res)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())

ans = 0

for i in range(K+1):
    for j in range(K+1-i):
        x = i
        y = j
        z = S-x-y
        if z>=0 or z<=K:
            
            ans += 1

print(ans)

Failing test case input:
100 22

Expected output:
276


Actual output:
5151


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())

ans = 0

for x in range(K+1):
    for y in range(K+1):
        z = S-x-y
        if 0<=z and z<=K:
            
            ans += 1

print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

k, s = map(int, input().split())
cnt = 0
for l in range(k+1):
    for m in range(k+1):
        if k<=l+m<=s and s-l-m<=k:
            cnt += 1
print(cnt)

Failing test case input:
4 7

Expected output:
18


Actual output:
14


Fixed submission (verdict: Accepted):

k, s = map(int, input().split())
cnt = 0
for l in range(k+1):
    for m in range(k+1):
        if l+m<=s and s-l-m<=k:
            cnt += 1
print(cnt)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())
answer = 0

for x in range(K+1):
  for y in range(K+1):
    if S - x - y <= K:
      answer += 1
 
print(answer)

Failing test case input:
278 20

Expected output:
231


Actual output:
77841


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())
answer = 0

for x in range(K+1):
  for y in range(K+1):
    if S - x - y <= K and S -x-y >=0:
      answer += 1
 
print(answer)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, s = map(int, input().split())

ans = 0
for x in range(0, K+1):
    for y in range(0, K+1):
        if s - (x + y) <= K:
            ans += 1
print(ans)

Failing test case input:
110 28

Expected output:
435


Actual output:
12321


Fixed submission (verdict: Accepted):
K, s = map(int, input().split())

ans = 0
for x in range(0, K+1):
    for y in range(0, K+1):
        if s - (x + y) <= K and s - (x + y) >= 0 :
            ans += 1
print(ans)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int, input().split())
res = 0
for x in range(k+1):
  if 3 * x == s:
    res += 1
for x in range(k+1):
  for y in range(k+1):
    if x == y:
      continue
    if 2 * x + y == s:
      res += 3
for x in range(k+1):
  for y in range(k+1):
    if x == y:
      continue
    d = s - x - y
    if d != x and d != y and 0 <= d <= k:
      res += 6

print(res)

Failing test case input:
100 27

Expected output:
406


Actual output:
2236


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())
res = 0
for x in range(k+1):
  if 3 * x == s:
    res += 1
for x in range(k+1):
  for y in range(k+1):
    if x == y:
      continue
    if 2 * x + y == s:
      res += 3
for x in range(k+1):
  for y in range(x+1, k+1):
    d = s - x - y
    if d > y and d <= k:
      res += 6

print(res)

Problem: p03835
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
K,S = map(int,input().split())

ans = 0

for x in range(K+1):
    for y in range(K+1):
        N = S - x -y
        if N <= K:
            ans +=1

print(ans)

Failing test case input:
111 72

Expected output:
2701


Actual output:
12544


Fixed submission (verdict: Accepted):
K,S = map(int,input().split())

ans = 0

for x in range(K+1):
    for y in range(K+1):
        N = S - (x+y)
        if 0<= N <= K:
            ans +=1

print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def solve(K, S):
    count = 0
    for x in range(K+1):
        for y in range(K+1):
            if S - x - y <= K:
                count = count + 1
    return count


if __name__ == '__main__':
    K, S = map(int, input().split())
    print(solve(K, S))


Failing test case input:
278 20

Expected output:
231


Actual output:
77841


Fixed submission (verdict: Accepted):

def solve(K, S):
    count = 0
    for x in range(K+1):
        for y in range(K+1):
            z = S - x - y
            if K >= z >= 0:
                count = count + 1
    return count


if __name__ == '__main__':
    K, S = map(int, input().split())
    print(solve(K, S))

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections
 

def inputStrOnebyOne():
    s = list(input())
    return s
 

def inputOnebyOne_Int():
    a = list(int(x) for x in input().split())
    return a
 
def main():
    ret=0
    k,s = map(int,input().split())
    for x in range(k+1):
        for y in range(k+1):
            if s-x-y <= k:
                ret+=1
    print(ret)
 
if __name__=='__main__':
    main()

Failing test case input:
24 13

Expected output:
105


Actual output:
625


Fixed submission (verdict: Accepted):
import collections
 

def inputStrOnebyOne():
    s = list(input())
    return s
 

def inputOnebyOne_Int():
    a = list(int(x) for x in input().split())
    return a
 
def main():
    ret=0
    k,s = map(int,input().split())
    for x in range(k+1):
        for y in range(k+1):
            if 0 <= s-x-y <= k:
                ret+=1
    print(ret)
 
if __name__=='__main__':
    main()
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K,S=map(int,input().split())
ans=0
for x in range(K+1):
    for y in range(S-x+1):
        for z in range(S-x-y+1):
            if x+y+z==S:
                ans+=1

print(ans)

Failing test case input:
5 15

Expected output:
1

Actual output:
81


Fixed submission (verdict: Accepted):
K,S=map(int,input().split())
ans=0
for x in range(K+1):
    for y in range(K+1):
            z=S-x-y
            if 0<=z<=K:
                ans+=1

print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int,input().split())
cnt = 0
 
for x in range(k+1):
  for y in range(k+1):
      if x + y <= s - k:
        cnt += 1
print(cnt)

Failing test case input:
82 7

Expected output:
36


Actual output:
0


Fixed submission (verdict: Accepted):
k,s = map(int,input().split())
cnt = 0
 
for x in range(k+1):
  for y in range(k+1):
      if x + y <= s and x + y >= s - k:
        cnt += 1
print(cnt)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int,input().split())
c = 0
for x in range(k+1):
    for y in range(k+1):
        if 0<=s-x+y<=k:
                c += 1
print(c)

Failing test case input:
100 58

Expected output:
1770


Actual output:
7587


Fixed submission (verdict: Accepted):
k,s = map(int,input().split())
c = 0
for x in range(k+1):
    for y in range(k+1):
        if 0<=s-x-y<=k:
                c += 1
print(c)

Problem: p03835
Buggy submission (Python (3.8.2), verdict: Wrong Answer):





K, S = map(int, input().split())





r = 0

for i in range(K + 1):
    for j in range(K + 1):
        if S - (i + j) <= K:
            r += 1

print(r)

Failing test case input:
111 79

Expected output:
3240


Actual output:
12544


Fixed submission (verdict: Accepted):





K, S = map(int, input().split())





r = 0

for i in range(K + 1):
    for j in range(K + 1):
        z = S - (i + j)
        if z >= 0 and z <= K:
            r += 1

print(r)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int, input().split())
a=0
for i in range(k+1):
  x=i
  for j in range(k+1):
    y=j
    if s-i-j>=0:
      a=a+1
print(a)

Failing test case input:
12 13

Expected output:
102


Actual output:
103


Fixed submission (verdict: Accepted):
k,s = map(int, input().split())
a=0
for i in range(k+1):
  x=i
  for j in range(k+1):
    y=j
    if s-i-j>=0 and s-i-j<=k:
      a=a+1
print(a)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int,input().split())
ans = 0

for i in range(1,k+1):
  for j in range(1,k+1):
    if 0 <= (s-i-j) <= k:
      ans += 1
print(ans)

Failing test case input:
100 50

Expected output:
1326


Actual output:
1225


Fixed submission (verdict: Accepted):
k,s = map(int,input().split())
ans = 0

for i in range(k+1):
  for j in range(k+1):
    if 0 <= (s-i-j) <= k:
      ans += 1
print(ans)
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int, input().split())
count = 0
for a in range(k+1):
  for b in range(k+1):
      if a + b <= s:
        count += 1
      else:
        pass
print(count)

Failing test case input:
6 7

Expected output:
33


Actual output:
34


Fixed submission (verdict: Accepted):
k, s = map(int, input().split())
count = 0
for a in range(k+1):
  for b in range(k+1):
      if s-k <= a + b <= s:
        count += 1
      else:
        pass
print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s = map(int, input().split())

x =0

for i in range(min(k+1,s+1)):
	x += max(0, min(k-i,s)+1 - max(0,k-i-s))
print(x)

Failing test case input:
4 7

Expected output:
18


Actual output:
15


Fixed submission (verdict: Accepted):
k,s = map(int, input().split())

x =0

for i in range(min(k+1,s+1)):
    x += max(0, min(s-i,k)+1 - max(0,s-i-k) )

print(x)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = list(map(int, input().split()))


counter = 0
for x in range(k+1):
    for y in range(x+1):
        if 0 <= s - x - y <= k:
            counter += 1

print(counter)

Failing test case input:
100 22

Expected output:
276


Actual output:
144


Fixed submission (verdict: Accepted):
k, s = list(map(int, input().split()))


counter = 0
for x in range(k+1):
    for y in range(k+1):
        if 0 <= s - x - y <= k:
            counter += 1

print(counter)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = [int(num) for num in input().split()]

count = 0

for x in range(K + 1):
    for y in range(K + 1 - x):
        for z in range(K + 1 - x - y):

            if x + y + z == S:
                count += 1

print(count)


Failing test case input:
3 7

Expected output:
6


Actual output:
0


Fixed submission (verdict: Accepted):
K, S = [int(num) for num in input().split()]

count = 0

for x in range(K+1):
    for y in range(K+1):
        z = S - x - y
        if 0 <= z <= K:
            count += 1

print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K,S=map(int,input().split())

z = list(range(0,K+1))
answer = []

for i in z:
  s_z = S - i
  if K < s_z:
    if (K + 1) > (s_z - K):
      answer.append(K + 1 - (s_z - K))

  else:
      answer.append(s_z + 1)

print(sum(answer))

Failing test case input:
12 9

Expected output:
55


Actual output:
52


Fixed submission (verdict: Accepted):
K,S=map(int,input().split())

z = list(range(0,K+1))
answer = []

for i in z:
  s_z = S - i
  if s_z < 0:
    pass
  elif K < s_z:
    if (K + 1) > (s_z - K):
      answer.append(K + 1 - (s_z - K))
  else:
    answer.append(s_z + 1)

print(sum(answer))
Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == '__main__':
    b, c = map(int, input().split())
    num = b*3 -c
    if num == 0:
        num =1
    else:
        if num > b:
            num = b*3
        else:
            num = b *3
    print(num)


Failing test case input:
-22 1

Expected output:
0


Actual output:
-66


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    b, c = map(int, input().split())
    num = b*3 -c

    count = 0
    for i in range (0,b+1):
        for j in range(0,b+1):
            if c-(i+j)<=b and c-(i+j) >=0:
                count+=1
    print(count)

Problem: p03835
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys












stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)
MIN = -10 ** 9
MOD = 10 ** 9 + 7
INF = float("inf")
IINF = 10 ** 18

def solve():
    
    k,s = map(int, stdin.readline().rstrip().split())
    
    
    
    
    ans = 0
    for i in range(k+1):
        if i>s:
            break
        for j in range(i,k+1):
            z = s-i-j
            if z <= k:
                ans += 1
    print(ans)








if __name__ == '__main__':
    solve()


Failing test case input:
6 7

Expected output:
33


Actual output:
27


Fixed submission (verdict: Accepted):
import sys












stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)
MIN = -10 ** 9
MOD = 10 ** 9 + 7
INF = float("inf")
IINF = 10 ** 18

def solve():
    
    k,s = map(int, stdin.readline().rstrip().split())
    
    
    
    
    ans = 0
    for i in range(k+1):
        for j in range(k+1):
            z = s-i-j
            if 0<=z <= k:
                ans += 1
    print(ans)



if __name__ == '__main__':
    solve()

Problem: p03835
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k,s = map(int,input().split())
start = k
ans = 0
for i in range(start,k+1):
    for j in range(start,k+1):
        for l in range(start,k+1):
            if i+j+l == s:
                ans += 1
print(ans)

Failing test case input:
100 50

Expected output:
1326


Actual output:
0


Fixed submission (verdict: Accepted):
k,s = map(int,input().split())
ans = 0
for i in range(k+1):
    for j in range(k+1):
        dum = (s - (i + j))
        if dum < 0:
            continue
        if dum <= k:
            ans += 1
print(ans)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,s=map(int,input().split())

i=0

for l in range(k+1):
  for m in range(k+1):
    if 0<s-l-m<=k:
      i+=1
      
print(i)

Failing test case input:
13 12

Expected output:
91


Actual output:
78


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
 
i=0
 
for l in range(k+1):
  for m in range(k+1):
    if 0<=s-l-m<=k:
      i+=1
      
print(i)
Problem: p03835
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
k,s=map(int,input().split())

c=0
m=min(s,k)
for x in range(m+1):
  for y in range(m+1-x):
    for z in range(m+1-x-y):
      if x+y+z==s:
        c+=1
print(c)

Failing test case input:
8 10

Expected output:
57


Actual output:
0


Fixed submission (verdict: Accepted):
k,s=map(int,input().split())
 
c=0
m=min(s,k)
for x in range(m+1):
  for y in range(m+1):
    if s<x+y:
      break
    elif s>x+y+k:
      continue
    else:
      c+=1
print(c)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, s = map(int,input().split())

count=0

for i in range(k+1):
  for j in range(k+1):
      if s < i+j < s+k:
        count += 1
print(count)


Failing test case input:
100 27

Expected output:
406


Actual output:
7020


Fixed submission (verdict: Accepted):
k, s = map(int,input().split())

count=0

for i in range(k+1):
  for j in range(k+1):
      if s-k <= i+j <= s:
        count += 1
print(count)

Problem: p03835
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
K, S = map(int, input().split())
num = 0
for x in range(K + 1):
    ukou = S - x
    if ukou <= K * 2:
        y = K if K <= ukou else ukou
        z = ukou - y
        num += ((y + 1) - z)

print(num)


Failing test case input:
101 60

Expected output:
1891


Actual output:
1071


Fixed submission (verdict: Accepted):
K, S = map(int, input().split())
num = 0

for x in range(K + 1):
    ukou = S - x
    if (S >= x) and (ukou <= K * 2):
        y = K if K <= ukou else ukou
        z = ukou - y
        num += ((y + 1) - z)

print(num)
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
vow = ['a','i','u','e','o']

c = input()

if c in vow:
    print("vowel")
else:
    print("constant")    


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
vow = "aiueo"

c = input()

if c in vow:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    vowel = ["a", "e", "i", "o", "u"]
    c = input()
    if c in vowel:
        print("vowel")
    else:
        print("constant")
main()

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
def main():
    vowel = ["a", "e", "i", "o", "u"]
    c = input()
    if c in vowel:
        print("vowel")
    else:
        print("consonant")
main()

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if  'a' or 'e' or 'i' or 'o' or 'u' in c:
  print('vowel')
else:
  print('consonant')

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if  c in 'aeiou':
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c = str(input())

if c == 'a' and c == 'e' and c == 'i' and c == 'o' and c == 'u':
    print('Yes')
else:
    print('No')

Failing test case input:


Expected output:
consonant


Actual output:
No


Fixed submission (verdict: Accepted):
c = str(input())

if c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u':
    print('vowel')
else:
    print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c in "abcde":
    print("vowel")
else:
    print("consoant")

Failing test case input:


Expected output:
consonant


Actual output:
consoant


Fixed submission (verdict: Accepted):
c = input()
if c in "aiueo":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


s= str(input())
if s == "a" or "i" or "u" or "e" or "o":
    print("vowel")
else:
    print("consonant")



Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):


s= str(input())
if s == "a" or s =="i" or s =="u" or s == "e" or s == "o":
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c in "abcde":
    print("vowel")
else:
    print("consonat")

Failing test case input:


Expected output:
consonant


Actual output:
consonat


Fixed submission (verdict: Accepted):
c = input()
if c in "aiueo":
    print("vowel")
else:
    print("consonant")
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = str(input())
for c in "aiueo":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel
vowel
vowel
vowel
vowel
consonant


Fixed submission (verdict: Accepted):
c = str(input())
if c in "aiueo":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = ['a','i','u','e','o']
c = input()
if c in A:
    print("vowel")
else:
    print("consoant")

Failing test case input:


Expected output:
consonant


Actual output:
consoant


Fixed submission (verdict: Accepted):
A = ['a','i','u','e','o']
c = input()
if c in A:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
c=input()
if c=="a"or c=="i" or c=="u" or c=="e" or c=="o":
    print("vowel")
    exit()
print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c=input()
if c=="a"or c=="i" or c=="u" or c=="e" or c=="o":
    print("vowel")
    exit()
print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()

if c == "a" or "i" or "u" or "e" or "o" :
    print("vowel")
else:
    print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()

if c == "a" or c == "i" or c == "u" or c == "e" or c == "o" :
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
v = ["a", "i", "u", "e", "o"]
if c in v:
    print("vowel")
else:
    print("constant")
    

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
v = ["a", "i", "u", "e", "o"]
if c in v:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
for c in "aiueo":
  print("vowel")
else:
  print("consonant")


Failing test case input:


Expected output:
consonant


Actual output:
vowel
vowel
vowel
vowel
vowel
consonant


Fixed submission (verdict: Accepted):
c = str(input())
if c in "aiueo":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
ans = "vowel" if c == 'a' or 'i' or 'u' or 'e' or 'o' else "consonant"
print(ans)

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
ans = "vowel" if c in list("aiueo") else "consonant"
print(ans)

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u':
    print('vowel')
else:
    print('constant')

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
c = input()
if c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u':
    print('vowel')
else:
    print('consonant')
Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c=str(input())
if c=="a"or"i"or"u"or"e"or"o":
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c=str(input())
if c=="a"or c=="i"or c=="u"or c=="e"or c=="o":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
en=input()
print(en)
if en=="a"or en=="e" or en=="i"or en=="o"or en=="u":
  print("vowel")
else:
  print("consonant")



Failing test case input:


Expected output:
consonant


Actual output:

consonant


Fixed submission (verdict: Accepted):
en=input()
if en=="a"or en=="e" or en=="i"or en=="o"or en=="u":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
if "a" or "e" or "i" or "o" or "u" in c:
  print("vowel")
else:
  print("consonant")

Failing test case input:


Expected output:
consonant


Actual output:
vowel


Fixed submission (verdict: Accepted):
c = input()
if c in "aeiou":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_ = input()

if input_ in "aiueo":
  print("vowel")
else:
  print("constant")

Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
input_ = input()

if input_ in "aiueo":
  print("vowel")
else:
  print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
vowel = ['a','i','u','e','o']
if c in vowel:
  print('vowel')
else:
  ('consonant')

Failing test case input:


Expected output:
consonant


Actual output:

Fixed submission (verdict: Accepted):
c = input()
vowel = ['a','i','u','e','o']
if c in vowel:
  print('vowel')
else:
  print('consonant')

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
vow = "aiueo"

c = input()

if c in vow:
    print("vowel")
else:
    print("constant")    


Failing test case input:


Expected output:
consonant


Actual output:
constant


Fixed submission (verdict: Accepted):
vow = "aiueo"

c = input()

if c in vow:
    print("vowel")
else:
    print("consonant")

Problem: p03852
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
c = si()
b = ('a','i','u','e','o')

if c in b:
    print('vowel')
else:
    print('consonan')




Failing test case input:


Expected output:
consonant


Actual output:
consonan


Fixed submission (verdict: Accepted):
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
c = si()
b = ('a','i','u','e','o')

if c in b:
    print('vowel')
else:
    print('consonant')