結果

問題 No.2736 About half
ユーザー Nzt3Nzt3
提出日時 2024-04-16 01:04:40
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 432 bytes
コンパイル時間 2,368 ms
コンパイル使用メモリ 200,580 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-04-16 01:04:44
合計ジャッジ時間 3,348 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
11,008 KB
testcase_01 AC 12 ms
11,136 KB
testcase_02 AC 12 ms
11,264 KB
testcase_03 AC 11 ms
11,136 KB
testcase_04 AC 11 ms
11,008 KB
testcase_05 AC 11 ms
11,136 KB
testcase_06 AC 12 ms
11,136 KB
testcase_07 AC 12 ms
11,136 KB
testcase_08 AC 14 ms
11,136 KB
testcase_09 AC 12 ms
11,136 KB
testcase_10 AC 12 ms
11,136 KB
testcase_11 AC 12 ms
11,136 KB
testcase_12 AC 12 ms
11,264 KB
testcase_13 AC 12 ms
11,136 KB
testcase_14 AC 12 ms
11,136 KB
testcase_15 AC 12 ms
11,136 KB
testcase_16 AC 12 ms
11,264 KB
testcase_17 AC 12 ms
11,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// N^2

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
constexpr int MOD=998244353;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  vector<vector<string>> ans(501,vector<string>(501,""));
  for(int i=1;i<=500;i++){
    for(int j=1;j<=500;j++){
      if(i*2<j||j*2<i){
        ans[i][j]="No\n";
      }else{
        ans[i][j]="Yes\n";
      }
    }
  }
  int A,B;
  cin>>A>>B;
  cout<<ans[A][B];
}
0