結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー Yosuke Yamaguchi
提出日時 2021-01-17 23:29:07
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 511 bytes
コンパイル時間 5,929 ms
コンパイル使用メモリ 74,796 KB
実行使用メモリ 54,792 KB
最終ジャッジ日時 2024-11-30 05:37:46
合計ジャッジ時間 8,754 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/795
public class Restrictions795 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner sc = new Scanner(System.in);

    // String 1つ分を読み込む
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());

    n += m / 10;
    m %= 10;
    if (m % 2 == 0 && n % 2 == 0) {
      System.out.println("YES");
    } else {
      System.out.println("NO");
    }
  }
}
0