Submission #1084129

#TimeUsernameProblemLanguageResultExecution timeMemory
1084129AliHasanliSplit the Attractions (IOI19_split)C++17
0 / 100
24 ms3288 KiB
#include "split.h" #include<bits/stdc++.h> using namespace std; vector<int> find_split(int n, int a, int b, int c, vector<int> p, vector<int> q) { vector<int> res; if(p.size()<n-1) { for(int i=0;i<n;i++)res.push_back(0); return res; } for(int i=1;i<=a;i++)res.push_back(1); for(int i=1;i<=b;i++)res.push_back(2); for(int i=1;i<=c;i++)res.push_back(3); return res; }

Compilation message (stderr)

split.cpp: In function 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:7:13: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
    7 |  if(p.size()<n-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...
#Verdict Execution timeMemoryGrader output
Fetching results...