# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1144715 | Muaath_5 | Cake (CEOI14_cake) | C++20 | 535 ms | 31884 KiB |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 3e5+1;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
template<typename T>
using ordered_set = __gnu_pbds::tree<T,__gnu_pbds::null_type,less<T>,__gnu_pbds::rb_tree_tag,__gnu_pbds::tree_order_statistics_node_update>;
#define int ll
#define pii pair<int, int>
int n, a, d[N];
#define seg pii
seg tree[4*N];
seg INF = {1e9, 1e9};
void update(int idx, seg val, int l=1, int r=n, int node=1) {
if (l == r) {
tree[node] = val;
return;
}
const int mid = (l+r)/2;
if (idx <= mid)
# | 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... |