結果

問題 No.1250 汝は倍数なりや?
ユーザー 1644吉田英陽1644吉田英陽
提出日時 2020-11-02 22:11:09
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 963 bytes
コンパイル時間 1,998 ms
コンパイル使用メモリ 104,332 KB
実行使用メモリ 44,364 KB
最終ジャッジ日時 2023-09-29 13:52:14
合計ジャッジ時間 8,215 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,700 KB
testcase_01 AC 56 ms
20,664 KB
testcase_02 AC 55 ms
20,708 KB
testcase_03 AC 56 ms
22,792 KB
testcase_04 AC 55 ms
22,676 KB
testcase_05 AC 55 ms
20,744 KB
testcase_06 AC 55 ms
20,840 KB
testcase_07 AC 55 ms
22,700 KB
testcase_08 AC 55 ms
22,836 KB
testcase_09 AC 55 ms
22,796 KB
testcase_10 AC 54 ms
20,752 KB
testcase_11 WA -
testcase_12 AC 55 ms
20,808 KB
testcase_13 AC 55 ms
20,752 KB
testcase_14 AC 55 ms
20,784 KB
testcase_15 AC 55 ms
20,752 KB
testcase_16 AC 55 ms
20,664 KB
testcase_17 AC 55 ms
20,644 KB
testcase_18 AC 55 ms
20,708 KB
testcase_19 AC 54 ms
20,796 KB
testcase_20 AC 55 ms
20,708 KB
testcase_21 AC 55 ms
20,712 KB
testcase_22 AC 55 ms
20,864 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 63 ms
22,864 KB
testcase_27 WA -
testcase_28 AC 64 ms
22,796 KB
testcase_29 WA -
testcase_30 AC 63 ms
20,948 KB
testcase_31 AC 63 ms
22,844 KB
testcase_32 AC 63 ms
22,888 KB
testcase_33 WA -
testcase_34 AC 101 ms
30,316 KB
testcase_35 AC 134 ms
40,908 KB
testcase_36 AC 137 ms
37,328 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 100 ms
28,436 KB
testcase_40 AC 110 ms
34,700 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 138 ms
39,344 KB
testcase_46 WA -
testcase_47 AC 114 ms
37,316 KB
testcase_48 AC 56 ms
20,784 KB
testcase_49 AC 55 ms
22,788 KB
testcase_50 AC 55 ms
22,648 KB
testcase_51 AC 56 ms
22,796 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp84
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split();
            int n = int.Parse(str[0]);
            int h = int.Parse(str[1]);
            int kakewa = 1;
            int[] a = new int[n];
            string[] str2 = Console.ReadLine().Split();
            for(int i = 0; i < n; i++)
            {
                a[i] = int.Parse(str2[i]);
            }
            for(int i = 0; i < n; i++)
            {
                kakewa = kakewa * a[i];
            }
            if (kakewa % h == 0)
            {
                Console.WriteLine("YES");
                Console.ReadLine();
            }
            else
            {
                Console.WriteLine("NO");
                Console.ReadLine();
            }
        }
    }
}
0