結果

問題 No.2728 Grid Expansion
ユーザー rarpipipirarpipipi
提出日時 2024-04-20 08:45:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 60,252 KB
最終ジャッジ日時 2024-04-20 08:45:42
合計ジャッジ時間 1,459 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,240 KB
testcase_01 AC 32 ms
53,160 KB
testcase_02 AC 34 ms
53,844 KB
testcase_03 AC 40 ms
60,252 KB
testcase_04 AC 34 ms
53,076 KB
testcase_05 AC 33 ms
52,692 KB
testcase_06 AC 35 ms
52,076 KB
testcase_07 AC 36 ms
59,772 KB
testcase_08 AC 33 ms
52,404 KB
testcase_09 AC 34 ms
52,752 KB
testcase_10 AC 33 ms
52,388 KB
testcase_11 AC 39 ms
59,428 KB
testcase_12 AC 38 ms
59,912 KB
testcase_13 AC 39 ms
60,052 KB
testcase_14 AC 39 ms
60,252 KB
testcase_15 AC 34 ms
52,864 KB
testcase_16 AC 30 ms
52,548 KB
testcase_17 AC 32 ms
52,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=[list(input()) for i in range(n)]

b=[[0]*(k*n) for i in range(k*n)]

for y in range(k*n):
    for x in range(k*n):
        b[y][x]=a[y//k][x//k]

for i in b:
    print(''.join(i))
0