結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー Yosuke Yamaguchi
提出日時 2021-01-17 23:30:40
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 511 bytes
コンパイル時間 3,706 ms
コンパイル使用メモリ 74,572 KB
実行使用メモリ 42,276 KB
最終ジャッジ日時 2024-11-30 05:39:34
合計ジャッジ時間 8,261 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 (n % 2 == 0 && m % 2 == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}
0