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
s513186340
p03834
u266874640
1558989331
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
K,S = map(int,input().split()) count=0 for x in range(K+1): for y in range(K+1): if 0 <= S-x-y <= K: count += 1 print(count)
s537927273
p03834
u067729694
1557981343
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38512
3689
N, M = map(int, input().split()) ABC = [] for _ in range(M): a, b, c = map(int, input().split()) ABC.append((a, b, c)) edges = ABC[:] from collections import deque, namedtuple # we'll use infinity as a default distance to nodes. inf = 1000*1000*10 Edge = namedtuple('Edge', 'start, end, cost') def make_edge(start, end, cost=1): return Edge(start, end, cost) class Graph: def __init__(self, edges): # let's check that the data is right wrong_edges = [i for i in edges if len(i) not in [2, 3]] if wrong_edges: raise ValueError('Wrong edges data: {}'.format(wrong_edges)) self.edges = [make_edge(*edge) for edge in edges] @property def vertices(self): return set( sum( ([edge.start, edge.end] for edge in self.edges), [] ) ) def get_node_pairs(self, n1, n2, both_ends=True): if both_ends: node_pairs = [[n1, n2], [n2, n1]] else: node_pairs = [[n1, n2]] return node_pairs def remove_edge(self, n1, n2, both_ends=True): node_pairs = self.get_node_pairs(n1, n2, both_ends) edges = self.edges[:] for edge in edges: if [edge.start, edge.end] in node_pairs: self.edges.remove(edge) def add_edge(self, n1, n2, cost=1, both_ends=True): node_pairs = self.get_node_pairs(n1, n2, both_ends) for edge in self.edges: if [edge.start, edge.end] in node_pairs: return ValueError('Edge {} {} already exists'.format(n1, n2)) self.edges.append(Edge(start=n1, end=n2, cost=cost)) if both_ends: self.edges.append(Edge(start=n2, end=n1, cost=cost)) @property def neighbours(self): neighbours = {vertex: set() for vertex in self.vertices} for edge in self.edges: neighbours[edge.start].add((edge.end, edge.cost)) return neighbours def dijkstra(self, source, dest): assert source in self.vertices, 'Such source node doesn\'t exist' distances = {vertex: inf for vertex in self.vertices} previous_vertices = { vertex: None for vertex in self.vertices } distances[source] = 0 vertices = self.vertices.copy() while vertices: current_vertex = min( vertices, key=lambda vertex: distances[vertex]) vertices.remove(current_vertex) if distances[current_vertex] == inf: break for neighbour, cost in self.neighbours[current_vertex]: alternative_route = distances[current_vertex] + cost if alternative_route < distances[neighbour]: distances[neighbour] = alternative_route previous_vertices[neighbour] = current_vertex path, current_vertex = deque(), dest while previous_vertices[current_vertex] is not None: path.appendleft(current_vertex) current_vertex = previous_vertices[current_vertex] if path: path.appendleft(current_vertex) return path #print(edges) # 無効グラフなので逆向きのエッジも作る rev_edges = [ (b,a,c) for a,b,c in edges ] graph = Graph(edges + rev_edges) shotest_set = set() for a in range(1, N+1): for b in range(a+1, N+1): shortest = graph.dijkstra(a, b) shortest = list(shortest) print(shortest) for x, y in zip(shortest[:-1],shortest[1:]): x, y = min(x, y), max(x, y) shotest_set.add((x,y)) #print(edges) #print(shotest_set) print(len(edges) - len(shotest_set))
s285199337
p03834
u589381719
1557458733
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
a,b,c = input().split() print(a+" "+b+" "+c)
s295063522
p03834
u941438707
1557441804
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
19
happy,newyear,enjoy
s451244983
p03834
u166621202
1556906973
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
K,S=map(int,input()) cnt = 0 for x in range(K+1): for y in range(K+1): if 0 <= S-x-y <= K cnt += 1 print(cnt)
s954115876
p03834
u713314489
1556849430
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
#%% k, s = map(int,input().split()) #%% count = 0 for x in range(k + 1): for y in range(k - x +1): if x + y + (k-x-y) == s: count += 1 print(count)
s650737546
p03834
u055941944
1556593933
Python
Python (3.4.3)
py
Runtime Error
17
3064
176
sx,sy,tx,ty=map(int,input().split()) x=tx-sx y=ty-sy ans="" ans="U"*x + "R"*y ans+="D"*x + "L"*y ans+="L"+"U"*(x+1)+"R"*(x+1)+"D" ans+="R"+"D"*(x+1)+"L"*(y+1)+"U" print(ans)
s893778675
p03834
u263830634
1556546044
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
K, S = map(int, input().split()) count = 0 for x in range(0,K): for y in range(0,K): a = S-x-y if a <= K and a>= 0: count += 1 print (count)
s424563217
p03834
u177411511
1556289977
Python
Python (3.4.3)
py
Runtime Error
17
2940
167
k, s = list(map(int, input().split())) ct = 0 for x in range(k+1): for y in range(k+1): z = s - x - y if 0 <= z <= k: ct += 1 print(ct)
s603726513
p03834
u177411511
1556288798
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38512
415
k, s = list(map(int, input().split())) ct = 0 for x in range(k+1): for y in range(x, k+1): if x + y > s: break; for z in range(y, k+1): if x + y + z == s: if x == y and y == z: ct += 1 elif x != y and y != z: ct += 6 else: ct += 3 break; print(ct)
s384996878
p03834
u177411511
1556287752
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38384
208
k, s = list(map(int, input().split())) ct = 0 for x in range(k+1): for y in range(k+1): for z in range(k+1): if x + y + z == s: ct += 1 break; print(ct)
s622716089
p03834
u457960175
1556212413
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
s = input() print(s.replace(","," ")
s251358804
p03834
u457960175
1556212397
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
s = input() prin(s.replace(","," ")
s542868148
p03834
u457960175
1556212273
Python
Python (3.4.3)
py
Runtime Error
17
2940
41
s = str(input()) print(s.replace(',',' ')
s519392417
p03834
u457960175
1556212188
Python
Python (3.4.3)
py
Runtime Error
18
2940
36
a = input() print(a.replace(',',' ')
s887148738
p03834
u975676823
1556211215
Python
Python (3.4.3)
py
Runtime Error
18
2940
264
a, b, c = input().split(sep = ", ") if(len(a) == 7): print(b.lower() + " " + a.lower() + " " + c.lower()) elif(len(b) == 7): print(a.lower() + " " + b.lower() + " " + c.lower()) elif(len(c) == 7): print(a.lower() + " " + c.lower() + " " + b.lower*(()
s225018985
p03834
u975676823
1556210508
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
a, b, c = input().split(sep = ", ") print(a + " " + b + " " + c)
s418197194
p03834
u794250528
1556160681
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
268
sx, sy, tx, ty = map(int, input().split()) dx, dy = tx - sx, ty - sy ans = "" ans += 'U' * dy + 'R' * dx ans += 'D' * dy + 'L' * dx ans += 'L' ans += 'U' * (dy + 1) + 'R' * (dx + 1) ans += 'D' ans += 'R' ans += 'D' * (dy + 1) + 'L' * (dx + 1) ans += 'U' print(ans)
s790649401
p03834
u396495667
1555862365
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
a,b,c = map(input().split(",")) print(a,b,c)
s663155920
p03834
u396495667
1555862340
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
a,b,c = map(input().split(",")) print(A,b,c)
s786658990
p03834
u396495667
1555862297
Python
Python (3.4.3)
py
Runtime Error
18
2940
42
a,b,c = map(int().split(",")) print(A,b,c)
s576639775
p03834
u957872856
1555436762
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
a,b,c = input().split(,) print(a+" "+b+" "+c)
s541513815
p03834
u331464808
1555427129
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
s =input().split(',') a =s.split() print(a)
s986702845
p03834
u331464808
1555425905
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
s =input() a =s.split('') print(a)
s189715906
p03834
u969190727
1555197920
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
a,b,c=input()split(",") print(a,b,c)
s916904469
p03834
u220345792
1555183598
Python
Python (3.4.3)
py
Runtime Error
18
2940
55
S = list(input().split()) print(S[0]+" "+S[1]+" "+S[2])
s840455491
p03834
u163320134
1555156179
Python
Python (3.4.3)
py
Runtime Error
18
2940
85
s=str(input()) s1=str[:5] s2=str[6:13] s3=str[14:] print('{} {} {}'.format(s1,s2,s3))
s437917526
p03834
u163320134
1555156084
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
s=str(input()) s1=str[:5] s2=str[6:12] s3=str[14:] print('{} {} {}'.format(s1,s2,s3))
s382368958
p03834
u256868077
1555111435
Python
Python (3.4.3)
py
Runtime Error
17
2940
27
s=input() print(s.strip(,))
s111389458
p03834
u019566983
1554875405
Python
Python (3.4.3)
py
Runtime Error
17
2940
25
print(*input().split(',')
s114111560
p03834
u675497468
1554782318
Python
Python (3.4.3)
py
Runtime Error
17
3060
417
def main(input_str): nums = list(map(int, input_str.split())) count = 0 for num_1 in range(nums[0]+1): for num_2 in range(nums[0]+1): for num_3 in range(nums[0]+1): result = num_1 + num_2 + num_3 if result == nums[1]: count += 1 return len(count) if __name__ == "__main__": input_str = input() print(main(input_str))
s046587880
p03834
u798129018
1554747841
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
s = input() s[5] = " " s[13] = " " print(s)
s400519945
p03834
u777394984
1554598352
Python
Python (3.4.3)
py
Runtime Error
17
3064
85
s = Input() r1 = s[0:4] r2 = s[6:12] r3 = s[14:] print("{} {} {}".format(r1, r2, r3))
s153517910
p03834
u655975843
1554322645
Python
Python (3.4.3)
py
Runtime Error
17
3064
46
s = input()$ s = s.replace(',', ' ')$ print(s)
s323289958
p03834
u911575040
1554072546
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a,b,c=input().split(' ') if b=='+': print(int(a)+int(c)) else: print(int(a)-int(c))
s958959709
p03834
u367130284
1553606897
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
a,b=map(int,input().split());print(sum(a>=b-s-t>=0for t in range(a+1)for s in range(a+1)))
s594492218
p03834
u366959492
1553380496
Python
Python (3.4.3)
py
Runtime Error
17
2940
38
s=input() s[7]=" " s[15]=" " print(s)
s157588367
p03834
u518042385
1553007897
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
l=list(input()) l[5]="" l[12]="" print(sum(l))
s685062877
p03834
u366959492
1552958714
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
s=input() s.raplace(","," ") print(s)
s641084706
p03834
u366959492
1552958570
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
str(s) s=input() s.raplace(","," ") print(s)
s292776478
p03834
u366959492
1552958466
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
s=str(input()) s.raplace(","," ") print(s)
s556560963
p03834
u366959492
1552958355
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
s=str(input()) s[5]=" " s[13]=" " print(s)
s584522683
p03834
u924737192
1552956947
Python
Python (3.4.3)
py
Runtime Error
149
12452
369
import numpy as np import sys x = [[int(i) for i in input().split()] for j in range(1)] k = x[0][0] s = x[0][1] #k = 5 #s = 15 count = 0 for x in range(k+1): if x == s: count = count + 1 break if x + k < s: count = count if 2*k + x >= s: count = count + 1 if s <= x + k: count = count + (s-x+1) print(count)
s502974847
p03834
u924737192
1552954603
Python
Python (3.4.3)
py
Runtime Error
149
12448
479
import numpy as np import sys x = [[int(i) for i in input().split()] for j in range(1)] k = x[0][0] s = x[0][1] #k = 5 #s = 15 count = 0 for x in range(k+1): if s < x: break for y in range(k+1): if s < x + y: break if x + 2*k < s: break for z in range(k+1): if x + y + z == s: count = count + 1 break if x + y + k < s: break print(count)
s377250447
p03834
u924737192
1552953931
Python
Python (3.4.3)
py
Runtime Error
149
12472
384
import numpy as np import sys x = [[int(i) for i in input().split()] for j in range(1)] k = x[0][0] s = x[0][1] #k = 5 #s = 15 count = 0 for x in range(k+1): if s < x: break for y in range(k+1): if s < x + y: break for z in range(k+1): if x + y + z == s: count = count + 1 break print(count)
s183159309
p03834
u924737192
1552953859
Python
Python (3.4.3)
py
Runtime Error
148
12472
384
import numpy as np import sys x = [[int(i) for i in input().split()] for j in range(1)] k = x[0][0] s = x[0][1] #k = 5 #s = 15 count = 0 for x in range(k+1): if s < x: break for y in range(k+1): if s < x + y: break for z in range(k+1): if x + y + z == s: count = count + 1 break print(count)
s073022525
p03834
u118642796
1552507358
Python
PyPy3 (2.4.0)
py
Runtime Error
190
38640
38
s = input().split() print(s.join(" "))
s805591811
p03834
u845620905
1552506489
Python
Python (3.4.3)
py
Runtime Error
18
2940
85
a = input().split(',') ans = "" for i in a: ans += a[i] + " " ans -= " " print(ans)
s211142643
p03834
u933722792
1552496363
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
K, S = map(int, input().split()) counter = 0 for x in range(K + 1): for y in range(K + 1): z = S - x - y if 0 <= z and z <= K: counter += 1 print(counter)
s856246569
p03834
u588633699
1552495906
Python
Python (3.4.3)
py
Runtime Error
18
2940
41
s=input() s[5] = " " s[13] = " " print(s)
s260183339
p03834
u933722792
1552492780
Python
Python (3.4.3)
py
Runtime Error
18
2940
204
"""ABC051_B """ K, S = map(int, input().split()) counter = 0 for x in range(K + 1): for y in range(K + 1): z = S - x - y if 0 <= z and z <= K: counter += 1 print(counter)
s410381824
p03834
u251123951
1551630537
Python
Python (3.4.3)
py
Runtime Error
19
2940
37
a,b,c=input().split(".") print(a,b,c)
s303961827
p03834
u403984573
1551302584
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
a=input().split() print(a[0:4]+" "+a[6:12]+" "+a[13:17])
s492736473
p03834
u177756077
1550467018
Python
Python (3.4.3)
py
Runtime Error
20
3060
134
K,S=map(int,input().split()) num=0 for i in range(K+1): for j in range(K+1): if 0<=S-i-j<=K: num+=1 print(num)
s156222962
p03834
u488178971
1550427495
Python
Python (3.4.3)
py
Runtime Error
17
3060
219
# ABC 051 B - Sum of Three Integers  li = list(map(int,input().split())) k = li[0] s = li[1] cnt =0 for x in range(k+1): for y in range(k+1): z = s-x-y if 0<= z <= k: cnt+=1 print(cnt)
s518626734
p03834
u518064858
1550267867
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
a,b,c=input().split(,) print(a+" "+b+" "+c)
s804205535
p03834
u439392790
1550204719
Python
Python (3.4.3)
py
Runtime Error
20
2940
49
a,b,c=map(str,input.split()) print('a'+ 'b'+ 'c')
s721173779
p03834
u811000506
1550195358
Python
Python (3.4.3)
py
Runtime Error
17
3060
199
K, S = map(int,input().split()) count = 0 for x in range(0,K+1,1): for y in range(0,K+1,1): z = S - x - y print(x,y,z) if x+y+z == S and z <= K and z >= 0: count += 1 print(count)
s697125150
p03834
u276250981
1549096207
Python
Python (3.4.3)
py
Runtime Error
18
3060
207
k,s=map(int,input().split(" ")) c=0 for i in range(k+1): for j in range(k+1): if i+j>s: break for l in range(k+1): if i+j+l==s: c+=1 if i+j+l>s: break print(c)
s043196734
p03834
u045270305
1548984987
Python
Python (3.4.3)
py
Runtime Error
18
2940
215
l = input().split() K, S = map(int, l) max = K+1 count = 0 for x in range(0, max): for y in range(0, max): z = S - x - y if 0 <= z <= K : count +=1 print(count)
s813014799
p03834
u045270305
1548984931
Python
Python (3.4.3)
py
Runtime Error
17
2940
216
l = input().split() K, S = map(int, l) max = K+1 count = 0 for x in range(0, max): for y in range(0, max): z = S - x - y if 0 <= z <= K : count +=1 print(count)
s152692638
p03834
u201856486
1548369480
Python
Python (3.4.3)
py
Runtime Error
18
2940
87
k,s=map(int,input().split());r=range(k+1);print(sum(0<=s-x-y<=k for x in r for y in r))
s429341188
p03834
u201856486
1548368729
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
k,s=map(int,input().split());r=range;print(sum(1for x in r(k+1)for y in r(k+1)if 0<=s-x-y<=k))
s171639088
p03834
u231647664
1547863457
Python
Python (3.4.3)
py
Runtime Error
18
2940
65
h = list(map(str, input().split(,))) ans = ' '.join(h) print(ans)
s973545182
p03834
u740284863
1546960183
Python
Python (3.4.3)
py
Runtime Error
18
2940
183
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)
s008409434
p03834
u181431922
1546455508
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
s = input() print(s.replace(',',' '))
s765202962
p03834
u181431922
1546455471
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
s = input() print(S.replace(',',' '))
s946145072
p03834
u020604402
1546201267
Python
Python (3.4.3)
py
Runtime Error
19
3064
429
x1,y1,x2,y2 = map(int ,input().split()) x = x2 - x1 y = y2 - y1 ans = '' a = 'U' b = 'D' c = 'R' d = 'L' for _ in range(y): ans += a for _ in range(x): ans += c for _ in range(y): ans += b for _ in range(x) : ans += d ans += d for _ in range(y + 1): ans += a for _ in range(x +1): ans += c ans += b ans += c for _ in range(y + 1): ans += b for _ in range(x + 1): ans += d ans += a print(ans)
s486212640
p03834
u615615456
1544901900
Python
Python (2.7.6)
py
Runtime Error
11
2568
162
K,S = map(int,raw_input().split()) Count = 0 for x in range(K+1): for y in range(K+1): for z in range(K+1): if x+y+z==S: Count +=1 print Count
s545342176
p03834
u371467115
1544843161
Python
Python (3.4.3)
py
Runtime Error
18
2940
37
s=input() pritn(s.replace(",", " "))
s273625705
p03834
u371467115
1544834964
Python
Python (3.4.3)
py
Runtime Error
18
2940
33
pritn(input().replace(",", " "))
s657083503
p03834
u371467115
1544834907
Python
Python (3.4.3)
py
Runtime Error
18
2940
31
pritn(input().replace(","," "))
s379907950
p03834
u733321071
1543265433
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
s = input() print(s.replace(',', ' ')
s475149967
p03834
u920299620
1543236840
Python
Python (3.4.3)
py
Runtime Error
17
3060
63
s=input() print("{} {} {}".format( s[0,5], s[6,13],s[14,19] ) )
s648508570
p03834
u920299620
1543236816
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
s=list(input() print("{} {} {}".format( s[0,5], s[6,13],s[14,19] ) )
s240987921
p03834
u920299620
1543236663
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
s=input() print(f"{} {} {}".format( s[0,5], s[6,13],s[14,19] ) )
s335180584
p03834
u111365959
1542945756
Python
Python (3.4.3)
py
Runtime Error
19
2940
170
k,s = [int(x) for x in input().split()] a = 0 n = 0 while a <= k: b = 0 while b <= k: z = s-a-b if 0<=z and z <= k: n += 1 b += 1 a += 1 print(n)
s324554109
p03834
u111365959
1542945596
Python
Python (3.4.3)
py
Runtime Error
18
3060
209
k,s = [int(x) for x in input().split()] ans = 0 for x in range(k+1): for y in range(x, k+1): z = s - x - y if x <= y <= z <= k: ans += [ None, 1, 3, 6 ][ len(set([ x, y, z ])) ]
s207929744
p03834
u111365959
1542943461
Python
Python (3.4.3)
py
Runtime Error
18
2940
180
k,s = input().split() a = 0 n = 0 while a <= k: b = 0 while b <= k: c = 0 while c <= k: if (a+b+c) == s: n += 1 c += 1 b += 1 a += 1 print(n)
s843828389
p03834
u169650582
1542400047
Python
Python (3.4.3)
py
Runtime Error
18
3064
602
N,M=map(int,input().split()) Islands=[[] for i in range(N)] Edge=[] S=0 for i in range(M): a,b,c=map(int,input().split()) Islands[a-1].append([b-1,c]) Islands[b-1].append([a-1,c]) Edge.append([a-1,b-1,c]) for m in range(M): a=Edge[m][0] b=Edge[m][1] c_m=Edge[m][2] List=[[a,0]] for l in List: c_base=l[-1] c=c_base if l[-2]==b: if c_m>c: S+=1 break else: for n in Islands[l[-2]]: if n[0] in l[0:-1]: pass else: c+=n[1] List.append(l[0:-1]+[n[0],c]) c=c_base print(S-1)
s080730961
p03834
u368780724
1540639943
Python
Python (3.4.3)
py
Runtime Error
25
3188
1002
import heapq n, m = [int(i) for i in input().split()] inf = 10**10 path = [[0] * n for _ in range(n)] Q = [[inf] * n for _ in range(n)] ans = 0 pathnum = [] ctr = 0 for i in range(m): a, b, c = map(lambda x: int(x)-1 ,input().split()) path[a][b] = path[b][a] = c+1 pathnum.append((a,b)) for i in range(n): decided = [False for _ in range(n)] H = [] Q[i][i] = 0 heapq.heappush(H,(0,i)) while ctr != n: while True: k = heapq.heappop(H) k = k[1] if not decided[k]: decided[k] = True ctr += 1 break for j in range(n): if path[k][j] == 0: continue if decided[j]: continue Q[i][j] = min(Q[i][k] + path[k][j], Q[i][j]) heapq.heappush(H,(Q[i][j],j)) for i in pathnum: if Q[i[0]][i[1]] == inf: continue elif Q[i[0]][i[1]] != path[i[0]][i[1]]: ans += 1 print(ans)
s204955614
p03834
u060936992
1540427451
Python
Python (3.4.3)
py
Runtime Error
17
2940
194
# Your code here! aa=gets().chomp b=aa.length cc=aa.unpack("C*") #puts(aa,cc) for i in 0..(b-1) #puts(i,aa[i],cc[i]) if cc[i]==44 cc[i]=32 end end dd=cc.pack("C*") print(dd)
s356310590
p03834
u233131404
1539866994
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
k,s=map(int,input().split()) cnt=0 for i in range(k+1): for h in range(k+1): for j in range(k+1): if i+h+j==s: cnt+=1 print(cnt)
s431350342
p03834
u138486156
1537336471
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print(" ".join(input().split(,)))
s253616074
p03834
u518556834
1537326766
Python
Python (3.4.3)
py
Runtime Error
17
2940
30
print(input().replace(","," ")
s023674052
p03834
u513081876
1535051889
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
k,s=map(int,input().split()) c=0 for i in range(k+1): for j in range(k+1): if s>=i+j and s-(i+j)<=k: c+=1 print(c)
s183467838
p03834
u348285568
1535035830
Python
Python (3.4.3)
py
Runtime Error
18
2940
19
abcde,fghihgf,edcba
s530283665
p03834
u557235596
1533695682
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
print(input().replace(",", " ")
s474597773
p03834
u988909244
1533575963
Python
Python (2.7.6)
py
Runtime Error
11
2568
82
# 文字列の入力 s = raw_input() dst = s.replace(',', ' ') # 出力 print(dst)
s189315148
p03834
u988909244
1533575939
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
# 文字列の入力 s = raw_input() dst = s.replace(',', ' ') # 出力 print(dst)
s769917171
p03834
u335295553
1529623199
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38640
249
K, S = map(int, input().split()) result = 0 for X in range(K+1): for Y in range(K+1): Z = S-X-Y if Z<0: continue elif K<Z: continue elif S == X+Y+Z: result += 1 print(result)
s220061231
p03834
u724892495
1529030533
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print(" ".join(input().split(,)))
s493327543
p03834
u967835038
1528587057
Python
Python (3.4.3)
py
Runtime Error
17
2940
178
K, S = list(map(int, input().split())) a = 0 for i in range(K + 1): r = S - i if i <= S and r <= K * 2: t = (r + 1) - max(0, r - K) * 2 a += t print(a)
s652281022
p03834
u964998676
1526510334
Python
Python (3.4.3)
py
Runtime Error
17
2940
162
K, S = list(map(int, input('').split())) count = 0 for x in range(K+1): for y in range(K+1): if S <= x + y + K and x + y <= S: count += 1 print(count)
s978595799
p03834
u964998676
1526510314
Python
Python (3.4.3)
py
Runtime Error
17
3060
161
K, S = list(map(int, input('').split())) count = 0 for x in range(K+1): for y in range(K+1): if S<= x + y + K and x + y <= S: count += 1 print(count)
s480029238
p03834
u964998676
1526509804
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
K, S = list(map(int, input('').split())) count = 0 for x in range(K+1): for y in range(K+1): if x + y <= S: count += 1 print(count)
s562531451
p03834
u964998676
1526509247
Python
Python (3.4.3)
py
Runtime Error
17
3060
286
def check(x, y, K, S): if x + y > S: return False for z in range(K+1): if x + y + z == S: return True return False K, S = list(map(int, input('').split())) count = 0 for x in range(K+1): for y in range(K+1): if check(x, y, K, S): count += 1 print(count)
s555732318
p03834
u585482323
1524345085
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
s = input(),split(" ") print(s[0]," ",s[1]," ",s[2])
s631368508
p03834
u985076807
1522551441
Python
Python (3.4.3)
py
Runtime Error
17
2940
976
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); AtCoder solver = new AtCoder(); solver.solve(1, in, out); out.close(); } static class AtCoder { public void solve(int testNumber, Scanner in, PrintWriter out) { String str = in.next(); String[] haiku = str.split(","); for (int i = 0; i < haiku.length; i++) { out.print(haiku[i]); if (i != haiku.length - 1) out.print(" "); else out.println(); } } } }
s082664076
p03834
u127856129
1521468750
Python
Python (3.4.3)
py
Runtime Error
18
2940
30
print(input().replace(","," ")