Submission #431423

#TimeUsernameProblemLanguageResultExecution timeMemory
431423LouayFarahArranging Shoes (IOI19_shoes)C++14
10 / 100
1 ms292 KiB
#include "bits/stdc++.h" #include "shoes.h" using namespace std; #define ll long long ll count_swaps(vector<int> s) { int n = (int)s.size()/2; if(s[0]<s[1]) return 0; return 1; }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:9:9: warning: unused variable 'n' [-Wunused-variable]
    9 |     int n = (int)s.size()/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...
#Verdict Execution timeMemoryGrader output
Fetching results...