結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
wanjing8
|
| 提出日時 | 2019-06-19 03:39:51 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 254 bytes |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 22,528 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-30 07:58:43 |
| 合計ジャッジ時間 | 862 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&hun);
| ~~~~~^~~~~~~~~~~
main.cpp:6:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d",&ten);
| ~~~~~^~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
int hun,ten;
scanf("%d",&hun);
scanf("%d",&ten);
if(ten%2==1)
printf("NO\n");
else if((hun%2==1 && ten>=10) || (hun%2==0 && ten%2==0)){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
}
wanjing8