# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
138431 | silxikys | Brunhilda’s Birthday (BOI13_brunhilda) | C++14 | 1090 ms | 44532 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int maxn = 1e5+5, INF = 2e9+9;
int m, Q;
int dp[10000005];
vector<int> primes;
struct Bag
{
multiset<int> ms;
int aux = 0;
int max() {
return *ms.rbegin() + aux;
}
void delta(int x) {
aux += x;
}
void insert(int x) {
ms.insert(x-aux);
}
void remove(int x) {
auto it = ms.find(x-aux);
ms.erase(it);
}
};
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |