結果
| 問題 | 
                            No.795 Restrictions!!!!!!!!!!!!!!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fog_878
                         | 
                    
| 提出日時 | 2019-03-15 22:07:44 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 430 bytes | 
| コンパイル時間 | 3,496 ms | 
| コンパイル使用メモリ | 74,540 KB | 
| 実行使用メモリ | 42,208 KB | 
| 最終ジャッジ日時 | 2024-07-01 21:01:25 | 
| 合計ジャッジ時間 | 7,168 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 20 | 
ソースコード
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.print(f?"Yes":"No");;
	}
}
            
            
            
        
            
fog_878