結果

問題 No.537 ユーザーID
ユーザー bayashiko_rbayashiko_r
提出日時 2018-11-18 01:44:52
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 548 bytes
コンパイル時間 2,676 ms
コンパイル使用メモリ 104,876 KB
実行使用メモリ 25,600 KB
最終ジャッジ日時 2023-08-26 01:50:40
合計ジャッジ時間 8,967 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
19,444 KB
testcase_01 AC 61 ms
21,584 KB
testcase_02 AC 60 ms
21,616 KB
testcase_03 AC 62 ms
25,600 KB
testcase_04 AC 60 ms
21,584 KB
testcase_05 AC 62 ms
21,676 KB
testcase_06 AC 62 ms
21,440 KB
testcase_07 AC 62 ms
21,512 KB
testcase_08 AC 62 ms
21,608 KB
testcase_09 AC 61 ms
21,544 KB
testcase_10 AC 61 ms
23,544 KB
testcase_11 AC 61 ms
21,496 KB
testcase_12 AC 62 ms
21,560 KB
testcase_13 AC 60 ms
23,544 KB
testcase_14 AC 61 ms
21,504 KB
testcase_15 AC 62 ms
21,656 KB
testcase_16 AC 61 ms
23,640 KB
testcase_17 AC 63 ms
23,548 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

class Program {
    static void Main(string[] args) {
        //入力
        long N = long.Parse(Console.ReadLine());

        //1~Nまで割り算をして、数字をくっつける
        List<string> ansArray = new List<string> { };
        for (long i = 1; i <= N; i++) {
            if (N % i == 0) {
                ansArray.Add(i.ToString() + (N / i).ToString());
            }
        }

        //出力
        Console.WriteLine(ansArray.Distinct().Count());
    }
}
0