結果

問題 No.537 ユーザーID
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-08-22 01:53:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 527 bytes
コンパイル時間 2,078 ms
コンパイル使用メモリ 102,444 KB
実行使用メモリ 24,600 KB
最終ジャッジ日時 2023-08-23 10:57:12
合計ジャッジ時間 5,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
22,516 KB
testcase_01 AC 60 ms
22,540 KB
testcase_02 AC 60 ms
24,480 KB
testcase_03 AC 59 ms
20,548 KB
testcase_04 AC 61 ms
22,636 KB
testcase_05 AC 61 ms
22,300 KB
testcase_06 AC 61 ms
22,576 KB
testcase_07 AC 60 ms
22,384 KB
testcase_08 AC 60 ms
22,520 KB
testcase_09 AC 59 ms
22,456 KB
testcase_10 AC 59 ms
22,604 KB
testcase_11 AC 60 ms
22,472 KB
testcase_12 AC 61 ms
24,600 KB
testcase_13 AC 61 ms
22,416 KB
testcase_14 AC 61 ms
22,460 KB
testcase_15 AC 61 ms
22,512 KB
testcase_16 AC 61 ms
22,524 KB
testcase_17 AC 61 ms
22,400 KB
testcase_18 AC 69 ms
22,396 KB
testcase_19 AC 72 ms
22,508 KB
testcase_20 AC 69 ms
24,416 KB
testcase_21 AC 67 ms
24,460 KB
testcase_22 AC 71 ms
22,456 KB
testcase_23 AC 68 ms
22,376 KB
testcase_24 AC 62 ms
22,740 KB
testcase_25 AC 71 ms
22,444 KB
testcase_26 AC 72 ms
22,420 KB
testcase_27 AC 69 ms
22,332 KB
testcase_28 AC 66 ms
24,408 KB
testcase_29 AC 74 ms
22,352 KB
testcase_30 AC 73 ms
22,520 KB
testcase_31 AC 65 ms
22,388 KB
testcase_32 AC 64 ms
22,476 KB
testcase_33 AC 74 ms
22,512 KB
testcase_34 AC 70 ms
22,536 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Collections.Generic;

class No537
{
    static void Main()
    {
        var num = Int64.Parse(Console.ReadLine());
        var numI = Math.Sqrt(num)+1;
        var hash = new HashSet<string>();
        for (int i = 1; i < numI; ++i)
        {
            if (num % i==0)
            {
                hash.Add(i.ToString()+ (num / i).ToString());
                hash.Add((num / i).ToString() + i.ToString());
            }
        }
        Console.WriteLine(hash.Count);
    }
}
0