submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s031159990
p04044
Wrong Answer
n, l = map(int, input().split()) a = [[] * l for i in range(n)] for i in range(n): I = input() for j in range(l): a[i].append(I[j]) # print(a) b = a for i in range(l): b = sorted(b, key=lambda x: x[i]) ans = [] for i in range(n): ans.append("".join(b[i])) print("".join(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...
s838811411
p04044
Wrong Answer
n, l = map(int, input().split()) d = {} for i in range(n): d[input()] = 0 s = sorted(d.keys(), key=lambda x: x[0]) ans = [] for i in s: ans.append(i) print("".join(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...
s176301469
p04044
Wrong Answer
N,L = map(int,input().split()) S = [input() for i in range(N)] 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...
s576398456
p04044
Wrong Answer
N, L =list(map(int, input().split())) array = [] word = "" for i in range(N): s = input() array.append(s) print(array) new_array = sorted(array) print(new_array) for j in range(N): word += new_array[j] print(word)
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...
s676578041
p04044
Wrong Answer
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians#, log2 from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby from operator import itemgetter, mul from copy import deepcopy, cop...
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...
s567925727
p04044
Wrong Answer
N,L=map(int,input().split()) M=[0]*N for i in range(N): M[i]=sorted(list(str(input()))) M.sort() ans='' for i in range(N): for j in range(L): ans+=M[i][j] 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...
s158234892
p04044
Wrong Answer
n, l = map(int, input().split()) d = {input() for _ in range(n)} print(sorted(d))
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...
s094765371
p04044
Wrong Answer
N, L = input().split(' ') N = int(N) L = int(L) a = [] for i in range(N): a.append(input().rstrip()) a.sort() b = ''.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...
s797947036
p04044
Wrong Answer
import numpy as np import scipy.sparse as sps import scipy.misc as spm import collections as col import functools as func import itertools as ite import fractions as frac import math as ma import copy as cp import sys def sinput(): return sys.stdin.readline().strip() def iinput(): return int(sinput()) def imap(): retur...
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...
s369222265
p04044
Wrong Answer
N,L = map(int,input().split()) wordlist = [] for i in range(N): x = input() wordlist.append(x) print(sorted(wordlist))
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...
s913569631
p04044
Wrong Answer
n,l = [int(i) for i in input().split()] ss = [input() for _ in range(n)] ss.sort() for s in ss: print(s, sep="") 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...
s306220264
p04044
Wrong Answer
N,L = map(int,input().split()) s = [] for i in range(N): s.append(input()) ans = s[0] for i in range(N): if s[i]<ans: 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...
s117069866
p04044
Wrong Answer
n,l=list(map(int,input().split())) S=[list(input()) for i in range(n)] [S[i].sort() for i in range(len(S))] S.sort() print(S) S_sorted=[''.join(S[i]) for i in range(len(S))] print(S) ans=''.join(S_sorted) 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...
s917451019
p04044
Wrong Answer
n,l=list(map(int,input().split())) S=[list(input()) for i in range(n)] [S[i].sort() for i in range(len(S))] S.sort() ans=''.join(S[0]) 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...
s063233447
p04044
Wrong Answer
n, l = map(int, input().split()) s = [input() for i in range(n)] for i in range(n): s[i]= sorted(s[i]) tmp = '' for j in range(l): tmp += s[i][j] s[i] = tmp s = sorted(s) show = '' for i in range(n): show += (s[i]) print(show)
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...
s020589925
p04044
Wrong Answer
n,l = map(int,input().split()) s = [0]*n for i in range(n): s[i] = input() s = sorted(s) ans = [] for i in range(n): ans.extend(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...
s725424579
p04044
Wrong Answer
#!/usr/bin/env python3 def main(): *N, = map(str, open(0).read().split()) S = N[2:] L = int(N[1]) N = int(N[0]) for i in range(0, L): S = sorted(S, key=lambda x: x[i]) print(''.join(S)) 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...
s566763382
p04044
Wrong Answer
n,l = map(int, input().split()) data = [] for i in range(n): data.append(input()) data.sort() for i in data: 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...
s098182958
p04044
Wrong Answer
s=input() print(s[0]+str((len(s)-2))+s[-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...
s315003071
p04044
Wrong Answer
l = [x for x in input().split(' ')] l = sorted(l) 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...
s658867066
p04044
Wrong Answer
n,b=list(map(int,input().split())) a=[input() for i 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...
s655501840
p04044
Wrong Answer
n,b=list(map(int,input().split())) a=[] for i in range(n-1): x=input() a.append(x[:-1]) a.append(input()) a.sort() 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...
s706985792
p04044
Wrong Answer
a=input() b='' for i in a: if i=='0': b+='0' elif i=='1': b+='0' else: b=b[:-1] print(b)
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...
s506790555
p04044
Wrong Answer
s = list(map(int, input().split())) t = [input() for i in range(s[0])] for i in range(0, s[0] - 1): if t[i] > t[i + 1]: u = t[i] t[i] = t[i + 1] t[i + 1] = u v = t[0] for i in range(1, s[0]): v = v + t[i] print(v)
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...
s128990071
p04044
Wrong Answer
s = list(map(int, input().split())) t = [input() for i in range(s[0])] for i in range(0, s[0] - 1): if t[i] > t[i + 1]: u = t[i] t[i] = t[i + 1] t[i + 1] = u v = t[0] for i in range(1, s[0]): v = v + t[i] v
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...
s689822984
p04044
Wrong Answer
N,L =input().split() listA=[] for i in range(int(N)): listA.append(input()) print(sorted(listA))
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...
s166857300
p04044
Wrong Answer
import sys def main(): input = sys.stdin.readline n, l = map(int, input().split()) s = [input().rstrip() for i in range(n)] s.sort(key=lambda x: x[0]) print(''.join(s)) if __name__ == '__main__': 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...
s371675916
p04044
Wrong Answer
n, l = map(int, input().split()) moji_array = list(map(str, input().split())) moji_array.sort() result = ''.join(moji_array) print(result)
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...
s539342834
p04044
Wrong Answer
#!/usr/bin/env python3 # Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template) def main(): N, l = map(int,input().split()) s = [] for i in range(N): s.append(input()) s_sorted = sorte...
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...
s677066284
p04044
Wrong Answer
def order(str1, str2): for i in range(len(str1)): if ord(str1[i]) > ord(str2[i]): return False elif ord(str1[i]) > ord(str2[i]): continue else: return True def sort(str_list): for i in range(len(str_list) - 1): for j in range(i + 1, len(str_list)): if not order(str_list[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...
s762042652
p04044
Wrong Answer
def sort(str_list): for i in range(len(str_list) - 1): string = str_list[i] for j in range(i + 1, len(str_list)): next_string = str_list[j] for k in range(len(string)): if ord(string[k]) > ord(next_string[k]): temp = string str_list[i] = next_string str_list[j...
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...
s250269570
p04044
Wrong Answer
n,l = map(int, input().split()) l = [input() for i in range(n)] l.sort() print(l) 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...
s497419095
p04044
Wrong Answer
s = list(map(int, input().split())) a = 0 b = 0 for i in s: if i == 5: a += 1 elif i == 7: b += 1 if a == 2 and b == 1: print("yes") else: print("no")
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...
s847737560
p04044
Wrong Answer
N, L = [int(i) for i in input().split(' ')] words = [input() for i in range(N)] words.sort(key=lambda x: x[0]) for word in words: print(word, 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...
s230170112
p04044
Wrong Answer
N, L = [int(i) for i in input().split(' ')] words = [input() for i in range(N)] words.sort(key=lambda x: x[0]) for word in words: print(word, 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...
s536210086
p04044
Wrong Answer
N, L = [int(i) for i in input().split(' ')] words = [input() for i in range(N)] words.sort(key=lambda x: x[0]) for word in words: print(word)
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...
s971017465
p04044
Wrong Answer
N, L = map(int, input().split()) s_list = [] for i in range(int(N)): s_list.append((input())) s_list = sorted(s_list) answer = ','.join(s_list) 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...
s887399932
p04044
Wrong Answer
n,l=map(int,input().split()) S=[] a="" for i in range(n): s=list(input()) s.sort() for k in range(l): a+=s[k] S.append(a) a="" S.sort() ans="" for j in range(n): ans+=S[j] 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...
s938745621
p04044
Wrong Answer
N,L = map(int,input().split()) M = [] for i in range(N): M.append(input()) print(M) M = sorted(M) print(''.join(M))
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...
s204191904
p04044
Wrong Answer
N,L = map(int,input().split()) L = sorted(input().split()) 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...
s212731527
p04044
Wrong Answer
n, l = map(int, input().split()) list = [] for s in range(n-1): list.append(input()) s_list = sorted(list) print(*s_list, 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...
s142357394
p04044
Wrong Answer
n, l = map(int, input().split()) list = [] for s in range(n - 1): list.append(input()) print(sorted(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...
s657206126
p04044
Wrong Answer
n,l = map(int,input().split()) s = [] for i in range(n): s.append(input()) 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...
s953953373
p04044
Wrong Answer
n,l = map(int,input().split()) for i in range(n): s="".join(sorted(input())) 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...
s833887117
p04044
Wrong Answer
n, l = map(int, input().split()) seq = [] for i in range(n): seq.append(input()) print(seq) print("".join(sorted(seq)))
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...
s752206474
p04044
Wrong Answer
N, L = map(int, input().split()) S = [input() for i in range(N)] S.sort(reverse = True) 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...
s089495248
p04044
Wrong Answer
N,L=map(int,input().split()) S=[] ans="" for _ in range(N): S.append(input()) SS=sorted(S) for _ in range(N): ans+=S[0] S.pop(0) 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...
s590865182
p04044
Wrong Answer
N,L=map(int, input().split()) "".join(sorted([input()[:L] 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...
s578246073
p04044
Wrong Answer
n, l = map(int, input().split()) s = [input() for i in range(n)] w = [] for i in s: w.append("".join(sorted(i))) print("".join(sorted(w)))
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...
s485778765
p04044
Wrong Answer
NL = [ x for x in map(int,input().split()) ] cha = [] i = 0 while i < NL[0]: cha.append(input()) i += 1 print(sorted(cha))
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...
s620909814
p04044
Wrong Answer
a = input() b = [] for i in range(int(a[0])): b.append("".join(sorted(input()))) b.sort() b = "".join(b) print(b)
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...
s696121870
p04044
Wrong Answer
a = input() b = [] for i in range(int(a[0])): b.append(input()) b.sort() for j in b: print(j, 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...
s768030321
p04044
Wrong Answer
a = input() b = [] for i in range(int(a[0])): b.append(input()) b.sort() for j in b: print(j, 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...
s257135524
p04044
Wrong Answer
n,l = map(int, input().split()) s = [[""]*l for syoki in [""]*n] flag = [["ok"]*l for syoki in ["ok"]*n] dummy = "" #print(s) for i in range(n): dummy = input() count = 0 for q in dummy: s[i][count] = q count = count + 1 #文字列判定 for j in range(n): for k in range(n-1): for m in range(l): if 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...
s733526009
p04044
Wrong Answer
N, L = map(int, input().split()) S = [] for x in range(N): S.append(input()) S = sorted(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...
s136877595
p04044
Wrong Answer
N, L = map(int, input().split()) S = [] for x in range(N): S.append(input()) S = sorted(S) for x in range(N): print(S[x], 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...
s111403486
p04044
Wrong Answer
N, L = map(int, input().split()) ans = {} for i in range(N): A = input() ans[A]=1 ans = sorted(ans) print("".join(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...
s959423417
p04044
Wrong Answer
n,l = map(int, input().split()) Li = [] i = 0 while i<n: li = list(input()) li.sort() Li.append("".join(li)) i += 1 else: Li.sort() print("".join(Li))
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...
s761106108
p04044
Wrong Answer
n,l = map(int, input().split()) Li = [] for i in range(n): li = list(input()) li.sort() Li.append("".join(li)) else: Li.sort() print("".join(Li))
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...
s013735443
p04044
Wrong Answer
N, L = map(int, input().split()) strs = sorted([''.join(sorted(str(input()))) for _ in range(N)]) 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...
s830658101
p04044
Wrong Answer
N, L = map(int, input().split()) strs = sorted([''.join(sorted(list(input()))) for _ in range(N)]) 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...
s593661510
p04044
Wrong Answer
n,l=map(int,input().split()) s=[input() for _ in range(n)] t=[] t.append(s[0]) for i in range(1,n): t.append(s[i]) for j in reversed(range(len(t)-1)): for k in range(l): if not t[j][:k+1]==t[j+1][:k+1]: if ord(t[j][k])>ord(t[j+1][k]): t[j],t[j+1]=t[j+1],t[j] else: break...
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...
s718214923
p04044
Wrong Answer
n,l=map(int,input().split()) s=[input() for _ in range(n)] t=[] t.append(s[0]) for i in range(1,n): t.append(s[i]) for j in reversed(range(len(t)-1)): for k in range(l): if not t[j][:k+1]==t[j+1][:k+1]: if ord(t[j][k])>ord(t[j+1][k]): t[j],t[j+1]=t[j+1],t[j] break print("".join...
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...
s317632795
p04044
Wrong Answer
n,l=map(int,input().split()) s=[input() for _ in range(n)] t=[] t.append(s[0]) for i in range(1,n): t.append(s[i]) for j in reversed(range(len(t)-1)): print(t) for k in range(l): if not t[j][:k+1]==t[j+1][:k+1]: print(t[j][k],t[j+1][k]) if ord(t[j][k])>ord(t[j+1][k]): t[j],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...
s551675368
p04044
Wrong Answer
a = input().split() s = [input() for i in range(int(a[0]))] b = '' s.sort() print(s) for i in range(int(a[0]),0): b = s[i] + b print(b)
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...
s490193737
p04044
Wrong Answer
n, l = map(int, input().split()) s = [input() for _ in range(n)] s.sort() ''.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...
s817375973
p04044
Wrong Answer
n,_ = map(int,input().split()) l = sorted(input() for _ in range(n)) print(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...
s427273429
p04044
Wrong Answer
n, l = map(int, input().split()) string_list = [] for i in range(n): string_list.append(input()) string_list.sort() print(string_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...
s147598151
p04044
Wrong Answer
try: N, L = map(int, input().split()) l = [] for i in range(N): l.append(input()) l_ = sorted(l) print(l_) except EOFError: pass
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...
s564794065
p04044
Wrong Answer
a = input().split() a.sort() 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...
s544953267
p04044
Wrong Answer
n, l = (int(x) for x in input().split()) s = [input() for _ 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...
s150630090
p04044
Wrong Answer
def hikaku(n1, n2): for x, y in zip(n1, n2): if ord(x) == ord(y): continue else: if ord(x) < ord(y): return False return True num, length = map(int, input().split()) wlist = [] for i in range(num): wlist.append(input()) kumi = [(x, y) for x in range(nu...
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...
s647173305
p04044
Wrong Answer
n,m = map(int , input().split()) li=[] for i in range(n): li.append(input()) sorted(li) st='' for e in li: st=st+e print(st)
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...
s953244604
p04044
Wrong Answer
n,l=map(int,input().split()) sl=[input() for i in range(n)] sl.sort() print(''.join(sl[: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...
s886243023
p04044
Wrong Answer
import sys a = list(map(int, input().split())) b = [] for i in sys.stdin: b.append(i) b.sort() c = "" for j in b: c += j print(c)
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...
s548590538
p04044
Wrong Answer
# -*- coding: utf-8 -*- N,L = list(map(int, input().split())) l=[] for i in range(N): l.append(input()) l.sort() print(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...
s154775070
p04044
Wrong Answer
N, L = map(int, input().split()) list=[] for i in range(N): list.append(str(input())) sorted(list) 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...
s402264319
p04044
Wrong Answer
ins = list(map(int, input().split())) N = ins[0] L = ins[1] Ss = [] for i in range(N): Ss.append(input().strip()) Ss.sort() 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...
s433194167
p04044
Wrong Answer
ins = list(map(int, input().split())) N = ins[0] L = ins[1] Ss = [] for i in range(N): Ss.append(input().strip()) for i, a in enumerate(Ss): key = a j = i - 1 while j >= 0 and Ss[j] > a: Ss[j + 1] = Ss[j] j = j - 1 Ss[j + 1] = key 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...
s119794648
p04044
Wrong Answer
ins = list(map(int, input().split())) N = ins[0] L = ins[1] Ss = [] for i in range(N): Ss.append(input()) for i, a in enumerate(Ss): key = a j = i - 1 while j >= 0 and Ss[j] > a: Ss[j + 1] = Ss[j] j = j - 1 Ss[j + 1] = key 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...
s970455461
p04044
Wrong Answer
n, l = map(int, input().split()) s = [] for _ in range(n): s.append(input()) for j in range(n-1): for i in range(n): if(s[i] < s[i-1]): s[i], s[i-1] = s[i-1], s[i] 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...
s024276130
p04044
Wrong Answer
N, L = map(int, input().split()) strs = [[]] * N for i in range(N): strs[i] = str(input()) strs.sort() print(strs) x = strs[0] for j in range(1,N): x += strs[j] print(x)
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...
s907280064
p04044
Wrong Answer
N, L = map(int,input().split()) l = [] for i in range(N): l.append(input()) l.sort result = ''.join(l) print(result)
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...
s929646753
p04044
Wrong Answer
def calord(tmp): sumord = 0 jisu = 1 for c in reversed(tmp): sumord = sumord + ord(c)*jisu jisu *= 10 return int(sumord) n, l = map(int, input().split()) l1 = [0]*n for i in range(n): tmp = input() sum_ord = calord(tmp) l1[i] = (sum_ord, tmp) l2 = sorted(l1) r = "" for i in range(n): r = r + ...
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...
s366396994
p04044
Wrong Answer
def calord(tmp): sumord = "" for c in tmp: sumord = sumord + str(ord(c)) return int(sumord) n, l = map(int, input().split()) l1 = [0]*n for i in range(n): tmp = input() sum_ord = calord(tmp) l1[i] = (sum_ord, tmp) l2 = sorted(l1) r = "" for i in range(n): r = r + l2[i][1] print(r)
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...
s297244705
p04044
Wrong Answer
n, l = map(int, input().split()) l1 = [0]*n for i in range(n): tmp = input() l1[i] = ((sum([ord(c) for c in tmp]), tmp)) l2 = sorted(l1) r = "" for i in range(n): r = r + l2[i][1] print(r)
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...
s049742048
p04044
Wrong Answer
n, l = map(int, input().split()) dic1 = {} for i in range(n): tmp = input() dic1[sum([ord(c) for c in tmp])] = tmp dic1_s = sorted(dic1.items()) vs = [d[1] for d in dic1_s] r = "" for v in vs: r += v print(r)
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...
s373515239
p04044
Wrong Answer
N, L = map(int, input().split()) S = [] for i in range(N): S.append(input()) 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...
s949291132
p04044
Wrong Answer
N, L = map(int, input().split()) S = [] for i in range(N): S.append(input()) S = ''.join(S) 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...
s752615207
p04044
Wrong Answer
str = input()
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...
s708049818
p04044
Wrong Answer
N,L = map(int,input().split()) li = [] for i in range(N): li.append("".join(sorted(input()))) li.sort() print("".join(li))
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...
s324551135
p04044
Wrong Answer
num = input().split() str = [input()] strc = '' print(str) flg = 0 res = '' for i in range(int(num[0])-1): # print(1) strc = input() for j in range(len(str)): if str[j] < strc: print(2) flg = 0 else: print(3) flg = j break j += 1 flg = -1 if flg == 0: str.append(strc) else: str.insert(j,st...
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...
s436858363
p04044
Wrong Answer
num = input().split() str = [input()] strc = '' flg = 0 res = '' for i in range(int(num[0])-1): # print(1) strc = input() for j in range(len(str)): if str[j] < strc: # print(2) flg = 0 else: # print(3) flg = j if flg == 0: str.append(strc) else: str.insert(j,strc) for x in str: res += x print(res...
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...
s247747028
p04044
Wrong Answer
num = input().split() str = input() strc = '' for i in range(int(num[0])-1): strc = input() if str > strc: str = strc + str else: str = str + strc print(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...
s723938227
p04044
Wrong Answer
n, l = [int(i) for i in input().split()] s = [input() for i in range(n)] s.sort(key=lambda x: 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...
s284047902
p04044
Wrong Answer
def str_to_num(_str): _str = _str[::-1] n = 0 for i in range(len(_str)): n += ((ord(_str[i]) - 96) * 27**i) return n def num_to_str(_num): _str = '' while True: q, mod = divmod(_num, 27) _str = chr(mod + 96) + _str if q < 27: _str = chr(q + 96) + _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...
s219975229
p04044
Wrong Answer
n,l = map(int, input().split()) L = sorted([input() for i in range(n)]) print(*L, 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...
s777370663
p04044
Wrong Answer
a=input().split() b=int(a[0]) data = [input() for i in range(b)] data.sort() print(data) k="" for i in data: k=k+i print(k)
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...
s837243220
p04044
Wrong Answer
N, L = map(int, input().split()) iroha = input() for i in range(N-1): token = input() for j in range(L): if token[j] < iroha[j]: iroha = token + iroha break elif token[j] > iroha[j]: iroha = iroha + token break elif j == 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...
s566318267
p04044
Wrong Answer
N, L = map(int, input().split()) iroha = input() for i in range(N-1): token = input() for j in range(L): if token[j] < iroha[j]: iroha = token + iroha break elif token[j] > iroha[j]: iroha = iroha + token break elif j == 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...