Submission #1058643

#TimeUsernameProblemLanguageResultExecution timeMemory
1058643user736482Make them Meet (EGOI24_makethemmeet)C++17
24 / 100
2 ms604 KiB
#include<bits/stdc++.h> using namespace std; long long a,b,c,t,n,x,y,m; vector<int>v1,v2; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cin>>n; for(int i=0;i<n;i++){ v1.push_back(i/2); v2.push_back((i+1)/2); } cout<<600<<"\n"; for(int i=0;i<600;i++){ if(i&1) for(int j=0;j<v1.size();j++) cout<<v1[j]<<" "; else for(int j=0;j<v2.size();j++) cout<<v2[j]<<" "; cout<<"\n"; } return 0; }

Compilation message (stderr)

Main.cpp: In function 'int main()':
Main.cpp:17:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |             for(int j=0;j<v1.size();j++)
      |                         ~^~~~~~~~~~
Main.cpp:20:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |             for(int j=0;j<v2.size();j++)
      |                         ~^~~~~~~~~~
#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...