結果

問題 No.36 素数が嫌い!
ユーザー nanophoto12nanophoto12
提出日時 2014-11-02 04:24:07
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 487 bytes
コンパイル時間 2,143 ms
コンパイル使用メモリ 103,296 KB
実行使用メモリ 24,704 KB
最終ジャッジ日時 2023-08-29 00:18:08
合計ジャッジ時間 5,368 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 53 ms
20,704 KB
testcase_03 AC 52 ms
22,688 KB
testcase_04 AC 53 ms
22,668 KB
testcase_05 AC 52 ms
20,712 KB
testcase_06 AC 54 ms
22,640 KB
testcase_07 AC 52 ms
20,744 KB
testcase_08 AC 52 ms
22,740 KB
testcase_09 AC 51 ms
20,648 KB
testcase_10 WA -
testcase_11 AC 84 ms
20,628 KB
testcase_12 AC 145 ms
18,732 KB
testcase_13 AC 145 ms
20,632 KB
testcase_14 AC 53 ms
20,552 KB
testcase_15 WA -
testcase_16 AC 51 ms
20,876 KB
testcase_17 AC 50 ms
20,620 KB
testcase_18 AC 51 ms
18,708 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 85 ms
20,628 KB
testcase_27 AC 53 ms
20,808 KB
testcase_28 AC 88 ms
20,816 KB
testcase_29 AC 52 ms
20,612 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    public static void Main(string[] args)
    {
        long n = long.Parse(Console.ReadLine());
        int count = 0;
        for (long i = 2; i * i <= n; i++)
        {
            while (n % i == 0)
            {
                n /= i;
                count++;
            }
        }
        if (count >= 3)
        {
            Console.WriteLine("YES");
            return;
        }
        Console.WriteLine("NO");
    }
}
0