提出 #72514806


ソースコード 拡げる

#include <iostream>
using namespace std;
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <atcoder/all>
#include <cmath>
#include <string>
#include <bitset>
using namespace atcoder;
using mint = modint998244353;
// using mint = modint;
// using mint = modint1000000007;
// combination
// https://github.com/atcoder/live_library/blob/cb2068b050b3fbeedd39321b3713ed6546fbeffa/comb.cpp#L31
using ll = long long;
using P = pair<int,int>;
#define rep(i,n) for(int i = 0; i < (n); ++i)

// int di[] = {1,1,1,0,0,-1,-1,-1};
// int dj[] = {1,0,-1,1,-1,1,0,-1};
// int di[] = {1,1,-1,-1};
// int dj[] = {1,-1,-1,-1};
int di[] = {0,1,0,-1};
int dj[] = {1,0,-1,0};

void chmin(int &x, int y){
  x = min(x,y);
}

void chmax(ll &x, ll y){
  x = max(x,y);
}

// int dist[2][505][505];

// mint f(ll n) {
//   return (mint)n*(n+1)/2;
// }

int main() {
  int p, q, x, y;
  cin >> p >> q >> x >> y;

  int m = 100;
  bool ok = false;
  for(int i = p; i < p+m; i++) {
    for(int j = q; j < q+m; j++) {
      if(i == x && j == y) ok = true;
    }
  }
  if(ok) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

提出情報

提出日時
問題 A - Black Square
ユーザ Asaknkn
言語 C++23 (GCC 15.2.0)
得点 100
コード長 1280 Byte
結果 AC
実行時間 1 ms
メモリ 3692 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 33
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, hand_13.txt, hand_14.txt, hand_15.txt, hand_16.txt, hand_17.txt, hand_18.txt, hand_19.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 1 ms 3652 KiB
example_01.txt AC 1 ms 3536 KiB
example_02.txt AC 1 ms 3640 KiB
hand_00.txt AC 1 ms 3536 KiB
hand_01.txt AC 1 ms 3436 KiB
hand_02.txt AC 1 ms 3560 KiB
hand_03.txt AC 1 ms 3692 KiB
hand_04.txt AC 1 ms 3536 KiB
hand_05.txt AC 1 ms 3636 KiB
hand_06.txt AC 1 ms 3668 KiB
hand_07.txt AC 1 ms 3536 KiB
hand_08.txt AC 1 ms 3436 KiB
hand_09.txt AC 1 ms 3536 KiB
hand_10.txt AC 1 ms 3628 KiB
hand_11.txt AC 1 ms 3432 KiB
hand_12.txt AC 1 ms 3692 KiB
hand_13.txt AC 1 ms 3432 KiB
hand_14.txt AC 1 ms 3652 KiB
hand_15.txt AC 1 ms 3428 KiB
hand_16.txt AC 1 ms 3572 KiB
hand_17.txt AC 1 ms 3652 KiB
hand_18.txt AC 1 ms 3596 KiB
hand_19.txt AC 1 ms 3596 KiB
random_00.txt AC 1 ms 3620 KiB
random_01.txt AC 1 ms 3572 KiB
random_02.txt AC 1 ms 3396 KiB
random_03.txt AC 1 ms 3536 KiB
random_04.txt AC 1 ms 3432 KiB
random_05.txt AC 1 ms 3652 KiB
random_06.txt AC 1 ms 3536 KiB
random_07.txt AC 1 ms 3620 KiB
random_08.txt AC 1 ms 3692 KiB
random_09.txt AC 1 ms 3536 KiB