結果

問題 No.537 ユーザーID
ユーザー 37zigen37zigen
提出日時 2020-02-18 15:45:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 214 ms / 2,000 ms
コード長 613 bytes
コンパイル時間 2,375 ms
コンパイル使用メモリ 84,008 KB
実行使用メモリ 45,320 KB
最終ジャッジ日時 2024-04-16 04:10:12
合計ジャッジ時間 8,779 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
41,520 KB
testcase_01 AC 131 ms
41,468 KB
testcase_02 AC 134 ms
41,380 KB
testcase_03 AC 134 ms
41,560 KB
testcase_04 AC 134 ms
41,456 KB
testcase_05 AC 133 ms
41,600 KB
testcase_06 AC 134 ms
41,516 KB
testcase_07 AC 134 ms
41,600 KB
testcase_08 AC 117 ms
40,184 KB
testcase_09 AC 131 ms
41,420 KB
testcase_10 AC 134 ms
41,664 KB
testcase_11 AC 135 ms
41,312 KB
testcase_12 AC 132 ms
41,304 KB
testcase_13 AC 133 ms
41,380 KB
testcase_14 AC 135 ms
41,440 KB
testcase_15 AC 137 ms
41,756 KB
testcase_16 AC 138 ms
41,656 KB
testcase_17 AC 136 ms
41,232 KB
testcase_18 AC 161 ms
41,972 KB
testcase_19 AC 138 ms
40,884 KB
testcase_20 AC 158 ms
41,420 KB
testcase_21 AC 160 ms
41,980 KB
testcase_22 AC 161 ms
41,808 KB
testcase_23 AC 169 ms
41,928 KB
testcase_24 AC 148 ms
41,656 KB
testcase_25 AC 151 ms
41,808 KB
testcase_26 AC 168 ms
41,736 KB
testcase_27 AC 162 ms
41,720 KB
testcase_28 AC 188 ms
42,956 KB
testcase_29 AC 214 ms
45,320 KB
testcase_30 AC 203 ms
43,840 KB
testcase_31 AC 163 ms
41,840 KB
testcase_32 AC 142 ms
41,796 KB
testcase_33 AC 209 ms
44,952 KB
testcase_34 AC 170 ms
42,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Main {
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		long N=sc.nextLong();
		int ans=0;
		HashSet<String> set=new HashSet<>();
		for(long div=1;div*div<=N;++div) {
			if(N%div!=0)continue;
			set.add(String.valueOf(div)+String.valueOf(N/div));
			set.add(String.valueOf(N/div)+String.valueOf(div));
		}
		System.out.println(set.size());
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
}
0