結果

問題 No.882 約数倍数
ユーザー tenten
提出日時 2020-08-30 22:12:07
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 500 ms
コード長 303 bytes
コンパイル時間 2,445 ms
コンパイル使用メモリ 74,152 KB
実行使用メモリ 54,284 KB
最終ジャッジ日時 2024-11-15 15:40:49
合計ジャッジ時間 5,158 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	if (a % b == 0) {
    	    System.out.println("YES");
    	} else {
    	    System.out.println("NO");
    	}
    }
}
0