# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
474799 | eulerdesoja | Garaža (COCI17_garaza) | C++17 | 950 ms | 34752 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;
#define ll long long
#define pb push_back
#define sz(x) int(x.size())
typedef pair<int,int>ii;
typedef vector<int> vi;
const int mxn = 100100;
int n, q, a[mxn];
int gcd(int a,int b){
while(b) a %= b, swap(a,b);
return a;
}
struct Tournament{
struct Node{
vector<ii> l,r;
ll cnt;
Node() : cnt(0) {}
Node (int val){
l = r = {{0,0}, {1,val}};
cnt = (val != 1) ? 1 : 0;
# | 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... |