QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#646998 | #1212. Navigation | Grand_Elf | 0 | 14ms | 9556kb | C++17 | 776b | 2024-10-17 10:52:32 | 2024-10-17 10:52:33 |
Judging History
Anna
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;
namespace A {
const int N = 1e5 + 5;
int n, t;
vector<int> e[N];
void dfs(int u, int fa, int dis) {
Flag(u, dis);
for (int v : e[u]) {
if (v == fa) {
continue;
}
dfs(v, u, dis);
}
}
}
void Anna(int subid, int n_, int t_, int x[], int y[]) {
using namespace A;
n = n_;
t = t_;
for (int i = 0; i < n - 1; i++) {
int u = x[i], v = y[i];
e[u].emplace_back(v);
e[v].emplace_back(u);
}
dfs(t, 0, 0);
}
Bruno
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;
void Bruno(int subid, int s, int F, int L, int P[], int Q[]) {
for (int i = 0; i < L; i++) {
if (F > Q[i]) {
Answer(P[i]);
return;
}
}
Answer(s);
}
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 14ms
memory: 9160kb
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:
1 94560 0 99999 91913 69503 39684 47595 96623 8011 15498 92403 84183 44035 39994 82975 30698 17596 93175 12253 60807 16111 35848 19061 25435 64721 79086 95487 98059 93865 84074 47584 77418 15271 82666 57858 21726 62847 90603 40247 64714 59668 13698 15586 58276 57618 20231 16177 77966 44363 69669 679...
input:
1 94560 0 99999 91913 69503 39684 47595 96623 8011 15498 92403 84183 44035 39994 82975 30698 17596 93175 12253 60807 16111 35848 19061 25435 64721 79086 95487 98059 93865 84074 47584 77418 15271 82666 57858 21726 62847 90603 40247 64714 59668 13698 15586 58276 57618 20231 16177 77966 44363 69669 679...
output:
94560
result:
wrong answer Wrong Answer [9]
Subtask #2:
score: 0
Wrong Answer
Test #26:
score: 0
Wrong Answer
time: 14ms
memory: 9556kb
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:
2 57165 0 99999 48992 19387 71033 13350 52013 39911 31569 57655 47865 61895 79639 35978 47454 76859 45447 31140 67169 95791 60405 80905 55354 95642 8667 88274 721 61541 31467 62158 93646 5791 37673 90967 70822 50373 6922 9211 12493 55791 99612 86337 52418 27225 13284 54010 57405 99213 36389 5528 532...
input:
2 57165 0 99999 48992 19387 71033 13350 52013 39911 31569 57655 47865 61895 79639 35978 47454 76859 45447 31140 67169 95791 60405 80905 55354 95642 8667 88274 721 61541 31467 62158 93646 5791 37673 90967 70822 50373 6922 9211 12493 55791 99612 86337 52418 27225 13284 54010 57405 99213 36389 5528 532...
output:
57165
result:
wrong answer Wrong Answer [9]
Subtask #3:
score: 0
Wrong Answer
Test #53:
score: 0
Wrong Answer
time: 2ms
memory: 8748kb
input:
5 4 1 3 2 4 3 4 5 4 4 1
output:
3 4 0 4 2 3 5 1 0 0 0 0
input:
3 4 0 4 2 3 5 1 0 0 0 0
output:
4
result:
wrong answer Wrong Answer [9]
Subtask #4:
score: 0
Wrong Answer
Test #85:
score: 0
Wrong Answer
time: 2ms
memory: 9004kb
input:
5 5 4 4 5 1 5 4 5 3 2 5
output:
4 5 0 4 1 4 3 2 0 0 0 0
input:
4 5 0 4 1 4 3 2 0 0 0 0
output:
5
result:
wrong answer Wrong Answer [9]