結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー michonz4
提出日時 2019-12-04 21:26:20
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 421 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-14 10:42:37
合計ジャッジ時間 3,507 ms
ジャッジサーバーID
(参考情報)
judge5 / 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]-'0')%2==0 && m[sizeM-2]-'0'>=1) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  
  return 0;
}
// 10^10 = 10000000000
0