s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s099493705 | p03834 | u902242214 | 1601427362 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8816 | 41 | a, b, c = input().split(,)
print(a, b, c) |
s046137213 | p03834 | u902242214 | 1601427296 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8824 | 41 | x, y ,z = input().split(,)
print(x, y, z) |
s894680165 | p03834 | u401183062 | 1601307732 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8808 | 71 | string = input()
ans = string.replace(',', ' ')
print(ans) |
s564787717 | p03834 | u072964737 | 1600293579 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8940 | 154 | K,S = map(int,input().split())
count = 0
for i in range(K+1):
for j in range(K+1):
if 0 <= S-(i+j) <= K:
count += 1
print(count) |
s951534398 | p03834 | u072964737 | 1600293552 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9052 | 154 | K,S = map(int,input().split())
count = 0
for i in range(K+1):
for j in range(K+1):
if 0 <= S-(i+j) <= K:
count += 1
print(count) |
s427222210 | p03834 | u072964737 | 1600293509 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9160 | 154 | K,S = map(int,input().split())
count = 0
for i in range(K+1):
for j in range(K+1):
if 0 <= S-(i+j) <= N:
count += 1
print(count) |
s613224696 | p03834 | u678246254 | 1600044202 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9080 | 40 | A, B, C = input().split()
print(A, B, C) |
s337437136 | p03834 | u886902015 | 1599858385 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9004 | 27 | s=input()
print(s.split(,)) |
s948151074 | p03834 | u031852574 | 1598575423 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8980 | 45 | x,y,z = map(int,input().split())
print(z,x,y) |
s031880054 | p03834 | u940652437 | 1598230836 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9028 | 178 | K,S = map(int,input().split())
count = 0
for x in range(K+1):
r = S - x
if (x <= S and r <= K * 2):
t = (r + 1) - max(0,r - K) * 2
count += t
print(count) |
s828237883 | p03834 | u595952233 | 1598095986 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8692 | 32 | pritn(input().replace(',', ' ')) |
s506370870 | p03834 | u620846115 | 1597950761 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9072 | 30 | x = input()
x[5]=" "
x[13]=" " |
s854851728 | p03834 | u253205825 | 1597538766 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9000 | 44 | x, y, z = map(input().split(,))
print(x y z) |
s159567038 | p03834 | u103341055 | 1597354669 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9144 | 164 | K,S = map(int,input().split())
ans = 0
for x in range(K+1):
for y in range(x,K+1):
N = S - x -y
if 0<= N <= K:
ans +=1
print(ans) |
s259852955 | p03834 | u842028864 | 1597268434 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9076 | 32 | print(*list[input().split(",")]) |
s712544202 | p03834 | u921632705 | 1597159574 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9004 | 37 | x,y,z = int().split(',')
print(x,y,z) |
s160073255 | p03834 | u714104087 | 1596577081 | Python | PyPy3 (7.3.0) | py | Runtime Error | 90 | 74628 | 44 | a, b, c = input().split(",")
print(a b c)
|
s267864881 | p03834 | u921632705 | 1596483968 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9012 | 38 | x, y, z = input().split
print(x, y, z) |
s014545448 | p03834 | u629607744 | 1596426979 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8768 | 38 | s = map(str,input().split(,))
print(s) |
s197038162 | p03834 | u739843002 | 1596229672 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8968 | 31 | print(input().replace(",", " ") |
s292597715 | p03834 | u786020649 | 1594925083 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8868 | 39 | s=input()
s[5]=' '
s[13]=' '
print(s) |
s450921071 | p03834 | u073251521 | 1594477133 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8968 | 42 | x, y, z = input.split(",")
print(x, y, z) |
s337357319 | p03834 | u434587934 | 1594392749 | Python | PyPy3 (7.3.0) | py | Runtime Error | 153 | 74692 | 212 | a = input()
k, s = a.split(' ')
K = int(k)
S = int(s)
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
print(ans) |
s892203654 | p03834 | u447061059 | 1593916420 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9120 | 164 | 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) |
s051421564 | p03834 | u552116325 | 1593859050 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8900 | 42 | s = input()
return ' '.join(s.split(','))
|
s334324336 | p03834 | u552116325 | 1593858943 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 29 | return ' '.join(s.split(',')) |
s262907661 | p03834 | u369079926 | 1593668146 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9112 | 196 | import sys
k,s = map(int,sys.stdin.readline().split(' '))
result = 0
for x in range(k+1):
for y in range(min(s-x+1,k+1)):
if (s-x-y)<=k:
result+=1
print(result) |
s534759579 | p03834 | u679817762 | 1593373072 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9004 | 116 | #入力
input = input()
#リスト化
exec('lst = [' + input + ']')
#出力
print(lst[0], lst[1], lst[2], sep=' ') |
s805061295 | p03834 | u088488125 | 1593276087 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8996 | 36 | s=input()
print(s.replace(",", " ")
|
s526233991 | p03834 | u088488125 | 1593276046 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8952 | 34 | s=input()
print(s.replace("," " ") |
s843078510 | p03834 | u736577709 | 1592705581 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9088 | 37 | a,b,c=input(),split(",")
print(a,b,c) |
s896215046 | p03834 | u702018889 | 1592704248 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9096 | 134 | k,s=map(int,input().split())
ans=0
for x in range(k+1):
for y in range(k+1):
if 0<=s-x-y<=k:
ans+=1
print(ans) |
s438335742 | p03834 | u736577709 | 1592679120 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8916 | 24 | print(*input().sep(",")) |
s452471135 | p03834 | u729119068 | 1592507851 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 25 | print(*input().split(,))
|
s315411707 | p03834 | u190178779 | 1592367653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 225 | import sys
K,S = map(int,input().split())
if K < 2 or K > 2500:
sys.exit()
X = 0
count = 0
while X <= K:
Y = 0
while Y <= K:
Z = S - X - Y
if Z <= K and Z >= 0:
count += 1
Y += 1
X += 1
print(count) |
s590404199 | p03834 | u190178779 | 1592367259 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 290 | import sys
K,S = map(int,input().split())
if K < 2 or K > 2500:
sys.exit()
if X > K or Y > K or Z > K:
sys.exit()
X = 0
count = 0
while X <= K:
Y = 0
while Y <= K:
Z = 0
while Z <= K:
if X + Y + Z == S:
count += 1
Z += 1
Y += 1
X += 1
print(count) |
s889866294 | p03834 | u190178779 | 1592365064 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | import sys
import res
#X = list(map(str,input().split()))
X = str(input())
print(re.sub(',',' ',X)) |
s663559846 | p03834 | u820180033 | 1592358557 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 19 | haiku,atcoder,tasks |
s807739421 | p03834 | u614181788 | 1592009715 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 224 | sx,sy,tx,ty = map(int,input().split())
ans = ["U"]*(ty-sy) + ["R"]*(tx-sx) + ["D"]*(ty-sy) + ["L"]*(tx-sx+1) + ["U"]*(ty-sy+1) + ["R"]*(tx-sx+1) + ["D"] + ["R"] + ["D"]*(ty-sy+1) + ["L"]*(tx-sx+1) + ["U"]
print("".join(ans)) |
s752223224 | p03834 | u582614471 | 1591669699 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | k,s = map(int,input().split())
f = 0
for i in range(k+1):
for j in range(k+1):
l = s-i-j
if 0 <= l <=k:
f+=1
print(f) |
s266621616 | p03834 | u516579758 | 1591416277 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | s=input()
resutl=''
for i in s:
if i==',':
result+=' '
else:
result+=i
print(result) |
s081504685 | p03834 | u548525760 | 1591070113 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 223 | 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 s == x + y + z:
ans += 1
else:
pass
print(ans) |
s941230843 | p03834 | u548525760 | 1591070085 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | 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 s == x + y + z:
ans += 1
else:
pass
print(ans) |
s874931113 | p03834 | u357751375 | 1591067264 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | a,b,c = input().split(',')
print(a + '' + B + '' + C) |
s618067219 | p03834 | u401390528 | 1590997432 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 249 | import sys
input = sys.stdin.readline
K,S=map(int,input().split())
if 2<=K<=2500:
if 0<=S<=3*K:
count=0
for x in range(K+1):
for y in range(K+1):
for z in range(K+1):
if z==S-x-y: count+=1
print(count) |
s346511840 | p03834 | u401390528 | 1590988144 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38256 | 681 | K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
Ks=[]
wa=[]
for i in range(K+1):
Ks.append(i)
X,Y,Z =Ks,Ks,Ks
for x in X:
if x<=S:
X_=[]
X_.append(x)
for y in Y:
if y<=S:
X_Y_=[]
X_Y_=list(X_)
X_Y_.append(y)
for z in Z:
if z<=S:
X_Y_Z_=list(X_Y_)
X_Y_Z_.append(z)
wa_=sum(X_Y_Z_)
wa.append(wa_)
for j in wa:
if j==S:
count+=1
print(count) |
s045302854 | p03834 | u401390528 | 1590987189 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 528 | K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
count=0
Ks=[]
wa=[]
for i in range(K+1):
Ks.append(i)
X,Y,Z =Ks,Ks,Ks
for x in X:
X_=[]
X_.append(x)
for y in Y:
X_Y_=[]
X_Y_=X_.copy()
X_Y_.append(y)
for z in Z:
X_Y_Z_=X_Y_.copy()
X_Y_Z_.append(z)
wa_=sum(X_Y_Z_)
wa.append(wa_)
for j in wa:
if j==S:
count+=1
print(count) |
s841451567 | p03834 | u401390528 | 1590987149 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 496 | K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
count=0
Ks=[]
wa=[]
for i in range(K+1):
Ks.append(i)
X,Y,Z =Ks,Ks,Ks
for x in X:
X_=[]
X_.append(x)
for y in Y:
X_Y_=[]
X_Y_=X_.copy()
X_Y_.append(y)
for z in Z:
X_Y_Z_=X_Y_.copy()
X_Y_Z_.append(z)
wa_=sum(X_Y_Z_)
wa.append(wa_)
print(len([c for c in wa if c==S])) |
s917667490 | p03834 | u401390528 | 1590986713 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 528 | K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
count=0
Ks=[]
wa=[]
for i in range(K+1):
Ks.append(i)
X,Y,Z =Ks,Ks,Ks
for x in X:
X_=[]
X_.append(x)
for y in Y:
X_Y_=[]
X_Y_=X_.copy()
X_Y_.append(y)
for z in Z:
X_Y_Z_=X_Y_.copy()
X_Y_Z_.append(z)
wa_=sum(X_Y_Z_)
wa.append(wa_)
for j in wa:
if j==S:
count+=1
print(count) |
s756627571 | p03834 | u401390528 | 1590986632 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 554 | K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
count=0
Ks=[]
wa=[]
for i in range(K+1):
Ks.append(i)
X,Y,Z =Ks,Ks,Ks
for x in X:
X_=[]
X_.append(x)
for y in Y:
X_Y_=[]
X_Y_=X_.copy()
X_Y_.append(y)
for z in Z:
X_Y_Z_=[]
X_Y_Z_=X_Y_.copy()
X_Y_Z_.append(z)
wa_=sum(X_Y_Z_)
wa.append(wa_)
for j in wa:
if j==S:
count+=1
print(count) |
s883059768 | p03834 | u739798900 | 1590979146 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | s_in = input()
s_out = s.replace(",", " ", 2)
print(s_out) |
s595154243 | p03834 | u842028864 | 1590711555 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 39 | a,b.c = input().split(",")
print(a,b,c) |
s319703336 | p03834 | u378157957 | 1590658386 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | k, s = map(int, input().split())
idx = 0
for x in range(k+1):
for y in range(k+1):
if 0 <= s - x - y <= k:
idx += 1
print(idx) |
s712243735 | p03834 | u594956556 | 1590555008 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | print(' '.join(input().split(',')) |
s708093554 | p03834 | u732743460 | 1590464069 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | s =input()
print(s[:5]+" "+s[6:13]+" "+s[14:] |
s908296947 | p03834 | u602972961 | 1590175224 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 51 | a, b, c=map(int, input().split(','))
print(a, b, c) |
s714498223 | p03834 | u611090896 | 1590108518 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | a,b,c = input().split()
print(a+" "+b+" "+c) |
s529309066 | p03834 | u611090896 | 1590108458 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 36 | a,b,c = input().split()
print(a,b,c) |
s041058572 | p03834 | u397953026 | 1590090033 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | s=str(input())
for i in s:
if s[i]==",":
s=s[:i]+" "+s[i+1:]
print(s) |
s647468218 | p03834 | u854061980 | 1589853107 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 177 | 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
print(ans) |
s618850184 | p03834 | u895040371 | 1589750091 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | A,B,C =map(str, input().split(,))
print(A,B,C) |
s953551459 | p03834 | u559346857 | 1589739744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 25 | s=input(),sep","
print(s) |
s529269262 | p03834 | u612975321 | 1589714218 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | K, S = map(int, input().split())
cnt = 0
for i in range(K+1):
for j in range(K+1):
k = S - i - j
if k >= 0 and k <= K:
cnt += 1
print(cnt) |
s418520715 | p03834 | u446828107 | 1589706038 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 41 | a, b, c = input().split(,)
print(a, b, c) |
s174419331 | p03834 | u446828107 | 1589705991 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | a, b, c = map(input().split(,))
print(a, b, c) |
s107543972 | p03834 | u872748813 | 1589359624 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 245 | import sys
input = sys.stdin.readline
K,S=map(int,input().split())
z=list(range(K+1))
ans=[]
for i in z:
s_z=S-i
if s_z<0:
pass
elif K<s_z:
if (K+1)>(s_z-K):
ans.append(2*K-s_z+1)
else:
ans.append(s_z+1)
print(sum(ans)) |
s317497050 | p03834 | u872748813 | 1589358433 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 287 | import sys
input = sys.stdin.readline
K,S=map(int,input().split())
z = list(range(K+1))
ans = [None]*(K+1)
for i in z:
s_z = S - i
if s_z < 0:
ans[i] = 0
elif K < s_z:
if (K + 1) > (s_z - K):
ans[i] = 2*K - s_z + 1
else:
ans[i] = s_z + 1
print(sum(ans)) |
s963452277 | p03834 | u872748813 | 1589357596 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 271 | import sys
input = sys.stdin.readline
K,S=map(int,input().split())
z = list(range(K+1))
ans = []
for i in z:
s_z = S - i
if s_z < 0:
pass
elif K < s_z:
if (K + 1) > (s_z - K):
ans[i] = 2*K - s_z + 1
else:
ans[i] = s_z + 1
print(sum(ans)) |
s689814984 | p03834 | u872748813 | 1589357192 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 281 | import sys
input = sys.stdin.readline
K,S=map(int,input().split())
z = list(range(K+1))
ans = []
for i in z:
s_z = S - i
if s_z < 0:
pass
elif K < s_z:
if (K + 1) > (s_z - K):
ans.append(K + 1 - (s_z - K))
else:
ans.append(s_z + 1)
print(sum(ans)) |
s737338807 | p03834 | u975016227 | 1589351136 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 143 | k, s = list(map(int, input().split()))
num = 0
for x in range(k+1):
for y in range(k+1):
if s-k <= x+y <= s:
num += 1
print(num)
|
s915570087 | p03834 | u021114240 | 1589272150 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 44 | s=input()
a=list(input.split(","))
print(*a) |
s303423003 | p03834 | u359007262 | 1589167944 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 315 | import sys
input = sys.stdin.readline
def main():
K,S = [int(x) for x in input().split()]
count = 0
for x in range(K+1):
for y in range(K+1):
z = S - (x + y)
if z >= 0 and z <= K:
count += 1
print(count)
if __name__ == '__main__':
main() |
s658813231 | p03834 | u359007262 | 1589167202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 575 | limit, sum_xyz = map(int, input().split())
pair = list()
x_bottom = sum_xyz - 2*limit
if x_bottom < 0:
x_bottom = 0
else:
x_bottom = x_bottom
for i in range(limit, x_bottom - 1, -1):
x = i
y_limit = 0
if sum_xyz - x >= limit:
y_limit = limit
else:
y_limit = sum_xyz - x
y_bottom = sum_xyz - x - limit
if y_bottom < 0:
y_bottom = 0
else:
y_bottom = y_bottom
for j in range(y_limit, y_bottom - 1, -1):
y = j
z = sum_xyz - x - y
pair.append([x, y, z])
ans = len(pair)
print(ans) |
s943606939 | p03834 | u359007262 | 1589084411 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38256 | 521 | limit, sum_xyz = map(int, input().split())
pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom
for i in range(limit, x_bottom - 1, -1):
x = i
y_limit = 0
if sum_xyz - x >= limit:
y_limit = limit
else:
y_limit = sum_xyz - x
y_bottom = sum_xyz - x - limit
y_bottom = 0 if y_bottom < 0 else y_bottom
for j in range(y_limit, y_bottom - 1, -1):
y = j
z = sum_xyz - x - y
pair.append([x, y, z])
ans = len(pair)
print(ans) |
s914002668 | p03834 | u359007262 | 1589084383 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 521 | limit, sum_xyz = map(int, input().split())
pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom
for i in range(limit, x_bottom - 1, -1):
x = i
y_limit = 0
if sum_xyz - x >= limit:
y_limit = limit
else:
y_limit = sum_xyz - x
y_bottom = sum_xyz - x - limit
y_bottom = 0 if y_bottom < 0 else y_bottom
for j in range(y_limit, y_bottom - 1, -1):
y = j
z = sum_xyz - x - y
pair.append([x, y, z])
ans = len(pair)
print(ans) |
s780224360 | p03834 | u359007262 | 1589084342 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 521 | limit, sum_xyz = map(int, input().split())
pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom
for i in range(limit, x_bottom - 1, -1):
x = i
y_limit = 0
if sum_xyz - x >= limit:
y_limit = limit
else:
y_limit = sum_xyz - x
y_bottom = sum_xyz - x - limit
y_bottom = 0 if y_bottom < 0 else y_bottom
for j in range(y_limit, y_bottom - 1, -1):
y = j
z = sum_xyz - x - y
pair.append([x, y, z])
ans = len(pair)
print(ans) |
s945030027 | p03834 | u359007262 | 1589083338 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 511 | limit, sum_xyz = map(int, input().split())
pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom
for i in range(limit, x_bottom - 1, -1):
x = i
y_limit = 0
if sum_xyz - x >= limit:
y_limit = limit
else:
y_limit = sum_xyz - x
y_bottom = sum_xyz - x - limit
y_bottom = 0 if y_bottom < 0 else y_bottom
for j in range(y_limit, y_bottom - 1, -1):
y = j
z = sum_xyz - x - y
pair.append([x, y, z])
print(len(pair)) |
s238810962 | p03834 | u359007262 | 1589083302 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 511 | limit, sum_xyz = map(int, input().split())
pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom
for i in range(limit, x_bottom - 1, -1):
x = i
y_limit = 0
if sum_xyz - x >= limit:
y_limit = limit
else:
y_limit = sum_xyz - x
y_bottom = sum_xyz - x - limit
y_bottom = 0 if y_bottom < 0 else y_bottom
for j in range(y_limit, y_bottom - 1, -1):
y = j
z = sum_xyz - x - y
pair.append([x, y, z])
print(len(pair)) |
s191556990 | p03834 | u884795391 | 1589061873 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 30 | s = input()
print(s.split(',') |
s884680637 | p03834 | u258565089 | 1588952707 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38384 | 210 | K,S = map(int, input().split())
n = 0
for i in range(K+1):
for j in range(K+1):
for k in range(K+1):
if i+j+k ==S:
n=n+1
else:
n =n
print(n)
|
s165979525 | p03834 | u901598613 | 1588822473 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 42 | a,b,c=input().split()
print(a+" "+b+" "+c) |
s393205835 | p03834 | u883040023 | 1588722465 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 175 | k,s = map(int,input().split())
ans = 0
for x in range(min(k,s)+1):
for y in range(min(k,s)+1):
if 0 <= s - x - y <= min(k,s):
ans += 1
print(ans) |
s076613087 | p03834 | u450832845 | 1588640589 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1904 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, n) for (int i = 1; i <= (n); i++)
#define all(x) begin(x), end(x)
#define uniq(x) (x).erase(unique(all(x)), end(x))
#define bit(n) (1LL << (n))
#define cdiv(a, b) (((a) - 1) / (b) + 1)
#define dump(x) cerr << #x " = " << (x) << endl
using vint = vector<int>;
using vvint = vector<vint>;
using pint = pair<int, int>;
using vpint = vector<pint>;
template<typename T> using priority_queue_rev = priority_queue<T, vector<T>, greater<T>>;
constexpr long double PI = 3.1415926535897932384626433832795028L;
constexpr int DY[8] = {0, 1, 0, -1, 1, 1, -1, -1};
constexpr int DX[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int gcd(int a, int b) {
while (b) { swap(a %= b, b); }
return a;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
template<typename T> void fin(T mes) {
cout << mes << endl;
exit(0);
}
template<typename T, typename U> bool chmax(T &a, const U &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template<typename T, typename U> bool chmin(T &a, const U &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
template<typename T, typename U> ostream &operator<<(ostream &os, const pair<T, U> &rhs) {
os << "(" << rhs.first << ", " << rhs.second << ")";
return os;
}
template<typename T> ostream &operator<<(ostream &os, const vector<T> &rhs) {
os << "{";
for (auto itr = rhs.begin(); itr != rhs.end(); itr++) {
os << *itr << (next(itr) != rhs.end() ? ", " : "");
}
os << "}";
return os;
}
struct setup {
static constexpr int PREC = 20;
setup() {
cout << fixed << setprecision(PREC);
cerr << fixed << setprecision(PREC);
};
} setup;
string s;
signed main() {
cin >> s;
s[5] = s[13] = ' ';
cout << s << endl;
}
|
s787901830 | p03834 | u667024514 | 1588640438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 49 | a,b,c = map(str(input().split(",")))
print(a,b,c) |
s564386246 | p03834 | u600261652 | 1588380151 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 41 | a, b, c = input.split(",")
print(a, b, c) |
s503909969 | p03834 | u124498235 | 1588195255 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | k, s = map(int, input().split())
cnt = 0
for i in range(k+1):
for j in range(k+1):
z = s - (i+j)
if z >= 0 and z <= k:
cnt += 1
print (cnt) |
s230841907 | p03834 | u821775079 | 1588182441 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 28 | s=input.split(",")
print(*s) |
s171557804 | p03834 | u821775079 | 1588182393 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | s=list(input.split(","))
print(*s) |
s512966888 | p03834 | u681323954 | 1588166834 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 48 | s = input()
print(s[:5]+' '+s[6:13]+' '+a[14:])
|
s867299301 | p03834 | u681323954 | 1588166774 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 47 | s = input()
print(s[:5]+' '+s[6:13]+' '+a[14:]) |
s013088718 | p03834 | u115877451 | 1588004005 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | a=input()
print(a.replace(',',' ') |
s093264244 | p03834 | u955135274 | 1587937912 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 191 | k, s = map(int, input().split())
i = 0
x = 0
for x in range(0,k+1):
for y in range(0,k+1):
for z in range(0,k+1):
p = x+y+z
if x+y+z == s: i += 1
print(i) |
s340447076 | p03834 | u254221913 | 1587758469 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 157 | K, S = map(int, input().split())
count = 0
for i in range(K+1):
for j in range(K+1):
if 0<=S-i-j<=K:
count += 1
print(count)
|
s266271888 | p03834 | u254221913 | 1587758447 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 154 | K, S = map(int, input().split())
count = 0
for i in range(K+1):
for j in range(K+1):
if S-i-j<=K:
count += 1
print(count)
|
s825168749 | p03834 | u254221913 | 1587758272 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38640 | 185 | K, S = map(int, input().split())
count = 0
for i in range(K+1):
for j in range(K+1):
for k in range(K+1):
if i+j+k == S:
count += 1
print(count)
|
s864378103 | p03834 | u614964888 | 1587626948 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | a,b,c=input().split()
print(a,b,c) |
s364143499 | p03834 | u614964888 | 1587626839 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 42 | a,b,c=map(input().split(","))
print(a,b,c) |
s251608893 | p03834 | u166849422 | 1587546388 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 36 | a,b,c = input().split()
print(a,b,c) |
s137926110 | p03834 | u130203301 | 1587538096 | Python | PyPy3 (2.4.0) | py | Runtime Error | 162 | 40304 | 228 | k, s = map(int, input().split())
def fun(k, s):
count = 0
for i in range(k+1):
for j in range(k+1):
if s - i - j <= k or s - i - j >= 0:
count += 1
return count
print(fun(k, s)) |
s875121191 | p03834 | u842696304 | 1587514477 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 19 | happy,newyear,enjoy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.