結果

問題 No.36 素数が嫌い!
ユーザー hayashihayashi
提出日時 2019-10-17 10:22:20
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 2,362 ms
コンパイル使用メモリ 103,708 KB
実行使用メモリ 22,912 KB
最終ジャッジ日時 2023-09-06 04:19:12
合計ジャッジ時間 5,190 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,760 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 51 ms
20,748 KB
testcase_07 AC 51 ms
20,644 KB
testcase_08 AC 52 ms
20,732 KB
testcase_09 AC 52 ms
20,728 KB
testcase_10 AC 53 ms
22,568 KB
testcase_11 AC 54 ms
20,568 KB
testcase_12 AC 53 ms
20,716 KB
testcase_13 AC 53 ms
22,724 KB
testcase_14 WA -
testcase_15 AC 50 ms
20,800 KB
testcase_16 AC 51 ms
22,764 KB
testcase_17 AC 52 ms
20,784 KB
testcase_18 AC 51 ms
20,512 KB
testcase_19 AC 52 ms
20,672 KB
testcase_20 AC 52 ms
22,612 KB
testcase_21 AC 53 ms
18,740 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 52 ms
20,788 KB
testcase_26 WA -
testcase_27 AC 54 ms
22,776 KB
testcase_28 WA -
testcase_29 AC 51 ms
20,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            ulong N = ulong.Parse(Console.ReadLine());
            if (N == 1 || N == 3 || N == 5 || N % 2 != 0 && N % 3 != 0 && N % 5 != 0)
            {
                Console.WriteLine("NO");
            }
            else
                Console.WriteLine("YES");
        }
    }
}
0