結果

問題 No.964 2020
コンテスト
ユーザー aaa aa
提出日時 2025-12-03 17:21:10
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 57 ms / 2,020 ms
コード長 645 bytes
コンパイル時間 8,051 ms
コンパイル使用メモリ 167,712 KB
実行使用メモリ 186,728 KB
最終ジャッジ日時 2025-12-03 17:21:20
合計ジャッジ時間 9,295 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (109 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #
raw source code

public class Program
{
    public static void Main()
    {
        int num = int.Parse(Console.ReadLine() ?? string.Empty);
        //string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
        //string str = Console.ReadLine() ?? string.Empty;

        for (int i = 1; i <= num; i++)
        {
            for (int j = 1; j <= num; j++)
            {
                if (num == 10 && i == 10)
                {
                    Console.Write(0);
                }
                else
                {
                    Console.Write(i);
                }
            }
        }
        Console.WriteLine();


    }
}
0