結果

問題 No.2051 Divide
ユーザー Maeda
提出日時 2025-09-09 15:41:13
言語 Java
(openjdk 23)
結果
TLE  
実行時間 -
コード長 357 bytes
コンパイル時間 2,343 ms
コンパイル使用メモリ 77,128 KB
実行使用メモリ 46,628 KB
最終ジャッジ日時 2025-09-09 15:41:27
合計ジャッジ時間 13,642 ms
ジャッジサーバーID
(参考情報)
judge / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 TLE * 2 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

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