제출 #226300

#제출 시각아이디문제언어결과실행 시간메모리
226300kshitij_sodaniMeetings (JOI19_meetings)C++17
17 / 100
3087 ms16128 KiB
#include <iostream> #include <bits/stdc++.h> using namespace std; typedef int64_t llo; #define mp make_pair #define pb push_back #define a first #define b second #define endl "\n" #include "meetings.h" void Solve(int n){ int vis[n][n]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ vis[i][j]=0; } } for(int i=0;i<n;i++){ for(int j=i+1;j<n;j++){ int st=1; for(int k=0;k<n;k++){ if(k==i or k==j){ continue; } int x=Query(i,j,k); if(x==k){ st=0; break; } } vis[i][j]=st; } } for(int i=0;i<n;i++){ for(int j=i+1;j<n;j++){ if(vis[i][j]==1){ Bridge(i,j); } } } } /*int main(){ return 0; }*/
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...