제출 #51284

#제출 시각아이디문제언어결과실행 시간메모리
51284Mamnoon_SiamRoller Coaster Railroad (IOI16_railroad)C++17
0 / 100
73 ms7572 KiB
#include "railroad.h" long long plan_roller_coaster(std::vector<int> s, std::vector<int> t) { int c = 0; for(int i = 0; i < t.size(); i++) { if(t[i] == 0) c++; } if(c > 1) return 0; return 1; }

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

railroad.cpp: In function 'long long int plan_roller_coaster(std::vector<int>, std::vector<int>)':
railroad.cpp:5:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < t.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...