Submission #933717

#TimeUsernameProblemLanguageResultExecution timeMemory
933717Darren0724Meetings (JOI19_meetings)C++17
17 / 100
1702 ms620 KiB
#include "meetings.h" #include <bits/stdc++.h> using namespace std; void Solve(int n) { for(int i=0;i<n;i++){ for(int j=i+1;j<n;j++){ int cnt=0; for(int k=0;k<n;k++){ if(i==k||j==k)continue; int t=Query(i,j,k); if(t==i||t==j){ cnt++; } } if(cnt==n-2){ Bridge(i,j); } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...