Submission #971268

#TimeUsernameProblemLanguageResultExecution timeMemory
971268groshiArt Collections (BOI22_art)C++17
0 / 100
0 ms348 KiB
#include<bits/stdc++.h> #include "art.h" using namespace std; #define int long long void solve(int32_t n) { vector<pair<int,int> > Q; for(int i=1;i<=n;i++) { vector<int32_t> pom; for(int j=i;j<=n;j++) pom.push_back(j); for(int j=1;j<i;j++) pom.push_back(j); Q.push_back({publish(pom),i}); } sort(Q.begin(),Q.end()); vector<int32_t> wynik; for(int i=0;i<Q.size();i++) wynik.push_back(Q[i].second); answer(wynik); }

Compilation message (stderr)

art.cpp: In function 'void solve(int32_t)':
art.cpp:19:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   19 |     for(int i=0;i<Q.size();i++)
      |                 ~^~~~~~~~~
interface.cpp: In function 'int publish(std::vector<int>)':
interface.cpp:20:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   20 |     if(v.size() != N) {
      |        ~~~~~~~~~^~~~
interface.cpp: In function 'void answer(std::vector<int>)':
interface.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   36 |     if(v.size() != N) {
      |        ~~~~~~~~~^~~~
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...