結果

問題 No.2051 Divide
ユーザー viral8
提出日時 2022-10-01 10:17:52
言語 Java
(openjdk 23)
結果
TLE  
実行時間 -
コード長 332 bytes
コンパイル時間 2,466 ms
コンパイル使用メモリ 74,684 KB
実行使用メモリ 83,460 KB
最終ジャッジ日時 2024-12-23 14:51:32
合計ジャッジ時間 31,681 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 TLE * 6
権限があれば一括ダウンロードができます

ソースコード

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