結果

問題 No.537 ユーザーID
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-02-21 22:20:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 238 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 3,115 ms
コンパイル使用メモリ 77,164 KB
実行使用メモリ 59,820 KB
最終ジャッジ日時 2024-05-01 05:57:55
合計ジャッジ時間 9,263 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 168 ms
55,764 KB
testcase_01 AC 146 ms
55,492 KB
testcase_02 AC 168 ms
55,676 KB
testcase_03 AC 159 ms
55,632 KB
testcase_04 AC 151 ms
55,532 KB
testcase_05 AC 140 ms
55,688 KB
testcase_06 AC 156 ms
55,520 KB
testcase_07 AC 162 ms
55,800 KB
testcase_08 AC 162 ms
55,520 KB
testcase_09 AC 151 ms
55,516 KB
testcase_10 AC 160 ms
55,328 KB
testcase_11 AC 161 ms
55,640 KB
testcase_12 AC 172 ms
55,668 KB
testcase_13 AC 163 ms
55,520 KB
testcase_14 AC 167 ms
55,280 KB
testcase_15 AC 168 ms
55,400 KB
testcase_16 AC 171 ms
55,460 KB
testcase_17 AC 153 ms
55,416 KB
testcase_18 AC 180 ms
55,868 KB
testcase_19 AC 182 ms
55,820 KB
testcase_20 AC 191 ms
55,672 KB
testcase_21 AC 174 ms
55,580 KB
testcase_22 AC 187 ms
55,800 KB
testcase_23 AC 186 ms
55,752 KB
testcase_24 AC 155 ms
55,652 KB
testcase_25 AC 171 ms
55,676 KB
testcase_26 AC 191 ms
55,668 KB
testcase_27 AC 187 ms
55,732 KB
testcase_28 AC 224 ms
57,928 KB
testcase_29 AC 237 ms
59,820 KB
testcase_30 AC 228 ms
58,024 KB
testcase_31 AC 167 ms
55,692 KB
testcase_32 AC 181 ms
55,796 KB
testcase_33 AC 238 ms
58,728 KB
testcase_34 AC 170 ms
55,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	static public void main(String[]args) throws Exception {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		solve(n);
	}

	static void solve(long n) {
		HashSet<String> hs = new HashSet();
		for(int i=1; i<=Math.sqrt(n); i++) {
			if(n % i == 0) {
				long j = n / i;
				hs.add(i+""+j);
				hs.add(j+""+i);
			}
		}
		System.out.println(hs.size());
	}
}
0