제출 #119196

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
1191962019-06-20 15:57:15KLPPMeetings (JOI19_meetings)C++14
100 / 100
643 ms1680 KiB
#include "meetings.h"
#include<bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define trav(a,v) for(auto a:v)
vector<pair<int,int> >edges;
int PNT;
bool cmp(int a, int b){
if(Query(PNT,a,b)==a)return true;
return false;
}
void solve(vector<int> v){
if(v.size()==1)return;
if(v.size()==2){
sort(v.begin(),v.end());
//cout<<v[0]<<" "<<v[1]<<endl;
Bridge(v[0],v[1]);
return;
}
random_shuffle(v.begin(),v.end());
int x=v[0];
int y=v[1];
//cout<<x<<" "<<y<<endl;
int answer[v.size()];
answer[0]=-1;
answer[1]=-1;
map<int,vector<int> >m;
rep(i,0,v.size()){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

meetings.cpp: In function 'void solve(std::vector<int>)':
meetings.cpp:6:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,a,b) for(int i=a;i<b;i++)
meetings.cpp:30:7:
   rep(i,0,v.size()){
       ~~~~~~~~~~~~               
meetings.cpp:30:3: note: in expansion of macro 'rep'
   rep(i,0,v.size()){
   ^~~
meetings.cpp:6:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,a,b) for(int i=a;i<b;i++)
meetings.cpp:34:7:
   rep(i,2,v.size()){
       ~~~~~~~~~~~~               
meetings.cpp:34:3: note: in expansion of macro 'rep'
   rep(i,2,v.size()){
   ^~~
meetings.cpp:6:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,a,b) for(int i=a;i<b;i++)
meetings.cpp:57:7:
   rep(i,0,Line.size()-1){
       ~~~~~~~~~~~~~~~~~          
meetings.cpp:57:3: note: in expansion of macro 'rep'
   rep(i,0,Line.size()-1){
   ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...