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
s671415370
p03776
u515802486
1490582055
Python
Python (3.4.3)
py
Runtime Error
72
3912
864
import sys INF = 10**9+7 def k(i): if(i == 1): return 1 else: return(i * k(i-1)) def comb(n, r): if(n == r): return 1 else: return k(n) / (k(n-r) * k(r)) stdin = sys.stdin def na(): return map(int, stdin.readline().split()) def ns(): return stdin.readline().strip() def nsl(): return list(stdin.readline().strip()) def ni(): return int(stdin.readline()) def nil(): return list(map(int, stdin.readline().split())) n, a, b = nil() v = nil() v.sort() v.reverse() t = 0 y = [] c = 0 for i in range(a): c += v[i] t = v[i] y.append(t) ans1 = c/a c = 0 y = set(y) ans2 = 0 if(len(y) == 1): for i in v: if(i == t): c+=1 for i in range (a, b+1): ans2 += comb(c, i) else: for i in v: if(i == t): c+=1 ans2 = c print(ans1) print(int(ans2))
s348715437
p03776
u952236873
1490578962
Python
Python (2.7.6)
py
Runtime Error
23
3536
566
N, A, B = map(int, raw_input().split()) V = map(int, raw_input().split()) V = list(sorted(V)) ss = None mm = 0 # max mean index = 0 def Mean(S): return float(sum(S))/len(S) def Factorial(n): if n == 1: return 1.0 else: return n*Factorial(n - 1) def NCR(n, r): return int(Factorial(n)/(Factorial(n - r) * Factorial(r))) for i in xrange(A, B + 1): subset = V[-i:] m = Mean(subset) if m > mm: ss = subset mm = m index = i print '{0:.06f}'.format(mm) print NCR(V.count(V[-i]), subset.count(V[-i]))
s972386720
p03776
u234395310
1490578792
Python
Python (3.4.3)
py
Runtime Error
36
3064
833
memo = [[0] * 60 for i in range(60)] def comb(n,k): if memo[n][k] > 0: return memo[n][k] elif k == 0 or k == n: memo[n][k] = 1 return memo[n][k] else: memo[n][k] = comb(n-1,k) + comb(n-1,k-1) return memo[n][k] n,a,b = map(int,input().split(' ')) v = list(map(int,input().split(' '))) v.sort() v.reverse() if len(set(v)) == 1: print(v[0]) ans = 0 for i in range(a,b+1): ans += comb(n,i) print(ans) else: total = 0 for i in range(a): total += v[i] print("%.10f" % total/a) if a < n and v[a] == v[a-1]: l = r = 0 for i in range(n): if v[i] == v[a]: if i < a: l += 1 else: r += 1 print(comb(l+r,l)) else: print(1)
s320776698
p03776
u202619899
1490578741
Python
Python (3.4.3)
py
Runtime Error
17
3064
853
from math import factorial class Frac(object): def __init__(self, a, b): self.a = a self.b = b def eq(self, f): return self.a * f.b == f.a * self.b def lt(self, f): return self.a * f.b > f.a * self.b def __repr__(self): return '%.6f' % (self.a / self.b) def nCr(n, r): return factorial(n) // factorial(r) // factorial(n - r) N, A, B = map(int, input().split()) V = list(map(int, input().split())) V.sort(reverse=True) res = None for i in range(A, B+1): now = Frac(sum(V[:i]), i) if res is None or now.lt(res[0]): res = [now] elif now.eq(res[0]): res.append(now) cnt = 0 for now in res: p = V[:now.b] n = len(list(filter(lambda x: x == p[-1], V))) r = len(list(filter(lambda x: x == p[-1], p))) cnt += nCr(n, r) print(res[0]) print(cnt) ~
s193720043
p03776
u234395310
1490578738
Python
Python (3.4.3)
py
Runtime Error
18
3064
833
memo = [[0] * 60 for i in range(60)] def comb(n,k): if memo[n][k] > 0: return memo[n][k] elif k == 0 or k == n: memo[n][k] = 1 return memo[n][k] else: memo[n][k] = comb(n-1,k) + comb(n-1,k-1) return memo[n][k] n,a,b = map(int,input().split(' ')) v = list(map(int,input().split(' '))) v.sort() v.reverse() if len(set(v)) == 1: print(v[0]) ans = 0 for i in range(a,b+1): ans += comb(n,i) print(ans) else: total = 0 for i in range(a): total += v[i] print("%.10f" % total/a) if a < n and v[a] == v[a-1]: l = r = 0 for i in range(n): if v[i] == v[a]: if i < a: l += 1 else: r += 1 print(comb(l+r,l)) else: print(1)
s994628351
p03776
u084184293
1490578582
Python
Python (3.4.3)
py
Runtime Error
17
3064
536
import math def avg(L, atLeast, atMost): if (L.count(max(L)) >= atLeast): print(max(L)) ways = 0 for i in range(atLeast, atMost + 1): localWays = math.factorial(L.count(max(L))) // math.factorial(i) // math.factorial(L.count(max(L)) - i) ways += localWays print(ways) return L.sort(reverse=True) last = L[atLeast - 1] print(sum(L[:atLeast]) / atLeast) print(L.count(last)) [N, atLeast, atMost] = list(map(lambda x: int(x), input().split())) L = list(map(lambda x: int(x), input().split())) avg(L, atLeast, atMost)
s081273439
p03777
u955691979
1600873546
Python
PyPy3 (7.3.0)
py
Runtime Error
89
74080
74
a,b = map(str,input().split()) if s == b: print("H") else: print("D")
s456474628
p03777
u485349322
1600535759
Python
Python (3.8.2)
py
Runtime Error
22
8980
59
a,b=input().split() if a=b: print("H") else: print("D")
s446541674
p03777
u485349322
1600535667
Python
Python (3.8.2)
py
Runtime Error
23
8804
71
a,b=map(int,input().split()) if a=b: print("H") else: print("D")
s979277178
p03777
u312821683
1600453516
Python
Python (3.8.2)
py
Runtime Error
23
9100
182
a, b = input().split() if a == 'H' and b == 'H': result = 'H' if a == 'D' and b == 'H': result = 'D' if a == 'D' and b == 'D': result = 'H' print(result)
s400954033
p03777
u005977014
1598628851
Python
Python (3.8.2)
py
Runtime Error
28
9080
116
a,b=map(int,input().split()) if a=='H': print(b) exit() else: if b=='H': print('D') else: print('H')
s572135110
p03777
u546853743
1598388803
Python
Python (3.8.2)
py
Runtime Error
24
8872
108
a,b=map(input().split()) if(a =='H' and b=='H') or (a =='D' and b=='D'): print('H') else: print('D')
s555859845
p03777
u271176141
1598287103
Python
Python (3.8.2)
py
Runtime Error
20
8888
346
# AtCoDeerくんとTopCoDeerくんが何と言ってるかを a,bで入力 a,b = input().split() # もしa=Hでb=HならTopCoDeerくんは正直者 if a = "H": if b = "H": print("H") # もしa=Dでb=HならTopCoDeerくんは正直者 elif a = "D": if b = "D": print("H") # それ以外はbは嘘つき else: print("D")
s368616056
p03777
u779830746
1598244897
Python
Python (3.8.2)
py
Runtime Error
20
9172
228
# 入力 a, b = map(int, input().split()) # 処理&出力 if a == 'H' and b == 'H': print('H') elif a == 'H' and b == 'D': print('D') elif a == 'D' and b == 'H': print('D') elif a == 'D' and b == 'D': print('H')
s471438733
p03777
u190385778
1598244344
Python
Python (3.8.2)
py
Runtime Error
22
9100
167
a,b=input().split() if a == H: if b == H: print("H") else: print("D") if a == D: if b == H: print("D") else: print("H")
s818842065
p03777
u752774573
1598108588
Python
PyPy3 (7.3.0)
py
Runtime Error
93
74708
58
a,b=list(input()) if a==b: print('H') else: print('D')
s601005678
p03777
u197956883
1598054963
Python
PyPy3 (7.3.0)
py
Runtime Error
153
77044
1150
import sys, re from math import ceil, floor, sqrt, pi, factorial, gcd from copy import deepcopy from collections import Counter, deque from heapq import heapify, heappop, heappush from itertools import accumulate, product, combinations, combinations_with_replacement from bisect import bisect, bisect_left, bisect_right from functools import reduce from decimal import Decimal, getcontext # input = sys.stdin.readline def i_input(): return int(input()) def i_map(): return map(int, input().split()) def i_list(): return list(i_map()) def i_row(N): return [i_input() for _ in range(N)] def i_row_list(N): return [i_list() for _ in range(N)] def s_input(): return input() def s_map(): return input().split() def s_list(): return list(s_map()) def s_row(N): return [s_input for _ in range(N)] def s_row_str(N): return [s_list() for _ in range(N)] def s_row_list(N): return [list(s_input()) for _ in range(N)] def lcm(a, b): return a * b // gcd(a, b) sys.setrecursionlimit(10 ** 6) INF = float('inf') MOD = 10 ** 9 + 7 num_list = [] str_list = [] def main(): a, b = i_map() print('H' if a == b else 'D') if __name__ == '__main__': main()
s529912269
p03777
u620846115
1598030333
Python
Python (3.8.2)
py
Runtime Error
20
8928
59
a,b=input().split() print("H" if a=b="H"or a=b="D" else"D")
s956113030
p03777
u923647326
1598020306
Python
Python (3.8.2)
py
Runtime Error
18
8996
95
w, a, b = list(map(int, input().split())) if b > (a + w): print(b - (a + w)) else: print(0)
s335758039
p03777
u869790980
1597838623
Python
PyPy2 (7.3.0)
py
Runtime Error
313
84912
89
a,b = raw_input().split() if a == 'H': print b else: h = {'H':'C', 'C':'H'} print h[b]
s880781869
p03777
u070200692
1597610190
Python
Python (3.8.2)
py
Runtime Error
21
8800
269
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll mod = 1e9 + 7; int main() { string a, b; cin >> a >> b; int x = a[0] == 'H' ? 1 : 0, y = b[0] == 'H' ? 1 : 0; if (x == 0) y ^= 1; cout << (y ? 'H' : 'D') << endl; return 0; }
s544689921
p03777
u243159381
1596343495
Python
Python (3.8.2)
py
Runtime Error
25
9120
201
a,b=(int(x) for x in input().split()) if a=='H': if b=='H': print("H") elif b=='D': print("D") elif a=='D': if b=='H': print("D") elif b=='D': print("H")
s820462650
p03777
u487288850
1595662168
Python
Python (3.8.2)
py
Runtime Error
20
9020
104
a,b=input().split() x= (a=="H") y=(b=="H") if x and y or not x and not y print("H") else: print("D")
s870594340
p03777
u487288850
1595662104
Python
Python (3.8.2)
py
Runtime Error
19
8880
105
a,b=input().split() x= (a=="H") y=(b=="H") if :x and y or not x and not y print("H") else: print("D")
s169766063
p03777
u487288850
1595662078
Python
Python (3.8.2)
py
Runtime Error
27
8956
114
a,b=map(int,input().split()) x= (a=="H") y=(b=="H") if :x and y or not x and not y print("H") else: print("D")
s255980432
p03777
u159335277
1595302491
Python
Python (3.8.2)
py
Runtime Error
29
8852
67
a, b = input().split() if a == b: print('H'): else: print('D')
s742220957
p03777
u786020649
1595286130
Python
Python (3.8.2)
py
Runtime Error
25
8960
65
a,b =input().split() d={'H':0, 'D':1} print(['H','D'][d[a]^d[b]]
s606440964
p03777
u440975163
1594743900
Python
Python (3.8.2)
py
Runtime Error
28
9000
121
a, b = map(str, input().split()) if a == 'H' and b == 'H' or A == ' D' and b = = 'D': print('H') else: print('D')
s242500036
p03777
u611239490
1594698724
Python
Python (3.8.2)
py
Runtime Error
25
9184
69
a,b=map(int,input().split()) if a==b: print("H") else: print("D")
s902218227
p03777
u054559808
1594515219
Python
PyPy3 (7.3.0)
py
Runtime Error
163
68684
203
a, b = map(int, input().split()) if a == 'H' and b == 'H': print('H') elif a == 'H' and b == 'D': print('D') elif a == 'D' and b == 'H': print('D') elif a == 'D' and b == 'D': print('H')
s445981778
p03777
u726872801
1594500331
Python
Python (3.8.2)
py
Runtime Error
23
8872
68
a,b = input().split() print("H" if (a == "H" ^ b == "H") else "D")
s527502639
p03777
u726872801
1594500173
Python
Python (3.8.2)
py
Runtime Error
24
9016
65
a,b = input().split() print("H" if a == "H" ^ b == "H" else "D")
s647149181
p03777
u871841829
1594353496
Python
Python (3.8.2)
py
Runtime Error
20
8784
149
a, b = input().split() if a == 'H' if b == 'H': print('H') else: print('D') else: if b == 'H': print('D') else: print('H')
s274736443
p03777
u969848070
1594117424
Python
Python (3.8.2)
py
Runtime Error
23
8868
113
a, b = map(str, input().split()) if a = 'H': print(b) else: if b = 'H': print('D') else: print('H')
s870473356
p03777
u823458368
1593265160
Python
Python (3.8.2)
py
Runtime Error
19
9040
95
a, b = map(int, input().split()) if a==b=="H" or a==b=="D": print("H") else: print("D")
s380407087
p03777
u736577709
1592706313
Python
Python (3.8.2)
py
Runtime Error
21
8788
39
a,_,b=input().split() print("DH"[a==b])
s087868557
p03777
u642874916
1592614833
Python
PyPy3 (7.3.0)
py
Runtime Error
85
74668
111
a, b = map(str, input().split()) m = {'D': 'H', 'H': 'D'} if a == 'H': print(b) else a == 'D': print(m[b])
s433677864
p03777
u967822229
1592443629
Python
Python (3.4.3)
py
Runtime Error
17
2940
163
a,b = input().split() if a=='H': if b=='H': print('H') else: print('D') else: if b==H: print('D') else: print('H')
s486031865
p03777
u146346223
1592215392
Python
Python (3.4.3)
py
Runtime Error
18
3060
32
a, b = input() print('DH'[a==b])
s162470922
p03777
u750651325
1592159238
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
a, b = input(), input() if a == "H": print(b) else: if b == "H": print("D") else: print("H")
s138054566
p03777
u078349616
1591924878
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
a, b = map(int, input().split()) if a == "H": print(b) else: print("H") if b == "D" else print("D")
s360649979
p03777
u392361133
1591788712
Python
Python (3.4.3)
py
Runtime Error
16
2940
91
a, t = input().split() print("H" if a == "H" and b =="H" or a == "D" and b == "D" else "D")
s506476099
p03777
u446711904
1591632026
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
a,b=map(str,input().split());print('DH'[a==b::2]
s134113338
p03777
u778348725
1591064805
Python
Python (3.4.3)
py
Runtime Error
17
2940
180
a,b = input().split() if(a==H): if(b==H): print("H") elif(b==D): print("D") elif(a==D): if(b==H): print("D") elif(b==D): print("H")
s253292739
p03777
u085334230
1590715140
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a,b = map(int,input().split()) if a=="H": print(b) else: if b =="H": print("D") else: print("H")
s857926844
p03777
u922449550
1590712646
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
def another(s): if s == 'D': return 'H' else: return 'D' a, b = map(int, input().split()) if a == 'H': print(b) else: print(another(b))
s412356408
p03777
u294385082
1590695596
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
x = int(input()) time = 0 for i in range(1,10**10): time += i if time >= x: print(i) exit()
s115154579
p03777
u611090896
1590333339
Python
Python (3.4.3)
py
Runtime Error
18
2940
52
a,b == input().split() print("H" if a == b else "D")
s225140324
p03777
u247211039
1590297632
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
a, b = map(input().split()) print ("H" if a == "H" and b == "H" else "H" if a == "D" and b == "D" else "D")
s733426896
p03777
u039192119
1589581499
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
a,b=input().split() if a=H: print(b) else: if b=H: print(D) else: print(H)
s923056759
p03777
u493130708
1589359077
Python
PyPy3 (2.4.0)
py
Runtime Error
185
38384
67
s = input() if s = "D D" or "H H": print("H") else: print("D")
s695081367
p03777
u169138653
1589246565
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
a,b=map(int,input().split()) hatsugen=["H","D"] idx=hatsugen.index(b) if a=="H": print(hatsugen[idx]) else: print(hatsugen[1-idx])
s851882144
p03777
u901598613
1588962876
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
a,b=map(input().split()) if (a=="H" and b=="H") or (a=="D" and b=="D"): print("H") else: print("D")
s430114046
p03777
u901598613
1588962761
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
a,b=map(int,input().split()) if (a=="H" and b=="H") or (a=="D" and b=="D"): print("H") else: print("D")
s351062734
p03777
u017415492
1588860600
Python
Python (3.4.3)
py
Runtime Error
18
2940
69
a,b=map(int,input().split()) if a!=b: print("D") else: print("H")
s510859878
p03777
u366886346
1588496779
Python
Python (3.4.3)
py
Runtime Error
18
2940
126
a,b=map(int,input().split()) if a=="H" and b=="H": print("H") elif a=="D" and b=="D": print("H") else: print("D")
s578360658
p03777
u366886346
1588496726
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
a,b=map(int,input().split()) if (a=="H" and b=="H") or (a=="D" and b=="D"): print("H") else: print("D")
s994964783
p03777
u115877451
1588007917
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
a,b=map(int,input().split()) if a==b: print('H') else: print('D')
s011924905
p03777
u869265610
1587238566
Python
Python (3.4.3)
py
Runtime Error
18
2940
105
a=input() b=input() if a=="H" print("H" if b=="H" else "D") if a=="D" print("D" if b=="H" else "H")
s931192115
p03777
u084320347
1587227376
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38256
106
a,t = input().split() if a == "H": print(b) else: if t == "D": print("H") else: print("D")
s822863553
p03777
u084320347
1587227346
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
105
a,t = input().split() if a == "H": print(b) else: if b == "D": print("H") else: print("D")
s307669178
p03777
u239772565
1586805363
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
a,b = input().split() if a == b == H: print("H") elif a == H and b == D: print("D") elif a == D and b == H: print("D") else: print("H")
s226230448
p03777
u239772565
1586805282
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
a,b = input().split() if a == b == H: print("H") if a == H and b == D: print("D") if a == D and b == H: print("D") else: print("H")
s329056419
p03777
u457957084
1586724072
Python
Python (3.4.3)
py
Runtime Error
17
2940
158
a, b = input().split() if (a = "H" and b = "H") or (a = "D" and b = "D": print("H") elif (a = "H" and b = "D") or (a = "D" and b = "H"): print("D")
s450200677
p03777
u982591663
1586552886
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
A, B = map(int, input().split()) if A == B: print("H") else: print("D")
s218168387
p03777
u852790844
1586486637
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
import sys x = int(input()) i = 1 while True: if i*(i+1)//2 >= x: print(i) sys.exit() i += 1
s355796545
p03777
u843318346
1586396414
Python
Python (3.4.3)
py
Runtime Error
23
3188
109
a,b = map(int,input().split()) if a=='H': print(b) else: if b=='D': print('H') else: print('D')
s712190032
p03777
u235210692
1586231338
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
a,b=[int(i) for i in input().split()] if a==b: print("H") else: print("D")
s833027016
p03777
u263691873
1586139922
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
a, b = input().split() if a == b == "H": print("H") elif a == D and b == "H": print("D") elif a == H and b == "D": print("H") else: print("H")
s503889606
p03777
u263691873
1586139882
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
a, b = input().split() if a == b == "H": print("H") elif a == D and b == "H": print("D") elif a == H and b == "D": print("H") else: print("H")
s717804917
p03777
u263691873
1586139757
Python
Python (3.4.3)
py
Runtime Error
17
3060
149
a, b = map(input().split()) if a == b == H: print("H") elif a == D and b == H: print("D") elif a == H and b == D: print("H") else: print("H")
s536435947
p03777
u232903302
1586049440
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
a, b ,c = input().split() print(c+" "+a+" "+b)
s116957731
p03777
u232903302
1586049132
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a, b ,c = input().split() print("{} {} {}".format(c,a,b))
s992494199
p03777
u145600939
1586041120
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a,b = input().split() if a == 'H' ^ b == 'H': print('H') else: print('D')
s895820854
p03777
u391675400
1585962608
Python
Python (3.4.3)
py
Runtime Error
17
2940
181
a,b = map(int,(input().split())) if a == "H" and b == "H": print("H") elif a == "H" and b == "D": print("D") elif a == "D" and b == "H": print("D") else: print("H")
s477345337
p03777
u760961723
1585882643
Python
Python (3.4.3)
py
Runtime Error
17
3060
176
W, a, b = map(int,input().split()) if a+W<=b: print(b-(a+W)) elif (a<= b)and (b<(a+W)): print(b-a) elif (a<=b+W) and(b+W<a+W): print(a-b) elif (b+W)<a: print(a-(b+W))
s455024269
p03777
u916478767
1585495749
Python
Python (2.7.6)
py
Runtime Error
11
2568
249
a, b = map(int, raw_input() .split()) x = 0 y = 0 if a == 'H': x += 1 elif b == 'H': y += 1 if x == 1 and y == 1: print "H" if x == 0 and y == 0: print "H" if x == 1 and y == 0: print "D" if x == 0 and y == 1: print "D"
s568862813
p03777
u440129511
1585243898
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
a, b = input().split() if a='H' and b='H':print('H') elif a='D' and b='D':print('H') else:print('D')
s798492530
p03777
u440129511
1585243832
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
a, b = input().split() if a==H and b==H:print('H') elif a==D and b==D:print('H') else:print('D')
s763268924
p03777
u440129511
1585243800
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
a, b = input().split() if a=H and b=H:print('H') elif a=D and b=D:print('H') else:print('D')
s043944901
p03777
u440129511
1585243739
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a, b = input().split() if a==H and b==H:print(H) elif a==D and b==D:print(H) else:print(D)
s724594696
p03777
u440129511
1585243711
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a, b = input().split() if a=H and b=H:print(H) elif a=D and b=D:print(H) else:print(D)
s857470881
p03777
u440129511
1585243448
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
if a='H' and b='H':print(H) elif a='D' and b='D':print(H) else:print(D)
s624823513
p03777
u016323272
1584465770
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
#ABC056.A a,b = input().split() if a == b: print('H') else: prind('D')
s383437658
p03777
u230621983
1584134883
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
a,b = map(int, input().split()) if a == 'H': print(b) else: print('HD'.replace(b,''))
s151894246
p03777
u641460756
1583897816
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
a,b = map(str,input8).split() if a==b: print("H") else: print("D")
s510584158
p03777
u934788990
1583498128
Python
Python (3.4.3)
py
Runtime Error
17
2940
177
a,b = map(str,input().split()) if a == "H" and b == "H": print("H") elif a== "H"and b == "D": print("D") elif a == "D" and b == "H": print("D") else; print("H")
s867325957
p03777
u934788990
1583498112
Python
Python (3.4.3)
py
Runtime Error
17
2940
173
a,b = map(str,input().split()) if a == "H" and b == "H": print("H") elif a== "H"and b == "D": print("D") elif a == "D" and b == "H": print("D") else; print("H")
s568406480
p03777
u634248565
1582952628
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
print("H" if input()==input() else "D")
s855014734
p03777
u634248565
1582952066
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
print("H" if input()==input() else "D")
s584939506
p03777
u634248565
1582951945
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
a = input() b = input() if a == b: print ("H") else: print ("D")
s037933691
p03777
u541610817
1582171273
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
a, b = [for x in input().split()] print('H' if a == b else 'D')
s673654838
p03777
u311176548
1581934378
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
v=list(map(int,input().split(' '))) if v[0]==v[1]: print('H') else: print('D')
s468636876
p03777
u527993431
1581733782
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
A,B=map(input().split()) if A=="H": print(B) else: if B=="H": print("D") else: print("H")
s400907824
p03777
u772649753
1581370805
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
a,b = map(str,input().split()) if a == H: if b == H: print("H") else: print("D") else if a == D: if b == H: print("D") else: print("H")
s559991888
p03777
u772649753
1581370776
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
a,b = input().split() if a == H: if b == H: print("H") else: print("D") else if a == D: if b == H: print("D") else: print("H")
s996638350
p03777
u405256066
1581020961
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
a,b = list(map(int,input().split())) if a == "D" and b == "D": print("H") elif a == "D" and b == "H": print("D") elif a == "H" and b == "H": print("H") else: print("D")
s804891621
p03777
u106342872
1579969064
Python
Python (3.4.3)
py
Runtime Error
19
3060
217
arr = input().split() arr = list(map(str,arr)) if a == 'H' and b == 'H': print('H') elif a == 'D' and b == 'H': print('D') elif a == 'D' and b == 'D': print('H') elif a == 'H' and b == 'D': print('D')
s032485458
p03777
u897328029
1579871124
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a, b = list(map(int, input().split())) if a == 'H': b = 'D' if b == 'H' else 'H' print(b)
s266440868
p03777
u222801992
1579795740
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
H*H=H H*D=D D*H=D D*D=H a,b=map(str,input().split()) print(a*b)