結果

問題 No.537 ユーザーID
ユーザー tentententen
提出日時 2020-11-04 11:50:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 277 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 2,202 ms
コンパイル使用メモリ 74,788 KB
実行使用メモリ 61,184 KB
最終ジャッジ日時 2023-09-29 15:45:33
合計ジャッジ時間 10,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 179 ms
56,884 KB
testcase_01 AC 175 ms
57,384 KB
testcase_02 AC 178 ms
57,300 KB
testcase_03 AC 177 ms
56,560 KB
testcase_04 AC 175 ms
57,176 KB
testcase_05 AC 178 ms
57,048 KB
testcase_06 AC 178 ms
57,048 KB
testcase_07 AC 177 ms
57,116 KB
testcase_08 AC 177 ms
56,996 KB
testcase_09 AC 177 ms
57,036 KB
testcase_10 AC 183 ms
56,996 KB
testcase_11 AC 177 ms
56,876 KB
testcase_12 AC 176 ms
57,228 KB
testcase_13 AC 179 ms
56,840 KB
testcase_14 AC 178 ms
57,028 KB
testcase_15 AC 177 ms
56,572 KB
testcase_16 AC 178 ms
56,752 KB
testcase_17 AC 178 ms
59,184 KB
testcase_18 AC 201 ms
56,916 KB
testcase_19 AC 201 ms
56,956 KB
testcase_20 AC 198 ms
57,088 KB
testcase_21 AC 200 ms
56,960 KB
testcase_22 AC 200 ms
57,076 KB
testcase_23 AC 202 ms
57,036 KB
testcase_24 AC 186 ms
57,120 KB
testcase_25 AC 205 ms
57,280 KB
testcase_26 AC 200 ms
57,004 KB
testcase_27 AC 197 ms
57,212 KB
testcase_28 AC 247 ms
59,808 KB
testcase_29 AC 277 ms
60,928 KB
testcase_30 AC 267 ms
61,184 KB
testcase_31 AC 201 ms
56,772 KB
testcase_32 AC 197 ms
56,812 KB
testcase_33 AC 275 ms
60,748 KB
testcase_34 AC 207 ms
57,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		long x = sc.nextLong();
		HashSet<String> set = new HashSet<>();
		for (int i = 1; i <= Math.sqrt(x); i++) {
		    if (x % i == 0) {
		        set.add(i + "" + (x / i));
		        set.add((x / i) + "" + i);
		    }
		}
		System.out.println(set.size());
	}
}
0