結果

問題 No.537 ユーザーID
ユーザー mencottonmencotton
提出日時 2018-01-28 16:24:53
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 507 bytes
コンパイル時間 2,010 ms
コンパイル使用メモリ 104,376 KB
実行使用メモリ 22,828 KB
最終ジャッジ日時 2023-08-28 13:07:13
合計ジャッジ時間 5,936 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 52 ms
18,620 KB
testcase_02 AC 53 ms
20,656 KB
testcase_03 AC 53 ms
18,584 KB
testcase_04 AC 52 ms
18,636 KB
testcase_05 AC 55 ms
20,748 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 53 ms
20,544 KB
testcase_10 WA -
testcase_11 AC 53 ms
18,652 KB
testcase_12 AC 53 ms
20,788 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 63 ms
18,652 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 62 ms
22,820 KB
testcase_22 AC 68 ms
20,684 KB
testcase_23 AC 61 ms
20,800 KB
testcase_24 WA -
testcase_25 AC 66 ms
20,832 KB
testcase_26 AC 67 ms
18,780 KB
testcase_27 AC 63 ms
20,628 KB
testcase_28 AC 59 ms
22,672 KB
testcase_29 AC 68 ms
20,744 KB
testcase_30 AC 65 ms
20,636 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _537
{
    class Program
    {
        static void Main(string[] args)
        {
            long n = long.Parse(Console.ReadLine()); long a = n;
            int ret = 1;
            for (long i = 2; i <= Math.Sqrt(a); i++)
            {
                int x = 1;
                while (n % i == 0)
                {
                    x++;
                    n /= i;
                }
                ret *= x;
            }
            Console.WriteLine(ret);
        }
    }
}
0