Submission #1110767

#TimeUsernameProblemLanguageResultExecution timeMemory
1110767elotelo966Arranging Shoes (IOI19_shoes)C++17
10 / 100
1 ms336 KiB
#include "shoes.h" #include <bits/stdc++.h> using namespace std; //#define int long long #define OYY LLONG_MAX #define mod 1000000007 #define faster ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define FOR for(int i=1;i<=n;i++) #define mid (start+end)/2 #define lim 300005 #define fi first #define se second long long count_swaps(std::vector<int> s) { int n=s.size(); if(s[0]<0)return 0; return 1; } /* int main(){ faster int n;cin>>n; vector<int> v; FOR{ int x,y; cin>>x>>y; v.push_back(x); v.push_back(y); } cout<<count_swaps(v)<<'\n'; return 0; } */

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:16:6: warning: unused variable 'n' [-Wunused-variable]
   16 |  int n=s.size();
      |      ^
#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...