結果

問題 No.2736 About half
ユーザー YNotchi_HKTIte2
提出日時 2024-04-20 10:08:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 1,441 ms
コンパイル使用メモリ 166,476 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 05:37:43
合計ジャッジ時間 2,047 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 7 WA * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:12: 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