結果

問題 No.537 ユーザーID
ユーザー mosmos_21mosmos_21
提出日時 2017-06-30 23:41:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 2,117 ms
コンパイル使用メモリ 74,604 KB
実行使用メモリ 56,588 KB
最終ジャッジ日時 2024-04-15 07:11:28
合計ジャッジ時間 8,232 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
53,992 KB
testcase_01 AC 134 ms
54,260 KB
testcase_02 AC 132 ms
53,884 KB
testcase_03 AC 132 ms
53,896 KB
testcase_04 AC 131 ms
53,980 KB
testcase_05 AC 132 ms
54,032 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 130 ms
54,140 KB
testcase_10 AC 131 ms
54,208 KB
testcase_11 AC 132 ms
54,252 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 143 ms
53,916 KB
testcase_19 AC 148 ms
54,048 KB
testcase_20 AC 146 ms
54,548 KB
testcase_21 AC 145 ms
54,252 KB
testcase_22 AC 147 ms
54,228 KB
testcase_23 AC 142 ms
54,076 KB
testcase_24 AC 132 ms
54,144 KB
testcase_25 AC 144 ms
53,968 KB
testcase_26 AC 151 ms
54,284 KB
testcase_27 AC 146 ms
54,020 KB
testcase_28 AC 145 ms
54,264 KB
testcase_29 AC 147 ms
54,308 KB
testcase_30 AC 145 ms
54,400 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package test;

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
       Scanner in = new Scanner(System.in);
       long n = in.nextLong();
       int ans = 0;
       for(int i = 1; i <= (int)Math.sqrt(n); i++){
           if(n % i == 0){
               ans += (n / i == i) ? 1 : 2;
           }
       }
       System.out.println(ans);
    }
}
0