結果

問題 No.2728 Grid Expansion
ユーザー budoubudou
提出日時 2024-04-20 07:32:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 498 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 72,576 KB
最終ジャッジ日時 2024-04-20 07:32:24
合計ジャッジ時間 2,107 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
66,944 KB
testcase_01 AC 59 ms
66,944 KB
testcase_02 AC 62 ms
67,072 KB
testcase_03 AC 71 ms
71,680 KB
testcase_04 AC 60 ms
67,200 KB
testcase_05 AC 60 ms
67,200 KB
testcase_06 AC 61 ms
67,328 KB
testcase_07 AC 69 ms
71,808 KB
testcase_08 AC 62 ms
67,328 KB
testcase_09 AC 62 ms
66,944 KB
testcase_10 AC 61 ms
66,688 KB
testcase_11 AC 70 ms
71,680 KB
testcase_12 AC 72 ms
72,576 KB
testcase_13 AC 69 ms
70,888 KB
testcase_14 AC 71 ms
70,784 KB
testcase_15 AC 62 ms
66,688 KB
testcase_16 AC 75 ms
66,688 KB
testcase_17 AC 62 ms
66,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import typing
import sys
from collections import defaultdict
input = lambda: sys.stdin.readline().strip()
inf = 10**18
mod = 998244353
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
# sys.setrecursionlimit(10**6)

def solve():
  N, K = map(int, input().split())
  grid = []
  for _ in range(N):
    grid.append(input())
  for h in range(K*N):
    for w in range(K*N):
      print(grid[h//K][w//K], end='')
    print('')


def main():
  t = 1
  for _ in range(t):
    solve()
main()
0