結果

問題 No.537 ユーザーID
ユーザー shinwisteriashinwisteria
提出日時 2018-03-13 19:54:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 481 bytes
コンパイル時間 3,541 ms
コンパイル使用メモリ 73,676 KB
実行使用メモリ 58,960 KB
最終ジャッジ日時 2023-08-14 17:42:39
合計ジャッジ時間 10,408 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,700 KB
testcase_01 AC 123 ms
55,640 KB
testcase_02 AC 121 ms
55,936 KB
testcase_03 AC 122 ms
55,624 KB
testcase_04 AC 121 ms
55,924 KB
testcase_05 AC 119 ms
55,664 KB
testcase_06 AC 122 ms
55,616 KB
testcase_07 AC 120 ms
55,652 KB
testcase_08 AC 121 ms
55,576 KB
testcase_09 AC 121 ms
55,620 KB
testcase_10 AC 122 ms
53,916 KB
testcase_11 AC 123 ms
55,720 KB
testcase_12 AC 121 ms
55,740 KB
testcase_13 AC 120 ms
55,660 KB
testcase_14 AC 118 ms
55,508 KB
testcase_15 AC 121 ms
55,176 KB
testcase_16 AC 120 ms
55,720 KB
testcase_17 AC 120 ms
56,164 KB
testcase_18 AC 148 ms
55,924 KB
testcase_19 AC 141 ms
55,612 KB
testcase_20 AC 141 ms
55,700 KB
testcase_21 AC 145 ms
55,628 KB
testcase_22 AC 149 ms
56,244 KB
testcase_23 AC 152 ms
56,196 KB
testcase_24 AC 131 ms
55,668 KB
testcase_25 AC 152 ms
56,304 KB
testcase_26 AC 153 ms
55,932 KB
testcase_27 AC 149 ms
56,436 KB
testcase_28 AC 178 ms
58,232 KB
testcase_29 AC 202 ms
57,288 KB
testcase_30 AC 193 ms
58,084 KB
testcase_31 AC 145 ms
56,220 KB
testcase_32 AC 143 ms
56,280 KB
testcase_33 AC 200 ms
58,960 KB
testcase_34 AC 153 ms
56,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.HashSet;
import java.util.Scanner;
public class Con537 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long n = s.nextLong();
		s.close();

		HashSet<String> id = new HashSet<>();
		for(long i = 1;i <= Math.sqrt(n);i++){
			if(n % i == 0){
				String a = String.valueOf(i);
				String b = String.valueOf(n / i);
				id.add(a.concat(b));
				id.add(b.concat(a));
			}
		}
		System.out.println(id.size());

	}

}
0