# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1160740 | phamducluong | Two Currencies (JOI23_currencies) | C++20 | 5095 ms | 37068 KiB |
#include <bits/stdc++.h>
#define int long long
#define pii pair<int,int>
#define F first
#define S second
#define all(p) p.begin(),p.end()
using namespace std;
const int mod = 20071008;
const int INF=1e18;
const int N = 1e5 + 5, M=1e6+5;
int n, m, q, c[N], l[N], r[N], s[N], t[N], x[N], y[N], a[N], cnt[N], par[N], h[N], Index[N], head[N], pos=1, id=1, res[N];
vector<int> e[N], qr[N];
pii ed[N];
void file()
{
#define task "main"
if(fopen(task".inp","r"))
{
freopen(task".inp","r",stdin);
freopen(task".out","w",stdout);
}
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
}
void add(int &A, int B)
{
A+=B;
if(A>=mod) A-=mod;
}
Compilation message (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... |