結果

問題 No.889 素数!
ユーザー hayashihayashi
提出日時 2019-10-16 14:40:28
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 743 bytes
コンパイル時間 4,064 ms
コンパイル使用メモリ 101,688 KB
実行使用メモリ 22,728 KB
最終ジャッジ日時 2023-09-03 18:01:01
合計ジャッジ時間 10,058 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,648 KB
testcase_01 AC 57 ms
22,680 KB
testcase_02 AC 56 ms
20,672 KB
testcase_03 AC 55 ms
20,568 KB
testcase_04 AC 56 ms
20,512 KB
testcase_05 AC 55 ms
18,708 KB
testcase_06 WA -
testcase_07 AC 54 ms
20,656 KB
testcase_08 AC 55 ms
18,816 KB
testcase_09 AC 57 ms
20,760 KB
testcase_10 AC 56 ms
22,728 KB
testcase_11 AC 56 ms
20,664 KB
testcase_12 AC 55 ms
20,660 KB
testcase_13 AC 56 ms
20,664 KB
testcase_14 AC 55 ms
20,596 KB
testcase_15 AC 56 ms
20,664 KB
testcase_16 AC 55 ms
20,792 KB
testcase_17 AC 56 ms
18,700 KB
testcase_18 AC 55 ms
20,736 KB
testcase_19 AC 55 ms
20,512 KB
testcase_20 AC 55 ms
20,760 KB
testcase_21 AC 56 ms
22,612 KB
testcase_22 AC 56 ms
20,736 KB
testcase_23 AC 57 ms
20,664 KB
testcase_24 AC 55 ms
20,588 KB
testcase_25 AC 56 ms
20,544 KB
testcase_26 AC 55 ms
20,692 KB
testcase_27 AC 56 ms
20,732 KB
testcase_28 AC 54 ms
20,680 KB
testcase_29 AC 55 ms
20,764 KB
testcase_30 AC 55 ms
18,836 KB
testcase_31 AC 56 ms
20,648 KB
testcase_32 AC 55 ms
20,608 KB
testcase_33 AC 56 ms
20,636 KB
testcase_34 AC 56 ms
20,660 KB
testcase_35 AC 56 ms
20,792 KB
testcase_36 WA -
testcase_37 AC 55 ms
20,604 KB
testcase_38 AC 57 ms
20,728 KB
testcase_39 AC 57 ms
20,676 KB
testcase_40 AC 55 ms
20,668 KB
testcase_41 AC 55 ms
20,676 KB
testcase_42 AC 56 ms
20,636 KB
testcase_43 AC 55 ms
20,692 KB
testcase_44 AC 56 ms
20,744 KB
testcase_45 AC 56 ms
20,860 KB
testcase_46 AC 57 ms
22,724 KB
testcase_47 AC 55 ms
20,712 KB
testcase_48 AC 56 ms
22,676 KB
testcase_49 AC 55 ms
20,684 KB
testcase_50 AC 56 ms
20,860 KB
testcase_51 AC 57 ms
22,660 KB
testcase_52 AC 56 ms
20,648 KB
testcase_53 AC 55 ms
20,600 KB
testcase_54 AC 56 ms
20,664 KB
testcase_55 WA -
testcase_56 AC 56 ms
20,852 KB
testcase_57 AC 56 ms
20,664 KB
testcase_58 AC 56 ms
20,604 KB
testcase_59 AC 55 ms
20,652 KB
testcase_60 AC 56 ms
22,696 KB
testcase_61 AC 55 ms
22,700 KB
testcase_62 AC 56 ms
20,660 KB
testcase_63 AC 56 ms
22,688 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)
        {
            int N = int.Parse(Console.ReadLine());
            if(N == 4 || N == 9 || N == 16 || N == 25 || N == 36 || N == 49)
            {
                Console.WriteLine("Heihosu!");
            }else if(N == 8 || N == 27)
            {
                Console.WriteLine("Ripposu!");
            }else if(N % 2 != 0 && N % 3 != 0 && N != 1 || N == 2)
            {
                Console.WriteLine("Sosu!");
            }else if(N == 6 || N == 28)
            {
                Console.WriteLine("Kanzensu!");
            }
            else
            {
                Console.WriteLine(N);
            }
        }
    }
}
0