Submission #742494

#TimeUsernameProblemLanguageResultExecution timeMemory
742494penguin133The Collection Game (BOI21_swaps)C++17
12 / 100
41 ms424 KiB
#include <bits/stdc++.h> using namespace std; //#define int long long #include "swaps.h" #define pi pair<int, int> #define pii pair<int, pi> #define fi first #define se second #ifdef _WIN32 #define getchar_unlocked _getchar_nolock #endif mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); int cnt[505], vis[505], stuf[505][505], ans[505]; void dnc(int l, int r){ if(l >= r)return; int mid = (l + r) >> 1; dnc(l, mid); dnc(mid + 1, r); int in1 = l, in2 = mid + 1; for(int i = l; i <= mid; i++){ for(int j = 0; j < (r - mid); j++){ int x = mid + 1 + j; if(i + j <= mid)schedule(i + j, x); } auto ret = visit(); } } void solve(int N, int V) { vector <int> brr; for(int i=1;i<=N;i++)brr.push_back(i); dnc(1, N); answer(brr); }

Compilation message (stderr)

swaps.cpp: In function 'void dnc(int, int)':
swaps.cpp:23:6: warning: unused variable 'in1' [-Wunused-variable]
   23 |  int in1 = l, in2 = mid + 1;
      |      ^~~
swaps.cpp:23:15: warning: unused variable 'in2' [-Wunused-variable]
   23 |  int in1 = l, in2 = mid + 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...
#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...