submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s996719306
p04044
Wrong Answer
n, l = map(int, input().split()) s=sorted([input()for i in range(n)]) ''.join(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s776559118
p04044
Wrong Answer
N, L = map(int, input().split()) S = [] master = 'abcdefghijklmnopqrstuvwxyz' def f(s1, s2, l): for i in range(l): if master.index(s1[i]) == master.index(s2[i]): continue elif master.index(s1[i]) > master.index(s2[i]): return 'greater' elif master.index(s1[i]) < mast...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s305995300
p04044
Wrong Answer
N, L = map(int, input().split()) S = [] master = 'abcdefghijklmnopqrstuvwxyz' def f(s1, s2, l): for i in range(l): if master.index(s1[i]) == master.index(s2[i]): continue elif master.index(s1[i]) > master.index(s2[i]): return 'greater' elif master.index(s1[i]) < mast...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s707354049
p04044
Wrong Answer
N, L = list(map(int,input().split())) S = [input() for _ in range(N)] print(sorted(S))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s780703277
p04044
Wrong Answer
N, L = [int(x) for x in input().split()] print("".join(sorted([input() for _ in range(N)],reverse=False)[:L]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s568656381
p04044
Wrong Answer
N, L = [int(x) for x in input().split()] print("".join(sorted([input() for _ in range(N)],reverse=False)[:L+1]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s514456964
p04044
Wrong Answer
N, L = [int(x) for x in input().split()] print("".join(sorted([input() for _ in range(N)],reverse=False)[:-L-1:-1]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s209974501
p04044
Wrong Answer
N, L = [int(x) for x in input().split()] S = sorted([input() for _ in range(N)],reverse=True) print("".join(S[:-L-1:-1]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s229257823
p04044
Wrong Answer
N, L = [int(x) for x in input().split()] S = list({input() for _ in range(N)}) print("".join(S[:-L-1:-1]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s281599441
p04044
Wrong Answer
cnt,l = map(int,input().split()) print(''.join([input() for x in range(cnt)]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s851696113
p04044
Wrong Answer
n,l=map(int,input().split()) s=[] for i in range(n): s.append(input()) order=sorted(s) print(order) ans=''.join(order) print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s786576906
p04044
Wrong Answer
N, L = map(int, input().split()) SList = [] for i in range(N): SList.append(input()) SList.sort() ans = ','.join(SList) print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s117796119
p04044
Wrong Answer
N, L = map(int, input().split()) SList = [] for i in range(N): SList.append(input()) SList.sort() print(','.join(SList))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s326191174
p04044
Wrong Answer
import sys input = sys.stdin.readline join = ''.join N, L = map(int, input().split()) S = [''.join(sorted(input().rstrip())) for _ in range(N)] print(''.join(sorted(S)))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s143387612
p04044
Wrong Answer
N, L = map(int, input().split()) S = [''.join(sorted(input().rstrip())) for _ in range(N)] list.sort(S) print(''.join(S))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s943112912
p04044
Wrong Answer
def iroha_loves_strings(N: int, L: int, S: list) -> str: return ''.join(sorted(S)) if __name__ == "__main__": N = 0 N, L = map(int, input().split()) S = [input() for _ in range(N)]
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s572945205
p04044
Wrong Answer
#!usr/bin/env python3 from collections import defaultdict from heapq import heappush, heappop import sys import math import bisect import random def LI(): return list(map(int, sys.stdin.readline().split())) def I(): return int(sys.stdin.readline()) def LS(): return list(map(list, sys.stdin.readline().split())) def S():...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s100536575
p04044
Wrong Answer
N, L = map(int, input().split()) S = sorted([input() for x in range(N)], key=lambda x:ord(x[0])) print("".join(S))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s188107206
p04044
Wrong Answer
N, L = list(map(int, input().split())) S = [input() for i in range(N)] Ss = sorted(S) print(','.join(Ss))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s630343322
p04044
Wrong Answer
N, L = list(map(int, input().split())) S = [] for i in range(N): S.extend(list(map(str, input().split()))) S = sorted(S) print(S)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s429059047
p04044
Wrong Answer
N,L=map(int,input().split()) ans='' for i in range(N): s=input() ans=min(ans+s,s+ans) print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s730567890
p04044
Wrong Answer
N, L = map(int, input().split()) S = [input() for _ in range(N)] new_S = [] for word in S: new_S.append(''.join(sorted(word))) ans = ''.join(sorted(new_S)) print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s198276043
p04044
Wrong Answer
N,L = map(int,input().split()) print(N,L) strs = [] for _ in range(N): strs.append(str(input())) strs.sort() print(''.join(strs))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s349838027
p04044
Wrong Answer
n,l=map(int,input().split()) a=[] for i in range(n): a.append(input()) sorted(a,reverse=True) s="" for j in a: s+=j print(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s003753651
p04044
Wrong Answer
n,l=map(int,input().split()) a=[] for i in range(n): a.append(input()) sorted(a) s="" for j in a: s+=j print(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s678854107
p04044
Wrong Answer
N, L = map(int, input().split()) l = list(map(str, input().split())) l.sort() s = '' for i in l: s += i print(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s173248277
p04044
Wrong Answer
N, L = list(map(int, input().split())) def solve(): print(N, L) strs = [] for _ in range(N): strs.append(input()) strs.sort() return "".join(strs) print(solve())
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s563109081
p04044
Wrong Answer
N,L=map(int,input().split()) s_list=[] for i in range(N): s_list.append(input()) def moji(m,a):#a文字目を返す return list(m)[a] ans = '' for i in range(L):#1文字目から if len(ans) == L*N: break hantei = True max = '}' while hantei == True: for j in range(N):#1単語目から if max > mo...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s673972310
p04044
Wrong Answer
N,L=map(int,input().split()) s_list=[] for i in range(N): s_list.append(input()) def moji(m,a):#a文字目を返す return list(m)[a] ans = '' for i in range(L):#1文字目から if len(ans) == L*N: break hantei = True max = '}' while hantei == True: for j in range(N):#1単語目から if max > mo...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s898685633
p04044
Wrong Answer
N, L = map(int, input().split()) #標準入力からリストの作成 list = [] for _ in range(1, N+1): i = input() list.append(i) #リストの結合 mojiretu = ''.join(list) print(mojiretu)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s059019984
p04044
Wrong Answer
N, L = map(int, input().split()) #標準入力からリストの作成 list = [] for _ in range(2, N+2): i = input() list.append(i) #リストの結合 mojiretu = ''.join(list) print(mojiretu)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s509301239
p04044
Wrong Answer
N, L = map(int, input().split()) #標準入力からリストの作成 list = [] for _ in range(1, N+1): i = input() list.append(i) #リストの結合 mojiretu = ''.join(list) print(mojiretu)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s383444995
p04044
Wrong Answer
N, L = map(int, input().split()) #標準入力からリストの作成 list = [] for _ in range(N): i = input() list.append(i) #リストの結合 mojiretu = ''.join(list) print(mojiretu)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s697676882
p04044
Wrong Answer
n, l = map(int, input().split()) ans = "z" * 100 for _ in range(n): ans = min(ans, input()) print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s152784445
p04044
Wrong Answer
import sys lines = sys.stdin.readlines() strings = [] max_len = 0 for n, line in enumerate(lines): if n == 0: N, L = [int(_) for _ in line.strip().split(' ')] continue max_len = max([max_len, len(line.strip())]) strings.append([ord(_) - 97 for _ in line.strip()]) def append(source, target): global ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s352227853
p04044
Wrong Answer
#B - 文字列大好きいろはちゃんイージー s = input().split() n = int(s[0]) list = [] for i in range(n): list.append(input()) print(list) list.sort() for i in range(len(list)): print(list[i], end='')
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s563914761
p04044
Wrong Answer
n,l=map(int,input().split()) s=[input() for i in range(n)] s.sort print("".join(s))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s970971895
p04044
Wrong Answer
N, L = map(int, input().split()) S = [input() for i in range(N)] c = 0 while c < N: for i in range(c, N-1): if S[i] > S[i+1]: S[i], S[i+1] = S[i+1], S[i] c += 1 print(''.join(S))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s957507107
p04044
Wrong Answer
# n,l=map(int,input().split()) s=[0 for i in range(n)] for i in range(n): s[i]=input() print(s) s.sort() print(s) ans="" for i in range(n): ans+=s[i] print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s248926186
p04044
Wrong Answer
n,l=map(int,input().split()) list=[input() for i in range(n)] list.sort() print(",".join(list))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s193431755
p04044
Wrong Answer
n,l=map(int, input().split()) s=[list(input()) for i in range(n)] s.sort() for i in s: print(i,end="") print()
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s948420493
p04044
Wrong Answer
n, l = map(int, input().split()) l = [] i = 0 # while i <= n-1: # list[i] = list(input()) # i += 1 l = [input() for i in range(n)] result = sorted(l) # print('--------------') # print(result) # print('--------------') for i in range(n): print(result[i])
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s180342043
p04044
Wrong Answer
n, l = map(int,input().split()) list = [] for i in range(n): a = input() list.append(a) for i in sorted(list): print(i)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s331596936
p04044
Wrong Answer
l = [] N, L = map(int, input().split()) for i in range(N): s = input() if L == len(s): l.append(s) print(''.join(l))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s996976507
p04044
Wrong Answer
l = [] N, L = map(int, input().split()) for i in range(N): l.append(input()) print(''.join(l))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s628087708
p04044
Wrong Answer
l=input().split() l.sort() ans='' for i in l: ans+=i print(ans)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s679439320
p04044
Wrong Answer
N,L = map(int,input().split()) S = [input() for i in range(N)] S.sort(key=lambda x:x[0]) print(''.join(map(str, S)))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s654079551
p04044
Wrong Answer
n, l = map(int, input().split()) "".join(sorted([input() for _ in range(n)]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s005424386
p04044
Wrong Answer
N,L=map(int,input().split()) a=[] for i in range(N): a.append(input()) a.sort s="" for i in range(len(a)): s=s+a[i] print(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s221728696
p04044
Wrong Answer
a = list(map(str,input().split( ))) line = list(map(str,input().split( ))) #print(line) line.sort() #print(line) print(''.join(line))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s602856382
p04044
Wrong Answer
line = list(map(str,input().split( ))) #print(line) line.sort() #print(line) print(''.join(line))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s975210650
p04044
Wrong Answer
n, l = (int(x) for x in raw_input().split()) print "".join(sorted([x for x in raw_input().split()]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s046775273
p04044
Wrong Answer
n, l = map(int, input().split()) a = sorted([''.join(sorted(input())) for _ in range(n)]) print(''.join(a))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s993021894
p04044
Wrong Answer
ln_list = list(map(int, input().split())) print(ln_list) l = [] for list in range(ln_list[0]): l.append(input()) l.sort() a = ''.join(l) print(a)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s930869610
p04044
Wrong Answer
l = [] try: while True: l.append(input()) except: print(''.join(sorted(l)))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s751525838
p04044
Wrong Answer
a = input().split() print(''.join(sorted(a)))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s244337760
p04044
Wrong Answer
n,l=map(int,input().split()) list=[input() for i in range(n)] list.sort() print(list)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s582631023
p04044
Wrong Answer
N,L=map(int,input().split()) S=[input() for i in range(N)] Ts="" T=[] for j in range(N): t=j for i in range(N): Ts+=S[t] t+=1 if t==N: t=0 T.append(Ts) Ts="" print(min(T))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s506230582
p04044
Wrong Answer
N,L=map(int,input().split()) S=[input() for i in range(N)] Ts="" T=[] for j in range(N): t=j for i in range(N): if t==N: t=0 Ts+=S[t] t+=1 T.append(Ts) Ts="" print(min(T))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s285732328
p04044
Wrong Answer
N=input();print(''.join(sorted([input() for i in range(int(N[0:1]))])))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s231670121
p04044
Wrong Answer
import sys L, N = map(int, raw_input().split()) if L > 100 or N < 1: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() for j in range(0, L): if sentence[j] < 'a' or sentence[j] > 'z': print 'error' exit() input.append(sentence) ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s681176480
p04044
Wrong Answer
L, N = map(int, raw_input().split()) if L > 100 or L < 1: print 'error' exit() if N > 100 or N < 1: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() for j in range(0, L): if sentence[j] < 'a' or sentence[j] > 'z': print 'error' ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s784783928
p04044
Wrong Answer
L, N = map(int, raw_input().split()) if L > 100 or L < 1: print 'error' exit() if N > 100 or N < 1: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() for j in range(0, L): if sentence[j] < 'a' or sentence[j] > 'z': print 'error' ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s357757876
p04044
Wrong Answer
L, N = map(int, raw_input().split()) if L > 100 or N < 1: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() for j in range(0, L): if sentence[j] < 'a' or sentence[j] > 'z': print 'error' exit() input.append(sentence) answer = "...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s584030483
p04044
Wrong Answer
L, N = map(int, raw_input().split()) if L > 100 or N < 0: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() for j in range(0, L): if sentence[j] < 'a' or sentence[j] > 'z': print 'error' exit() input.append(sentence) answer = "...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s248885875
p04044
Wrong Answer
L, N = map(int, raw_input().split()) if L > 100 or N < 0: print 'error' exit() input = [] for i in range(0, N): sentence = raw_input() if len(sentence) != L: print 'error' exit() input.append(sentence) answer = "" for x in sorted(input): answer+=x print answer
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s766013909
p04044
Wrong Answer
import sys n , l = map(int,input().split()) word = [] for i in range(n): word.append(input()) sorted(word) for i in range(n): sys.stdout.write(word[i]) print()
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s504545578
p04044
Wrong Answer
# coding: utf-8; def main(): alphabet = 'abcdefghijklmnopqrstuvwxyz' n, l = map(int, input().split()) sl = [input() for _ in range(n)] d = {} for s in sl: ic = 0 for i in range(l): ic += alphabet.find(s[i]) d[s] = ic print(''.join([n[0] for n in sorted(d.item...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s977479093
p04044
Wrong Answer
# -*- coding:utf-8 -*- def string_sort(data, new_string): for i in range(len(data)): if data[i] > new_string: data.insert(i, new_string) return data data.insert(len(data)-1, new_string) return data if __name__ == "__main__": N, L = map(int, input().split()) data = ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s458054782
p04044
Wrong Answer
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time sys.setrecursionlimit(10**7) inf = 10**20 mod = 10**9 + 7 def main(): n,l = list(map(int,input().split())) a = [input() for _ in range(l)] a.sort() return ''.join(a) print(main())
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s214113391
p04044
Wrong Answer
n, l = map(int, input().split()) s = [[i for i in input()] for j in range(n)] print(s) s.sort() print(s) for i in range(n): s[i] = "".join(s[i]) s = "".join(s) print(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s676906496
p04044
Wrong Answer
n, l = map(int, input().split()) s = [[i for i in input()] for j in range(n)] s.sort() print(s)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s194635594
p04044
Wrong Answer
N, L = map(int, raw_input().split()) S = [raw_input() for _ in xrange(N)] # new_list = sorted(S, key=str.lower) S.sort() for n in S: print n
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s633388877
p04044
Wrong Answer
N, L = map(int, raw_input().split()) S = [raw_input() for _ in xrange(N)] new_list = sorted(S, key=str.lower) for n in new_list: print n
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s077061970
p04044
Wrong Answer
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll N, L = map(int, raw_input().split()) print "".join(sorted(raw_input().split()))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s390158594
p04044
Wrong Answer
n,l = map(int,raw_input().split()) print n var = [] while (n > 0): var.append(raw_input()) n = n - 1 var.sort() print ''.join(var)
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s012323708
p04044
Wrong Answer
l, n = map(int,input().split()) print(''.join(sorted(input() for i in range(n))))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s998632849
p04044
Wrong Answer
l, n = map(int,input().split()) s = list(input() for i in range(n)) s.sort() print(''.join(s))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s114936131
p04044
Wrong Answer
l, n = map(int,input().split()) print(''.join( j for j in sorted([input() for i in range(n)])))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s063770810
p04044
Wrong Answer
N, L = (int(i) for i in input().split()) String = [input() for s in range(N)] for i in range(N-1): start = N - i - 1 #print("start " + str(start)) for j in range(start): #print(str(start-j-1) + " " + str(start-j)) Left = String[start-j-1] Right = String[start-j] if Left > Ri...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s288555598
p04044
Wrong Answer
N, L = (int(i) for i in input().split()) String = [input() for s in range(N)] for i in range(N-1): start = N - i - 1 print("start " + str(start)) for j in range(start): print(str(start-j-1) + " " + str(start-j)) Left = String[start-j-1] Right = String[start-j] if Left > Righ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s334224060
p04044
Wrong Answer
N = int(input().split()[0]) words = [input().rstrip() for i in range(N)] print(words) print("".join(sorted(words)))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s547764042
p04044
Wrong Answer
n, l = map(int, raw_input().split()) s = [raw_input() for _ in xrange(n)] gtable = [[] for _ in xrange(26)] result = [] def searchPrint(e, n): table = [[] for _ in xrange(26)] for i in e: table[ord(s[i][n]) - 97].append(i) for el in table: if len(el) == 0: continue ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s096418104
p04044
Wrong Answer
import sys sys.setrecursionlimit(10000000) n, l = map(int, raw_input().split()) s = [raw_input() for _ in xrange(n)] gtable = [[] for _ in xrange(26)] result = [] def searchPrint(e, n): table = [[] for _ in xrange(26)] for i in e: table[ord(s[i][n]) - 97].append(i) for el in table: ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s850120486
p04044
Wrong Answer
n, l = map(int, raw_input().split()) s = [raw_input() for _ in xrange(n)] gtable = [[] for _ in xrange(26)] result = [] def searchPrint(e, n): table = [[] for _ in xrange(26)] for i in e: table[ord(s[i][n]) - 97].append(i) for el in table: if len(el) == 0: continue ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s045013643
p04044
Wrong Answer
N,L = list(map(int, input().split())) a = [input() for i in range(N)] a.sort print('%s' % ''.join(a))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s339060851
p04044
Wrong Answer
ans = "" def get_input(): flag = 1 cnt = 0 while True: if flag == 1: N,L = input().split() flag = 0 continue else: a = input() yield ''.join(a) cnt += 1 if cnt >= int(N): break if __name__ =...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s959807293
p04044
Wrong Answer
#!/usr/bin/env python2 #encoding: UTF-8 # To change this license header, choose License Headers in Project Properties. # To change this template file, choose Tools | Templates # and open the template in the editor. import math line=raw_input().rstrip().split(' ') N=int(line[0]) L=int(line[1]) listo=[] for i in range(L...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s380087161
p04044
Wrong Answer
ans = "" def get_input(): flag = 1 cnt = 0 while True: try: if flag == 1: N,L = input().split() flag = 0 continue else: a = input() yield ''.join(a) cnt += 1 if cn...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s545640496
p04044
Wrong Answer
N,L = list(map(int, input().split())) a = [input() for i in range(N)] b = [] for i in range(N): n = 0 for j in range(L): n = (n*27) + ord( a[i][j])-96 b.append(n) ind = b.index(max(b)) print('%s' % str(a[ind]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s517492866
p04044
Wrong Answer
cond = [int(n) for n in input().split(" ")] data = [] for a in range(cond[1]): data.append(input()) data = sorted(data) print("".join(data))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s724467559
p04044
Time Limit Exceeded
memo = {} def permutations(S): if len(S) == 1: return S res = [] for i, s in enumerate(S): L = S[:i] + S[i+1:] k = ''.join(L) if k in memo: P = memo[k] else: P = permutations(L) memo[k] = P for p in P: res.append...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s651235352
p04044
Time Limit Exceeded
def permutations(S): if len(S) == 1: return S res = [] for i, s in enumerate(S): P = permutations(S[:i] + S[i+1:]) for p in P: res.append(f'{s}{p}') return res if __name__ == '__main__': n, l = [int(x) for x in input().split(' ')] S = [input() for i in range(...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s639559196
p04044
Time Limit Exceeded
from itertools import permutations N, L = map(int, input().split()) S = [input() for _ in range(N)] p = list(permutations(S)) print(*sorted(p)[0], sep='')
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s492480099
p04044
Time Limit Exceeded
import sys from itertools import permutations inint = lambda: int(sys.stdin.readline()) inintm = lambda: map(int, sys.stdin.readline().split()) inintl = lambda: list(inintm()) instrm = lambda: map(str, sys.stdin.readline().split()) instrl = lambda: list(instrm()) n, l = inintm() s = [] z = [] for _ in range(n): ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s526335367
p04044
Time Limit Exceeded
N, L = map(int, input().split()) S = [input() for i in range(N)] while True: t = 0 for i in range(N - 1): #print("i = {}".format(i)) for j in range(L): #print("j = {}".format(j)) if S[i+1][j] < S[i][j]: #print(S[i][j]) temp = S[i+1] ...
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s043148902
p04044
Time Limit Exceeded
from itertools import permutations , combinations,combinations_with_replacement n , l = map(int , input().split()) s = [] for _ in range(n): s.append(input()) p = permutations(s,n) ss = [] for i in p: ss.append("".join(i)) ss.sort() print(ss[0])
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s172670090
p04044
Time Limit Exceeded
N, L = map(int, input().split()) S = [0] * N for i in range(N): S[i] = input() from itertools import permutations, combinations,combinations_with_replacement,product strings = [''.join(s) for s in list(permutations(S))] strings.sort() print(strings[0])
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s892704968
p04044
Time Limit Exceeded
from itertools import permutations N,L = map(int,input().split()) strs = [input() for i in range(N)] result = list(permutations(strs,N)) result.sort() print("".join(result[0]))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...
s438014769
p04044
Time Limit Exceeded
from itertools import permutations n, l = map(int, input().split(' ')) lst = [] for _ in range(n): lst.append(input()) all_str = list(permutations(lst)) all_str = [''.join(x) for x in all_str] print(min(all_str))
3 3 dxx axx cxx
axxcxxdxx
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Iroha has a sequence of <var>N</var> strings <var>S_1, S_2, ..., S_N</var>. The length of each string is <var>L</var>.</p> <p>She will concatenate all of the strings in some order, to produce a long str...