제출 #1084130

#제출 시각아이디문제언어결과실행 시간메모리
1084130AliHasanliSplit the Attractions (IOI19_split)C++17
0 / 100
24 ms3412 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-2) { 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; }

컴파일 시 표준 에러 (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-2)
      |     ~~~~~~~~^~~~
#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...