Submission #235615

#TimeUsernameProblemLanguageResultExecution timeMemory
235615dooweySob (COCI19_sob)C++14
0 / 110
5 ms512 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; #define fi first #define se second #define mp make_pair #define fastIO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); const int N = 510; bool use[N]; int main(){ fastIO; int n, m; cin >> n >> m; for(int i = n - 1; i >= 0 ; i -- ){ for(int j = n - 1 ; j >= 0; j -- ){ if(use[j]) continue; if((i & (m + j))==i){ use[j]=true; cout << i << " " << m + j << "\n"; break; } } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...