結果

問題 No.85 TVザッピング(1)
ユーザー notetonous
提出日時 2016-06-16 12:59:10
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 16:32:42
合計ジャッジ時間 1,418 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |   scanf("%d %d %d",&N,&M,&C);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
  int N,M,C;
  scanf("%d %d %d",&N,&M,&C);
  if((N==1 && M==2)||(N==2 && M==1))printf("YES\n");
  else if(N%2==0 || M%2==0)printf("YES\n");
  else printf("NO\n");
  return 0;
}
0