Problem:


Score : 200 points

Problem Statement

There is an image with a height of H pixels and a width of W pixels. Each of the pixels is represented by either . or *. The character representing the pixel at the i-th row from the top and the j-th column from the left, is denoted by C_{i,j}.

Extend this image vertically so that its height is doubled. That is, print a image with a height of 2H pixels and a width of W pixels where the pixel at the i-th row and j-th column is equal to C_{(i+1)/2,j} (the result of division is rounded down).

Constraints

1≦H, W≦100

C_{i,j} is either . or *.

Input

The input is given from Standard Input in the following format:

H W
C_{1,1}...C_{1,W}
:
C_{H,1}...C_{H,W}

Output

Print the extended image.

Sample Input 1

2 2
*.
.*

Sample Output 1

*.
*.
.*
.*

Sample Input 2

1 4
***.

Sample Output 2

***.
***.

Sample Input 3

9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**.........

Sample Output 3

.....***....***.....
.....***....***.....
....*...*..*...*....
....*...*..*...*....
...*.....**.....*...
...*.....**.....*...
...*.....*......*...
...*.....*......*...
....*.....*....*....
....*.....*....*....
.....**..*...**.....
.....**..*...**.....
.......*..*.*.......
.......*..*.*.......
........**.*........
........**.*........
.........**.........
.........**.........



Sample input:
2 2
*.
.*


Sample output:
*.
*.
.*
.*

Submission status: Wrong Answer

Solution code:
# coding = SJIS

h, w = map(int, input().split())
for i in range(h):
    a = str(input())
    for j in range(1):
        print(a)

Submission status: Wrong Answer

Solution code:
h,w = map(int,input().split())
c = []
for _ in range(h):
    c.append(list(input()))

for i in range(h):
    print(*c[i])
    print(*c[i])

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = []
for i in range(h):
    c.append(input())
thined_c = [0] * (2 * h - 1)
for i in range(2 * h - 1):
    s = ''
    for j in range(w):
       s += c[(i+1)//2][j]
    thined_c[i] = s
for s in thined_c:
    print(s)

Submission status: Wrong Answer

Solution code:
'''     ░░█ ▄▀█ █   █▀ █░█ █▀█ █▀▀ █▀▀   █▀█ ▄▀█ █▀▄▀█  
        █▄█ █▀█ █   ▄█ █▀█ █▀▄ ██▄ ██▄   █▀▄ █▀█ █░▀░█     '''


# [abc049_b.py] => [27-07-2020 @ 21:56:34] 
# Author & Template by : Udit "luctivud" Gupta
# https://www.linkedin.com/in/udit-gupta-1b7863135/


import math;   from collections import *
import sys;    from functools import reduce
import time;   from itertools import groupby

# sys.setrecursionlimit(10**6)

def input()         : return sys.stdin.readline()
def get_ints()      : return map(int, input().strip().split())
def get_list()      : return list(get_ints())
def get_string()    : return list(input().strip().split())
def printxsp(*args) : return print(*args, end="")
def printsp(*args)  : return print(*args, end=" ")


DIRECTIONS = [(+0, +1), (+0, -1), (+1, +0), (+1, -1)] 
NEIGHBOURS = [(-1, -1), (-1, +0), (-1, +1), (+0, -1),\
              (+1, +1), (+1, +0), (+1, -1), (+0, +1)]


CAPS_ALPHABETS = {chr(i+ord('A')) : i for i in range(26)}
SMOL_ALPHABETS = {chr(i+ord('a')) : i for i in range(26)}
INF = float('inf')


# Custom input output is now piped through terminal commands.


S34t = time.time()
# for _testcases_ in range(int(input())): 

n, m = get_ints()
print(n)
for i in range(n):
    s = input()
    print(s, end="")
    print(s, end="")



S34p = time.time()
# print("Time Elapsed: {}".format(float(S34p-S34t)))

Submission status: Wrong Answer

Solution code:
'''     ░░█ ▄▀█ █   █▀ █░█ █▀█ █▀▀ █▀▀   █▀█ ▄▀█ █▀▄▀█  
        █▄█ █▀█ █   ▄█ █▀█ █▀▄ ██▄ ██▄   █▀▄ █▀█ █░▀░█     '''


# [abc049_b.py] => [27-07-2020 @ 21:56:34] 
# Author & Template by : Udit "luctivud" Gupta
# https://www.linkedin.com/in/udit-gupta-1b7863135/


import math;   from collections import *
import sys;    from functools import reduce
import time;   from itertools import groupby

# sys.setrecursionlimit(10**6)

def input()         : return sys.stdin.readline()
def get_ints()      : return map(int, input().strip().split())
def get_list()      : return list(get_ints())
def get_string()    : return list(input().strip().split())
def printxsp(*args) : return print(*args, end="")
def printsp(*args)  : return print(*args, end=" ")


DIRECTIONS = [(+0, +1), (+0, -1), (+1, +0), (+1, -1)] 
NEIGHBOURS = [(-1, -1), (-1, +0), (-1, +1), (+0, -1),\
              (+1, +1), (+1, +0), (+1, -1), (+0, +1)]


CAPS_ALPHABETS = {chr(i+ord('A')) : i for i in range(26)}
SMOL_ALPHABETS = {chr(i+ord('a')) : i for i in range(26)}
INF = float('inf')


# Custom input output is now piped through terminal commands.


S34t = time.time()
# for _testcases_ in range(int(input())): 

n, m = get_ints()
print(n)
for i in range(n):
    s = input()
    print(s)
    print(s)



S34p = time.time()
# print("Time Elapsed: {}".format(float(S34p-S34t)))

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
C=[list(input()) for i in range(h)]
A=[[None for i in range(w)] for i in range(2*h)]
for i in range(2*h):
    for j in range(w):
        A[i][j]=C[(i+1)//2-1][j]
for a in A:
    print(''.join(a))

Submission status: Wrong Answer

Solution code:
import numpy as np

s = input().split()

# 縦の長さ
h = int(s[0])

# 横の長さ
w = int(s[1])


answer = []

for num in range(h):
    x = input().split()
    answer.append(x[0])
    answer.append(x[0])

for nun in range(h * 2):
    print(answer[num])

Submission status: Wrong Answer

Solution code:
h,w=map(int, input().split())
image=[]
for i in range(h):
  image.append(input())
newimage=[]
for i in range(h):
  newimage.append(image[i])
  newimage.append(image[i])
for i in range(2*h-1):
  print(newimage[i])

Submission status: Wrong Answer

Solution code:
#49B
H=int(input().split()[0])
print(H)
C=[input() for i in range(H)]
ans = ""
for i in range(H):
    ans = ans + C[i] + '\n'+C[i]+'\n'
print(ans)

Submission status: Wrong Answer

Solution code:
H=int(input()[0])
C=[input() for i in range(H)]
ans = ""
for i in range(H):
    ans = ans + C[i] + '\n'+C[i]+'\n'
print(ans[:-1])

Submission status: Wrong Answer

Solution code:
H=int(input()[0])
C=[input() for i in range(H)]
out=""

for i in range(H):
    out = out + C[i] + '\n'+C[i]+'\n'

print(out[:-1])

Submission status: Wrong Answer

Solution code:
h,w = map(int,input().split())
for i in range(h):
  c = list(map(str,input().split()))
  print(c)
  print(c)

Submission status: Wrong Answer

Solution code:
px = list(map(int, input().split()))
pxs = [x for x in input()]
for i in pxs:
  print(i)
  print(i)

Submission status: Wrong Answer

Solution code:
H,W=map(int,input().split())
C=[list(input()) for _ in range(H)]
newc=[[None]*W for _ in range(2*H)]
for i in range(2*H):
    for j in range(W):
        if i<H:
            newc[i][j]=C[i][j]
        else:
            newc[i][j]=C[i-H][j]
for i in range(2*H):
    for j in range(W):
        print(newc[i][j],end="")
    print("\n")

Submission status: Wrong Answer

Solution code:
c_a = [input() for _ in range(int(input()[0]))]

for q in c_a:
    print(q)
    print(q)

Submission status: Wrong Answer

Solution code:
H,W = map(int, input().split())
ab = [input() for i in range(H)]

res = [0 for i in range(H*2)]

for i in range(0,H):
    res[(i+1)*2-1] = ab[i]
    res[(i)*2] = ab[i]

print(res)

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
list_score  = [ list(input()) for _ in range(h) ]


for l in list_score:
    print(*l)
    print(*l)

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
list_score  = [ list(input()) for _ in range(h) ]


for l in list_score:
    print(*l)

for l in list_score:
    print(*l)

Submission status: Wrong Answer

Solution code:
h,w = map(int,input().split())
l = list(map(str,input().split()))
for i in range(len(l)):
  print(l[i])
  print(l[i])

Submission status: Wrong Answer

Solution code:
H,W = map(int,input().split())
C = [input() for _ in range(H)]

for i in range(H):
    C.append(C[i])

print(*C,sep='\n')

Submission status: Wrong Answer

Solution code:
H,W = map(int,input().split())

C = [input() for _ in range(H)]

print(C)
for i in range(H):
    C.append(C[i])

print(*C,sep='\n')

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

h, w = map(int, readline().split())
for i in range(h):
    c = read().rstrip().decode()
    print(c + '\n' + c)

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
marks = list(input() for i in range(h))

for i in range(h):
    print(marks[i] * 2)

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
lst=[list(input()) for _ in range(h)]
lst_1=[]
for i in lst:
    print(*i)
    print(*i)

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())

in1 = []
for idx1 in range(h):
    in1.append(input())

for item1 in in1:
    print(item1)

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *


def lcm(x, y):
    return (x * y) // math.gcd(x, y)


if __name__ == '__main__':
    b, c = map(int, input().split())

    for i in range(b):
        s = input()
        print(s+s)
        print(s+s)

Submission status: Wrong Answer

Solution code:
#ABC049.B
H,W = map(int,input().split())
for _ in range (H):
    ans = input()
print(ans)
print(ans)

Submission status: Wrong Answer

Solution code:
H,W = map(int,input().split())
c = []
for i in range(H):
	array = list(input().strip())
	c.append(array)
ans = []
for i in c:
  ans.append(i)
  ans.append(i)
print(*ans,sep = '\n')

Submission status: Wrong Answer

Solution code:
H,W = map(int,input().split())
c = []
for i in range(H):
	array = list(input().strip())
	c.append(array)
ans = []
for i in c:
  ans.append(i)
  ans.append(i)
print(ans)

Submission status: Wrong Answer

Solution code:
h,w =map(int,input().split())
c =[[str(i) for i in input()] for _ in range(h)]

for i in range(2*h):
  if i <h:
    print("".join(c[i]))
  elif i >= h:
    print("".join(c[i-h]))

Submission status: Wrong Answer

Solution code:
import sys
readline = sys.stdin.buffer.readline

h,w = map(int,readline().split())

lst1 = [readline().rstrip().decode('utf-8') for i in range(h)]
print(lst1)
for i in range(h):
    for j in range(2):
        print(lst1[i])

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
list=[0]*(h*2)
for i in range(h):
	c=input()
	list[i]=c
	list[i+h]=c
for j in range(len(list)):
	print(list[j])

Submission status: Wrong Answer

Solution code:
import copy
h, w = list(map(int, input().split()))
p = [input().split() for _ in range(h)]
ans = copy.deepcopy(p)
for i in range(h):
  ans.insert(i*2, p[i])
for i in range(h*2):
  print(ans[i])

Submission status: Wrong Answer

Solution code:
from sys import platform, stdin, setrecursionlimit

if platform =='ios':
    stdin=open('input.txt')
    
#------------------------------------#

def main():
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    #a = r.split()
    #a,b,c = r.split()
    #a = list(map(int, r.split()))
    a,b = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    res = 0
  
    r = [stdin.readline() for i in range(b)]
    
    for i in r:
    	print(i+"\n"+i)
    
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())

l = []

for i in range(h):
  l.append(input().split())
  

for i in range(h):
  print(l[i])
  print(l[i])

Submission status: Wrong Answer

Solution code:
H,W = [int(i) for i in input().split()]
C = [list(input()) for i in range(H)]

for num in C:
    print(str(num))
    print(str(num))

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
p = [input() for i in range(h)]

th = []

for i in p:
    for n in range(2):
        th.append(i)

print(th)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
H, W = [int(x) for x in input().split()]
C = []
for _ in range(H):
    C.append(input().rstrip())
for _ in range(2):
    for i in C:
        print(i)

Submission status: Wrong Answer

Solution code:
h,w = map(int,input().split())
c = [list(map(str,input().split())) for _ in range(h)]

for i in range(h):
    print(c[i])
    print(c[i])

Submission status: Wrong Answer

Solution code:
h,w = map(int, input().split())
l=[]
for i in range(h):
    l.append(list(input().split()))
for i in range(h):
    print(l[i])
    print(l[i])

Submission status: Wrong Answer

Solution code:
H , W = map(int, input().split())
Clist = [input().split() for i in range(H)]

for a in range(H):
    print(Clist[a])
    print(Clist[a])

Submission status: Wrong Answer

Solution code:




if __name__ == '__main__':
    H,W=list(map(int,input().split()))
    C=[["" for i in range(W)] for j in range(H)]
    for i in range(H):
        temp=input()
        for j in range(W):
            C[i][j]=temp[j]

    ans=[["" for i in range(W)] for j in range(2*H)]
    for i in range(2*H):
        for j in range(W):
            ans[i][j]=C[(i-1)//2][j]



    for i in range(2*H):
        print(''.join(ans[i]))

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
for i in range(h):
  s=input()
  print(s+"¥n"+s)

Submission status: Wrong Answer

Solution code:
h,w = map(int, input().split())
c = [list(input()) for i in range(h)]
for i in range(2):
  for j in c:
    print(*j)

Submission status: Wrong Answer

Solution code:
n,m = [int(i) for i in input().split()]

l = [[i for i in input()] for _ in range(n)]

for i in range(n):
    for j in range(2):
        print(l[i])

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = [list(input()) for i in range(h)]

for i in range(h):
    print(*c[i])
    print(*c[i])

Submission status: Wrong Answer

Solution code:
H,W= list(map(int,input().split()))

c=[['']*W for i in range(2*H)]

for i in range(H):
    a=list(input().split())
    c[2*i]=a
    c[2*i+1]=a

print(c)

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
matrix = []
for i in range(H):
    matrix.append(list(map(str, input().split())))
for j in range(H):
    ans = ','.join(matrix[i])
    print(ans)
    print(ans)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    h, w = map(int, input().split())
    c = []
    for i in range(h):
        c.append(input())
    newC = []
    for i in range(2*h - 1):
        newC.append(c[(i) // 2])
    newC.append(c[len(c) - 1])
    print("===")
    for i in newC:
        print(i)

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
r = [list(input()) for i in range(h)]
new_h = [0] * w
new_r = [new_h for i in range(2*h)]

for i in range(0, 2*h, 2):
  new_r[i] = r[(i+1)//2][:]
  new_r[i+1] = r[(i+1)//2][:]

for i in new_r:
  print(*i, end="\n")

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = [input().split() for _ in range(h)]
for i in range(2):
    for j in range(h):
        print(c[j][0])

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
for _ in range(H-1):
    s = input()
    print(s)
    print(s)

Submission status: Wrong Answer

Solution code:
h,w = map(int,input().split())
c = [list(input().split())for i in range(h)]

for i in range(2*h):
    print(c[i//2])

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
L=[list(input()) for i in range(h)]
for i in range(h,0,-1):
    L.insert(i-1,L[i-1])
for j in range(2*h):
    print(*L[j])

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = []
for _ in range(h):
    c.append(list(input()))
d = [[""] * w for x in range(h * 2)]
for i in range(h):
    for j in range(w):
        d[i * 2][j] = c[i][j]
        d[i * 2+1][j] = c[i][j]
for i in d:
    print(*i)

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = []
for _ in range(h):
    c.append(list(input()))
d = [[""] * w * 2 for x in range(h * 2)]
for i in range(h):
    for j in range(w):
        d[i * 2][j * 2] = c[i][j]
        d[i * 2+1][j * 2] = c[i][j]
        d[i * 2][j * 2+1] = c[i][j]
        d[i * 2+1][j * 2+1] = c[i][j]
for i in d:
    print(*i)

Submission status: Wrong Answer

Solution code:
h, q = map(int, input().split())
s =[]
s.append(input())
for i in s:
  print(i)
  print(i)

Submission status: Wrong Answer

Solution code:
import numpy as np
n, m = list(map(int, input().split()))
a = [list(input()) for _ in range(n)]
a2d = np.array(a)
arr = np.vstack((a2d,a2d))
for i in range(n*2):
	print("".join(arr[i]))

Submission status: Wrong Answer

Solution code:
H,W=map(int,input().split())
for _ in range(H):
	a=input().split()
	print(a)
	print(a)

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
C = [list(input()) for _ in range(H)]
C2 = [["-"]*W for _ in range(2*H)]

print(C)
for h in range(2*H):
    for w in range(W):
        C2[h][w] = C[h//2][w]

for i in range(2*H):
    print("".join(C2[i]))

Submission status: Wrong Answer

Solution code:
import sys

H, W = sys.stdin.readline().split()
C = open(0)
for i in C:
    print(i)
    print(i)

Submission status: Wrong Answer

Solution code:
h,w = map(int,input().split())
ls = [[x for x in input()] for _ in range(h)]

for i in range(h):
    print(ls[i])
    print(ls[i])

Submission status: Wrong Answer

Solution code:
H,W = map(int,input().split())
for _ in range(H):
  print('¥n'.join(input()))

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = [input() for i in range(h)]

for i in c*2:
    print(i)

Submission status: Wrong Answer

Solution code:
h,w  =map(int,input().split())
c = [input() for i in range(h)]


for i in range(h):
    print(*c[i])
    print(*c[i])

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def solve(H, W, C):
    X = []
    for i in range(H):
        X.append(C[i])
        X.append(C[i])
    
    for i in range(2*H):
        print(X[i])

if __name__ == '__main__':
    H, W = map(int, input().split())
    C = [[input()] for i in range(H)]
  
    solve(H, W, C)

Submission status: Wrong Answer

Solution code:
import sys
import math

input = sys.stdin.readline

h, w = map(int, input().rstrip().split())

pic = list(input().rstrip().split() for _ in range(h))

print(pic)
for i in range(h):
    print(pic[i][0])
    print(pic[i][0])

Submission status: Wrong Answer

Solution code:
h = int(input()[0])
image = []
for i in range(h):
    row = input()
    print(row+"\n"+row)

Submission status: Wrong Answer

Solution code:
h,w = map(int, input().split())
for i in range(h):
    c = list(input().split())
    print(c)
    print(c)

Submission status: Wrong Answer

Solution code:
n,m = map(int,input().split())

for i in range(n):
  a = list(input())
  print(a)
  print(a)

Submission status: Wrong Answer

Solution code:
H, W = list(map(int, input().split()))

C = []
for i in range(H):
    C.append(list(input()))

R = []
for i in range(2 * H):
    tmp = []
    for j in range(W):
        tmp.extend(C[i // 2][j])
    R.append(tmp)

for i in range(2 * H):
    print("{}{}".format(R[i][0], R[i][1]))

Submission status: Wrong Answer

Solution code:
H, W = input().split()
C = input()

Submission status: Wrong Answer

Solution code:
h,w = map(int, input().split())
listA = [input() for i in range(h)]
for i in range(h):
  print(listA[i-1]+"\n"+listA[i-1])

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
Cij = [input().split() for i in range(H)]
Dij = []

for i in range(H ):
#  print(Cij[#i])
#  a = (i + 1) // 2
  Dij.append(Cij[i])
  Dij.append(Cij[i])
  
  #print(a)
  #Dij[2 * i] = Cij[i]
 # Dij[2 * i + 1] = Cij[i] 
for i in Dij:
  print(str(i))

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
Cij = [input().split() for i in range(H)]
Dij = []

for i in range(H ):
#  print(Cij[#i])
#  a = (i + 1) // 2
  Dij.append(Cij[i])
  Dij.append(Cij[i])
  
  #print(a)
  #Dij[2 * i] = Cij[i]
 # Dij[2 * i + 1] = Cij[i] 
print(Dij)

Submission status: Wrong Answer

Solution code:
H, W = map(int,input().split())
S = [list(input()) for i in range(H)]

for i in range(H):
  print(S[i])
  print(S[i])

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
for i in range(h):print(input())

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())
c = []
for i in range(h):#h:高さ
    c.append([str(m) for m in list(input())])
for i in range(2 * h):
    if i != 0:
        print()
    for j in range(w):
        if i == 0:
            print(c[0][j], sep = "", end = "")
        else:
            print(c[(i - 1) // 2][j], sep = "", end = "")

Submission status: Wrong Answer

Solution code:
H, M = map(int, input().split())
C = [input() for _ in range(H)]

for row in C:
    print(*row)
    print(*row)

Submission status: Wrong Answer

Solution code:
a,b=input().split();
for _ in[0]*int(a):print(input()*2)

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
c_list = []
for i in range(H):
    c = input().split()
    c_list.append(c)
    c_list.append(c)

for c in c_list:
    print(c)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
lis = set([input() for j in range(a)])
for i in lis:
    print(i)
    print(i)

Submission status: Wrong Answer

Solution code:
H, W = map(int, input().split())
C = [[j for j in input()] for i in range(H)]
C2 = [['' for j in range(W)] for i in range(2*H)]
for i in range(2*H):
    for j in range(W):
        C2[i][j] = C[i//2][j]
for i in range(2*H):
    print(*C2[i])

Submission status: Wrong Answer

Solution code:
#49b
h,w =map(int,input().split())
for _ in range(h):
    l = input()
    print(l)

Submission status: Wrong Answer

Solution code:
h,w=map(int,input().split())
x=[input() for _ in range(h)]
for i in x:
    print(i)
for i in x:
    print(i)

Submission status: Wrong Answer

Solution code:
n,m  =list(map(int,input().split()))
a =[]
for i in range(n):
    a.append(list(input()))

b = []
for j in a:
    b.append(j)
    b.append(j)
for k in b:
    print(k)

Submission status: Wrong Answer

Solution code:


a = input().split()
n = int(a[0])
m = a[1]
for i in range(1, n):
    s = input()
    print(s + "\n" + s)

Submission status: Wrong Answer

Solution code:
H, W = [int(i) for i in input().split()]
C = []
for i in range(H):
    C.append(input().split())

for i in range(H):
    ans = C[i]
    for j in range(2):
        print(ans)

Submission status: Wrong Answer

Solution code:
hw_ = list(map(int, input().split()))

h = hw_[0]
w = hw_[1]

c = []
for i in range(0, h):
    c.append(input())
print(c)

for i in range(0, h * 2):
    for j in range(0, w):
        print(c[int(i / 2)][j],end='')
    print()

Submission status: Wrong Answer

Solution code:
import numpy as np
H,W = list(map(int, input().split()))
print (H)
C = []
for i in range(H):
    C.append(input())

print (C)

for i in range(H):
    print (str(C[i]))
    print (str(C[i]))

Submission status: Wrong Answer

Solution code:
height, width = [int(e) for e in input().split()]
lst = []


for i in range(height):
    pict = input()
    lst.append(pict)
    lst.append(pict)


'\n'.join(lst)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 22 16:06:57 2017

@author: 0048005387
"""

h, w = map(int, raw_input().split())
c=[]

for i in range(h):
    c.append(map(str, raw_input().split()))
    
for i in range(h):
    print c[i]
    print c[i]

Submission status: Wrong Answer

Solution code:
c=input()
if c in ['a', 'e', 'i', 'o', 'u']:
    print ('vowel')
else:
    print('consonant')

Submission status: Wrong Answer

Solution code:
#prepare
C = []

#input
H, W = map(int,raw_input().split())

#input matrix
for i in range(H):
    C.append(map(str,raw_input().split()))

#print C

C1 = C[:]

#print C1
for k in range(H):
    print C1[k]


#
for j in range(H):
    C.insert(j+1,C1[j])

for l in C:
    print l

Submission status: Wrong Answer

Solution code:
for i in open(0).read().split()[1:]:print(i+"\n"+i)

Submission status: Wrong Answer

Solution code:
m,n=input().split()
a=[]
for i in range(int(m)) :
   a.append(input())
for i in a :
    print(i)
for i in a :
    print(i)

Submission status: Wrong Answer

Solution code:
args = input().split(" ")
H = int(args[0])

c = []
for _ in range(0, H):
    c.append(input())

last = len(c) - 1
for i, row in enumerate(c):
    if i != last:
        print("{0}\n{0}\n", row)
    else:
        print("{0}\n{0}", row)

Submission status: Accepted

Solution code:
h, w = map(int,input().split())
pixel = [input() for _ in range(h)]
for i in pixel:
    for j in range(2):
        print(i)

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
for i in range(H):
    S = input()
    print(S+'\n'+S)

Submission status: Accepted

Solution code:
h,w= map(int,input().split())
c = [input() for _ in range(h)]
l = []
for i in range(h):
    l.append(c[i])
    l.append(c[i])
for i in l:
    print(i)

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
ans = []
for _ in range(h):
    c = input()
    ans.append(c)
    ans.append(c)
for a in ans:
    print(a)

Submission status: Accepted

Solution code:
H,W = map(int, input().split())

C = [input() for i in range(H)]

for i in range(H):
    print(C[i])
    print(C[i])

Submission status: Accepted

Solution code:
H,W = map(int, input().split())

for i in range(H):
    x = input()
    print(x)
    print(x)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    c=input()
    print(c)
    print(c)

Submission status: Accepted

Solution code:
n,m = map(int, input().split())

for i in range(n):
  s = input()
  print(s)
  print(s)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for _ in range(h):
    c=input()
    print(c)
    print(c)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
p = [input() for _ in range(h)]
for i in range(h):
    print(p[i])
    print(p[i])

Submission status: Accepted

Solution code:
n,m = map(int,input().split())
for i in range(n):
  q = input()
  print(q)
  print(q)

Submission status: Accepted

Solution code:
h,w=map(int, input().split())
l=[0]*2*h
for i in range(h):
    c=input()
    l[2*i]=c
    l[2*i+1]=c
    
for i in range(h):
    print(l[2*i])
    print(l[2*i+1])

Submission status: Accepted

Solution code:
from typing import List


def answer(h: int, w: int, c: List[str]) -> str:
    result = []
    for i in c:
        for _ in range(2):
            result.append(i)

    return '\n'.join(result)


def main():
    h, w = map(int, input().split())
    c = [input() for _ in range(h)]
    print(answer(h, w, c))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from typing import List


def answer(h: int, w: int, c: List[str]) -> str:
    result = ''
    for i in c:
        for j in range(2):
            result += f'{i}\n'

    return result[:-1]


def main():
    h, w = map(int, input().split())
    c = [input() for _ in range(h)]
    print(answer(h, w, c))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
h, w = map(int, input().split())

for i in range(h):
    c = input()
    for i in range(2):
        print(c)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = []
for i in range(h):
    c.append(input())

for i in range(h * 2):
    res = ""
    for j in range(w):
        res += c[i // 2][j]
    print(res)

Submission status: Accepted

Solution code:
H,W = map(int, input().split())
for i in range(H):
    x = input()
    print(x)
    print(x)

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
c = []
for _ in range(h):
    c.append(input())
for i in range(h):
    print(c[i])
    print(c[i])

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline
import numpy as np

def main():
    dot=[]
    h,w = map(int,input().split())
    dot=np.array([list(input().rstrip()) for _ in range(h)])
    
    for i in range(1,h+1):
        print("".join(dot[i-1]))
        print("".join(dot[int(i+1/2)-1]))

if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
H, W = map(int, input().split())

for i in range(H):
  s = input()
  print(s)
  print(s)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = []

for i in range(h):
    c.append(input().split())

for i in range(h):
    s = ''.join(c[i])
    print(s + '\n' + s)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
  l=input()
  print(l)
  print(l)

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
c = [input() for i in range(h)]
for i in c:
    print(i)
    print(i)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
for i in range(h):
    c = input()
    print(c)
    print(c)

Submission status: Accepted

Solution code:
for i in range(int(input().split()[0])):
 a = input()
 print(a, a, sep='\n')

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
  ans = input()
  print(ans)
  print(ans)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
c=[input() for i in range(h)]
for i in range(h):
    print(c[i]+'\n'+c[i])

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
lis = []

for _ in range(H):
  C = input()
  lis.append(C)
  lis.append(C)

for i in lis:
  print(i)

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
c = []
for _ in range(h):
  c.append(input())
  
for i in range(2*h):
  print(c[i//2])

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
data=[]
for i in range(h):
    data.append(input())
for i in range(2 * h):
    print(data[i // 2])

Submission status: Accepted

Solution code:
h,j=map(int,input().split())
for i in range(h):
    a=input()
    print(a)
    print(a)

Submission status: Accepted

Solution code:
x,y = map(int,input().split())
for _ in range(x):
  N = list(input())
  for _ in range(2):
    print(''.join(N))

Submission status: Accepted

Solution code:
x,y = map(int,input().split())
L = []

for _ in range(x):
  N = list(input())
  L.append(N)
  L.append(N)
  
for l in L:
  print(''.join(l))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

h, w = map(int, input().split())
for i in range(h):
    c = input().strip()
    print(c)
    print(c)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
c = [list(input()) for _ in range(h)]
cc = [[] for i in range(2 * h)]
for i in range(h):
    cc[2*i].append(c[i])
    print("".join(*cc[2*i]))
    cc[2*i + 1].append(c[i])
    print("".join(*cc[2*i + 1]))

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
L = []
for _ in range(H):
    c = input()
    L.append(c)
    L.append(c)

for i in L:
    print(i)

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
C = []
for i in range(H):
    x = str(input())
    C.append(x)
for i in range(H):
    print(C[i])
    print(C[i])