結果
| 問題 |
No.678 2Dシューティングゲームの必殺ビーム
|
| コンテスト | |
| ユーザー |
かぼちゃ
|
| 提出日時 | 2018-04-28 00:10:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 1,067 bytes |
| コンパイル時間 | 685 ms |
| コンパイル使用メモリ | 77,720 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 22:54:04 |
| 合計ジャッジ時間 | 2,208 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 4 RE * 7 |
ソースコード
#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(1280);
REP(i, 0, n){
int xl,yl,xr,yr;
cin >> xl >> yl >> xr >> yr;
xl--;
xr--;
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;
}
かぼちゃ