結果

問題 No.537 ユーザーID
ユーザー bluemeganebluemegane
提出日時 2018-09-12 11:36:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 516 bytes
コンパイル時間 2,347 ms
コンパイル使用メモリ 104,316 KB
実行使用メモリ 26,596 KB
最終ジャッジ日時 2023-09-08 17:05:11
合計ジャッジ時間 6,149 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
24,572 KB
testcase_01 AC 60 ms
20,520 KB
testcase_02 AC 60 ms
24,604 KB
testcase_03 AC 60 ms
22,456 KB
testcase_04 AC 60 ms
26,596 KB
testcase_05 AC 61 ms
24,572 KB
testcase_06 AC 61 ms
22,548 KB
testcase_07 AC 61 ms
20,516 KB
testcase_08 AC 60 ms
24,532 KB
testcase_09 AC 59 ms
22,404 KB
testcase_10 AC 60 ms
22,416 KB
testcase_11 AC 59 ms
22,504 KB
testcase_12 AC 60 ms
20,508 KB
testcase_13 AC 60 ms
22,468 KB
testcase_14 AC 61 ms
24,576 KB
testcase_15 AC 60 ms
22,448 KB
testcase_16 AC 60 ms
22,592 KB
testcase_17 AC 62 ms
24,508 KB
testcase_18 AC 70 ms
24,500 KB
testcase_19 AC 71 ms
22,432 KB
testcase_20 AC 71 ms
24,516 KB
testcase_21 AC 67 ms
22,448 KB
testcase_22 AC 72 ms
22,544 KB
testcase_23 AC 68 ms
24,484 KB
testcase_24 AC 63 ms
22,372 KB
testcase_25 AC 72 ms
22,552 KB
testcase_26 AC 74 ms
24,592 KB
testcase_27 AC 71 ms
20,656 KB
testcase_28 AC 69 ms
22,448 KB
testcase_29 AC 75 ms
22,528 KB
testcase_30 AC 72 ms
22,572 KB
testcase_31 AC 65 ms
22,400 KB
testcase_32 AC 65 ms
24,448 KB
testcase_33 AC 74 ms
22,504 KB
testcase_34 AC 70 ms
24,456 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Linq;
using System.Collections.Generic;
using System;

public class Hello
{
    public static void Main()
    {
        var hs = new HashSet<string>();
        var n = long.Parse(Console.ReadLine().Trim());
        var n2 = (int)Math.Sqrt(n);
        for (int i = 1; i <= n2; i++)
            if (n % i == 0)
            {
                hs.Add((n / i).ToString() + i.ToString());
                hs.Add( i.ToString() + (n / i).ToString());
            }
        Console.WriteLine(hs.Count());
    }
}
0