結果

問題 No.2728 Grid Expansion
コンテスト
ユーザー kou_kkk
提出日時 2024-04-24 12:33:19
言語 Nim
(2.2.10 + ACL)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 268 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,674 ms
コンパイル使用メモリ 70,892 KB
実行使用メモリ 10,052 KB
最終ジャッジ日時 2026-09-19 20:07:19
合計ジャッジ時間 5,499 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

echo ss
0