# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
730008 | nguyentunglam | Boat (APIO16_boat) | C++17 | 494 ms | 4428 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define fi first
#define se second
#define endl "\n"
#define ii pair<int, int>
using namespace std;
const int N = 510, mod = 1e9 + 7;
int l[N], r[N], a[N], b[N], cnt[N << 1], inv[N], f[2][N << 1][N];
int power(int a, int p) {
if (!p) return 1;
int tmp = power(a, p >> 1);
tmp = 1LL * tmp * tmp % mod;
if (p % 2) return 1LL * tmp * a % mod;
return tmp;
}
void add(int &a, int b) {
a += b;
if (a >= mod) a -= mod;
}
int main() {
cin.tie(0) -> sync_with_stdio(0);
int n; cin >> n;
vector<int> rrh;
for(int i = 1; i <= n; i++) {
cin >> l[i] >> r[i];
rrh.push_back(l[i] - 1);
rrh.push_back(r[i]);
}
sort(rrh.begin(), rrh.end());
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |