結果

問題 No.2728 Grid Expansion
ユーザー bluemeganebluemegane
提出日時 2024-04-19 22:30:36
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 702 bytes
コンパイル時間 14,892 ms
コンパイル使用メモリ 167,688 KB
実行使用メモリ 187,088 KB
最終ジャッジ日時 2024-04-19 22:31:13
合計ジャッジ時間 12,973 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
28,672 KB
testcase_01 AC 44 ms
28,800 KB
testcase_02 AC 46 ms
28,544 KB
testcase_03 AC 45 ms
28,800 KB
testcase_04 AC 46 ms
28,416 KB
testcase_05 AC 44 ms
28,288 KB
testcase_06 AC 44 ms
28,800 KB
testcase_07 AC 46 ms
28,800 KB
testcase_08 AC 44 ms
28,288 KB
testcase_09 AC 43 ms
28,672 KB
testcase_10 AC 43 ms
28,668 KB
testcase_11 AC 44 ms
28,544 KB
testcase_12 AC 43 ms
28,668 KB
testcase_13 AC 43 ms
28,416 KB
testcase_14 AC 43 ms
29,056 KB
testcase_15 AC 45 ms
28,160 KB
testcase_16 AC 45 ms
28,672 KB
testcase_17 AC 44 ms
187,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (113 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System.Text;
using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var n = int.Parse(line[0]);
        var k = int.Parse(line[1]);
        getAns(n, k);
    }
    static void getAns(int n, int k)
    {
        var sb = new StringBuilder();
        for (int i = 0; i < n; i++)
        {
            var s = Console.ReadLine().Trim();
            for (int j = 0; j < n; j++)
            {
                var tt = s[j] == '.' ? "." : "#";
                for (int L = 0; L < k; L++) sb.Append(tt);
            }
            for (int m = 0; m < k; m++) Console.WriteLine(sb);
            sb.Clear();
        }
    }
}
0