結果
問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
ユーザー |
![]() |
提出日時 | 2020-08-30 19:19:38 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 644 bytes |
コンパイル時間 | 2,090 ms |
コンパイル使用メモリ | 73,960 KB |
実行使用メモリ | 54,752 KB |
最終ジャッジ日時 | 2024-11-15 15:13:47 |
合計ジャッジ時間 | 6,898 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 20 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); String result=""; long coin100=sc.nextLong(); long coin10=sc.nextLong(); if(coin100%2==0 && coin10%2==0){ result="Yes"; }else if(coin100%2==0 && coin10%2==1){ result="No"; }else if(coin100%2==1 && coin10%2==0){ if(coin10%10==0){ result="Yes"; }else{ result="No"; } }else{ result="No"; } System.out.println(result); } }