結果

問題 No.2736 About half
ユーザー YNotchi_HKTIte2
提出日時 2024-04-20 10:10:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 1,466 ms
コンパイル使用メモリ 165,036 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 05:39:41
合計ジャッジ時間 2,181 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 7 WA * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:13: warning: 'b' is used uninitialized [-Wuninitialized]
    7 |   if (a >= b/2 && b >= a/2){
      |            ~^~
main.cpp:5:10: note: 'b' was declared here
    5 |   int a, b;
      |          ^

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
  cin >> a,b;
  if (a >= b/2 && b >= a/2){
    cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }
  
}
0