QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#86867 | #1212. Navigation | fzj2007 | 0 | 6ms | 9288kb | C++14 | 512b | 2023-03-11 11:24:26 | 2023-03-11 11:24:29 |
Judging History
Anna
#include<bits/stdc++.h>
#include "Annalib.h"
using namespace std;
vector<int> g[100005];
inline void dfs(int x,int fa){
Flag(x,x<fa);
for(auto v:g[x]) dfs(v,x);
}
void Anna(int id,int n,int t,int U[],int V[]){
for(int i=0;i<n-1;i++) g[U[i]].emplace_back(V[i]),g[V[i]].emplace_back(U[i]);
dfs(t,0);
}
Bruno
#include<bits/stdc++.h>
#include "Brunolib.h"
using namespace std;
void Bruno(int id,int s,int v,int num,int P[],int Q[]){
for(int i=0;i<num;i++)
if((P[i]>s)==Q[i]) s=i;
Answer(s);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 6ms
memory: 9128kb
input:
100000 94560 16294 1 91913 94560 94560 69503 94560 39684 47595 94560 94560 96623 8011 94560 94560 15498 94560 92403 94560 84183 94560 44035 39994 94560 82975 94560 94560 30698 94560 17596 93175 94560 12253 94560 94560 60807 94560 16111 35848 94560 94560 19061 94560 25435 64721 94560 94560 79086 9548...
output:
Wrong Answer [2]
input:
22011 1 0 2 0 0 0 0
output:
1
result:
wrong answer Wrong Answer [5]
Subtask #2:
score: 0
Wrong Answer
Test #26:
score: 0
Wrong Answer
time: 2ms
memory: 9288kb
input:
100000 57165 10261 2 57165 48992 57165 19387 71033 57165 13350 57165 52013 57165 39911 57165 31569 57165 57165 57655 47865 57165 57165 61895 79639 57165 35978 57165 47454 57165 76859 57165 57165 45447 31140 57165 57165 67169 57165 95791 57165 60405 57165 80905 57165 55354 57165 95642 8667 57165 8827...
output:
Wrong Answer [2]
input:
21929 1 0 2 0 0 0 0
output:
1
result:
wrong answer Wrong Answer [5]
Subtask #3:
score: 0
Wrong Answer
Test #53:
score: 0
Wrong Answer
time: 6ms
memory: 8124kb
input:
5 4 1 3 2 4 3 4 5 4 4 1
output:
Wrong Answer [2]
input:
21912 1 0 2 0 0 0 0
output:
1
result:
wrong answer Wrong Answer [5]
Subtask #4:
score: 0
Wrong Answer
Test #85:
score: 0
Wrong Answer
time: 2ms
memory: 7936kb
input:
5 5 4 4 5 1 5 4 5 3 2 5
output:
Wrong Answer [2]
input:
21903 1 0 2 0 0 0 0
output:
1
result:
wrong answer Wrong Answer [5]