Submission #704245

#TimeUsernameProblemLanguageResultExecution timeMemory
704245uyluluPark (JOI17_park)C++14
10 / 100
4 ms340 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...