0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 03:31:59 +00:00

#1676. 【2022 正睿 CSP 七连测 Day 7】日常

https://sjzezoj.com/submission/62745
This commit is contained in:
Baoshuo Ren 2022-11-01 16:07:14 +08:00
parent 1781eb4dc1
commit 34c591bf3b
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
109 changed files with 386 additions and 0 deletions

62
S2OJ/1676/1676.cpp Normal file
View File

@ -0,0 +1,62 @@
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <vector>
using std::cin;
using std::cout;
const char endl = '\n';
const int N = 1e5 + 5;
int n, m, k, l[N], r[N], x[N], y[N], a[N];
std::vector<int> nums;
bool vis[N];
struct node {
int l, r, x, y;
bool vis;
node(int _l = 0)
: l(_l), r(0), x(0), y(0), vis(false) {}
} s[N];
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> n >> m >> k;
for (int i = 1; i <= n; i++) {
cin >> s[i].l >> s[i].x >> s[i].y >> s[i].r;
}
std::sort(s + 1, s + 1 + n, [&](auto lhs, auto rhs) -> bool {
return lhs.l < rhs.l;
});
for (int i = 1, x; i <= k; i++) {
cin >> x;
auto p = std::upper_bound(s + 1, s + 1 + n, node(x), [&](auto lhs, auto rhs) -> bool {
return lhs.l < rhs.l;
})
- 1;
if (x < p->l || x > p->r) {
cout << "Failed" << endl;
} else if (p->vis) {
cout << "Again" << endl;
} else if (p->x <= x && x <= p->y) {
cout << "Perfect" << endl;
p->vis = true;
} else {
cout << "Normal" << endl;
p->vis = true;
}
}
return 0;
}

BIN
S2OJ/1676/data/ex_life1.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/ex_life1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/ex_life2.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/ex_life2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/ex_life3.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/ex_life3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/gen.cpp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life1.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life10.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life11.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life11.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life12.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life12.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life13.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life13.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life14.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life14.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life15.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life15.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life16.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life16.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life17.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life17.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life18.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life18.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life19.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life19.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life2.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life20.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life20.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life21.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life21.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life22.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life22.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life23.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life23.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life24.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life24.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life25.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life25.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life26.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life26.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life27.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life27.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life28.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life28.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life29.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life29.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life3.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life30.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life30.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life31.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life31.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life32.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life32.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life33.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life33.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life34.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life34.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life35.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life35.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life36.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life36.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life37.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life37.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life38.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life38.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life39.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life39.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life4.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life40.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life40.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life41.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life41.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life42.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life42.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life43.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life43.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life44.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life44.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life45.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life45.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life46.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life46.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life47.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life47.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life48.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life48.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life49.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life49.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life5.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life50.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1676/data/life50.in (Stored with Git LFS) Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More