結果
| 問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
| コンテスト | |
| ユーザー |
fog_878
|
| 提出日時 | 2019-03-15 22:19:11 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 432 bytes |
| コンパイル時間 | 2,505 ms |
| コンパイル使用メモリ | 74,344 KB |
| 実行使用メモリ | 54,176 KB |
| 最終ジャッジ日時 | 2024-07-01 21:07:42 |
| 合計ジャッジ時間 | 6,896 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.println(f?"Yes":"No");;
}
}
fog_878