Submission #884447

#TimeUsernameProblemLanguageResultExecution timeMemory
884447tamir1Arranging Shoes (IOI19_shoes)C++14
15 / 100
20 ms3164 KiB
#include "shoes.h" using namespace std; long long count_swaps(vector<int> s) { int i,j,n=s.size()/2; long long sum=0; for(i=0;i<n;i++) sum+=i; return sum; }

Compilation message (stderr)

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