Submission #51284

#TimeUsernameProblemLanguageResultExecution timeMemory
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; }

Compilation message (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...