結果

問題 No.537 ユーザーID
ユーザー GrenacheGrenache
提出日時 2017-06-30 22:26:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 193 ms / 2,000 ms
コード長 777 bytes
コンパイル時間 3,426 ms
コンパイル使用メモリ 85,516 KB
実行使用メモリ 57,504 KB
最終ジャッジ日時 2024-04-15 06:11:37
合計ジャッジ時間 9,045 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
53,144 KB
testcase_01 AC 113 ms
53,460 KB
testcase_02 AC 118 ms
54,092 KB
testcase_03 AC 109 ms
53,332 KB
testcase_04 AC 122 ms
53,856 KB
testcase_05 AC 108 ms
53,156 KB
testcase_06 AC 106 ms
53,088 KB
testcase_07 AC 124 ms
54,292 KB
testcase_08 AC 121 ms
53,892 KB
testcase_09 AC 110 ms
52,988 KB
testcase_10 AC 112 ms
53,324 KB
testcase_11 AC 118 ms
53,788 KB
testcase_12 AC 119 ms
53,872 KB
testcase_13 AC 118 ms
54,092 KB
testcase_14 AC 112 ms
53,240 KB
testcase_15 AC 123 ms
53,992 KB
testcase_16 AC 107 ms
53,032 KB
testcase_17 AC 105 ms
53,112 KB
testcase_18 AC 144 ms
55,628 KB
testcase_19 AC 127 ms
53,664 KB
testcase_20 AC 137 ms
54,412 KB
testcase_21 AC 154 ms
55,624 KB
testcase_22 AC 156 ms
55,620 KB
testcase_23 AC 146 ms
55,696 KB
testcase_24 AC 126 ms
54,096 KB
testcase_25 AC 143 ms
55,492 KB
testcase_26 AC 142 ms
55,544 KB
testcase_27 AC 138 ms
55,404 KB
testcase_28 AC 167 ms
54,708 KB
testcase_29 AC 193 ms
57,180 KB
testcase_30 AC 185 ms
57,096 KB
testcase_31 AC 137 ms
55,432 KB
testcase_32 AC 133 ms
55,480 KB
testcase_33 AC 186 ms
57,504 KB
testcase_34 AC 159 ms
55,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder537 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		long n = sc.nextLong();

		Set<String> hs = new HashSet<>();
		for (long i = 1; i * i <= n; i++) {
			if (n % i == 0) {
				String tmp = Long.toString(i) + Long.toString(n / i);
				hs.add(tmp);
				tmp = Long.toString(n / i) + Long.toString(i);
				hs.add(tmp);
			}
		}

		pr.println(hs.size());
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0