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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s868826836 | p03777 | u979078704 | 1562568127 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 60 | a,b = input().split()
if a == b:
print("H")
else:
print("D") |
s719535925 | p03777 | u668503853 | 1562301118 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | a,b=map(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")
|
s960138561 | p03777 | u668503853 | 1562301082 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 147 | 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") |
s483275627 | p03777 | u093500767 | 1562254144 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | a, b = map(str, input().split())
if a==b:
print("H")
else:
pritn("D") |
s267166735 | p03777 | u296150111 | 1560984605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 143 | a.b=input().split()
if a=="H" and b=="H":
print("H")
elif a=="H" and b=="D":
print("D")
elif a=="D" and b=="D":
print("H")
else:
print("D") |
s610437027 | p03777 | u932719058 | 1560950490 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | a, b = map(int, input().split())
if a == b :
print('H')
else :
print('D') |
s355256054 | p03777 | u277353449 | 1560579881 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a,b=input(str,input().split())
if a=='H':
print(b)
else:
if b=='H':
print('D')
else:
print('H') |
s344219268 | p03777 | u556589653 | 1560363639 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | a,b = map(str,input().split())
num = 0
if a == "D"
num = num + 1
if b == "D"
num = num + 1
if num%2 == 0:
print("H")
else:
print("D") |
s798207598 | p03777 | u399721252 | 1559786227 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | if [input(),input()].count("H") == 1:
print("D")
else:
print("H") |
s079149058 | p03777 | u399721252 | 1559786154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | if [input(),input()].count("H") == 1:
print("D")
else:
print("H") |
s432014343 | p03777 | u083668616 | 1559683232 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 59 | a, b = input().split()
if a == b: print 'H'
else: print 'D' |
s883172175 | p03777 | u016622494 | 1559245883 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 229 | at = input().split()
top = input().split()
at_i = 0
top_i = 0
if at =='H':
at_i = 1
if at == 'D':
at_i = -1
if top == 'H':
top_i = 1
if top == 'D':
top_i = -1
if top_i * at_i == 1:
print("H")
else :
print("D")
|
s402722345 | p03777 | u016622494 | 1559245655 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 207 | at = input().split()
top = input().split()
if at =='H':
at_i = 1
if at == 'D':
at_i = -1
if top == 'H':
top_i = 1
if top == 'D':
top_i = -1
if top_i * app_i == 1:
print("H")
else
print("D")
|
s946466783 | p03777 | u037221289 | 1558841999 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a,b = map(str,input().split(' '))
if a == 'H':
print(b)
elif a == 'D' and b == 'H':
print('D')
else
:print('H')
|
s187591454 | p03777 | u059210959 | 1558286925 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 419 | # encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
mod = 10**9+7
a,b = map(str,input().split())
if a == "H" and b == "H":
tp == True
elif a=="D" and b == "H"
tp == False
elif a=="D" and b=="D":
tp = True
else:
tp = False
if tp:
print("H")
else:
print("D")
|
s082099605 | p03777 | u237493274 | 1557793568 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | W, a, b = map(int, input().split())
if a < b:
print(abs(a+W-b))
else:
print(abs(b+W-a)) |
s634912773 | p03777 | u856169020 | 1557780342 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a, b = map(int, input().split())
if a == "H":
print(b)
else:
if b == "H":
print("D")
else:
print("H") |
s759352456 | p03777 | u918808222 | 1557620364 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | w, a, b = map(int, input().split())
print(max(abs(a-b)-w,0))
|
s410490156 | p03777 | u322185540 | 1557014867 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a,b = map(int,input().split())
if (a=='H' and b == 'H')or(a == 'D'an b =='D'):
print('H')
else:
print('D') |
s558358651 | p03777 | u806855121 | 1556984659 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 4 | H H
|
s208087764 | p03777 | u382431597 | 1556412327 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | import sys
a,b = list(map(int, input().split()))
print("H" if a == b else "D") |
s178443377 | p03777 | u794603719 | 1556154617 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | a,b=map(int,input().split())
print("H" if a==b else "D") |
s518394142 | p03777 | u483151310 | 1556074765 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 157 | a,b= input().split("")
if a=="H"and b=="H":
print("H")
elif a=="H" and b=="D":
print("D")
elif a=="D" and b=="D":
print("H")
else:
print("D") |
s789218839 | p03777 | u481026841 | 1555966284 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 127 | a,b = map(str,input().split())
if a == D and b == D:
print('H')
elif a == H and b == H:
print('H')
else:
print('D') |
s620105848 | p03777 | u481026841 | 1555966167 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | a,b = input().split()
if a == D and b == D:
print('H')
elif a == H and b == H:
print('H')
else:
print('D') |
s441787874 | p03777 | u481026841 | 1555966118 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | a = input().split()
if a[0] == D and a[1] == D:
print('H')
elif a[0] == H and a[1] == H:
print('H')
else:
print('D') |
s478423348 | p03777 | u481026841 | 1555966082 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | a = input().split()
if a[0] == D and a[1] == D:
print(H)
elif a[0] == H and a[1] == H:
print(H)
else:
print(D) |
s181256282 | p03777 | u041075929 | 1555712194 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 303 | import sys, os
f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
sys.stdin = open('./input.txt', 'r')
def solve():
a , b = input(), input()
if a == 'H':
print(b)
else:
if b == 'D':
print('H')
else:
print('D')
solve()
|
s204988334 | p03777 | u150641538 | 1555686018 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a,b = inpur().split()
if a == b:
print("H")
else:
print("D") |
s259808390 | p03777 | u885899351 | 1555526220 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | a,b=map(int,input().split())
if a==b:print("H")
else:print("D") |
s543156932 | p03777 | u331464808 | 1555432700 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 170 | a,b = map(str,input().split())
if a='H' and b = 'H':
print('H')
if a='D' and b = 'H':
print('D')
if a='H' and b = 'D':
print('D')
if a='D' and b = 'D':
print('H') |
s914071544 | p03777 | u716649090 | 1554758815 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | a, b = input().split()
print("H" if a == b else "D")aa |
s915404898 | p03777 | u288040231 | 1554707911 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 160 | # a, b = map(int, input().split())
a = input()
b = input()
if b is 'H':
print('H') if a is 'H' else print('D')
else:
print('D') if a is 'H' else print('H') |
s010893009 | p03777 | u288040231 | 1554707808 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | # a, b = map(int, input().split())
a = input()
b = input()
if b == 'H':
print('H') if a == 'H' else print('D')
else:
print('D') if a == 'H' else print('H') |
s557606902 | p03777 | u288040231 | 1554707741 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 170 | # a, b = map(int, input().split())
a = int(input())
b = int(input())
if b == 'H':
print('H') if a == 'H' else print('D')
else:
print('D') if a == 'H' else print('H') |
s179191681 | p03777 | u288040231 | 1554707653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | a, b = map(int, input().split())
if b == 'H':
print('H') if a == 'H' else print('D')
else:
print('D') if a == 'H' else print('H') |
s347405820 | p03777 | u655975843 | 1554597205 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | a = input()
b = input()
if a == b:
print('H')
else:
print('D') |
s778031035 | p03777 | u121732701 | 1554503405 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a, b = input.split()
if (a=="H"and b=="H")or(a=="D" and b=="D"):
print("H")
else:
print("D") |
s133578912 | p03777 | u748311048 | 1554305573 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | a,b=map(int, input().split())
if b=='H':
if a=='H':
print('H')
else:
print('D')
else:
if a=='H':
print('D')
else:
print('H') |
s310317066 | p03777 | u748311048 | 1554305381 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | a,b=map(int, input().split())
if b=='H':
if a=='H':
print('H')
else:
print('D')
else:
if a=='H':
print('D')
else:
print('H') |
s927564346 | p03777 | u748311048 | 1554305347 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | a,b=map(int, input().split())
if d=='H':
if a=='H':
print('H')
else:
print('D')
else:
if a=='H':
print('D')
else:
print('H') |
s733081521 | p03777 | u912862653 | 1554056550 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 128 | a, b = list(input())
if a=='H':
if b=='H':
print('H')
else:
print('D')
else:
if b=='H':
print('D')
else:
print('H') |
s474356654 | p03777 | u518042385 | 1553277989 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a,b=input().split()
if a,b==("H","H") or a,b==("D","D"):
print("H")
else:
print("D") |
s879251994 | p03777 | u172998095 | 1553222964 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,b = input()
if a=="H" and b=="H" or a=="D" and b=="D":
print("H")
else:
print("D")
|
s495794404 | p03777 | u172998095 | 1553222896 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | a,b = input()
if a==b=="H" or a==b=="D":
print("H")
else:
print("D")
|
s765914887 | p03777 | u172998095 | 1553222851 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 77 | a,b = input()
if a==b=="H" or a==b=="D":
print("H")
else:
print("D")
|
s749047032 | p03777 | u172998095 | 1553222803 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 96 | #HonestOrDishonest
a,b = input()
if a==b=="H" or a==b=="D":
print("H")
else:
print("D")
|
s365187975 | p03777 | u366959492 | 1552961927 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a,b = (str(x) for x in input().split())
if a = "H":
pass
elif b = "H":
b = "D"
else:
b = "H"
print(b)
|
s916343202 | p03777 | u366959492 | 1552961858 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | a,b = (str(x) for x in input().split())
if a = "H":
continue
elif b = "H":
b = "D"
else:
b = "H"
print(b) |
s681945767 | p03777 | u118642796 | 1552508281 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38512 | 75 | a,b = input().split()
if a=='H' xor b=='H':
print("D")
else:
print("H") |
s771816891 | p03777 | u544050502 | 1551649611 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 | a,b=input().split()
if a="H":
print(b)
else:
if b="H":
print("D")
else:
print("H")
|
s466519818 | p03777 | u595893956 | 1551403218 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 47 | if input()==input(): print('H')
else print('D') |
s665512576 | p03777 | u604412462 | 1550424472 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 216 | if ab[0] == "H" and ab[1] == "H":
print("H")
elif ab[0] == "H" and ab[1] == "D":
print("D")
elif ab[0] == "D" and ab[1] == "H":
print("D")
elif ab[0] == "D" and ab[1] == "D":
print("H") |
s528312733 | p03777 | u960513073 | 1550114882 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 137 | a,b = list(map(input().split()))
if a == "H" and b == "H":
print("H")
elif a == "D" and b == "D":
print("H")
else:
print("D") |
s756259871 | p03777 | u960513073 | 1550114822 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 142 | a,b = list(map(int, input().split()))
if a == "H" and b == "H":
print("H")
elif a == "D" and b == "D":
print("H")
else:
print("D") |
s627817094 | p03777 | u740284863 | 1549777898 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 158 | w,a,b = map(int,input().split())
ans = 0
if b > a:
if a + w < b:
ans = b - (a + w)
else:
if b + w <= a:
ans = a - (b + w)
print(ans)
|
s941809057 | p03777 | u239342230 | 1546403826 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 75 | x=input().split().replace(' ','')
print('H' if x=='HH' or x=='DD' else 'D') |
s559273082 | p03777 | u726439578 | 1546106765 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | a,b=map(int,input().split())
if (a=="H" and b=="H") and (a=="H" and b=="H"):
print("H")
else:
print("D") |
s894903986 | p03777 | u272377260 | 1544880050 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 197 | 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') |
s090057665 | p03777 | u138486156 | 1544742880 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 182 | import bisect
x = int(input())
a = [1]
s = 1
for i in range(2, x+1):
s += i
a.append(s)
if x in a:
print(a.index(x) + 1)
exit()
print(bisect.bisect_right(a, x)+1)
|
s419356421 | p03777 | u928784113 | 1544511328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | # -*- coding: utf-8 -*-
a,b = map(str,input().split())
if (a = "H" and b = "H")or(a = "D" and b = "D"):
print("H")
else:
print("D") |
s975050371 | p03777 | u928784113 | 1544511111 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 165 | # -*- coding: utf-8 -*-
a,b = map(str,input().split())
H1 = "1"
D1= "-1"
H = int(H1)
D = int(D1)
A = int(a)
B = int(b)
if B * A == 1:
print("H")
else:
print("D") |
s144611423 | p03777 | u928784113 | 1544511078 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 165 | # -*- coding: utf-8 -*-
a,b = map(str,input().split())
H1 = "1"
D1= "-1"
H = int(H1)
D = int(D1)
A = int(a)
B = int(b)
if a * b == 1:
print("H")
else:
print("D") |
s156272912 | p03777 | u928784113 | 1544510964 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 142 | # -*- coding:utf-8 -*-
a,b = map(str,input().split())
H1 = "1"
D1= "-1"
H = int(H1)
D = int(D1)
if a * b == 1:
print("H")
else:
print("D") |
s276242147 | p03777 | u928784113 | 1544510879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | # -*- coding:utf-8 -*-
a,b = map(str,input().split())
H1 = "1"
D1= "-1"
H = int(H)
D = int(D)
if H * D == 1:
print("H")
else:
print("D") |
s465520527 | p03777 | u111365959 | 1543238706 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | w,a,b = [int(x) for x in input().split()]
print(abs(b-w-(b-a+w))) if a+w <= b else print(0)
|
s626992355 | p03777 | u111365959 | 1543025432 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3068 | 56 | a,b = input.split()
print('H') if a == b else print('D') |
s603019566 | p03777 | u037098269 | 1542229295 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 205 | line = input().split()
if line[0] = "H" and line[1] = "H":
print("H")
elif line[0] = "H" and line[1] = "D":
print("D")
elif line[0] = "D" and line[1] = "H":
print("D")
else:
print("H")
|
s791896384 | p03777 | u791664126 | 1541475094 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | a,b=map(int,input().split());print('DH'[a==b]) |
s870929058 | p03777 | u016393440 | 1540756973 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 201 | a = input()
b = input()
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') |
s891423248 | p03777 | u484856305 | 1538848343 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | a,b=map(str,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")
|
s505242988 | p03777 | u484856305 | 1538847960 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 101 | a,b=map(str,input().split())
if a=="H" and b="H" or a=="D" and b="D":
print("H")
else:
print("D") |
s493638698 | p03777 | u201234972 | 1538711464 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 182 | a, b = map( int, input().split())
if a == 'H':
if b == 'H':
print('H')
else:
print('D')
else:
if b == 'H':
print('D')
else:
print('H') |
s967246278 | p03777 | u518556834 | 1537381503 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | a,b = map(str,input().split())
H = 1
D = 0
print(a^b) |
s861471055 | p03777 | u177398299 | 1536989184 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | a, b = map(int, input().split())
if a == 'H':
print(b)
else:
if b == 'H':
print('D')
else:
print('H') |
s010361023 | p03777 | u761989513 | 1536374244 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | x = int(input())
a = 0
for i in range(1, 10 ** 9):
if a >= x:
print(i - 1)
break
a += i |
s867647469 | p03777 | u474270503 | 1536337078 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a,b=map(int,input().split())
if a=='H':
print('H' if b=='H' else 'D')
else:
print('D' if b=='H' else 'H')
|
s771969378 | p03777 | u601082779 | 1535996584 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 38 | print("HD"[len(set(input().split()))]) |
s258387926 | p03777 | u826263061 | 1535901650 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a, b = list(map(int, input().split()))
if a == 'H':
print(b)
elif b == 'H':
print('D')
else:
print('H') |
s191526434 | p03777 | u099566485 | 1535849022 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | a,b=input()
if a=='H':
if b=='H':
print('H')
else:
print('D')
else:
if b=='H':
print('D')
else:
print('H') |
s401035331 | p03777 | u362560965 | 1535159060 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | a,b = input().split()
ans = 1
if a == "D":
ans *= -1
if b == "D":
ans *= -1
if ans = 1:
print("H")
else:
print("D") |
s159457084 | p03777 | u434500430 | 1532742744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 182 | a, b = 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') |
s779748777 | p03777 | u333945892 | 1532478157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | if a=='H':
print(b)
else:
if b=='H':
print('D')
else:
print('H') |
s144092905 | p03777 | u962127640 | 1532056839 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | a, b = input()
if a == b:
print('H')
else:
print('D') |
s408535259 | p03777 | u962127640 | 1532056739 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | a, b = input()
if a == b:
print('H')
else:
print('D') |
s331739389 | p03777 | u095969144 | 1530842161 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 174 | a,b = map(str , input().split())
if a == "H":
if b == "H":
print("H")
else:
print("D")
elif b == "H":
print("D")
else:
print("H")
|
s750201405 | p03777 | u226746496 | 1529107874 | 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('H')
elif a == 'D' and b == 'H':
print('D')
else:
print('H') |
s265590571 | p03777 | u226746496 | 1529107783 | Python | Python (3.4.3) | py | Runtime Error | 18 | 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') |
s704807807 | p03777 | u218843509 | 1528556898 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | a, b = map(int, input().split())
if a == b:
print("H")
else:
print("D")
|
s589801860 | p03777 | u218843509 | 1528556846 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | a, b = map(int, input().split())
if a == b:
print("H")
else:
print("D") |
s356297066 | p03777 | u977370660 | 1524960019 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | a,b = input().split()
if a==b:
print(H)
else:
print(D) |
s666671923 | p03777 | u499259667 | 1524259220 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | a,b=input().split()
if a=="H":
f=True
else:
f=False
if f:
print("H" if b=="H" else "D")
else:
print("H" if b=="D" else "D" |
s520212767 | p03777 | u856232850 | 1523656999 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | if b == 'H':
print(a)
elif a == b:
print('H')
else:
print('D') |
s936160181 | p03777 | u952708174 | 1517859722 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | a,b = [int(i) for i in input().split()]
if a=='H':
if b=='H':
print('H')
else:
print('D')
else:
if b=='H':
print('D')
else:
print('H') |
s031884720 | p03777 | u898651494 | 1517713826 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 228 | a = input()
b = input()
flag = True
if (a=='H' and b=='H'):
flag = True
if (a=='H' and b=='D'):
flag = False
if (a=='D' and b=='H'):
flag = False
if (a=='D' and b=='d'):
flag = True
print('H' if flag else 'D') |
s202449477 | p03777 | u898651494 | 1517713375 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 220 | a = input()
b = input()
flag = true
if (a=='H') and (b=='H')
flag = true
if (a=='H') and (b=='D')
flag = false
if (a=='D') and (b=='H')
flag = false
if (a=='D') and (b=='d')
flag = true
print(flag?H:D) |
s391952009 | p03777 | u103539599 | 1516735403 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | a,b=map(str, input().split())
if (a="H" and b="H") or (a="D" and b="D"):
print("H")
else:
print("D")
|
s177063142 | p03777 | u943004959 | 1516303013 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3056 | 367 | from bisect import bisect_left, bisect_right, insort_left, insort_right
def solve():
x = int(input())
cumulative_sum = [(k * (k - 1)) // 2 for k in range(1, 46)]
target = bisect_left(cumulative_sum, x)
if x in cumulative_sum:
print(cumulative_sum.index(x))
else:
print(target - 2 + (x - cumulative_sum[target - 1] + 1))
solve() |
s761348125 | p03777 | u781025961 | 1510846982 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 179 | 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")
|
s363974199 | p03777 | u943004959 | 1507733001 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | def solve():
a, b = list(map(int, input().split(" ")))
if a == b:
print("H")
else:
print("D")
solve() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.