結果

問題 No.537 ユーザーID
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-07 21:14:47
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 728 bytes
コンパイル時間 3,445 ms
コンパイル使用メモリ 75,552 KB
実行使用メモリ 50,616 KB
最終ジャッジ日時 2024-04-25 01:43:26
合計ジャッジ時間 7,680 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
41,124 KB
testcase_01 AC 105 ms
41,368 KB
testcase_02 AC 111 ms
40,860 KB
testcase_03 AC 115 ms
40,996 KB
testcase_04 AC 96 ms
39,976 KB
testcase_05 AC 102 ms
41,224 KB
testcase_06 AC 104 ms
40,096 KB
testcase_07 AC 123 ms
41,044 KB
testcase_08 AC 109 ms
41,508 KB
testcase_09 AC 108 ms
41,192 KB
testcase_10 AC 114 ms
40,840 KB
testcase_11 AC 112 ms
41,172 KB
testcase_12 AC 91 ms
39,676 KB
testcase_13 AC 100 ms
40,916 KB
testcase_14 AC 113 ms
41,108 KB
testcase_15 AC 116 ms
41,492 KB
testcase_16 AC 95 ms
39,988 KB
testcase_17 AC 94 ms
40,172 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 #

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));
        int N = Integer.parseInt(reader.readLine());

        Set set = new HashSet();

        for (int 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