#include <bits/stdc++.h>
using namespace std;
const int nx=1e6+5;
int n, m, x, y, lst, tmp;
int main()
{
cin.tie(NULL)->sync_with_stdio(false);
cin>>n>>m;
x=n-1, y=m;
while (x>=0)
{
lst=y;
while ((x&y)!=x) y++;
tmp=y;
while (tmp>=lst) cout<<x--<<' '<<tmp--<<'\n';
y++;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |