Problem p03835 (python)

Fixed submission:
# coding: utf-8
# Your code here!

k, s = map(int, input().split())

cnt = 0

for i in range(k+1):
    for j in range(k+1):
        if s-i-j <= k and s-i-j>=0:
            cnt += 1

print(cnt)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]


prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = 0
ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!

import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]



ans = 0
ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!




ans = 0
ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!


k, s = map(int, input().split())

lst = [i for i in range(k+1)]


ans = 0
ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

Buggy submission (verdict: Runtime Error):

import itertools
import pandas as pd

k, s = map(int, input().split())

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]




ans = 0
ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]


prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = 0
ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]


prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]


prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k+1)]


prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i for i in range(k)]

prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = s_bool.sum()

print(ans)

Buggy submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
import itertools
import pandas as pd

k, s = map(int, input().split())

lst = [i+1 for i in range(k)]

prod = itertools.product(lst, repeat=3)

frame = pd.DataFrame(list(prod))

frame['ans'] = frame[0]+frame[1]+frame[2]

s_bool = (frame['ans'] ==s)

ans = s_bool.sum()
print(ans)