제출 #201547

#제출 시각아이디문제언어결과실행 시간메모리
201547RakhmandMeetings (JOI19_meetings)C++14
17 / 100
3066 ms504 KiB
#include "meetings.h" #include <cstring> #include <list> #include <map> #include <deque> #include <stack> #include <bitset> #include <functional> #include <numeric> #include <sstream> #include <iostream> #include <iomanip> #include <queue> #include <cmath> #include <ctime> #include <cassert> #include <iterator> using namespace std; void Solve(int N) { vector<pair<int, int> > v; for(int a = 0; a < N; a++){ for(int b = a + 1; b < N; b++){ int cnt = 0; for(int i = 0; i < N; i++){ if(a == i || b == i){ continue; } int cent = Query(i, a, b); if(cent == b || cent == a){ cnt++; } } if(cnt == N - 2){ v.push_back({a, b}); } } } for(int i = 0; i < v.size(); i++){ Bridge(v[i].first, v[i].second); } }

컴파일 시 표준 에러 (stderr) 메시지

meetings.cpp: In function 'void Solve(int)':
meetings.cpp:41:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < v.size(); i++){
                    ~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...