結果

問題 No.537 ユーザーID
ユーザー taku-techtaku-tech
提出日時 2021-05-21 02:54:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 236 ms / 2,000 ms
コード長 447 bytes
コンパイル時間 3,836 ms
コンパイル使用メモリ 76,884 KB
実行使用メモリ 45,556 KB
最終ジャッジ日時 2024-04-18 14:13:50
合計ジャッジ時間 11,417 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
42,560 KB
testcase_01 AC 155 ms
42,296 KB
testcase_02 AC 156 ms
42,304 KB
testcase_03 AC 157 ms
42,836 KB
testcase_04 AC 157 ms
42,664 KB
testcase_05 AC 144 ms
41,980 KB
testcase_06 AC 157 ms
42,540 KB
testcase_07 AC 159 ms
42,560 KB
testcase_08 AC 145 ms
42,108 KB
testcase_09 AC 161 ms
42,556 KB
testcase_10 AC 160 ms
42,516 KB
testcase_11 AC 155 ms
42,456 KB
testcase_12 AC 153 ms
42,136 KB
testcase_13 AC 155 ms
42,324 KB
testcase_14 AC 143 ms
41,812 KB
testcase_15 AC 155 ms
42,484 KB
testcase_16 AC 156 ms
42,592 KB
testcase_17 AC 147 ms
42,612 KB
testcase_18 AC 182 ms
42,416 KB
testcase_19 AC 177 ms
42,588 KB
testcase_20 AC 164 ms
42,388 KB
testcase_21 AC 153 ms
42,676 KB
testcase_22 AC 186 ms
42,576 KB
testcase_23 AC 187 ms
42,736 KB
testcase_24 AC 169 ms
42,456 KB
testcase_25 AC 185 ms
42,712 KB
testcase_26 AC 188 ms
42,632 KB
testcase_27 AC 177 ms
42,432 KB
testcase_28 AC 208 ms
44,456 KB
testcase_29 AC 236 ms
45,388 KB
testcase_30 AC 229 ms
44,888 KB
testcase_31 AC 164 ms
42,636 KB
testcase_32 AC 173 ms
42,696 KB
testcase_33 AC 221 ms
45,556 KB
testcase_34 AC 187 ms
42,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package user_id;

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

public class UserId02 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		long N = sc.nextLong();
		Set<String> X = new HashSet<>();

		for(long i = 1; i <= Math.sqrt(N); i++) {
			if(N % i == 0) {
				X.add(i + "" + (N / i));
				X.add((N / i) + "" + i);
			}
		}
		System.out.println(X.size());
//		sc.close();
	}
}
0