結果

問題 No.537 ユーザーID
ユーザー mbanmban
提出日時 2017-07-01 15:52:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 733 bytes
コンパイル時間 1,089 ms
コンパイル使用メモリ 113,324 KB
実行使用メモリ 27,936 KB
最終ジャッジ日時 2024-04-15 10:27:33
合計ジャッジ時間 3,530 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
25,620 KB
testcase_01 AC 33 ms
25,880 KB
testcase_02 AC 31 ms
27,664 KB
testcase_03 AC 32 ms
25,616 KB
testcase_04 AC 30 ms
27,676 KB
testcase_05 AC 32 ms
27,792 KB
testcase_06 AC 31 ms
25,488 KB
testcase_07 AC 30 ms
25,772 KB
testcase_08 AC 32 ms
25,872 KB
testcase_09 AC 32 ms
25,496 KB
testcase_10 AC 33 ms
25,880 KB
testcase_11 AC 32 ms
25,648 KB
testcase_12 AC 31 ms
27,936 KB
testcase_13 AC 30 ms
23,476 KB
testcase_14 AC 32 ms
27,784 KB
testcase_15 AC 32 ms
27,676 KB
testcase_16 AC 33 ms
27,660 KB
testcase_17 AC 32 ms
25,616 KB
testcase_18 AC 41 ms
25,760 KB
testcase_19 AC 44 ms
25,620 KB
testcase_20 AC 42 ms
27,552 KB
testcase_21 AC 39 ms
25,764 KB
testcase_22 AC 44 ms
25,748 KB
testcase_23 AC 39 ms
25,628 KB
testcase_24 AC 33 ms
25,492 KB
testcase_25 AC 44 ms
27,552 KB
testcase_26 AC 45 ms
25,752 KB
testcase_27 AC 41 ms
23,476 KB
testcase_28 AC 39 ms
25,456 KB
testcase_29 AC 48 ms
27,500 KB
testcase_30 AC 46 ms
25,320 KB
testcase_31 AC 37 ms
27,660 KB
testcase_32 AC 37 ms
25,620 KB
testcase_33 AC 46 ms
23,732 KB
testcase_34 AC 41 ms
25,624 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;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class Program
{
    static void Main(string[] args)
    {
        new Magatro().Solve();
    }
}

class Magatro
{
    long N;

    private void Scan()
    {
        N = long.Parse(Console.ReadLine());
    }

    public void Solve()
    {
        Scan();
        int ans = 0;
        HashSet<string> Hs = new HashSet<string>();
        for (long i = 1; i * i <= N; i++)
        {
            if (N % i == 0)
            {
                Hs.Add(string.Format("{0}{1}", i, N / i));
                Hs.Add(string.Format("{0}{1}", N / i, i));
            }
        }
        Console.WriteLine(Hs.Count);
    }

}






0