結果

問題 No.537 ユーザーID
ユーザー uafr_csuafr_cs
提出日時 2017-10-28 17:39:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 225 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 2,052 ms
コンパイル使用メモリ 85,256 KB
実行使用メモリ 45,248 KB
最終ジャッジ日時 2024-05-01 21:12:00
合計ジャッジ時間 8,466 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
42,116 KB
testcase_01 AC 131 ms
41,848 KB
testcase_02 AC 131 ms
41,916 KB
testcase_03 AC 123 ms
41,524 KB
testcase_04 AC 145 ms
42,420 KB
testcase_05 AC 137 ms
42,084 KB
testcase_06 AC 125 ms
41,776 KB
testcase_07 AC 138 ms
42,072 KB
testcase_08 AC 135 ms
42,388 KB
testcase_09 AC 133 ms
42,260 KB
testcase_10 AC 136 ms
42,216 KB
testcase_11 AC 134 ms
42,168 KB
testcase_12 AC 148 ms
42,232 KB
testcase_13 AC 149 ms
42,252 KB
testcase_14 AC 136 ms
42,400 KB
testcase_15 AC 132 ms
42,316 KB
testcase_16 AC 139 ms
42,204 KB
testcase_17 AC 137 ms
42,220 KB
testcase_18 AC 155 ms
41,600 KB
testcase_19 AC 148 ms
42,360 KB
testcase_20 AC 160 ms
42,068 KB
testcase_21 AC 160 ms
42,444 KB
testcase_22 AC 158 ms
42,376 KB
testcase_23 AC 163 ms
42,448 KB
testcase_24 AC 144 ms
41,660 KB
testcase_25 AC 160 ms
42,336 KB
testcase_26 AC 162 ms
42,280 KB
testcase_27 AC 156 ms
42,392 KB
testcase_28 AC 197 ms
44,056 KB
testcase_29 AC 217 ms
44,688 KB
testcase_30 AC 211 ms
44,156 KB
testcase_31 AC 156 ms
42,356 KB
testcase_32 AC 150 ms
41,792 KB
testcase_33 AC 225 ms
45,248 KB
testcase_34 AC 153 ms
42,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final long N = sc.nextLong();
		
		HashSet<String> set = new HashSet<String>();
		
		long answer = 0;
		for(long i = 1; i * i <= N; i++){
			if(N % i != 0){ continue; }
			
			set.add(i + "" + (N / i));
			set.add((N / i) + "" + i);
		}
		
		System.out.println(set.size());
	}
}
0