結果

問題 No.537 ユーザーID
ユーザー _matumo__matumo_
提出日時 2018-08-29 12:58:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 660 bytes
コンパイル時間 3,473 ms
コンパイル使用メモリ 102,248 KB
実行使用メモリ 23,604 KB
最終ジャッジ日時 2023-10-11 13:54:16
合計ジャッジ時間 7,230 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,736 KB
testcase_01 AC 61 ms
21,520 KB
testcase_02 AC 60 ms
23,472 KB
testcase_03 AC 60 ms
21,416 KB
testcase_04 AC 61 ms
21,640 KB
testcase_05 AC 61 ms
21,336 KB
testcase_06 AC 60 ms
21,360 KB
testcase_07 AC 61 ms
23,552 KB
testcase_08 AC 61 ms
23,500 KB
testcase_09 AC 60 ms
19,524 KB
testcase_10 AC 61 ms
23,384 KB
testcase_11 AC 61 ms
21,460 KB
testcase_12 AC 60 ms
19,304 KB
testcase_13 AC 61 ms
23,600 KB
testcase_14 AC 62 ms
23,472 KB
testcase_15 AC 61 ms
21,644 KB
testcase_16 AC 60 ms
21,356 KB
testcase_17 AC 61 ms
21,388 KB
testcase_18 AC 70 ms
23,448 KB
testcase_19 AC 74 ms
21,376 KB
testcase_20 AC 71 ms
23,552 KB
testcase_21 AC 67 ms
23,392 KB
testcase_22 AC 73 ms
21,612 KB
testcase_23 AC 69 ms
21,416 KB
testcase_24 AC 64 ms
21,504 KB
testcase_25 AC 73 ms
21,468 KB
testcase_26 AC 75 ms
23,520 KB
testcase_27 AC 71 ms
21,636 KB
testcase_28 AC 67 ms
21,400 KB
testcase_29 AC 77 ms
23,492 KB
testcase_30 AC 74 ms
21,424 KB
testcase_31 AC 66 ms
21,604 KB
testcase_32 AC 66 ms
23,392 KB
testcase_33 AC 77 ms
23,456 KB
testcase_34 AC 71 ms
23,604 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;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var va = new List<string>();
            long na = long.Parse(Console.ReadLine());
            for (long i = 1; i * i <= na; i++)
            {
                if (na % i > 0) continue;
                long j = na / i;
                va.Add(i.ToString() + j.ToString());
                va.Add(j.ToString() + i.ToString());
            }
            int n = va.Distinct().Count();
            Console.WriteLine(n);
            Console.ReadLine();
        }
    }
}
0