Submission #745285

#TimeUsernameProblemLanguageResultExecution timeMemory
745285M_sawas__Arranging Shoes (IOI19_shoes)C++14
10 / 100
1 ms340 KiB
#include "shoes.h" #include <bits/stdc++.h> #define endl "\n" #define F first #define S second #define pb push_back #define yes void (cout << "YES" << endl) #define no void (cout << "NO" << endl) #define all(x) x.begin() , x.end() #define mm(dp , val) memset (dp , val , sizeof dp) #define mid (l+r)/2 typedef long long ll; using namespace std; const ll oo=1e18; const ll mod=1e9+7; const ll N=555555; ll t=1,n; vector<int> s; long long count_swaps(std::vector<int> s_) { n = s_.size(); s.resize(n); for (int i = 0; i < n; ++i) { s[i] = s_[i]; } if (s[0] < s[1]) { return 0; } return 1; }
#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...