結果

問題 No.542 1円玉と5円玉
ユーザー mencottonmencotton
提出日時 2018-02-19 15:57:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 599 bytes
コンパイル時間 2,960 ms
コンパイル使用メモリ 104,124 KB
実行使用メモリ 23,936 KB
最終ジャッジ日時 2023-09-22 06:21:46
合計ジャッジ時間 4,602 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
21,900 KB
testcase_01 AC 61 ms
21,888 KB
testcase_02 AC 62 ms
21,920 KB
testcase_03 AC 62 ms
23,844 KB
testcase_04 AC 61 ms
21,796 KB
testcase_05 AC 64 ms
21,908 KB
testcase_06 AC 64 ms
22,004 KB
testcase_07 AC 63 ms
21,840 KB
testcase_08 AC 63 ms
21,844 KB
testcase_09 AC 64 ms
23,904 KB
testcase_10 AC 63 ms
21,980 KB
testcase_11 AC 62 ms
21,836 KB
testcase_12 AC 65 ms
23,936 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace _542
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            for (int i = 0; i <= x[1]; i++)
            {
                for (int j = 0; j <= Math.Min(4,x[0]); j++)
                {
                    if (i + j != 0)
                    {
                        Console.WriteLine(i * 5 + j);
                    }
                }
            }
            for (int i = 5; i <= x[0]; i++) Console.WriteLine(x[1] * 5 + i);
        }
    }
}
0