結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー michonz4
提出日時 2019-12-04 21:25:07
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 396 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-14 10:40:25
合計ジャッジ時間 3,371 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main() {
  char n[256], m[256];
  scanf("%s %s", n, m);
  
  int sizeN=strlen(n), sizeM=strlen(m);
  if ((n[sizeN-1]-'0')%2==0) {
    if ((m[sizeM-1]-'0')%2==0) {
      printf("Yes\n");
    } else ("No\n");
  } else {
    if ((m[sizeM-1])%2==0 && m[sizeM-2]-'0'>=1) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  
  return 0;
}
0