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
s420456392
p02397
u150984829
1513104283
Python
Python3
py
Runtime Error
0
0
100
a=[] while 1: n=input() if n=='0 0':break x,y=map(int,n.split()) print(y,x) if x>y else:print(n)
s051893598
p02397
u150984829
1513105869
Python
Python3
py
Runtime Error
0
0
93
import sys for a.strip() in sys.stdin: if a=='0 0':break print(*sorted(map(int,a.split())))
s194548112
p02397
u150984829
1513106420
Python
Python3
py
Runtime Error
0
0
104
a=[] while 1: n=input() if n=='0 0':break a.append(n) for s in a: print(*sorted(map(int,a.split())))
s641388421
p02397
u150984829
1513106439
Python
Python3
py
Runtime Error
0
0
104
a=[] while 1: n=input() if n=='0 0':break a.append(n) for s in a: print(*sorted(map(int,a.split())))
s947122087
p02397
u150984829
1513107017
Python
Python3
py
Runtime Error
0
0
151
a=[] import sys for s.strip() in sys.stdin: if s=='0 0':break a.append(s) for t in a: x,y=map(int,t.split()) print(f'{y} {x}') if x>y else print(t)
s962571197
p02397
u150984829
1513107346
Python
Python3
py
Runtime Error
0
0
120
a=[] import sys for s in sys.stdin: s=s.strip() if s=='0 0':break a.append(s) for t in a: print(*sorted(map(int,t)))
s162818332
p02397
u423320231
1513353404
Python
Python3
py
Runtime Error
0
0
112
x = input() while x != "0": a=x.sort() for i in range(2): print(a[0],a[1]) x = input()
s257246073
p02397
u423320231
1513353543
Python
Python3
py
Runtime Error
0
0
129
x = input() while x != "0 0": a=int(x).sort() for i in range(2): print(str(a[0]),str(a[1])) x = input()
s548172807
p02397
u423320231
1513353787
Python
Python3
py
Runtime Error
0
0
151
x = map(int,input().split()) while str(x) != "0 0": a=int(x).sort() for i in range(2): print(str(a[0]),str(a[1])) x = input()
s361807511
p02397
u365686736
1514645811
Python
Python3
py
Runtime Error
0
0
99
import sys for c in sys.stdin: a,b=sorted(map(int,c.split())) if a=b=0:break print(a,b)
s334633700
p02397
u365686736
1514645866
Python
Python3
py
Runtime Error
0
0
100
import sys for c in sys.stdin: a,b=sorted(map(int,c.split())) if a=b==0:break print(a,b)
s475413933
p02397
u179070318
1515988659
Python
Python3
py
Runtime Error
0
0
122
while list[0] != 0 or list[1] != 0: list = [x for x in input().split( )] print(' '.join(map(str,sorted(list))))
s162217099
p02397
u179070318
1515988857
Python
Python3
py
Runtime Error
0
0
137
list = [] while list[0] != 0 or list[1] != 0: list = [int(x) for x in input().split( )] print(' '.join(map(str,sorted(list))))
s111394622
p02397
u506468108
1516298080
Python
Python3
py
Runtime Error
0
0
154
x, y = map(int, input().split()) if(x == 0 & y == 0): false elif(x < y) : print("{0} {1}".format(x, y)) else: print("{0} {1}".format(y, x))
s062610257
p02397
u641357568
1517351562
Python
Python3
py
Runtime Error
0
0
213
while(True): i,j=input().split() if a != 0 and b != 0: if int(i) <= int(j): print('{} {}'.format(i,j)) else: print('{} {}'.format(j,i)) else: break
s306996020
p02397
u613627875
1518174434
Python
Python3
py
Runtime Error
0
0
91
while True: x = list(int(i) for i in input().split()) x.sort() print(x[0],x[1],sep=" ")
s804384955
p02397
u602702913
1518775689
Python
Python3
py
Runtime Error
0
0
134
while True: x,y=map(int,input().split()) if x<y: print(x,y) elif y<x: print(y,x) elif x and y !=0: print(x,y)
s008513087
p02397
u005739171
1520230394
Python
Python3
py
Runtime Error
0
0
97
while True: a, b = sorted(map.(int,input().split())) if (a == 0) & (b == 0): break print(a,b)
s415985053
p02397
u017435045
1520752071
Python
Python3
py
Runtime Error
0
0
117
while True: a=list(map(int, input().split())) if a = [0,0]:break a.sort() print(a[0],a[1])
s564559291
p02397
u017435045
1520752086
Python
Python3
py
Runtime Error
0
0
128
while True: a=list(map(int, input().split())) if a = [0,0]: break a.sort() print(a[0],a[1])
s243205118
p02397
u017435045
1520752113
Python
Python3
py
Runtime Error
0
0
127
while True: a=list(map(int, input().split())) if a = zero: break a.sort() print(a[0],a[1])
s274746582
p02397
u017435045
1520752213
Python
Python3
py
Runtime Error
0
0
140
while True: a,b=map(int, input().split()) x=[a,b] if a =0 and b=0: break x.sort() print(x[0],x[1])
s949769546
p02397
u017435045
1520752241
Python
Python3
py
Runtime Error
0
0
129
while True: a,b=map(int, input().split()) x=[a,b] if a =0 and b=0:break x.sort() print(x[0],x[1])
s669937156
p02397
u507758132
1521102097
Python
Python3
py
Runtime Error
0
0
143
cnt = 1 c = int(input().split()) while c != 0: c.sort() print("Case {0}: {1} {2}".format(cnt,c[0],c[1])) c = int(input().split()) cnt += 1
s586986724
p02397
u507758132
1521102164
Python
Python3
py
Runtime Error
0
0
165
cnt = 1 c = list(map(int(input().split()))) while c != 0: c.sort() print("Case {0}: {1} {2}".format(cnt,c[0],c[1])) c = list(map(int(input().split()))) cnt += 1
s292277169
p02397
u507758132
1521102207
Python
Python3
py
Runtime Error
0
0
163
cnt = 1 c = list(map(int,input().split())) while c != 0: c.sort() print("Case {0}: {1} {2}".format(cnt,c[0],c[1])) c = list(map(int,input().split())) cnt += 1
s363041725
p02397
u507758132
1521102259
Python
Python3
py
Runtime Error
0
0
163
cnt = 1 c = list(map(int,input().split())) while c != 0: c.sort() print("Case {0}: {1} {2}".format(cnt,c[0],c[1])) c = list(map(int,input().split())) cnt += 1
s033578370
p02397
u229478139
1521732477
Python
Python3
py
Runtime Error
0
0
221
def Hantei(a,b): if a <= b: print("{} {}".format(a,b)) elif a > b: print("{} {}".format(b,a)) while True: a ,b=input().split() if (a==0)and(b==0): break Hantei(int(a),int(b))
s434151352
p02397
u229478139
1521732548
Python
Python3
py
Runtime Error
0
0
221
def Hantei(a,b): if a <= b: print("{} {}".format(a,b)) elif a > b: print("{} {}".format(b,a)) while True: a ,b=input().split() if (a==0)and(b==0): break Hantei(int(a),int(b))
s243502119
p02397
u621084859
1522375647
Python
Python3
py
Runtime Error
0
0
80
a=int(input()) for i in range(a): print("Hello World")a=int(input())
s515628803
p02397
u621084859
1522389802
Python
Python3
py
Runtime Error
0
0
92
a=input().split(" ") b=int(a[0]) c=int(a[1]) a.sort(b,c) if c==0: break print(b[0],c[1]
s753747719
p02397
u621084859
1522389926
Python
Python3
py
Runtime Error
0
0
142
while Ture: a=input().split(" ") b=int(a[0]) c=int(a[1]) a.sort(b,c) if c==0: break print(b[0],c[1]
s407833187
p02397
u621084859
1522390046
Python
Python3
py
Runtime Error
0
0
86
a=input().split(" ") b=int(a[0]) c=int(a[1]) a.sort(b,c) if c==0: print(b[0],c[0])
s527090952
p02397
u621084859
1522390119
Python
Python3
py
Runtime Error
0
0
83
a=input().split() b=int(a[0]) c=int(a[1]) a.sort(b,c) if c==0: print(b[0],c[0])
s569744101
p02397
u621084859
1522390399
Python
Python3
py
Runtime Error
0
0
91
a=input().split() b=int(a[0]) c=int(a[1]) a.sorted(a[0],a[1]) if c==0: print(b[0],c[0])
s536145776
p02397
u621084859
1522390429
Python
Python3
py
Runtime Error
0
0
89
a=input().split() b=int(a[0]) c=int(a[1]) a.sorted([0],[1]) if c==0: print(b[0],c[0])
s749042846
p02397
u621084859
1522390457
Python
Python3
py
Runtime Error
0
0
87
a=input().split() b=int(a[0]) c=int(a[1]) a.sort([0],[1]) if c==0: print(b[0],c[0])
s604634901
p02397
u405987720
1522855915
Python
Python
py
Runtime Error
0
0
208
while(True): temp = raw_input() temp_list = temp.split() x = int(temp_list[0]) y = int(temp_list[1]) if x == y and x == 0: break else: print(str(min([x, y]) ) + " " + str(max([x, y]) )
s636537897
p02397
u928088242
1522907384
Python
Python3
py
Runtime Error
0
0
109
a,b,c = map(int, input().split()) if a < b < c: result = "Yes" else: result = "No" print(result)
s244719062
p02397
u074747865
1524125403
Python
Python3
py
Runtime Error
0
0
95
li= list(map(int, input().split()) while True: li.sort() if [x,y]==[0,0] break print(*li)
s740294952
p02397
u074747865
1524125488
Python
Python3
py
Runtime Error
0
0
94
li= list(map(int, input().split()) while True: li.sort() if [x,y]=[0,0] break print(*li)
s497792341
p02397
u074747865
1524125627
Python
Python3
py
Runtime Error
0
0
92
li= list(map(int, input().split()) while True: li.sort() if li==[0,0] break print(*li)
s403049552
p02397
u074747865
1524125681
Python
Python3
py
Runtime Error
0
0
93
li= list(map(int, input().split())) while True: li.sort() if li==[0,0] break print(*li)
s009593544
p02397
u074747865
1524125736
Python
Python3
py
Runtime Error
0
0
96
while True: li= list(map(int, input().split()) li.sort() if [x,y]==[0,0] break print(*li)
s984812634
p02397
u074747865
1524125771
Python
Python3
py
Runtime Error
0
0
93
while True: li= list(map(int, input().split()) li.sort() if li==[0,0] break print(*li)
s085352280
p02397
u074747865
1524125786
Python
Python3
py
Runtime Error
0
0
93
while True: li= list(map(int, input().split()) li.sort() if li =[0,0] break print(*li)
s150016346
p02397
u074747865
1524125797
Python
Python3
py
Runtime Error
0
0
94
while True: li= list(map(int, input().split()) li.sort() if li =[0,0]: break print(*li)
s903031614
p02397
u074747865
1524125834
Python
Python3
py
Runtime Error
0
0
95
while True: li= list(map(int, input().split())) li.sort() if li =[0,0]: break print(*li)
s713430439
p02397
u074747865
1524126105
Python
Python3
py
Runtime Error
0
0
77
while True: a=sorted(map(int,input().split())) if a==0: break print(*a)
s211089015
p02397
u074747865
1524126203
Python
Python3
py
Runtime Error
0
0
91
while True: x,y=sorted(map(int,input().split())) if (x==0) and(y==0): break print(*a)
s828306360
p02397
u648117624
1524296704
Python
Python3
py
Runtime Error
0
0
142
x,y = map(int, input().split()) while True: if x == 0 and y == 0 : break list = [x, y] print(sort(list, reverse=True))
s381266262
p02397
u648117624
1524297255
Python
Python3
py
Runtime Error
0
0
122
x,y = map(int, input().split()) list = [x, y] if x == 0 and y == 0: break print(sorted(list, reverse=True))
s851922480
p02397
u648117624
1524297571
Python
Python3
py
Runtime Error
0
0
190
x,y = map(int, input().split()) while True: if x == 0 and y == 0: break elif x >= y: print(srt(x) + " " + str(y)) else: print(srt(y) + " " + str(x))
s718088145
p02397
u648117624
1524297578
Python
Python3
py
Runtime Error
0
0
190
x,y = map(int, input().split()) while True: if x == 0 and y == 0: break elif x => y: print(srt(x) + " " + str(y)) else: print(srt(y) + " " + str(x))
s194785331
p02397
u648117624
1524297600
Python
Python3
py
Runtime Error
0
0
190
x,y = map(int, input().split()) while True: if x == 0 and y == 0: break elif x => y: print(str(x) + " " + str(y)) else: print(str(y) + " " + str(x))
s785507405
p02397
u648117624
1524297815
Python
Python3
py
Runtime Error
0
0
204
for i in range(3001): x,y = map(int, input().split()) if x == 0 and y == 0: break elif x => y: print(str(x) + " " + str(y)) else: print(str(y) + " " + str(x))
s355181814
p02397
u648117624
1524297868
Python
Python3
py
Runtime Error
0
0
194
while True: x,y = map(int, input().split()) if x == 0 and y == 0: break; elif x => y: print(str(x) + " " + str(y)) else: print(str(y) + " " + str(x))
s058018193
p02397
u485986915
1524300689
Python
Python3
py
Runtime Error
0
0
121
x = list(map(int,input().split) while x[1] != 0 and x[2] != 0: print(x[1] x[2]) x = list(map(int, input().split)
s077119152
p02397
u485986915
1524300735
Python
Python3
py
Runtime Error
0
0
124
x = list(map(int,input().split())) while x[1] != 0 and x[2] != 0: print(x[1] x[2]) x = list(map(int, input().split)
s819554688
p02397
u485986915
1524300841
Python
Python3
py
Runtime Error
0
0
138
x = list(map(int,input().split())) while x[1] != 0 and x[2] != 0: x.sort() print(x[1],x[2]) x = list(map(int, input().split)
s022196550
p02397
u485986915
1524300874
Python
Python3
py
Runtime Error
0
0
141
x = list(map(int,input().split())) while x[1] != 0 and x[2] != 0: x.sort() print(x[1],x[2]) x = list(map(int, input().split()))
s325478754
p02397
u485986915
1524301138
Python
Python3
py
Runtime Error
0
0
155
x,y = map(int,input().split()) z =[x,y] while z[1] != 0 or z[2] != 0: z.sort() print(z[1],z[2]) x,y = map(int, input().split()) z = [x, y]
s197545770
p02397
u485986915
1524301258
Python
Python3
py
Runtime Error
0
0
121
while x != 0 or y != 0: x, y = sorted(map(int, input().split())) print(x, y) x,y = map(int, input().split())
s674429391
p02397
u485986915
1524301301
Python
Python3
py
Runtime Error
0
0
129
while x != 0 or y != 0: x, y = sorted(map(int, input().split())) print(x, y) x,y = sorted(map(int, input().split()))
s335057239
p02397
u485986915
1524301357
Python
Python3
py
Runtime Error
0
0
133
while True: x, y = sorted(map(int, input().split())) if x==y==0: print(x, y) x,y = sorted(map(int, input().split()))
s453313458
p02397
u485986915
1524301388
Python
Python3
py
Runtime Error
0
0
139
while True: x, y = sorted(map(int, input().split())) if x==y and y==0: print(x, y) x,y = sorted(map(int, input().split()))
s160537975
p02397
u729486845
1524662233
Python
Python3
py
Runtime Error
0
0
175
while true: ary = list(map(int, input().split())) if ary[0]+ary[1] == 0 : break ary.sort() print("{} {}".format(ary[0], ary[1]))
s644658136
p02397
u729486845
1524663505
Python
Python3
py
Runtime Error
0
0
157
while true: ary = list(map(int, input().split())) if ary[0]+ary[1] == 0 : break ary.sort() print(ary[0], ary[1])
s260808845
p02397
u876060624
1524744312
Python
Python3
py
Runtime Error
0
0
77
while True: a,b=sort(map(int(input()))) break if a==0 and b==0 print(a,b)
s480440480
p02397
u876060624
1524744331
Python
Python3
py
Runtime Error
0
0
85
while True: a,b=sort(map(int(input().split()))) break if a==0 and b==0 print(a,b)
s296682405
p02397
u876060624
1524744363
Python
Python3
py
Runtime Error
0
0
91
while True: a,b=sort(map(int(input().split()))) break if ((a==0) and (b==0)) print(a,b)
s781120031
p02397
u876060624
1524744394
Python
Python3
py
Runtime Error
0
0
92
while True: a,b=sort(map(int(input().split()))) if (a==0) and (b==0): break print(a,b)
s024261301
p02397
u876060624
1524744450
Python
Python3
py
Runtime Error
0
0
90
while True: a,b=sort(map(int,input().split())) break if ((a==0) and (b==0)) print(a,b)
s199626453
p02397
u876060624
1524744543
Python
Python3
py
Runtime Error
0
0
91
while True: a,b=sort(map(int,input().split())) if (a==0) and (b==0): break print(a,b)
s132058117
p02397
u908651435
1524748023
Python
Python3
py
Runtime Error
0
0
124
x=[] while True: x=input().split() x.sort() a,b=map(int,x) print(a,b) if a==None,b==None: break
s368329627
p02397
u781194524
1524814533
Python
Python3
py
Runtime Error
0
0
104
while True: x,y=sorted([int(x) for x in input().split]) if x==0 and y==0: break print(x,y)
s140073280
p02397
u781194524
1525146157
Python
Python
py
Runtime Error
0
0
97
while True: a,b=sorted([int(x) for x in input().split]) if a==0 and b == 0 : break print(a,b)
s118701965
p02397
u781194524
1525146164
Python
Python3
py
Runtime Error
0
0
97
while True: a,b=sorted([int(x) for x in input().split]) if a==0 and b == 0 : break print(a,b)
s226261977
p02397
u532590372
1525608181
Python
Python3
py
Runtime Error
0
0
120
num = input().split(' ') x = num[0] y = num[1] if x > y: tmp = x x = y y = tmp else: break print(x + ' ' +y)
s260635284
p02397
u532590372
1525608313
Python
Python3
py
Runtime Error
0
0
146
num = input().split(' ') x = num[0] y = num[1] if x > y: tmp = x x = y y = tmp elif x = y = 0: exit() else: break print(x + ' ' +y)
s444961848
p02397
u007066325
1527455134
Python
Python3
py
Runtime Error
0
0
166
while True: a,b = map(int, input().split() if a ==0 and b == 0: break if a > b: c = a a = b b = c print("{} {}".format(a,b))
s961141405
p02397
u007066325
1527455263
Python
Python3
py
Runtime Error
0
0
173
while True: a,b = map(int, input().split() if a ==0 and b == 0: break if a > b: c = a a = b b = c print("{} {}".format(a,b))
s598864499
p02397
u007066325
1527455481
Python
Python3
py
Runtime Error
0
0
185
while True: a,b = map(int, input().split()) if (a,b) == (0,0) : break elif a > b: c = a a = b b = c else: print("{} {}".format(a,b))
s294953751
p02397
u500257793
1527507742
Python
Python3
py
Runtime Error
0
0
301
import java.util.Scanner; class Main { public static void main(String args[]) { int a,b; Scanner sc = new Scanner(System.in); while(True){ a=sc.nextInt(); b=sc.nestInt(); if(a==0 && b==0) break; else if(a<b) System.out.println(a +b); else System.out.println(b +a);} } }
s320644626
p02397
u500257793
1527507786
Python
Python3
py
Runtime Error
0
0
307
import java.util.Scanner; class Main { public static void main(String args[]) { int a,b; Scanner sc = new Scanner(System.in); while(True){ a=sc.nextInt(); b=sc.nestInt(); if(a==0 && b==0) break; else if(a<b) System.out.println(a+" "+b); else System.out.println(b+" "+a);} } }
s169009951
p02397
u138224929
1528628724
Python
Python3
py
Runtime Error
0
0
335
#include <iostream> #include <sstream> #include <math.h> #include <algorithm> using namespace std; int main(){ while (1){ int i, j ; cin >> i >> j ; if ( i <= j) { cout << i << " " << j << endl; } else{ cout << j << " " << i << endl; } } ...
s933631465
p02397
u646500971
1529835817
Python
Python3
py
Runtime Error
0
0
41
x,y = int(input()) x,y.sort() print(x,y)
s532428170
p02397
u987236471
1530540366
Python
Python3
py
Runtime Error
0
0
143
import sys for line in sys.stdin:     xy = sorted(map(int , line.split()))     if xy[0] == 0 and xy[1] == 0: break     print(*xy)
s620937594
p02397
u987236471
1530540377
Python
Python3
py
Runtime Error
0
0
142
import sys for line in sys.stdin:     xy = sorted(map(int , line.split()))     if xy[0] == 0 and xy[1] == 0: break     print(*xy)
s586631016
p02397
u987236471
1530540892
Python
Python3
py
Runtime Error
0
0
100
x,y = map(int, input().split()) if x==0 and y==0: break if x < y: print(x,y) else: print(y,x)
s713787614
p02397
u987236471
1530540930
Python
Python3
py
Runtime Error
0
0
101
x,y = map(int, input().split()) if x==0 and y==0: break if x <= y: print(x,y) else: print(y,x)
s235150666
p02397
u904989881
1391653856
Python
Python
py
Runtime Error
0
0
107
while True: a = map(str, raw_input().split()) if a[0] != 0: print sorted(a) else: break
s477930901
p02397
u904989881
1391654288
Python
Python
py
Runtime Error
0
0
118
while 1: a, b = sorted(map(int, raw_input().split())) if a + b = 0: break else: print a, b
s263733377
p02397
u633068244
1393317703
Python
Python
py
Runtime Error
0
0
237
from __future__ import division, print_function from sys import stdin for line in stdin: a,b = map(int, raw_input().split()) if (a == 0 and b == 0): break if a > b: print b, a else: print a, b
s280527477
p02397
u633068244
1393317800
Python
Python
py
Runtime Error
0
0
224
from __future__ import division, print_function from sys import stdin for line in stdin: a,b = map(int, line.split()) if (a == 0 and b == 0): break if a > b: print b, a else: print a, b
s879826432
p02398
u075006557
1540455972
Python
Python3
py
Runtime Error
0
0
120
a, b, c = map(int, input().split())) cnt = 0 for i in range(a, b+1, 1): if(c % i == 0): cnt += 1 print(cnt)
s616500748
p02398
u893058769
1540456735
Python
Python3
py
Runtime Error
0
0
109
counter=0 a,b,c=map(int,input().split()) for i in range(a,b): if(c%i==0) counter+=1 print(f"{counter}")
s895826227
p02398
u893058769
1540456812
Python
Python3
py
Runtime Error
0
0
110
counter=0 a,b,c=map(int,input().split()) for i in range(a,b): if(c//i==0) counter+=1 print(f"{counter}")
s480178563
p02398
u893058769
1540456853
Python
Python3
py
Runtime Error
0
0
117
counter=0 a,b,c=map(int,input().split()) for i in range(a,b): if(c//i==0) counter=counter+1 print(f"{counter}")
s112138780
p02398
u893058769
1540456899
Python
Python3
py
Runtime Error
0
0
116
counter=0 a,b,c=map(int,input().split()) for i in range(a,b): if(c%i==0) counter=counter+1 print(f"{counter}")