結果

問題 No.2728 Grid Expansion
ユーザー kou_kkk
提出日時 2024-04-24 12:40:52
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 4,176 ms
コンパイル使用メモリ 65,456 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 20:44:53
合計ジャッジ時間 4,978 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, strutils

let
  nk = stdin.readLine.split.map parseInt
  n = nk[0]
  k = nk[1]
  xss = n.newSeqWith stdin.readLine
var
  ss = ""

for xs in xss:
  var
    s = ""
  for x in xs:
    for _ in 0 ..< k:
      s &= x
  s &= "\n"
  ss &= s.repeat k

stdout.write ss
0