Submission #50857

#TimeUsernameProblemLanguageResultExecution timeMemory
50857Mamnoon_SiamRoller Coaster Railroad (IOI16_railroad)C++17
0 / 100
88 ms7548 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] == 1) 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...