結果

問題 No.537 ユーザーID
ユーザー mencottonmencotton
提出日時 2018-01-28 16:33:10
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 590 bytes
コンパイル時間 2,045 ms
コンパイル使用メモリ 102,316 KB
実行使用メモリ 24,500 KB
最終ジャッジ日時 2023-08-28 13:07:29
合計ジャッジ時間 5,657 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
24,348 KB
testcase_01 AC 60 ms
22,376 KB
testcase_02 AC 60 ms
22,436 KB
testcase_03 AC 61 ms
22,504 KB
testcase_04 AC 59 ms
20,508 KB
testcase_05 AC 62 ms
22,620 KB
testcase_06 AC 62 ms
22,588 KB
testcase_07 AC 60 ms
22,448 KB
testcase_08 AC 61 ms
22,544 KB
testcase_09 AC 60 ms
22,444 KB
testcase_10 AC 60 ms
22,536 KB
testcase_11 AC 60 ms
22,416 KB
testcase_12 AC 61 ms
22,376 KB
testcase_13 AC 62 ms
24,408 KB
testcase_14 AC 62 ms
24,500 KB
testcase_15 AC 60 ms
22,360 KB
testcase_16 AC 61 ms
24,424 KB
testcase_17 AC 61 ms
22,496 KB
testcase_18 AC 71 ms
20,528 KB
testcase_19 AC 75 ms
24,424 KB
testcase_20 AC 72 ms
22,452 KB
testcase_21 AC 68 ms
22,500 KB
testcase_22 AC 74 ms
24,404 KB
testcase_23 AC 69 ms
22,636 KB
testcase_24 AC 63 ms
24,480 KB
testcase_25 AC 74 ms
22,372 KB
testcase_26 AC 75 ms
22,460 KB
testcase_27 AC 71 ms
22,372 KB
testcase_28 AC 68 ms
22,496 KB
testcase_29 AC 78 ms
22,420 KB
testcase_30 AC 75 ms
24,424 KB
testcase_31 AC 66 ms
22,484 KB
testcase_32 AC 65 ms
22,456 KB
testcase_33 AC 77 ms
22,508 KB
testcase_34 AC 72 ms
22,332 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.Collections.Generic;

namespace _537
{
    class Program
    {
        static void Main(string[] args)
        {
            long n = long.Parse(Console.ReadLine());
            HashSet<string> ret = new HashSet<string>();
            for (long i = 1; i <= Math.Sqrt(n) + 1; i++)
            {
                if (n % i == 0)
                {
                    ret.Add(i.ToString() + (n / i).ToString());
                    ret.Add((n / i).ToString() + i.ToString());
                }
            }
            Console.WriteLine(ret.Count);
        }
    }
}
0