結果

問題 No.537 ユーザーID
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-07 21:11:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 722 bytes
コンパイル時間 5,980 ms
コンパイル使用メモリ 77,448 KB
実行使用メモリ 51,472 KB
最終ジャッジ日時 2024-04-25 01:42:58
合計ジャッジ時間 7,838 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
51,360 KB
testcase_01 AC 85 ms
51,108 KB
testcase_02 AC 80 ms
50,920 KB
testcase_03 AC 81 ms
51,176 KB
testcase_04 AC 80 ms
51,004 KB
testcase_05 AC 78 ms
51,196 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 81 ms
51,040 KB
testcase_10 AC 82 ms
51,192 KB
testcase_11 AC 88 ms
51,144 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
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("" + (char) i + (char) (N / i));
                set.add("" + (char) (N / i) + (char) i);
            }
        }

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