# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
569727 | losmi247 | The Xana coup (BOI21_xanadu) | C++14 | 104 ms | 57340 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N =1e5+4;
int n;
vector <int> g[N];
int on[N];
ll dp[N][2][2]; /// i-ti cvor, j-da li je upaljen ili ne,k-da li je na njemu izvrsena operacija ili ne
bool cmp1(pair <ll,ll> x,pair <ll,ll> y){
return (x.second-x.first < y.second-y.first);
}
bool cmp2(pair <ll,ll> x,pair <ll,ll> y){
return (x.first-x.second < y.first-y.second);
}
void dfs(int x,int par){
if(g[x].size() == 1 && x != 1){
if(on[x]){
dp[x][1][0] = 0;
dp[x][0][1] = 1;
}
else{
dp[x][0][0] = 0;
dp[x][1][1] = 1;
}
/*cout << "postavio " << x << endl;
cout << dp[x][0][0] << " " << dp[x][0][1] << " " << dp[x][1][0] << " " << dp[x][1][1] << endl;*/
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |