# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
704245 |
2023-03-02T01:46:28 Z |
uylulu |
Park (JOI17_park) |
C++14 |
|
4 ms |
340 KB |
#include "park.h"
#include<bits/stdc++.h>
using namespace std;
static int adj[1400];
int n;
vector<pair<int,int>> res;
int help(int a,int b) {
return Ask(a,b,adj);
}
void sub1() {
for(int i = 0;i < n;i++) {
for(int j = i + 1;j < n;j++) {
adj[i] = 1;
adj[j] = 1;
if(help(i,j)) {
res.push_back({i,j});
}
adj[i] = 0;
adj[j] = 0;
}
}
for(auto u : res) {
Answer(u.first,u.second);
}
}
void Detect(int T, int N) {
n = N;
if(T == 1) {
sub1();
return;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
4 ms |
340 KB |
Output is correct |
3 |
Correct |
4 ms |
340 KB |
Output is correct |
4 |
Correct |
4 ms |
340 KB |
Output is correct |
5 |
Correct |
4 ms |
312 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Wrong Answer[6] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
320 KB |
Wrong Answer[6] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Wrong Answer[6] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Wrong Answer[6] |
2 |
Halted |
0 ms |
0 KB |
- |