Submission #525992

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

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:8:5: warning: unused variable 'n' [-Wunused-variable]
    8 |  ll n = a.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...