結果

問題 No.537 ユーザーID
ユーザー kimnykimny
提出日時 2017-12-09 11:04:56
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 656 bytes
コンパイル時間 3,919 ms
コンパイル使用メモリ 101,308 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-08-20 02:52:34
合計ジャッジ時間 5,952 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
20,644 KB
testcase_01 AC 48 ms
22,676 KB
testcase_02 AC 47 ms
20,772 KB
testcase_03 AC 46 ms
18,580 KB
testcase_04 AC 46 ms
20,628 KB
testcase_05 AC 47 ms
20,912 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 47 ms
20,680 KB
testcase_10 AC 46 ms
20,696 KB
testcase_11 AC 46 ms
20,712 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 54 ms
20,884 KB
testcase_19 AC 57 ms
20,832 KB
testcase_20 AC 55 ms
18,652 KB
testcase_21 AC 51 ms
18,668 KB
testcase_22 AC 58 ms
22,776 KB
testcase_23 AC 53 ms
22,696 KB
testcase_24 AC 50 ms
22,684 KB
testcase_25 AC 58 ms
20,716 KB
testcase_26 AC 57 ms
20,752 KB
testcase_27 AC 55 ms
22,620 KB
testcase_28 AC 49 ms
20,692 KB
testcase_29 AC 60 ms
20,724 KB
testcase_30 AC 57 ms
22,620 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoder_537 {
    class Program {
        static void Main(string[] args) {
            long n = long.Parse(Console.ReadLine());
            long count = 0;
            for(int i = 1; i <= Math.Sqrt(n); i++) {
                if (n % i == 0) {
                    count++;
                }
            }
            if (n % Math.Sqrt(n) == 0) {
                Console.WriteLine(count * 2 - 1);
            } else {
                Console.WriteLine(count * 2);
            }
            Console.ReadLine();
        }
    }
}
0