結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー xxxasdfghjkxxxasdfghjk
提出日時 2018-08-12 15:56:29
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 912 bytes
コンパイル時間 751 ms
コンパイル使用メモリ 80,832 KB
実行使用メモリ 137,964 KB
最終ジャッジ日時 2023-10-24 16:15:37
合計ジャッジ時間 4,171 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,428 KB
testcase_01 AC 54 ms
19,564 KB
testcase_02 AC 47 ms
17,564 KB
testcase_03 AC 46 ms
17,528 KB
testcase_04 AC 440 ms
137,964 KB
testcase_05 AC 161 ms
50,888 KB
testcase_06 WA -
testcase_07 AC 42 ms
17,004 KB
testcase_08 AC 212 ms
65,484 KB
testcase_09 AC 109 ms
36,384 KB
testcase_10 AC 38 ms
15,004 KB
testcase_11 AC 156 ms
52,896 KB
testcase_12 AC 158 ms
52,896 KB
testcase_13 AC 157 ms
51,536 KB
testcase_14 AC 203 ms
63,344 KB
testcase_15 WA -
testcase_16 AC 141 ms
41,032 KB
testcase_17 AC 101 ms
34,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<cstdio>
#include<queue>
#include<utility>
#include<cstring>
#include<stack>
#include<algorithm>
#include<cmath>
#include<iostream>
#include<map>
#define MAX_N 100001
#define INF_INT 2147483647
#define INF_LL 9223372036854775807
#define REP(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long int ll;
typedef pair<ll,ll> P;
bool cmp_P(const P &a,const P &b){
  return a.second < b.second;
}
int main()
{
  map<P,int> mp;
  bool bl[200];
  fill(bl,bl+200,false);
  int xl,yu,xr,yd;
  int N,LB,RB;
  cin >> N >> LB >> RB;
  REP(i,N){
    cin >> xl>>yu>>xr>>yd;
    int j=yd;
    for(int d=xl;d<=xr;d++)
      mp[P(d,yd)] = i+1;
  }
  for(int i=LB;i<=RB;i++){
    for(int y=1680;y>=0;y--){
      if(mp[P(i,y)] != 0){
        bl[mp[P(i,y)]] = true;
        break;
      }
    }
  }
  REP(i,N){
    if(bl[i+1])
      cout << 1 << endl;
    else
      cout << 0 << endl;
  }
  return 0;
}

0