結果

問題 No.537 ユーザーID
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-07 21:04:32
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 659 bytes
コンパイル時間 5,559 ms
コンパイル使用メモリ 73,580 KB
実行使用メモリ 37,420 KB
最終ジャッジ日時 2024-04-25 01:42:14
合計ジャッジ時間 8,440 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
36,944 KB
testcase_01 AC 52 ms
37,012 KB
testcase_02 AC 51 ms
36,748 KB
testcase_03 AC 49 ms
36,936 KB
testcase_04 AC 52 ms
36,824 KB
testcase_05 AC 52 ms
36,876 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 51 ms
36,872 KB
testcase_10 AC 51 ms
36,724 KB
testcase_11 AC 52 ms
36,848 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 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());

        int counter = 0;
        for (int i = 1; i * i <= N; i++) {
            if (N % i == 0) {
                if (i*i == N) {
                    counter += 1;
                } else {
                    counter += 2;
                }
            }
        }

        System.out.println(counter);
    }
}
0