結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー fog_878
提出日時 2019-03-15 21:44:36
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 432 bytes
コンパイル時間 2,046 ms
コンパイル使用メモリ 75,196 KB
実行使用メモリ 42,232 KB
最終ジャッジ日時 2024-07-01 20:38:57
合計ジャッジ時間 6,611 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

	void solve() {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		sc.close();

		boolean f = false;
		if(m%2==1)f=false;
		else if(n%2==0&&m%2==0)f=true;
		else if(n*10%m==0)f = true;

		System.out.println(f?"Yes":"No");
	}

}
0