結果

問題 No.2051 Divide
ユーザー viral8viral8
提出日時 2022-10-01 10:17:52
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 332 bytes
コンパイル時間 4,334 ms
コンパイル使用メモリ 71,296 KB
実行使用メモリ 60,676 KB
最終ジャッジ日時 2023-08-25 02:47:23
合計ジャッジ時間 15,866 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,924 KB
testcase_01 AC 119 ms
55,564 KB
testcase_02 AC 212 ms
55,848 KB
testcase_03 AC 142 ms
56,276 KB
testcase_04 AC 130 ms
55,568 KB
testcase_05 AC 652 ms
55,588 KB
testcase_06 AC 1,779 ms
55,680 KB
testcase_07 AC 1,298 ms
56,172 KB
testcase_08 AC 847 ms
55,936 KB
testcase_09 AC 347 ms
55,916 KB
testcase_10 AC 160 ms
55,612 KB
testcase_11 AC 316 ms
55,956 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=A;i++)
            if(A%i==0&&i%B==0)
                ans++;
        System.out.println(ans);
    }
}
0