結果
| 問題 | No.85 TVザッピング(1) |
| コンテスト | |
| ユーザー |
notetonous
|
| 提出日時 | 2016-06-16 12:59:10 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 28,872 KB |
| 最終ジャッジ日時 | 2026-02-23 21:36:02 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#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;
}
notetonous