結果
| 問題 |
No.678 2Dシューティングゲームの必殺ビーム
|
| コンテスト | |
| ユーザー |
かぼちゃ
|
| 提出日時 | 2018-04-28 00:09:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 1,076 bytes |
| コンパイル時間 | 900 ms |
| コンパイル使用メモリ | 88,472 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-27 22:52:08 |
| 合計ジャッジ時間 | 2,815 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 2 RE * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <map>
#include <set>
#include <queue>
#include <stack>
#define ALL(x) (x).begin(),(x).end()
#define RALL(x) (x).rbegin(),(x).rend()
#define REP(i,a,n) for(int i = (a);i < (n);i++)
#define PI 3.14159265359
#define MOD 1000007
#define chmax(a,b) if(a < b)a = b
using namespace std;
int main(){
int n,lb,rb;
cin >> n >> lb >> rb;
vector<pair<int, int>> a(rb-lb);
REP(i, 0, n){
int xl,yl,xr,yr;
cin >> xl >> yl >> xr >> yr;
xl-=lb-1;
xr-=lb-1;
for(int j = xl < 0 ? 0 : xl;j <= xr;j++){
if(a[j].second < yl){
a[j].first = i+1;
a[j].second = yl;
}
}
}
sort(ALL(a));
REP(i, 1, n+1){
int ans = 0;
REP(j, 0, a.size()){
if(a[j].first == i){
ans = 1;
break;
}
else if(a[i].first > n){
break;
}
}
cout << ans << endl;
}
return 0;
}
かぼちゃ