結果

問題 No.537 ユーザーID
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-11 00:24:37
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 427 bytes
コンパイル時間 2,054 ms
コンパイル使用メモリ 74,992 KB
実行使用メモリ 61,648 KB
最終ジャッジ日時 2024-04-24 10:46:52
合計ジャッジ時間 8,056 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
45,804 KB
testcase_01 AC 110 ms
41,188 KB
testcase_02 AC 112 ms
41,400 KB
testcase_03 AC 113 ms
41,444 KB
testcase_04 AC 102 ms
39,932 KB
testcase_05 AC 103 ms
41,388 KB
testcase_06 AC 103 ms
41,188 KB
testcase_07 AC 106 ms
40,312 KB
testcase_08 AC 111 ms
41,596 KB
testcase_09 AC 112 ms
41,176 KB
testcase_10 AC 113 ms
41,176 KB
testcase_11 AC 109 ms
41,196 KB
testcase_12 AC 114 ms
41,484 KB
testcase_13 AC 101 ms
40,152 KB
testcase_14 AC 111 ms
41,572 KB
testcase_15 AC 105 ms
41,468 KB
testcase_16 AC 113 ms
41,132 KB
testcase_17 AC 110 ms
41,196 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		long n = sc.nextLong();
		Set<String> set = new HashSet<>();
		for (long i=1; i<=n; i++) {
			if (n%i==0) {
				StringBuilder sb = new StringBuilder();
				sb.append(String.valueOf(i));
				sb.append(String.valueOf(n/i));
				set.add(sb.toString());
			}
		}
		System.out.println(set.size());
	}
}
0