제출 #954955

#제출 시각아이디문제언어결과실행 시간메모리
954955irmuun기지국 (IOI20_stations)C++17
8 / 100
602 ms940 KiB
#include<bits/stdc++.h> //#include "stations.h" using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() vector<int>label(int n,int k,vector<int>u,vector<int>v){ vector<int>l(n); iota(all(l),0); return l; } int find_next_station(int s,int t,vector<int>c){ if(t<s) return c[0]; for(int i=1;i<c.size();i++){ int p=c[i],T=t; while(T>p){ T=(T-1)/2; } if(T==p){ return c[i]; } } return c[0]; }

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

stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:21:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |     for(int i=1;i<c.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...
#Verdict Execution timeMemoryGrader output
Fetching results...