Submission #1089926

#TimeUsernameProblemLanguageResultExecution timeMemory
1089926lucripopa (BOI18_popa)C++17
37 / 100
211 ms420 KiB
#include<bits/stdc++.h> int query(int a,int b,int c,int d); int rezolva(int b,int e,int* Left,int* Right) { if(b>e) return -1; for(int i=b;i<=e;++i) if(query(i,i,b,e)==1) { Left[i]=rezolva(b,i-1,Left,Right); Right[i]=rezolva(i+1,e,Left,Right); return i; } } int solve(int N, int* Left, int* Right) { return rezolva(0,N-1,Left,Right); }

Compilation message (stderr)

popa.cpp: In function 'int rezolva(int, int, int*, int*)':
popa.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...