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
s570004990
p03485
u431475157
1556580371
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
s=list(input()) t=list(input()) s.sort() t.sort(reverse=True) if s<t: print("Yes") else: print("No")
s228592892
p03485
u431475157
1556580316
Python
Python (3.4.3)
py
Runtime Error
18
2940
104
s=list(input()) t=list(input()) s.sort() t.sort(reverse=True) if s<t: print("Yes") else: print("No")
s223403464
p03485
u549497563
1556509924
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
import math a,b = map(int,input().split()) print(math.ceil((a+b)/2)))
s359187681
p03485
u545998622
1556493367
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
a,b=map(int,input()) k=a+b if k%2==0: print(k/2) else:print(k/2-0.5)
s641279357
p03485
u416758623
1556461148
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
import math a,b = [int(x) for x in input().split()] print(math.ceil((a+b)/2)
s443392795
p03485
u739721456
1556279720
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
a,b=map(int,input().split()) if (a+b)/2%=0: ans=(a+b)//2 else: ans=(a+b)//2+1 print(ans)
s684987578
p03485
u059262067
1556238000
Python
Python (3.4.3)
py
Runtime Error
18
2940
54
print(round(mean([int(i) for i in input().split()] )))
s656485989
p03485
u794603719
1556160028
Python
Python (3.4.3)
py
Runtime Error
18
2940
65
import math a,b=map(int,input().split()) print(math.ceil((a+b)/2)
s585457842
p03485
u151625340
1555969535
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
def ceil(n): # ceiling関数 if n > int(n): return(int(n)+1) else: return(int(n)) a,b = map(int,input().split()) print(ceil(a+B/2))
s046228857
p03485
u151625340
1555969413
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
def ceil(n): # ceiling関数 if n > int(n): return(int(n)+1) else: a,b = map(int,input().split()) print(ceil(a+B/2))
s682340722
p03485
u919633157
1555856092
Python
Python (3.4.3)
py
Runtime Error
17
3060
278
a,op,b = [i for i in input().split()] a=int(a) b=int(b) error = ['?','=','!'] if op == '+' : print(a+b) elif op == '-': print(a-b) elif op == '*': print(a*b) elif op == '/': if b == 0 : print('error') else: print(int(a/b)) elif op in error: print('error')
s141872206
p03485
u767664985
1555742141
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
a, b = map(int, input().split()) print(math.ceil((a + b) / 2))
s614086823
p03485
u767664985
1555742115
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
import math a, b = map(int, input().split()) print(math.ceil((a + b) / x))
s534042585
p03485
u367130284
1555687223
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
*s,=map(int,open(0));print(-~sum(s)//2)
s552415517
p03485
u778814286
1555587906
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
import math a,b = map(int,input().split()) print(math.ceil(mean([a,b])))
s607844465
p03485
u778814286
1555587819
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
import math a,b = map(int,input().split()) print(math.floor(mean((a,b))))
s979094316
p03485
u778814286
1555587560
Python
Python (3.4.3)
py
Runtime Error
18
2940
73
import math a,b = map(int,input().split()) print(math.floor(mean(a,b)))
s804599262
p03485
u976871772
1555342440
Python
Python (3.4.3)
py
Runtime Error
18
2940
113
# coding:UTF-8 import math work = input().split(" ") a = int(work[0]) b = int(wokr[1]) print(math.ceil((a+b)/2))
s380520262
p03485
u154297942
1555178953
Python
Python (3.4.3)
py
Runtime Error
17
3064
423
s = list(input()) t = list(input()) s.sort() t.sort(reverse=True) for i in range(100): if bool(s[i:i+1]) == False: if t[i:i+1]: print("Yes") break else: print("No") break elif bool(t[i:i+1]) == False: print("No") break elif (s[i...
s289143995
p03485
u154297942
1555178243
Python
Python (3.4.3)
py
Runtime Error
17
3064
417
s = list(input()) t = list(input()) s.sort() t.sort(reverse=True) for i in range(100): if bool(s[i:2]) == False: if t[i:2]: print("Yes") break else: print("No") break elif bool(t[i:2]) == False: print("No") break elif (s[i] < t[...
s850274548
p03485
u343523393
1555108947
Python
Python (3.4.3)
py
Runtime Error
17
3064
720
s=input() x,y=list(map(int,input().split())) dx=[] dy=[] first=True move=0 xf=0 dir=0 for i in s: if(i=="F"): move+=1 else: if(first): xf = move first=False else: if(dir%2==0): dx.append(move) else: dy.appen...
s082889274
p03485
u363610900
1554635293
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
mport math a, b = map(int, input().split()) print(math.ceil((a+b)/2))
s092255626
p03485
u844005364
1554566593
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
a, b = map(int, input().split()) print(-(-(a + b) // 2)
s921102317
p03485
u912862653
1554466643
Python
Python (3.4.3)
py
Runtime Error
18
2940
61
a, b = list(map(int, input().split())) print(int((a+b)/2 + 1)
s804207065
p03485
u589578850
1554348307
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
a,b = map (int,input().sp;it()) print((a + b)//2)
s937135584
p03485
u513900925
1554225274
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
k = list(map(int,input().split())) print(-(-(k[0]+k[1])//2)
s346107836
p03485
u513900925
1554225224
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
k = list(map(int,input().splitlines())) print(-(-(k[0]+k[1])//2)
s676267793
p03485
u565204025
1554141223
Python
Python (3.4.3)
py
Runtime Error
18
3060
381
# -*- coding: utf-8 -*- n = int(input()) a = list(map(int,input().split())) set_a = set(a) a.sort() k = 0 p = 0 ans = 0 for a_ in set_a: s = a[k] while True: if k<len(a) and a[k]==s: k+=1 p+=1 else: if p>=s: ans+=p-s else: ...
s866952430
p03485
u859897687
1553540924
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
a,b=map(int,ieput().split()) print((a+b)//2+(a+b)%2)
s597433475
p03485
u224156735
1553482575
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
a,b=map(int,input(),split()) print((a+b+1)//2)
s134416271
p03485
u623819879
1553122111
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
94
a,b=map(int,input().split()) if (a+b )%2==1: print(int((a+b+1)/2) else: print(int((a+b)/2)
s535412386
p03485
u623819879
1553122000
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38256
1
a
s510679635
p03485
u373529207
1552956134
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
a, b = map(int, input().split()) print((a+b)//2+(a+b) % 2))
s745905799
p03485
u209918867
1552876164
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a,_,b=input();s=int(a)+int(b);print(s//2+int(bin(s)[-1]))
s963048580
p03485
u246820565
1552850259
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
import math a,b = int(input()) print(math.ceil(a+b/2))
s201271747
p03485
u588633699
1552672632
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
import ceil from math a, b = map(int, input().split()) print(ceil((a+b)/2))
s751363577
p03485
u292810930
1552189948
Python
Python (3.4.3)
py
Runtime Error
17
3064
95
a,b = map(int,input().split()) N = a+b if N % 2 = 0: print(N//2) else: print((N+1)//2)
s410118371
p03485
u973663980
1551752807
Python
Python (3.4.3)
py
Runtime Error
18
2940
71
import math a=int(input()) b=int(input()) c=(a+b)/2 print(math.ceil(c))
s789917036
p03485
u973663980
1551752507
Python
Python (3.4.3)
py
Runtime Error
20
2940
71
import math a=int(input()) b=int(input()) c=(a+b)/2 print(math.ceil(c))
s466319349
p03485
u865413330
1551513957
Python
Python (3.4.3)
py
Runtime Error
18
2940
62
a, b = map(int, input().split()) print(math.ceil((a + b) / 2))
s183446197
p03485
u922926087
1551076802
Python
Python (3.4.3)
py
Runtime Error
18
2940
252
# -*- coding: utf-8 -*- """ Created on Mon Feb 25 00:39:05 2019 @author: yuta """ def dic(n,m): x = ''.join(sorted(n)) y = ''.join(sorted(m,reverse = True)) if x < y: print("Yes") else: print("No") dic(input(),input())
s878919693
p03485
u367130284
1550869473
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38256
137
input();a=list(map(int,input().split())) print(sum([a.count(i) if (i-a.count(i))>(a.count(i)-i) else abs(i-a.count(i)) for i in set(a)]))
s843071199
p03485
u367130284
1550867548
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
s=sorted;print("NYoe s"[s(input())<s(input())[::-1]::2])
s124901055
p03485
u449555432
1550665390
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
map(int,input().split());print(-(-(a+b)//2))
s392501127
p03485
u449555432
1550665325
Python
Python (3.4.3)
py
Runtime Error
18
2940
19
print(-(-(a+b)//2))
s927961834
p03485
u518064858
1550297352
Python
Python (3.4.3)
py
Runtime Error
18
2940
114
a.b=map(int,input().split()) X=str((a+b)*5) x=int(X[-1]) if x>=5: print((a+b)//2+1) else: print((a+b)//2)
s156912852
p03485
u875028418
1549325873
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
print("Yes" if [c for c in input()].sort()<[c for c in input()].sort(reversed=1) else "No"
s473017646
p03485
u875028418
1549323579
Python
Python (3.4.3)
py
Runtime Error
18
2940
52
a,b = input(),input() print("No" if a>=b else "Yes")
s353126400
p03485
u045270305
1548974819
Python
Python (3.4.3)
py
Runtime Error
18
2940
317
mport numpy as np l = input().split() l = list(map(int, l)) mean = np.mean(l) integer = int(mean) # 切り捨て decimal = mean - integer j = decimal * 10 if j >= 5 : res = integer + 1 else : res = integer print(res)
s178605377
p03485
u871303155
1547384929
Python
Python (3.4.3)
py
Runtime Error
18
2940
121
import math import sys def dudge_answer(a, b): ave = (a+b)/2 return math.ceil(ave) print(dudge_answer(a, b))
s426719140
p03485
u871303155
1547384766
Python
Python (3.4.3)
py
Runtime Error
18
2940
155
import math import sys def dudge_answer(a, b): ave = (a+b)/2 return math.ceil(ave) print(dudge_answer(float(sys.argv[1]), float(sys.argv[2])))
s135694284
p03485
u871303155
1547384607
Python
Python (3.4.3)
py
Runtime Error
18
2940
141
import math import sys def dudge_answer(a, b): ave = (a+b)/2 return math.ceil(ave) print(dudge_answer(sys.argv[1], sys.argv[2]))
s874089703
p03485
u533679935
1546399639
Python
Python (3.4.3)
py
Runtime Error
333
21752
77
import numpy as np a,b = map(int,input().split()) print(round(np.mean(a,b)))
s961313909
p03485
u631238602
1546290966
Python
Python (3.4.3)
py
Runtime Error
18
2940
67
a, b = map(int, input().stirp().split()) print((a + b + 2 -1) // 2)
s171191455
p03485
u071061942
1546283079
Python
Python (3.4.3)
py
Runtime Error
18
2940
97
a,b = int(input()) average = (a + b) / 2 if (a + b) % 2 == 0: print(ans) else: print(ans + 1)
s624844379
p03485
u131213364
1545859819
Python
Python (3.4.3)
py
Runtime Error
17
3064
542
#!/usr/bin/env python3 def main(): s = input() t = input() s_bytes = sorted(s.encode()) t_bytes = sorted(t.encode(), reverse = True) s_len = len(s) t_len = len(t) gt = s_len < t_len for i in range(len(s_bytes)): if t_len <= i: gt = False break ...
s915253344
p03485
u131213364
1545859681
Python
Python (3.4.3)
py
Runtime Error
18
3064
542
#!/usr/bin/env python3 def main(): s = input() t = input() s_bytes = sorted(s.encode()) t_bytes = sorted(t.encode(), reverse = True) s_len = len(s) t_len = len(t) gt = s_len < t_len for i in range(len(s_bytes)): if t_len <= i: gt = False break ...
s745967346
p03485
u615615456
1544737990
Python
Python (2.7.6)
py
Runtime Error
11
2568
171
# coding: utf-8 s = raw_input().split()[0] t = raw_input().split()[0] s1 = list(s) t1 = list(t) s1.sort t1.sort(reverse=True) if s1<t1: print 'Yes' else: print 'No'
s983448055
p03485
u726439578
1544676231
Python
Python (3.4.3)
py
Runtime Error
18
3060
201
n=int(input()) a=list(map(int,input().split())) count = {} ans = 0 for i in a: count[i] += 1 for i,c in count.items(): if i > c: ans += c elif i < c: ans += c - i print(ans)
s979033999
p03485
u677440371
1544475097
Python
Python (3.4.3)
py
Runtime Error
17
3060
267
n = int(input()) a = [int(i) for i in input().split()] count = {} ans = 0 for i in a: if i not in count: count[i] = 1 else: count[i] += 1 for i,c in count.items(): if i > c: ans += c elif i < c: ans += c - i print(ans)
s014523317
p03485
u370867568
1543639305
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
s = input().rstrip() t = input().rstrip() s = sorted(s) t = sorted(t, reverse=True) if s < t: print('Yes') else: print('No')
s257915591
p03485
u198062737
1543543600
Python
Python (3.4.3)
py
Runtime Error
18
2940
55
a, b = map(int,input().split('')) print(int((a+b+1)/2))
s531654705
p03485
u198062737
1543543542
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a = int(input()) b = int(input()) print(int((a+b+1)/2))
s143423385
p03485
u119578112
1543196537
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
N = list(map(int, input().split())) if (N[0]+N[1])%2==0: print((N[0]+N[1])//2) else: print(()(N[0]+N[1])//2)+1)
s650966403
p03485
u119578112
1543196481
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
N = list(map(int, input().split())) if (N[0]+N[1])%2==0: print((N[0]+N[1])//2) else: print(()(N[0]+N[1])//2)+1)
s840688561
p03485
u129978636
1542837803
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
a, b = map( int, input().split()) print(math.ceil((a + b)/2))
s368464803
p03485
u748135969
1541871992
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
import math a = float(input()) b = float(input()) mean = (a + b) / 2 print(math.ceil(mean))
s398058044
p03485
u748135969
1541871478
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
import math a = int(input()) b = int(input()) mean = (a + b) / 2 print(math.ceil(mean))
s194389467
p03485
u748135969
1541871408
Python
Python (3.4.3)
py
Runtime Error
17
3064
75
a = int(input()) b = int(input()) mean = (a + b) / 2 print(math.ceil(mean))
s995503172
p03485
u748135969
1541871330
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
a = input() b = input() mean = (a + b) / 2 print(math.ceil(mean))
s817812987
p03485
u748135969
1541871168
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a = input() b = input() print(math.ceil((a + b) / 2))
s208845655
p03485
u726439578
1541374478
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
import math a=int(input()) b=int(input()) print(math.ceil((a+b)/2)
s903601472
p03485
u984870883
1541250906
Python
Python (3.4.3)
py
Runtime Error
17
2940
198
# -*- coding: utf-8 -*- b, c = map(int, input().split()) s=0.5*(b+c) d = int(s) if s-d > 0: v=int(d+1) else : v=int(d) print(v)
s979885109
p03485
u984870883
1541250764
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
# -*- coding: utf-8 -*- ddd
s601876736
p03485
u984870883
1541250738
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
# -*- coding: utf-8 -*- ptint("aaa")
s972198392
p03485
u984870883
1541250698
Python
Python (3.4.3)
py
Runtime Error
17
2940
202
# -*- coding: utf-8 -*- b, c = map(int, input().split()) s=0.5*(b+c) d = int(s) if s-d != 0: v=d+1 else : v=d print(v)
s561433961
p03485
u984870883
1541250574
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
# -*- coding: utf-8 -*- b, c = map(int, input().split()) s=0.5*(b+c) d =int(s) if (s-d != 0): v=d+1 print(v)
s909362260
p03485
u984870883
1541250383
Python
Python (3.4.3)
py
Runtime Error
17
2940
163
# -*- coding: utf-8 -*- b, c = map(int, input().split()) double s =0.5*(b+c) d =int(s) v=d+1 print(v)
s758157648
p03485
u984870883
1541248312
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
# -*- coding: utf-8 -*- b, c = map(int, input().split()) s=0.5*(b+c) int d = s v=d+1 print(v)
s545155962
p03485
u984870883
1541215537
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
# -*- coding: utf-8 -*- b, c = map(int, input().split()) s=0.5*(b+c) int d = s v=d print(v)
s040846119
p03485
u984870883
1541214706
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
# -*- coding: utf-8 -*- b, c = map(int, input().split()) s=0.5*(b+c) int d = s v=d+1 print(v)
s525453791
p03485
u984870883
1541214623
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
# -*- coding: utf-8 -*- a, b = map(int, input().split()) s=0.5*(a+b) int v= int(s)+1 print(v)
s098818147
p03485
u984870883
1541214564
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
# -*- coding: utf-8 -*- int a,b=map(input().split()) s=0.5*(a+b) int v= int(s)+1 print(v)
s171355587
p03485
u984870883
1541214503
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
# -*- coding: utf-8 -*- a=int(input()) b=int(input()) s=0.5*(a+b) int v= int(s)+1 print(v)
s982308008
p03485
u984870883
1541214400
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
# -*- coding: utf-8 -*- a=int(input()) b=int(input()) s=(a+b)*0.5 v=int(s)+1 print(v)
s984180258
p03485
u855985627
1540914152
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
print(eval('('+input().replace(' ', +)+')//2'))
s936636529
p03485
u960513073
1540702328
Python
Python (2.7.6)
py
Runtime Error
10
2568
57
a, b = map(int, input().split()) print(int((a+b)/2) + 1)
s469940423
p03485
u131405882
1540667106
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
n = list(map(int, input().split())) print(math.ceil((n[0] + n[1])/2))
s001817791
p03485
u923279197
1540145475
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
a,b=map(int,input()) if (a+b)%2==0: print((a+b)//2) else: print((a+b)//2+1)
s672151753
p03485
u518556834
1539911872
Python
Python (3.4.3)
py
Runtime Error
17
3064
109
s = sorted(list(input())) t = sorted(list(input()),reverse=True) if s < t: print("Yes") else: print("No")
s992879857
p03485
u518556834
1539908417
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
s = sorted(list(input())) t = sorted(list(input()),reverse=True) if str(s) < str(t): print("Yes") else: print("No")
s171005763
p03485
u693776163
1538688062
Python
Python (3.4.3)
py
Runtime Error
18
3060
57
a = int(input()) b = int(input()) print((a + b + 1) // 2)
s352100823
p03485
u693776163
1538687937
Python
Python (3.4.3)
py
Runtime Error
18
3060
57
a = int(input()) b = int(input()) print(int((a+b)/2))
s307279308
p03485
u693776163
1538687831
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a = int(input()) b = int(input()) return int((a+b)/2)
s917386437
p03485
u693776163
1538687807
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a = int(input()) b = int(input()) print(int((a+b)/2))
s021775960
p03485
u495881622
1538535127
Python
Python (3.4.3)
py
Runtime Error
17
2940
58
if (a+b)%2 >> 0; print((a+b)//2+1) else: print((a+b)//2)
s795951967
p03485
u703823201
1538241185
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
import math a = input() b = input() x = (int(a) + int(b)) / 2 print(math.ceil(x))
s999444544
p03485
u138486156
1537842288
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
import Math a, b = map(int, input().split()) print(Math.ceil((a+b)/2))
s143067796
p03485
u466478199
1537369906
Python
Python (3.4.3)
py
Runtime Error
20
3316
206
import random s=list(input()) t=list(input()) random.shuffle(s) random.shuffle(t) S=''.join(s) T=''.join(t) L=[S,T] L.sort() if T==S: print('No') elif L[0]==S: print('Yes') elif L[0]==T: print('No')
s630905509
p03485
u325264482
1537159364
Python
Python (3.4.3)
py
Runtime Error
17
3060
241
s = input() t = input() s_dash = ''.join(sorted(s)) t_dash = ''.join(sorted(t)[::-1]) test = [s_dash, t_dash] if s_dash == t_dash: print("No") else: if sorted(test)[0] != s_dash: print("No") else: print("Yes")