Submission #393059

#TimeUsernameProblemLanguageResultExecution timeMemory
393059Dipto_DebdipArranging Shoes (IOI19_shoes)C++14
10 / 100
1 ms296 KiB
#pragma GCC target ("avx2") #pragma GCC optimization ("O3") #pragma GCC optimization ("unroll-loops") #include <bits/stdc++.h> using namespace std; int count_swaps(vector<int>v) { int n, a, b; a=v[0], b=v[0]; if(a > 0) return 1; return 0; }

Compilation message (stderr)

shoes.cpp:3: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    3 | #pragma GCC optimization ("O3")
      | 
shoes.cpp:5: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    5 | #pragma GCC optimization ("unroll-loops")
      | 
shoes.cpp: In function 'int count_swaps(std::vector<int>)':
shoes.cpp:13:5: warning: unused variable 'n' [-Wunused-variable]
   13 | int n, a, b;
      |     ^
shoes.cpp:13:11: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   13 | int n, a, b;
      |           ^
#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...