結果

問題 No.537 ユーザーID
ユーザー fjafjafjafjafjafja
提出日時 2017-08-15 13:25:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 265 ms / 2,000 ms
コード長 466 bytes
コンパイル時間 4,038 ms
コンパイル使用メモリ 86,416 KB
実行使用メモリ 45,528 KB
最終ジャッジ日時 2024-04-21 12:30:32
合計ジャッジ時間 12,075 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 168 ms
41,552 KB
testcase_01 AC 172 ms
41,540 KB
testcase_02 AC 169 ms
41,356 KB
testcase_03 AC 170 ms
41,376 KB
testcase_04 AC 169 ms
41,512 KB
testcase_05 AC 167 ms
41,612 KB
testcase_06 AC 171 ms
41,624 KB
testcase_07 AC 170 ms
41,800 KB
testcase_08 AC 167 ms
41,508 KB
testcase_09 AC 168 ms
41,672 KB
testcase_10 AC 171 ms
41,592 KB
testcase_11 AC 169 ms
41,540 KB
testcase_12 AC 163 ms
41,504 KB
testcase_13 AC 170 ms
41,676 KB
testcase_14 AC 169 ms
41,632 KB
testcase_15 AC 167 ms
41,720 KB
testcase_16 AC 170 ms
41,692 KB
testcase_17 AC 171 ms
41,384 KB
testcase_18 AC 199 ms
41,992 KB
testcase_19 AC 187 ms
41,532 KB
testcase_20 AC 182 ms
41,612 KB
testcase_21 AC 197 ms
41,744 KB
testcase_22 AC 199 ms
41,900 KB
testcase_23 AC 201 ms
42,000 KB
testcase_24 AC 179 ms
41,408 KB
testcase_25 AC 204 ms
41,928 KB
testcase_26 AC 204 ms
42,096 KB
testcase_27 AC 205 ms
42,116 KB
testcase_28 AC 233 ms
45,048 KB
testcase_29 AC 265 ms
45,264 KB
testcase_30 AC 264 ms
45,528 KB
testcase_31 AC 203 ms
42,128 KB
testcase_32 AC 198 ms
42,048 KB
testcase_33 AC 244 ms
44,848 KB
testcase_34 AC 209 ms
41,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.HashSet;
import java.util.Scanner;

public class N537
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		long N=sc.nextLong();
		double n=Math.sqrt((double)N);
		HashSet<String> hs=new HashSet<String>();
		for(int i=1;i<=n;i++)
		{
			if(N%i==0)
			{
				String sf=String.valueOf(i);
				String ss=String.valueOf(N/i);
				hs.add(sf+ss);hs.add(ss+sf);
			}
		}
		hs.add(N+"1");
		System.out.println(hs.size());
	}

}
0