結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,672 KB
testcase_01 AC 53 ms
20,616 KB
testcase_02 AC 54 ms
20,684 KB
testcase_03 AC 53 ms
22,716 KB
testcase_04 AC 53 ms
20,664 KB
testcase_05 AC 54 ms
20,680 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 52 ms
20,576 KB
testcase_10 AC 53 ms
20,632 KB
testcase_11 AC 53 ms
20,676 KB
testcase_12 AC 54 ms
22,728 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 63 ms
20,704 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 61 ms
20,704 KB
testcase_22 AC 66 ms
20,688 KB
testcase_23 AC 60 ms
20,800 KB
testcase_24 WA -
testcase_25 AC 68 ms
20,888 KB
testcase_26 AC 68 ms
20,652 KB
testcase_27 AC 64 ms
20,620 KB
testcase_28 AC 59 ms
22,724 KB
testcase_29 AC 67 ms
20,688 KB
testcase_30 AC 65 ms
20,692 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) + 1; i++)
            {
                int x = 1;
                while (n % i == 0)
                {
                    x++;
                    n /= i;
                }
                ret *= x;
            }
            Console.WriteLine(ret);
        }
    }
}
0