結果

問題 No.537 ユーザーID
ユーザー boya978boya978
提出日時 2020-05-02 22:37:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 549 bytes
コンパイル時間 2,257 ms
コンパイル使用メモリ 102,876 KB
実行使用メモリ 24,592 KB
最終ジャッジ日時 2023-08-30 08:18:38
合計ジャッジ時間 6,069 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
22,508 KB
testcase_01 AC 60 ms
22,420 KB
testcase_02 AC 59 ms
22,348 KB
testcase_03 AC 60 ms
24,432 KB
testcase_04 AC 59 ms
22,344 KB
testcase_05 AC 60 ms
24,524 KB
testcase_06 AC 60 ms
22,436 KB
testcase_07 AC 60 ms
22,432 KB
testcase_08 AC 60 ms
20,464 KB
testcase_09 AC 61 ms
22,544 KB
testcase_10 AC 59 ms
22,564 KB
testcase_11 AC 60 ms
24,460 KB
testcase_12 AC 59 ms
22,508 KB
testcase_13 AC 60 ms
22,552 KB
testcase_14 AC 63 ms
24,424 KB
testcase_15 AC 62 ms
24,392 KB
testcase_16 AC 61 ms
24,528 KB
testcase_17 AC 61 ms
22,432 KB
testcase_18 AC 70 ms
22,428 KB
testcase_19 AC 72 ms
22,368 KB
testcase_20 AC 70 ms
24,580 KB
testcase_21 AC 67 ms
22,340 KB
testcase_22 AC 73 ms
22,428 KB
testcase_23 AC 68 ms
24,320 KB
testcase_24 AC 62 ms
22,424 KB
testcase_25 AC 72 ms
24,396 KB
testcase_26 AC 74 ms
22,492 KB
testcase_27 AC 70 ms
22,492 KB
testcase_28 AC 66 ms
22,584 KB
testcase_29 AC 75 ms
24,316 KB
testcase_30 AC 74 ms
24,476 KB
testcase_31 AC 64 ms
22,508 KB
testcase_32 AC 65 ms
24,540 KB
testcase_33 AC 75 ms
20,500 KB
testcase_34 AC 70 ms
24,592 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;
public class Hello{
    public static void Main(){
        
        long n = long.Parse(Console.ReadLine());
        var Xs = new HashSet<string>();
        var sr = (long)Math.Sqrt(n);
        
        for(long i=1;i<=sr;i++)
        {
            if(n%i==0)
            {
                Xs.Add((n/i).ToString() + i.ToString());        
                Xs.Add(i.ToString() + (n/i).ToString());    
            }
        }
        
        Console.WriteLine(Xs.Count);    

    }
}
0