結果

問題 No.2736 About half
ユーザー YNotchi_HKTIte2
提出日時 2024-04-20 10:15:56
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 2,719 ms
コンパイル使用メモリ 242,032 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 05:45:55
合計ジャッジ時間 3,363 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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