結果

問題 No.537 ユーザーID
ユーザー 14番14番
提出日時 2017-07-01 03:37:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 1,126 bytes
コンパイル時間 917 ms
コンパイル使用メモリ 114,460 KB
実行使用メモリ 27,204 KB
最終ジャッジ日時 2024-04-15 09:42:24
合計ジャッジ時間 3,029 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,468 KB
testcase_01 AC 28 ms
24,596 KB
testcase_02 AC 27 ms
24,876 KB
testcase_03 AC 27 ms
25,008 KB
testcase_04 AC 27 ms
24,980 KB
testcase_05 AC 27 ms
25,100 KB
testcase_06 AC 27 ms
24,624 KB
testcase_07 AC 28 ms
27,204 KB
testcase_08 AC 27 ms
27,036 KB
testcase_09 AC 27 ms
26,700 KB
testcase_10 AC 26 ms
25,004 KB
testcase_11 AC 27 ms
24,984 KB
testcase_12 AC 27 ms
24,652 KB
testcase_13 AC 28 ms
25,040 KB
testcase_14 AC 27 ms
27,032 KB
testcase_15 AC 27 ms
24,908 KB
testcase_16 AC 27 ms
24,524 KB
testcase_17 AC 27 ms
24,780 KB
testcase_18 AC 36 ms
26,820 KB
testcase_19 AC 40 ms
22,836 KB
testcase_20 AC 38 ms
26,772 KB
testcase_21 AC 35 ms
26,816 KB
testcase_22 AC 39 ms
24,780 KB
testcase_23 AC 34 ms
24,744 KB
testcase_24 AC 28 ms
24,724 KB
testcase_25 AC 39 ms
24,784 KB
testcase_26 AC 40 ms
25,040 KB
testcase_27 AC 37 ms
24,656 KB
testcase_28 AC 33 ms
25,060 KB
testcase_29 AC 41 ms
24,796 KB
testcase_30 AC 40 ms
26,852 KB
testcase_31 AC 31 ms
24,876 KB
testcase_32 AC 32 ms
24,860 KB
testcase_33 AC 41 ms
26,800 KB
testcase_34 AC 36 ms
24,912 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.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;

public class Program
{

    public void Proc()
    {
        long inpt = long.Parse(Reader.ReadLine());
        Dictionary<String, bool> flag = new Dictionary<string, bool>();
        for (long i = 1; i * i <= inpt; i++) {
            if(inpt%i==0) {
                string str1 = i.ToString();
                string str2 = (inpt / i).ToString();
                flag[str1 + str2] = true;
                flag[str2 + str1] = true;
            }
        }
        Console.WriteLine(flag.Count());
    
    }

    public class Reader
	{
		private static StringReader sr;
		public static bool IsDebug = false;
		public static string ReadLine()
		{
			if (IsDebug)
			{
				if (sr == null)
				{
					sr = new StringReader(InputText.Trim());
				}
				return sr.ReadLine();
			}
			else
			{
				return Console.ReadLine();
			}
		}
		private static string InputText = @"




110




";
	}

	public static void Main(string[] args)
	{
#if DEBUG
		Reader.IsDebug = true;
#endif
		Program prg = new Program();
		prg.Proc();
	}
}
0