結果

問題 No.537 ユーザーID
ユーザー 14番14番
提出日時 2017-07-01 03:33:02
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,135 bytes
コンパイル時間 1,233 ms
コンパイル使用メモリ 113,528 KB
実行使用メモリ 30,804 KB
最終ジャッジ日時 2024-04-15 09:42:10
合計ジャッジ時間 5,300 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
30,804 KB
testcase_01 AC 25 ms
23,896 KB
testcase_02 AC 25 ms
23,732 KB
testcase_03 AC 24 ms
23,600 KB
testcase_04 AC 24 ms
23,548 KB
testcase_05 AC 25 ms
23,728 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 24 ms
23,680 KB
testcase_09 AC 25 ms
25,560 KB
testcase_10 AC 24 ms
23,424 KB
testcase_11 AC 26 ms
21,940 KB
testcase_12 AC 25 ms
25,724 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 25 ms
25,948 KB
testcase_16 AC 24 ms
23,904 KB
testcase_17 WA -
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.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;

public class Program
{

    public void Proc()
    {
        long inpt = long.Parse(Reader.ReadLine());
        int ans = 0;
        for (int i = 1; i * i <= inpt; i++) {
            if(inpt%i==0) {
                string str1 = i.ToString();
                string str2 = (inpt / i).ToString();
                if((str1+str2).Equals(str2+str1)) {
                    ans += 1;
                } else {
                    ans += 2;
                }
            }
        }
        Console.WriteLine(ans);
    
    }

    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 = @"




63




";
	}

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