結果

問題 No.537 ユーザーID
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-07 21:15:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 263 ms / 2,000 ms
コード長 729 bytes
コンパイル時間 3,758 ms
コンパイル使用メモリ 75,288 KB
実行使用メモリ 49,032 KB
最終ジャッジ日時 2024-04-25 01:43:40
合計ジャッジ時間 9,911 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
41,208 KB
testcase_01 AC 125 ms
41,120 KB
testcase_02 AC 127 ms
41,108 KB
testcase_03 AC 124 ms
41,016 KB
testcase_04 AC 124 ms
40,984 KB
testcase_05 AC 123 ms
40,904 KB
testcase_06 AC 123 ms
41,104 KB
testcase_07 AC 119 ms
40,868 KB
testcase_08 AC 129 ms
41,124 KB
testcase_09 AC 122 ms
41,208 KB
testcase_10 AC 125 ms
41,196 KB
testcase_11 AC 124 ms
41,488 KB
testcase_12 AC 122 ms
40,820 KB
testcase_13 AC 126 ms
41,308 KB
testcase_14 AC 126 ms
41,100 KB
testcase_15 AC 124 ms
40,888 KB
testcase_16 AC 123 ms
41,580 KB
testcase_17 AC 126 ms
41,240 KB
testcase_18 AC 153 ms
41,352 KB
testcase_19 AC 138 ms
40,940 KB
testcase_20 AC 140 ms
40,968 KB
testcase_21 AC 153 ms
41,064 KB
testcase_22 AC 155 ms
41,592 KB
testcase_23 AC 182 ms
41,904 KB
testcase_24 AC 130 ms
41,296 KB
testcase_25 AC 170 ms
41,932 KB
testcase_26 AC 168 ms
41,648 KB
testcase_27 AC 159 ms
41,644 KB
testcase_28 AC 218 ms
45,588 KB
testcase_29 AC 263 ms
49,032 KB
testcase_30 AC 252 ms
48,016 KB
testcase_31 AC 168 ms
41,952 KB
testcase_32 AC 161 ms
42,476 KB
testcase_33 AC 237 ms
46,384 KB
testcase_34 AC 181 ms
42,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

import static java.lang.System.in;

public class No537 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        long N = Long.parseLong(reader.readLine());

        Set set = new HashSet();

        for (long i = 1; i * i <= N; i++) {
            if (N % i == 0) {

                set.add(String.format("%d%d", i, (N / i)));
                set.add(String.format("%d%d", (N / i), i));
            }
        }

        System.out.println(set.size());
    }
}
0