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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s698788682 | p03759 | u608088992 | 1530814894 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a, b, c -= map(int, input().split())
if b-a == c-b:
print("YES")
else:
print("NO") |
s552808084 | p03759 | u846150137 | 1529554074 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | a,b,c=map(int,input().split())
print("YES" if b-a=c-b else "NO")
|
s032577489 | p03759 | u147809382 | 1526688984 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
if b - a == c - b:
res = 'YES'
else:
res = 'NO'
print(res) |
s099842451 | p03759 | u905715926 | 1526263896 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 107 | a = int(input())
b = int(input())
c = int(input())
if(c-b and b-a):
print("YES")
else:
print("NO")
|
s909401305 | p03759 | u905715926 | 1526263832 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a = int(input())
b = int(input())
c = int(input())
if c-b and b-a:
print("YES")
else:
print("NO")
|
s671869925 | p03759 | u766407523 | 1523388646 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a, b c = map(int, input().split())
if a-b == b-c:
print('YES')
else:
print('NO') |
s112370566 | p03759 | u479060428 | 1522187786 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,b,c=map(int,input().split())
if b-a=c-b:
print("YES")
else:
print("NO")
|
s928337717 | p03759 | u778700306 | 1505699044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | xs = map(int, input().split())
if xs[1] - xs[0] and xs[2] - xs[1]:
print('YES')
else:
print('NO')
|
s484595147 | p03759 | u612721349 | 1504976924 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38640 | 104 | print(lambda x: "YES" if (x == sorted(x) or x == sorted(x)[::-1]) else "NO")(map(int, input().split()))) |
s239874816 | p03759 | u150117535 | 1504668823 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 96 | a,b,c=[int(x) for x in input().split()]
if b−a==c−b:
print("YES")
else:
print("NO") |
s171775382 | p03759 | u853586331 | 1499695758 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | O=str(input())
E=str(input())
m=max(len(O),len(E))
for i in range(m):
if (i<len(O)):
print (O[i], end=" ")
if (i<len(E)):
print(E[i], end=" ")
|
s230609125 | p03759 | u343437894 | 1499484260 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a, b, c = map(int(input().split(" ")));
if b-a == c-b:
print("YES");
else:
print("NO");
|
s089529994 | p03759 | u340294296 | 1496797789 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | O = input()
E = input()
X = ""
for i in range(len(E)):
X += (O[i] + E[i])
if len(O) != len(E):
X += O[-1]
print(X)
|
s239930048 | p03759 | u652737716 | 1495478936 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | (A, B, C) = [int(x) for x in input().split(" ")]
if b - a == c - b:
print("YES")
else:
print("NO")
|
s453693039 | p03759 | u694946470 | 1494734717 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | a, b, c = input().split()
if b-a == c-b:
print("YES")
else:
print("NO")
|
s903904043 | p03759 | u160897845 | 1494284271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 139 | a = input()
b = input()
i = 0
for i in range(len(a)):
print(a[i], end = '')
if i == len(b):
break
print(b[i], end = '') |
s633164941 | p03759 | u160897845 | 1494283729 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 206 | a = input()
b = input()
n = len(b)
x = 0
i = 0
j = 0
while (x < n * 2):
if x % 2:
print(b[i], end = '')
i += 1
else:
print(a[j], end = '')
j += 1
x += 1
print('') |
s236658770 | p03759 | u573451081 | 1494140130 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | str1= input().split()
str2= input().split()
for a,b in zip(str1, str2):
str3 = str3 + a + b
print (str3) |
s042255981 | p03759 | u573451081 | 1494139876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 228 | O=[]
O= input().split()
LO=int(len(O))
E= input().split()
LE=len(E)
flist=[]
for i in range(LO):
if i>LE:
a=O[i]
flist.append(a)
else:
a=O[i]+E[i]
flist.append(a)
print(''.join(flist))
|
s483354066 | p03759 | u573451081 | 1494139573 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 226 | O=[]
O= input().split()
LO=int(len(O))
E= input().split()
LE=len(E)
flist=[]
for i in range(LO):
if i>LE:
a=O[i]
flist.append(a)
else:
a=O[i]+E[i]
flist.append(a)
b=join.flist
print(b) |
s010296252 | p03759 | u768816323 | 1493587014 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 152 | so=input()
se=input()
sol=list(so)
sel=list(se)
i=0
while i<len(sol) or i<len(sel):
s.append(sol[i])
s.append(sel[i])
i=i+1
print "".join(s) |
s103136990 | p03759 | u373745856 | 1493503190 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 441 | n = int(input())
S=[]
for i in range(n):
S.append(input())
ans = []
#チェックする文字をS[0]から取得
for i in S[0]:
#すべてのSについてチェックする文字の存在判定
hantei=[]
for j in range(1,n):
hantei.append(S[j].find(i)) #存在する位置をリストに追加
if min(hantei) >= 0: ans.append(i)
#辞書順にする
ans.sort()
#文字列にする
ans2 = ''.join(ans)
print(ans2) |
s269411095 | p03759 | u116297556 | 1493480038 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 144 | a=input();b=input();r=[];l=len(lb)
for i in range(l):
r.append(a[i]); r.append(b[i])
if l != len(b):
r.append(a[-1])
print(''.join(r))
|
s393349586 | p03759 | u632114133 | 1493328126 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | a, b, c = int(input())
if b-a == c-b:
print('YES')
else:
print('NO')
|
s333826403 | p03759 | u163892325 | 1492891674 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 193 | kis = input()
gus = input()
a = len(kis)
b = len(gus)
c = ""
if a == b:
for i in range(a) :
c += kis[i] + gus[i]
else:
for i in range(b):
c += kis[i] + gus[i]
c += kis[a-1]
print(c) |
s416350032 | p03759 | u103099441 | 1492886982 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | O = list(input())
E = list(input())
s = ''
while O or E:
if len(E) >= len(O):
s = E.pop() + s
else:
s = O.pop() + s
print(s)
|
s757109044 | p03759 | u103099441 | 1492886815 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | O = list(input())
E = list(input())
s = ''
while O or E:
if len(E) >= len(O):
s = E.pop() + s
else:
s = O.pop() + s
print(s)
|
s504483258 | p03759 | u678710348 | 1492813166 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 202 | import sys
def solve():
O = input()
E = input() + '#'
ans = [c1 + c2 for c1, c2 in zip(O, E)]
ans = ''.join(ans).rstrip('#')
print(ans)
if __name__ == '__main__':
solve() |
s900945429 | p03759 | u231875465 | 1492713645 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 77 | print(''.join((a + b for a, b in zip(input(), input()+'\n'))).split('\n')[0]) |
s133294420 | p03759 | u231875465 | 1492713546 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | print(''.join((a + b for a, b in zip(input(), input()+'\n'))).splitlines()[0])
|
s263766646 | p03759 | u474630266 | 1492649503 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 78 | a, b, c = map(int, raw_input().split())
print 'YES' if b - a = c - b else 'NO' |
s409496117 | p03759 | u009102496 | 1492473307 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 235 | a=input()
b=input()
s=[]
if len(a)==len(b):
for i in range(len(a)):
s.append(a[i])
s.append(b[i])
else:
for i in range(len(b)):
s.append(a[i])
s.append(b[i])
s.append(a[-1])
print("".join(s)) |
s090449331 | p03759 | u450607115 | 1492472844 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | d=input().split()
a=int(d[1])
b=int(d[2])
c=int(d[3])
if b-a==c-b:
print("YES")
else:
print("NO") |
s767599829 | p03759 | u450607115 | 1492472393 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 | a=int(input())
b=int(input())
c=int(input())
if a-b==c-b:
print("YES")
else:
print("NO") |
s131033035 | p03759 | u450607115 | 1492472333 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a=int(input())
b=int(input())
c=int(input())
if a-b=c-b:
print("YES")
else:
print("NO") |
s827690658 | p03759 | u009102496 | 1492472098 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 96 | a,b,c = map(int, input().split())
if (b−a) == (c−b):
print("YES")
else:
print("NO") |
s390437493 | p03759 | u450607115 | 1492472096 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 50 | if a-b=c-b:
print("YES")
else:
print("NO") |
s088426459 | p03759 | u009102496 | 1492472026 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,b,c = map(int, input().split())
if b−a == c−b:
print("YES")
else:
print("NO") |
s909303460 | p03759 | u009102496 | 1492471955 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | a, b, c = map(int, input().split())
if b−a == c−b:
print("YES")
else:
print("NO") |
s722845176 | p03759 | u009102496 | 1492471890 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | a, b, c = map(int, input().split())
if b−a == c−b:
print("YES")
else:
print("NO") |
s653606154 | p03759 | u342800601 | 1492471812 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | a, b, c = map(int, raw_input().split())
if (b-a) == (c-b):
print("YES")
else:
print("NO")
|
s353075127 | p03759 | u342800601 | 1492471699 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a, b, c = map(int, raw_input().split())
2.2.if (b-a) == (c-b):
3.3. print("YES")
4.4.else:
5.5. print("NO")
|
s441553575 | p03759 | u342800601 | 1492471599 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 105 | a, b, c = map(int, raw_input().split())
2.if (b-a) = (c-b):
3. print("YES")
4.else:
5. print("NO")
|
s883212307 | p03759 | u342800601 | 1492471513 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a, b, c = map(int, raw_input().split())
if (b-a) or (c-b):
print("YES")
else:
print("NO")
|
s765352207 | p03759 | u009102496 | 1492471462 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a, b, c = map(int, input().split())
if b−a == c−b:
print ("YES")
else:
print ("NO") |
s335333358 | p03759 | u009102496 | 1492471415 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a, b, c = map(int, input().split().split())
if b−a == c−b:
print ("YES")
else:
print ("NO") |
s479890419 | p03759 | u009102496 | 1492471219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a, b, c = map(int, input().split().split())
if b−a == c−b:
print ("YES")
else:
print ("NO") |
s226339189 | p03759 | u009102496 | 1492471092 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 98 | a, b, c = map(int, input().split().split())
if b−a == c−b:
print ("YES")
else:
print("NO") |
s258905080 | p03759 | u009102496 | 1492471014 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 94 | a, b, c = map(int, input().split().split())
if b−a==c−b:
print ("YES")
elif print("NO") |
s035347487 | p03759 | u009102496 | 1492470972 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a, b, c = map(int, input().split().split())
if b−a=c−b:
print ("YES")
elif print("NO") |
s720499638 | p03759 | u153064216 | 1492380228 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 120 | a = input()
b = input()
for _a, _b in zip(a, b):
print(_a, _b, sep='', end='')
if len(a) > len(b):
print(a[-1]) |
s125210481 | p03759 | u153064216 | 1492379509 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | numbers = map(int, input().split(' '))
if numbers[2] - numbers[1] == numbers[1] - numbers[0]:
print('YES')
else:
print('NO') |
s479027169 | p03759 | u559722042 | 1492367007 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | a,b,c = map(int,input().split())
if b-a == c-b:
print("YES")
else
print("NO")
|
s054193260 | p03759 | u019578976 | 1492358851 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | o = input()
e = input()
r = ''
for i in range(len(o)):
r += o[i]
if i < len(e):
r += e[i]
print(r) |
s864691857 | p03759 | u019578976 | 1492358815 | Python | Python (3.4.3) | py | Runtime Error | 24 | 2940 | 902 | #すぬけ君は新しくできたプログラミングコンテストに会員登録しました。 登録に使ったパスワードを覚えておく自信が無かったすぬけ君は、 手元の紙にパスワードをメモしておくことにしました。 ただし、そのままメモをすると誰かにパスワードを盗まれてしまうかもしれないので、 文字列の偶数番目の文字と奇数番目の文字をそれぞれ別々の紙にメモしておくことにしました。
#パスワードの奇数番目の文字だけを順番を変えずに取り出した文字列 O と、 偶数番目の文字だけを順番を変えずに取り出した文字列 E が与えられます。 すぬけ君のかわりにパスワードを復元してください。
o = input()
e = input()
r = ''
for i in range(len(o)):
r += o[i]
if i < len(e):
r += e[i]
print(r) |
s377496848 | p03759 | u392112422 | 1492316962 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 79 | left = b-a
right = c-b
if left == right:
return True
else:
return False |
s065261990 | p03759 | u369883202 | 1492206233 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a=[]
a=input().split()
a.sort()
if a[2]-a[1]==a[1]-a[0]:
print('YES')
else:
print('NO') |
s709626822 | p03759 | u369883202 | 1492205900 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a=[]
for i in range(3):
a.append(int(input()))
a.sort()
if a[2]-a[1]==a[1]-a[0]:
print('YES')
else:
print('NO') |
s140297117 | p03759 | u369883202 | 1492205196 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | a[]
for i in range(3):
a.append(input())
a.sort()
if a[2]-a[1]==a[1]-a[0]:
print('YES')
else:
print('NO') |
s372546637 | p03759 | u369883202 | 1492205007 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2692 | 89 | a=[]
a.append(input())
a.sort()
if a[2]-a[1]==a[1]-a[0]:
print('YES')
else:
print('NO') |
s736029820 | p03759 | u369883202 | 1492204890 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 89 | a=[]
a.append(input())
a.sort()
if a[2]-a[1]==a[1]-a[0]:
print('YES')
else:
print('NO') |
s070663135 | p03759 | u369883202 | 1492204831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a=[]
a.append(input())
a.sort()
if l[2]-l[1]==l[1]-l[0]:
print('YES')
else:
print('NO') |
s980937515 | p03759 | u369883202 | 1492204740 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 | l=map(int,raw_input().split())
l.sort()
if l[2]-l[1]==l[1]-l[0]:
print('YES')
else:
print('NO') |
s981067460 | p03759 | u669382434 | 1492180639 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 124 | o=list(input())
e=list(input())
p=""
for i in range(len(e)):
p+=o[i]
p+=e[i]
if len(o)-i==2:
p+=o[i+1]
print(p)
|
s991845082 | p03759 | u822353071 | 1492039096 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 102 | a,b,c = [int(i) for i in raw_input().split(" ")]
if (b-a) == (c-b) :
print("YES")
else:
print("NO") |
s580037317 | p03759 | u830390742 | 1491917842 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 58 | a,b,c=input(),input(),input()
print ["NO","YES"][b-a==c-b] |
s588994942 | p03759 | u942033906 | 1491875817 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | a,b,c = map(raw_input().split(), int)
if a+c == 2*b:
print('YES')
else:
print('NO')
|
s690360778 | p03759 | u942033906 | 1491875764 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 92 | a,b,c = map(raw_input().split(), int)
if a+c == 2*b:
print('YES')
else:
print('NO')
|
s606694672 | p03759 | u942033906 | 1491875471 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 100 | a,b,c = map(raw_input().split(), int)
2.if a+c == 2*b:
3. print('YES')
4.else:
5. print('NO')
|
s253154149 | p03759 | u942033906 | 1491875391 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 96 | a,b,c = map(input().split(), int)
2.if a+c == 2*b:
3. print('YES')
4.else:
5. print('NO')
|
s874327964 | p03759 | u942033906 | 1491875349 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2696 | 87 | a,b,c = map(input().split(), int)
if a+c == 2*b:
print('YES')
else:
print('NO') |
s998478718 | p03759 | u986399983 | 1491827371 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | a,b,c = [int(i) for i in input().split()]
print("YES" if b-a==c-b "NO") |
s464176860 | p03759 | u376420711 | 1491782270 | Python | Python (3.4.3) | py | Runtime Error | 146 | 4208 | 278 | from string import ascii_lowercase
n = int(input())
ans_l = [100 for i in range(26)]
for i in range(n):
s = str(input())
for i, j in enumerate(ascii_lowercase):
ans_l[i] = min(ans_l[i], s.count(j))
print("".join(i * j for i, j in zip(ascii_lowercase, ans_l)))
|
s234848864 | p03759 | u811388439 | 1491774569 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 293 | s_vec1 = input()
s_vec2 = input()
def abc_057_2(o,e):
s_vec3 = []
for i in range(0,len(e)):
s_vec3.append(o[i])
s_vec3.append(e[i])
if len(o) == len(e):
pass
else:
s_vec3.append(o[i+1])
return(''.join(s_vec3))
print(abc_057_2(s_vec1,s_vec2)) |
s589226473 | p03759 | u811388439 | 1491774253 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 288 | s_vec1 = input()
s_vec2 = input()
def abc_057_2(o,e):
s_vec3 = []
for i in range(0,len(e)):
s_vec3.append(o[i])
s_vec3.append(e[i])
if len(o) == len(e):
pass
else:
s_vec3.append(o[i+1])
return(''.join(s_vec3))
abc_057_2(s_vec1,s_vec2) |
s394846037 | p03759 | u450145303 | 1491768831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | import sys
a = int(input())
b = int(input())
c = int(input())
if b - a == c - b:
print('YES')
else:
print('NO') |
s184738843 | p03759 | u450145303 | 1491768572 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | a,b,c = int(input()), int(input()), int(input())
if b - a == c - a:
print('YES')
else:
print('NO') |
s973533487 | p03759 | u291945537 | 1491746976 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a,b,c=input(),split()
if (int(b)-int(a))==(int(c)-int(b)):
print("YES")
else:
print("NO") |
s828870017 | p03759 | u291945537 | 1491746806 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a,b,c=input().split()
if (int(b)-int(a)==(int(c)-int(b):
print("YES")
else:
print("NO") |
s467017170 | p03759 | u291945537 | 1491746762 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a,b,c=split(input())
if (int(b)-int(a)==(int(c)-int(b):
print("YES")
else:
print("NO") |
s622440421 | p03759 | u417735024 | 1491725153 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 154 | # -*- conding: utf-8 -*-
a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
if (b - a) - (c - b) == 0:
print 'YES'
else:
print 'NO'
|
s853767979 | p03759 | u417735024 | 1491725056 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 176 | #!/usr/bin/env python
# -*- conding: utf-8 -*-
a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
if (b - a) - (c - b) == 0:
print 'YES'
else:
print 'NO'
|
s604014213 | p03759 | u417735024 | 1491724905 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 188 | #!/usr/local/env python
# -*- conding:utf-8 -*-
import sys
a = int(sys.argv[1])
b = int(sys.argv[2])
c = int(sys.argv[3])
if (b - a) - (c - b) == 0:
print 'YES'
else:
print 'NO' |
s311529411 | p03759 | u638057737 | 1491716534 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38640 | 251 | odds = input()
evens = input()
result = ""
while (not(len(odds) == 0 and len(evens) == 0)):
if (len(odds) != 0):
result += odds[0]
odds = odds[1:]
if (len(evens) != 0):
result += evens[0]
evens = evens[1:]
print(result) |
s007925602 | p03759 | u256823895 | 1491706968 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 335 | n = int(raw_input())
list_str = []
for count in range(0,n):
list_str.append(raw_input())
for count in range(0,n-1):
if count == 0:
compare1 = set(list_str[count])
else:
compare1 = set(output)
compare2 = set(list_str[count+1])
output = list(compare1 & compare2)
output = ''.join(output)
print output |
s422359129 | p03759 | u256823895 | 1491706242 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2696 | 348 | n = map(int, raw_input().split())
list_str = []
for count in range(0,n):
list_str.append(raw_input())
for count in range(0,n-1):
if count == 0:
compare1 = set(list_str[count])
else:
compare1 = set(output)
compare2 = set(list_str[count+1])
output = list(compare1 & compare2)
output = ''.join(output)
print output |
s625331323 | p03759 | u509125770 | 1491706039 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 76 | a, b, c = map(int, input())
if b-a == c-b : print('YES')
else: print('NO')
|
s227937233 | p03759 | u846813901 | 1491705573 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 208 | O=input()
E=input()
ol=len(O)
el=len(E)
p=0
if ol>=el:
for num in range(0,ol):
p=p+O[num]+E[num]
print(p)
else :
for num in range(0, el):
p = p+O[num] + E[num]
print(p) |
s278810195 | p03759 | u256823895 | 1491705214 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 222 | O = raw_input()
E = raw_input()
out = O+E
out = list(out)
for count in range(0,len(out)/2):
out[2*count] = O[count]
out[2*count+1] = E[count]
if len(O) > len(E):
out[2*count+2] = O[count+1]
out = ''.join(out)
print out |
s372413731 | p03759 | u533084327 | 1491705047 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 461 | mport numpy as np
n = input()
s = []
for i in range(n):
s.append(raw_input())
for i in range(n):
s[i] = list(s[i])
s[i].sort()
print s
#print s[0][1] in s[1]
#print len(s[0])
#print s[0][1]
#print s[2]
count = 0
answer = []
for j in range(len(s[0])):
for k in range(1,n):
if ''.join(s[k]).find(s[0][j]) != -1:
count += 1
if count == n-1:
answer.append(s[0][j])
print count
count = 0
print ''.join(answer) |
s417493465 | p03759 | u466826467 | 1491704969 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 487 | n, m = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
sum_x = 0
for i in range(0, n):
tmp_x = x[i]
l_x = list(filter(lambda ele: ele > 0, (map(lambda ele: ele - tmp_x, x))))
sum_x += sum(l_x)
sum_y = 0
for i in range(0, m):
tmp_y = y[i]
l_y = list(filter(lambda ele: ele > 0, (map(lambda ele: ele - tmp_y, y))))
sum_y += sum(l_y)
ans = sum_x * sum_y
divide_num = pow(10, 9) + 7
print(ans % divide_num)
|
s590823986 | p03759 | u846813901 | 1491704744 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 174 | O=input()
E=input()
ol=len(O)
el=len(E)
if ol>=el:
for num in range(0,ol):
print(O[num]+E[num])
else :
for num in range(0, el):
print(O[num] + E[num]) |
s271541566 | p03759 | u846813901 | 1491704374 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 112 | O=input()
E=input()
ol=len(O)
el=len(E)
list=(ol,el)
L=max(list)
for num in range(0,L):
print(O[num]+E[num]) |
s554896930 | p03759 | u846813901 | 1491704302 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 112 | O=input()
E=input()
ol=len(O)
el=len(E)
list=(ol,el)
L=max(list)
for num in range(0,L):
print(O[num]+E[num]) |
s576813010 | p03759 | u216954900 | 1491703889 | Python | Python (3.4.3) | py | Runtime Error | 147 | 12480 | 491 | # -*- coding: utf-8 -*-
import os
import sys
import math
import numpy as np
n, m = map(int, input().split())
X = input().split()
X = list(map(int, X))
Y = input().split()
Y = list(map(int, Y))
# 1 つの最小長方形は (n-1)*(m-1) 回加算される
S = 0
mod = 10 ** 9 + 7
for x in range(n-1):
for y in range(m-1):
var = (X[x+1]-X[x]) * (Y[y+1]-Y[y])
# print(var)
x_times = (x+1) * (n-x-1)
y_times = (y+1) * (m-y-1)
S += ((var * x_times * y_times) % mod)
print(S%mod) |
s552078263 | p03759 | u361426244 | 1491702809 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2696 | 143 | a = raw_input()
b = raw_input()
print ''.join([x+y for x,y in zip(a,b)]) + ( a[-1] if len(a) > len(b) else b[-1] if len(b) > len(a) else '' )
|
s069559579 | p03759 | u008841386 | 1491702383 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 114 | l = map(int, input().split())
a=l[0]
b=l[1]
c=l[2]
A=b-a
B=c-b
if A==B:
print('Yes')
else:
print('No')
|
s690938730 | p03759 | u008841386 | 1491701961 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | l = map(int, input().split())
a=l[0] # A
b=l[1] # B
c=l[2] # C
A=b-a
B=c-b
if A==B:
print('Yes')
else:
print('No') |
s381362938 | p03759 | u008841386 | 1491701863 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | l = map(int, raw_input().split())
a=l[0] # A
b=l[1] # B
c=l[2] # C
A=b-a
B=c-b
if A==B:
print('Yes')
else:
print('No') |
s240204966 | p03759 | u938389536 | 1491701707 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 108 | a, b, c = map(int, raw_input().split)
middle = (a + c)/2
if b == middle:
print("YES")
else:
print("NO") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.