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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s831486783 | p03760 | u848647227 | 1540949012 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 260 | a = list(input())
b = list(input())
ar = []
if len(a) == len(b):
for i in range(len(a)):
ar.append(a[i])
ar.append(b[i])
else:
for i in range(len(b)):
ar.append(a[i])
ar.append(a[i])
ar.append(a[len(a)-1])
print("".join(ar))
|
s878998146 | p03760 | u240793404 | 1540914478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | o = input()
e = input()
pw = ""
for i in range(e):
pw+= o[i] + e[i]
if len(o) != len(e):
pw += o[-1]
print(pw) |
s217404731 | p03760 | u619819312 | 1538962165 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | n=input()
a=input()
c=str()
for i in range(0,len(a))
c+=n[i]+a[i]
print(c if len(n)==len(a) else c+n[len(n)-1]) |
s204908332 | p03760 | u052347048 | 1535156002 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 110 | a = input()
b = input()
c = []
for i in range(len(a)):
c.append(a[i])
c.append(b[i])
print("".join(c)) |
s194825501 | p03760 | u362560965 | 1535059320 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | O = input()
E = input()
ans = []
while True:
if O == []:
break
ans.append(O.pop(0))
if E == []:
break
ans.append(E.pop(0))
print("".join(ans)) |
s910341081 | p03760 | u513081876 | 1534820018 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 142 | O = list(input())
E = list(input())
llist = list(range(1, len(E)+3, 2))
for i in range(len(E)):
O.insert(llist[i],E[i] )
print(''.join(O)) |
s513290818 | p03760 | u277802731 | 1534295763 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | #58b
o = input()
e = input()
ans=[]
for i in range(len(o)):
ans.append(o[i]+e[i])
print(''.join(ans)) |
s941702383 | p03760 | u140251125 | 1530748991 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 241 | # input
O = input()
E = input()
password = [0 for _ in range(len(O) + len(E))]
for i in range(len(O)):
password[2 * i] = O[i]
for i in range(len(E)):
password[2 * i + 1] = E[i]
password_str = ''.join(str_list)
print(password_str) |
s241981386 | p03760 | u552122040 | 1530725604 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 101 | odd, even = input(), input()
for i in range(len(odd)):
print(odd[i] + even[i], end="")
print("")
|
s614247384 | p03760 | u890807039 | 1530418281 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | o = input()
e = input()
counter = 0
ans = ""
while len(o) > counter:
ans = str(ans) + o[counter] + e[counter]
counter+=1
print(ans) |
s432679031 | p03760 | u858136677 | 1529982468 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 197 | o = input()
e = input()
ans = []
n = len(o)
i = 0
while i < n:
ans.append(o[i])
ans.append(e[i])
i+=1
for i in range(len(ans)):
if i != len(ans)-1:
print(ans[i],end="")
else:
print(ans[i]) |
s237374272 | p03760 | u693570218 | 1528430221 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | O = input()
E = input()
res = ''
for (o, e) in O.zip(E):
res += o
res += e
print(res) |
s926316097 | p03760 | u136395536 | 1528188741 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 201 | O = input()
E = input()
password = ""
for i in range(len(E)):
password = password + O[i] + E[i]
if len(E)%2 == 1:
print(password)
else:
password = password + O[len(O)]
print(password) |
s077212200 | p03760 | u136395536 | 1528188651 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 201 | O = input()
E = input()
password = ""
for i in range(len(E)):
password = password + O[i] + E[i]
if len(E)%2 == 1:
print(password)
else:
password = password + O[len(O)]
print(password) |
s634068481 | p03760 | u391475811 | 1526590114 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | o=input()
e=input()
ans=[]
for i in range(len(0)):
ans.append(o[i])
if i<len(e):
ans.append(e[i])
print("".join(ans)) |
s289803736 | p03760 | u306142032 | 1526090651 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 123 | o = input()
e = input()
for i in range(len(o)):
print(o[i]+e[i], end="")
if len(o) != len(e):
print(o[len(o)-1])
|
s697832376 | p03760 | u306142032 | 1526090583 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | o = input()
e = input()
for i in range(len(o)):
print(o[i]+e[i], end="")
if len(o) != len(e):
print(o[len(o)])
|
s151059920 | p03760 | u916806287 | 1525405825 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | print("".join([o, e for o, e zip(input(), input())])) |
s196654620 | p03760 | u612721349 | 1525265192 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | a,b=input(),input()
l=len(a+b)
ans=""
for i in range(l):
if i % 2 == 0:
ans += a.pop(0)
else:
ans += b.pop(0)
print(ans) |
s015518500 | p03760 | u612721349 | 1525265157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | a,b=input(),input()
l=len(a+b)
ans=""
for i in range(l):
if l % 2 == 0:
ans += a.pop(0)
else:
ans += b.pop(0)
print(ans) |
s757668408 | p03760 | u027622859 | 1522191597 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | o = list(input())
e = list(input())
l = []
for x in range(max(len(o), len(e))):
l.append(o[x])
l.append(e[x])
print(''.join(l)) |
s090713436 | p03760 | u429443682 | 1521538492 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 245 | #include <bits/stdc++.h>
using namespace std;
int main() {
string o, e;
cin >> o >> e;
for (int i = 0; i < o.size(); i++) {
cout << o[i] << e[i];
}
if (o.size() > e.size())
cout << o[o.size()];
cout << '\n';
return 0;
}
|
s046883043 | p03760 | u319612498 | 1519353375 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 190 | o=input()
e=input()
n=len(e)
a=""
if len(o)-len(e)==0:
for i in range(n):
a=a+o[i]+e[i]
print(a)
else:
for i in range(n):
a=a+o[i]+e[i]
a=a+e[n]
print(a)
|
s582302555 | p03760 | u319612498 | 1519353269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 189 | o=input()
e=input()
n=len(e)
a=""
if len(o)-len(e)==0:
for i in range(n):
a=a+o[i]+e[i]
print(a)
else:
for i in range(n):
a=a+0[i]+e[i]
a=a+e[n]
print(a) |
s208221182 | p03760 | u952708174 | 1517882089 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | O = input().strip()
E = input().strip()
end = 0
if len(O)-len(E)=1:
end = 1
ans = ''
for i in range(len(O)-end):
ans += O[i] + E[i]
if end==1:
ans += O[-1]
print(ans) |
s002388735 | p03760 | u558836062 | 1512798982 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | O = input()
E = input()
Ans = ""
for i in range(len(O)):
Ans += O[i]
Ans += E[i]
print(Ans) |
s804524615 | p03760 | u558836062 | 1512798607 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 110 | O = input()
E = input()
Ans = ""
for i in range(max(len(O),len(E))):
Ans += O[i]
Ans += E[i]
print(Ans) |
s069911792 | p03760 | u273396603 | 1504125808 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3068 | 133 | import sys
a = []
b = []
a = input()
b = input()
for num in range(0,len(a)):
sys.stdout.write(a[num])
sys.stdout.write(b[num]) |
s602044738 | p03760 | u057586044 | 1502381447 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | O,E=[input().rstrip() for _ in range(2)]
for i in range(len(O)):
print(O[i]+E[i],end="") |
s317760721 | p03760 | u676264453 | 1496098724 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 257 | N = int(input())
Ts = list(map(int, input().split()))
M = int(input())
Ds = []
O = str(input())
E = str(input())
ma = max(len(O), len(E))
for i in range(ma):
if (i < len(O)):
print(O[i], end="")
if (i < len(E)):
print(E[i], end="") |
s171261648 | p03760 | u676264453 | 1496098651 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 184 | O = str(input())
E = str(input())
ma = max(len(O), len(E))
for i in range(ma):
if (i < len(O)):
print(O[i], end="")
if (i < len(E)):
print(E[i], end="")
----
|
s814029712 | p03760 | u093492951 | 1496093725 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | O = [i for i in input()]
E = [i for i in input()]
psw = ''
for i in range(len(E)):
psw += O[i] + E[i]
if len(O) > len(E):
psw += O[-1]
print(psw) |
s387269115 | p03760 | u714878632 | 1495601350 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | o = input()
e = input()
ret = ""
for i in range(len(o) + len(e)):
if i % 2 == 0:
ret += o[i/2]
else:
ret += e[i/2]
print(ret)
|
s663283407 | p03760 | u509674552 | 1495599834 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 150 | # coding: utf-8
if __name__ == '__main__':
a,b,c = map(int,input().split())
if b-a == c-b:
print("Yes")
else:
print("No") |
s527872144 | p03760 | u839857256 | 1495471229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 272 | O = input()
E = input()
password = O[0] + E[0]
if len(O)-len(E)==1:
for i in range(1, len(O)-1):
password = password + O[i] + E[i]
password = password + O[i]
else:
for i in range(1, len(O)):
password = password + O[i] + E[i]
print(password)
|
s932257027 | p03760 | u839857256 | 1494965862 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | O = input()
E = input()
password = []
for i in range(len(O)-1):
password.append(O[i])
password.append(E[i])
if len(O)-len(E)==1:
password.append(O[len(O)])
print(password)
|
s376264891 | p03760 | u667084803 | 1494439173 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 216 | # -*- coding: utf-8 -*-
# 整数の入力
A=input()
B=input()
ans=str()
if len(A)==len(B):
for i in range (0,len(A)):
ans+=A[i]+B[i]
else:
for i in range (0,len(A)):
ans+=A[i]+B[i]
ans+=A[-1]
print(ans) |
s686709565 | p03760 | u768816323 | 1493587071 | 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) |
s172630936 | p03760 | u116297556 | 1493480168 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | a=input();b=input();r=[];l=len(lb)
for i in range(l):
r.append(a[i]); r.append(b[i])
if l != len(a):
r.append(a[-1])
print(''.join(r)) |
s486502428 | p03760 | u116297556 | 1493480060 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | 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)) |
s680709516 | p03760 | u103099441 | 1492886643 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | O = input()
E = input()
s = ''
while O or E:
if len(E) >= len(O):
s = E.pop() + s
else:
s = O.pop() + s
print(s) |
s324705034 | p03760 | u103099441 | 1492886643 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | O = input()
E = input()
s = ''
while O or E:
if len(E) >= len(O):
s = E.pop() + s
else:
s = O.pop() + s
print(s) |
s088901372 | p03760 | u806201407 | 1492831429 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | s = input();
t = input();
n = len(s);
for i in range(n) :
print(s[i], end="");
print(t[i], end="");
print("");
|
s436485650 | p03760 | u402629484 | 1492711397 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | O = input()
E = input()
S = ''
for i in range(len(O)):
S += O[i]
S += E[i]
print(S)
|
s845092525 | p03760 | u474630266 | 1492649887 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2696 | 161 | import itertools
O, E = raw_input().split()
seq = []
for x, y in itertools.izip_longest(O, E):
if x: seq.append(x)
if y: seq.append(y)
print ''.join(seq) |
s060560640 | p03760 | u790865353 | 1492476339 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | O=str(input())
E=str(input())
K=''
for i in range(0,len(O)):
K=K+O[i]+E[i]
print(K) |
s783302141 | p03760 | u450607115 | 1492475363 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 149 | a=list(input())
b=list(input())
d=""
for i in range(0,len(b)):
c=a[i]+b[i]
d=d+c
if len(b)+1 == len(a):
d = d+ a[len(a)]
print(d) |
s494219253 | p03760 | u450607115 | 1492474840 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 |
a=list(input())
b=list(input())
d=""
for i in range(0,len(a)):
c=a[i]+b[i]
d=d+c
print(d) |
s046568344 | p03760 | u450607115 | 1492474790 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 |
a=list(input())
b=list(input())
d=""
for i in range(0,len(a)):
c=a[i]+b[i]
d=d+c
print("d") |
s104345986 | p03760 | u450607115 | 1492473715 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 134 | import numpy as np
a=list(input))
b=list(input))
c=[]
for i in range(0,len(a)+len(b)):
c=np.append(c,a[i]+b[i],axis=0)
print("c") |
s892527455 | p03760 | u009102496 | 1492473180 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 248 | 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[range(len(b))+1])
print("".join(s)) |
s988502305 | p03760 | u009102496 | 1492472933 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | a=input()
b=input()
s=[]
for i in range(len(a)):
s.append(a[i])
s.append(b[i])
print("".join(s)) |
s373534002 | p03760 | u009102496 | 1492472876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a=input()
b=input()
s=[]
for i in range(a):
s.append(a[i])
s.append(b[i])
print("".join(s)) |
s792907958 | p03760 | u059262067 | 1492472702 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | # 文字列の入力
O = input()
E = input()
L = len(O)
TMP = ""
for i in range(L):
TMP = TMP+O[i]+E[i]
print(TMP) |
s131023196 | p03760 | u059262067 | 1492472667 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | # 文字列の入力
O = char(input())
E = char(input())
L = len(O)
TMP = ""
for i in range(L):
TMP = TMP+O[i]+E[i]
print(TMP) |
s350380448 | p03760 | u009102496 | 1492472661 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a=input()
b=input()
s=[]
for i in range(a):
s=append(s,a(i),b(i))
|
s933654296 | p03760 | u059262067 | 1492472610 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | # 文字列の入力
O = char(input())
E = char(input())
L = len(O)
TMP = ""
for i in range(L):
TMP = str(TMP+O[i]+E[i])
print(TMP) |
s904567016 | p03760 | u059262067 | 1492472561 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | # 文字列の入力
O = char(input())
E = char(input())
L = len(O)
TMP = ""
for i in 0:L:
TMP = str(TMP+O[i]+E[i])
print(TMP) |
s670537190 | p03760 | u874890136 | 1492062179 | 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) |
s255074070 | p03760 | u619748559 | 1492009148 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 369 | kisuu = raw_input()
char_kisuu = list(kisuu)
guusuu = raw_input()
char_guusuu = list(guusuu)
x = len(char_kisuu)
y = len(char_guusuu)
p = 0
q = 0
hukugen = []
for cnt in range(x + y):
if (cnt + 1) % 2 == 1:
hukugen.append(char_kisuu[p])
p += 1
if (cnt + 1) % 2 == 0:
hukugen.append(char_guusuu[q])
q += 1
print "".join(hukugen)
|
s613254670 | p03760 | u291945537 | 1491747597 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 171 | n=input()
m=input()
n=n[::2]
m=m[1::2]
if len(n)>len(m):
m+" ")
elif len(n)<len(m):
n+" ")
else:
pass
s=""
for i in range(len(m)):
s=s + n[i] + m[i]
print(s.strip()) |
s975182061 | p03760 | u811388439 | 1491709603 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 257 | s_vec1 = input()
s_vec2 = input()
def abc_057_2(o,e):
s_vec3 = []
for i in range(0,len(o)):
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)) |
s534906583 | p03760 | u509125770 | 1491706828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | O = input()
E = input()
p = ""
for i in range(len(O)):
p += O[i]
if(i - 1 < len(E)):
p += E[i]
print(p) |
s789754140 | p03760 | u768816323 | 1491705481 | 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) |
s872551303 | p03760 | u239375815 | 1491704884 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | o = list(input())
e = list(input())
for i in range(len(e)):
print(o[i],e[i],sep="",end="")
if len(e)<len(o):
print(o[len(o)])
print("")
|
s398816197 | p03760 | u256823895 | 1491704726 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 188 | O = raw_input()
E = raw_input()
out = O+E
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]
print out |
s439349362 | p03760 | u846813901 | 1491704700 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 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]) |
s665038308 | p03760 | u256823895 | 1491704226 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 68 | O = raw_input()
E = raw_input()
out = O+E
out[::2] = E
out[1::2] = O |
s329774143 | p03760 | u256823895 | 1491704144 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 104 | O = map(int, raw_input().split())
E = map(int, raw_input().split())
out = O+E
out[::2] = E
out[1::2] = O |
s200026242 | p03760 | u605685616 | 1491702843 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | # -*- coding: utf-8 -*-
o = list(input())
e = list(input())
for i in range(len(o)):
print(o[i]+e[i],end="")
|
s427002213 | p03760 | u239375815 | 1491702809 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | o = list(input())
e = list(input())
for i in range(len(o)):
print(o[i],e[i],sep="",end="")
print("")
|
s205513258 | p03760 | u087279476 | 1491701583 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 228 | o = list(input())
e = list(input())
ans = ""
num = len(o) - len(e)
if num==0:
for n in range(len(o)):
ans += o[n] + e[n]
else:
for n in range(len(o)):
ans += o[n] + e[n]
ans += e[len(o)-1]
print(ans) |
s975932961 | p03760 | u125205981 | 1491701405 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 230 | def main():
O = list(input())
E = list(input())
if len(E) % 2 != 0:
E.append('')
i = 0
passwd = ''
while i < len(O):
passwd = passwd + O[i] + E[i]
i += 1
print(passwd)
main()
|
s690464567 | p03760 | u087279476 | 1491701358 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 212 | o = list(input())
e = list(input())
ans = ""
num = len(o)
if num%2==0:
for n in range(num):
ans += o[n] + e[n]
else:
for n in range(num):
ans += o[n] + e[n]
ans += o[num-1]
print(ans) |
s906990990 | p03760 | u966667387 | 1491700891 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 | o = input().split("")
e = input().split("")
j = 0
k = 0
ans = ""
for i in range(len(o) + len(e)):
|
s220532291 | p03760 | u532087742 | 1491700804 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 211 | import sys
input = [sys.argv[1],sys.argv[2]]
result = ""
n = len(input[1])
for i in range(0,n):
result = result + input[0][i] + input[1][i]
if len(input[0])>n:
result = result + input[0][-1]
print(result)
|
s750386085 | p03760 | u532087742 | 1491700672 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 216 | import sys
input = sys.argv[1].strip().split("\n")
result = ""
n = len(input[1])
for i in range(0,n):
result = result + input[0][i] + input[1][i]
if len(input[0])>n:
result = result + input[0][-1]
print(result)
|
s895729967 | p03760 | u106342872 | 1491700385 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 296 | #! -*- coding:utf-8 -*-
O = str(input())
E = str(input())
O = list(O)
E = list(E)
n = 0
arr = []
for i in range(len(O)*2):
if n % 2 == 0:
arr.append(O.pop(0))
else:
arr.append(E.pop(0))
n += 1
for i in range(len(arr)-1):
print(arr[i],end = '')
print(arr[-1])
|
s052930024 | p03760 | u619728370 | 1491700335 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 354 | O = list(input())
E = list(input())
password = []
if len(O) - len(E) == 0:
for i in range(len(O)):
password.append(O[i])
password.append(E[i])
elif len(O) - len(E) == 1:
for i in range(len(E)):
password.append(O[i])
password.append(E[i])
password.append(O[len(O)])
password = "".join(password)
print(password) |
s362089064 | p03761 | u628285938 | 1601405960 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9088 | 390 | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 29 14:54:30 2020
@author: liang
"""
n = int(input())
S = [input() for _ in range(n)]
ans = [100]*26
for i in range(n):
tmp = [0]*26
for s in S[i]:
key = ord(s)-ord('a')
if tmp[key] < ans[key]:
tmp[key] += 1
ans = tmp.copy()
res = ""
for i in range(n):
res += chr(ord('a') + i)*tmp[i]
print(res) |
s788495523 | p03761 | u017603316 | 1601069161 | Python | PyPy3 (7.3.0) | py | Runtime Error | 81 | 68884 | 628 |
N = int(input())
S = []
nagasa = 51
for i in range(N):
dam = input()
S.append(dam)
if len(list(dam)) < nagasa:
nagasa = len(list(dam))
saisyo=i
# print(S,saisyo)
flg=[0]*len(S[saisyo])
for i in range(len(S[saisyo])):
for j in range(1,N):
for k in range(len(S[j])):
if S[saisyo][i] == S[j][k]:
flg[i] +=1
dammy = list(S[j])
del dammy[k]
S[j] = ''.join(dammy)
break
out=[]
for i in range(len(S[saisyo])):
if flg[i]==N-1:
out.append(S[saisyo][i])
out=sorted(out)
print(''.join(out))
|
s909609806 | p03761 | u620846115 | 1600536868 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9328 | 168 | from collections import Counter
n = int(input())
A = Counter(input())
B = Counter(input())
C = Counter(input())
D = A & B
E = D & C
print("".join(sorted(E.elements()))) |
s179743896 | p03761 | u620846115 | 1600536474 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9412 | 215 | from collections import Counter
n = int(input())
A = Counter(input())
B = Counter(input())
C = Counter(input())
ans = ""
for key,value in A.items():
ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans)) |
s756356822 | p03761 | u620846115 | 1600536279 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9400 | 241 | from collections import Counter
n = int(input())
A = Counter(list(input()))
B = Counter(list(input()))
C = Counter(list(input()))
ans = []
for key,value in A.items():
ans.append(key*min(value,B[key],C[key]))
print(join(sorted(ans)),end="") |
s450262981 | p03761 | u620846115 | 1600536211 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9424 | 246 | from collections import Counter
n = int(input())
A = Counter(list(input()))
B = Counter(list(input()))
C = Counter(list(input()))
ans = []
for key,value in A.items():
ans.append(str(key)*min(value,B[key],C[key]))
print(join(sorted(ans)),end="") |
s975680107 | p03761 | u620846115 | 1600536069 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9392 | 233 | from collections import Counter
n = int(input())
A = Counter(list(input()))
B = Counter(list(input()))
C = Counter(list(input()))
ans = ""
for key,value in A.items():
ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans)) |
s551722108 | p03761 | u620846115 | 1600536003 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9288 | 272 | from collections import Counter
n = int(input())
A = Counter(list(map(input().split())))
B = Counter(list(map(input().split())))
C = Counter(list(map(input().split())))
ans = ""
for key,value in A.items():
ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans)) |
s206359251 | p03761 | u620846115 | 1600535747 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9456 | 239 | from collections import Counter
n = int(input())
A = Counter(input().split())
B = Counter(input().split())
C = Counter(input().split())
ans = ""
for key,value in A.items():
ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans)) |
s537349910 | p03761 | u620846115 | 1600535666 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9388 | 250 | from collections import Counter
n = int(input())
A = sorted(Counter(input().split()))
B = sorted(Counter(input().split()))
C = sorted(Counter(input().split()))
ans = ""
for key,value in A.items():
ans.append(key*min(value,B[key],C[key]))
print(ans) |
s085794581 | p03761 | u806976856 | 1600137086 | Python | PyPy3 (7.3.0) | py | Runtime Error | 86 | 74928 | 323 | n=int(input())
x=[[0 for i in range(26)] for j in range(n)]
for i in range(n):
s=input()
for j in range(len(s)):
x[i][ord(s[j])-97]+=1
ans=[0]*26
for i in range(n):
ans[i]=min(x[j][i] for j in range(n))
a=[]
for i in range(26):
for j in range(ans[i]):
a.append(chr(97+i))
print("".join(a))
|
s967884484 | p03761 | u626881915 | 1597462061 | Python | Python (3.8.2) | py | Runtime Error | 2274 | 2671208 | 258 | n=int(input())
d = {}
for i in range(26):
d[chr(ord("a")+i)]=10**9
for i in range(n):
s=input()
for j in range(26):
d[chr(ord("a")+i)]=min(d[chr(ord("a")+i)], s.count(chr(ord("a")+i)))
ans = ""
for e in d.items():
ans+=e[0]*e[1]
print(ans)
|
s104860299 | p03761 | u690037900 | 1596883428 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9428 | 222 | from collections import Counter
N=int(input())
L=[]
for i in range(N):
L.append(list(input()))
L1=Counter(L[0])&Counter(L[1])
for i in range(2,N):
L1=Counter(L[i])&L1
ans=[i*L1[i] for i in L1]
print("".join((ans)))
|
s673024142 | p03761 | u425762225 | 1596865727 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8944 | 322 | #!/usr/bin/env python3
# from numba import njit
from collections import Counter
# input = stdin.readline
# @njit
def solve(n,a):
alphabetLst = {}
for i in range(n):
... (17 lines) ...
def main():
N = int(input())
a = [input() for _ in range(N)]
print(solve(N,a))
return
if __name__ == '__main__':
main() |
s221413964 | p03761 | u962609087 | 1596503907 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9140 | 329 | def main():
n = int(input())
s = [input() for i in range(n)]
nums = [1000 for i in range(26)]
for i in range(26):
for j in range(n):
nums[i] = min(nums[i],s[j].count((chr)(97 + i)))
for i in range(n):
while nums[i] > 0:
print((chr)(97 + i),end = "")
nums[i] -= 1
print("")
main() |
s870655612 | p03761 | u085717502 | 1595689567 | Python | PyPy3 (7.3.0) | py | Runtime Error | 82 | 74492 | 586 | #!/usr/bin/env python
# coding: utf-8
# In[28]:
n = int(input())
S = []
for _ in range(n):
S.append(input())
# In[29]:
myset = set(S[0])
mycnt = {}
for i in range(len(myset)):
mylist = list(myset)
tmp = mylist[i]
mycnt[tmp] = S[0].count(tmp)
for i in range(1,n):
myset = myset & set(S[i])
for i in range(len(myset)):
mylist = list(myset)
tmp = mylist[i]
mycnt[tmp] = min(mycnt[tmp], S[i].count(tmp))
# In[30]:
ans = ""
for x in myset:
print(x)
cnt = mycnt[x]
ans += x*cnt
print("".join(sorted(ans)))
# In[ ]:
|
s142033889 | p03761 | u014333473 | 1592601646 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9212 | 300 | n=int(input())
word=[sorted(input()) for _ in range(n)]
result=[]
word_result=[]
for i in range(len(word)-1):
result.append(set(word[i])&set(word[i+1]))
if min(result):
for i in min(result):
word_result.append(i*word[0].count(i))
else:
print('')
exit()
print(''.join(sorted(word_result))) |
s286656902 | p03761 | u014333473 | 1592601565 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9180 | 273 | n=int(input())
word=[sorted(input()) for _ in range(n)]
result=[]
word_result=[]
for i in range(len(word)-1):
result.append(set(word[i])&set(word[i+1]))
if min(result):
for i in min(result):
word_result.append(i*word[0].count(i))
print(''.join(sorted(word_result))) |
s360547785 | p03761 | u516447519 | 1592524783 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9160 | 655 | N = int(input())
s = []
for i in range(N):
val = sorted(input())
s.append(val)
an = 0
for i in range(N):
if len(s[an]) <= len(s[i]):
continue
else:
an = i
a = s[an]
n = 0
for i in range(N):
n = 0
while len(s[i]) > len(a) and n < len(a):
if a[n] == s[i][n]:
n += 1
else:
if n == 0:
a.pop(0)
s[i].pop(0)
else:
if ord(a[n]) > ord(s[i][n]):
s[i].pop(n)
else:
a.pop(n)
if a[n-1] == s[i][n-1]:
continue
else:
a.pop(-1)
print(''.join(a))
|
s020278542 | p03761 | u516447519 | 1592524712 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9184 | 655 | N = int(input())
s = []
for i in range(N):
val = sorted(input())
s.append(val)
an = 0
for i in range(N):
if len(s[an]) <= len(s[i]):
continue
else:
an = i
a = s[an]
n = 0
for i in range(N):
n = 0
while len(s[i]) > len(a) and n < len(a):
if a[n] == s[i][n]:
n += 1
else:
if n == 0:
a.pop(0)
s[i].pop(n)
else:
if ord(a[n]) > ord(s[i][n]):
s[i].pop(n)
else:
a.pop(n)
if a[n-1] == s[i][n-1]:
continue
else:
a.pop(-1)
print(''.join(a))
|
s078145214 | p03761 | u516447519 | 1592521602 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9256 | 591 | N = int(input())
s = []
for i in range(N):
val = sorted(input())
s.append(val)
an = 0
for i in range(N):
if len(s[an]) <= len(s[i]):
continue
else:
an = i
a = s[an]
n = 0
for i in range(N):
n = 0
while len(s[i]) > len(a) and n < len(a):
if a[n] == s[i][n]:
n += 1
else:
if ord(a[n]) > ord(s[i][n]):
s[i].pop(n)
n -= 1
else:
a.pop(n)
n -= 1
if a[n-1] == s[i][n-1]:
continue
else:
a.pop(-1)
print(''.join(a))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.