結果

問題 No.537 ユーザーID
ユーザー shinwisteriashinwisteria
提出日時 2018-03-13 19:45:50
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 482 bytes
コンパイル時間 3,900 ms
コンパイル使用メモリ 72,532 KB
実行使用メモリ 57,712 KB
最終ジャッジ日時 2023-08-14 17:13:48
合計ジャッジ時間 10,386 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,820 KB
testcase_01 AC 131 ms
55,656 KB
testcase_02 AC 127 ms
56,444 KB
testcase_03 AC 128 ms
57,712 KB
testcase_04 AC 129 ms
55,740 KB
testcase_05 AC 128 ms
55,712 KB
testcase_06 AC 128 ms
55,660 KB
testcase_07 AC 128 ms
55,724 KB
testcase_08 AC 131 ms
55,484 KB
testcase_09 AC 126 ms
55,992 KB
testcase_10 AC 126 ms
55,968 KB
testcase_11 AC 128 ms
55,596 KB
testcase_12 AC 127 ms
56,080 KB
testcase_13 AC 126 ms
55,728 KB
testcase_14 AC 127 ms
55,688 KB
testcase_15 AC 126 ms
55,916 KB
testcase_16 AC 125 ms
55,868 KB
testcase_17 AC 128 ms
55,732 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
権限があれば一括ダウンロードができます

ソースコード

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);
		int n = s.nextInt();
		s.close();

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

	}

}
0