# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
875613 | andrei_iorgulescu | Two Currencies (JOI23_currencies) | C++14 | 2605 ms | 76444 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
ifstream in("f.in");
ofstream out("f.out");
#define int long long
int bucket_size = 700;
int sqsize = 500;
int n,m,q,N;
vector<int>G[100005];
vector<pair<int,int>>g[200005];
pair<int,int>edges[100005];
vector<int>midedges[100005];
struct ura
{
int nrgold,nrsilver,x,y,idx;
};
bool cmp(ura A,ura B)
{
if (A.x / bucket_size != B.x / bucket_size)
return A.x < B.x;
return A.y < B.y;
}
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... |