# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
916373 | owoovo | Two Currencies (JOI23_currencies) | C++17 | 787 ms | 37612 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define ll long long
#define F first
#define S second
using namespace std;
struct bit{
ll ori[200050]={};
void modify(int x,int pos){
while(pos<200030){
ori[pos]+=x;
pos+=pos&(-pos);
}
return;
}
ll q(int x){
ll ans=0;
while(x){
ans+=ori[x];
x-=x&(-x);
}
return ans;
}
ll query(int l,int r){
return q(r)-q(l);
}
}cont,sum;
struct query{
ll u,v,x,y,id;
}qu[100010];
vector<int> e[100010];
# | 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... |