# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
335267 | CaroLinda | Džumbus (COCI19_dzumbus) | C++14 | 72 ms | 15212 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define sz(x) (int)(x.size() )
#define ll long long
const int MAXN = 1010 ;
const int inf = 1e9+7 ;
using namespace std ;
//Don't forget to check during the calculation if you are doing operations with infinity
//We don't want overflow, do we?
int N , M , Q ;
int drink[MAXN] , sub[MAXN] ;
int dp0[MAXN][MAXN] , dp1[MAXN][MAXN][2] ;
vector< int > tree[MAXN] ;
bool vis[MAXN] ;
void dfs1(int x, int parent )
{
vis[x] = true ;
for(int i = 0 ; i < sz(tree[x] ) ; i++ )
{
if( tree[x][i] != parent ) continue ;
swap( tree[x][i], tree[x][ sz(tree[x])-1 ] ) ;
tree[x].pop_back() ;
컴파일 시 표준 에러 (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... |