# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
831751 | Chal1shkan | Sob (COCI19_sob) | C++14 | 61 ms | 7164 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
# include <bits/stdc++.h>
# define pb push_back
# define ff first
# define ss second
# define nl'\n'
# define pii pair <int, int>
# define pll pair <ll, ll>
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const ll maxn = 2e5 + 25;
const ll maxl = 18 + 0;
const ll inf = 2e9 + 0;
const ll mod = 998244353;
using namespace std;
void ma1n ()
{
int n, m;
cin >> n >> m;
int i = n - 1, j = m;
while (i >= 0)
{
int prev1 = i, prev2 = j;
while (j < n + m)
{
if ((i & j) == i)
{
break;
}
++j;
}
int copy = j, copy1 = i;
while (copy >= prev2)
{
cout << i << ' ' << copy << nl;
--i, --copy;
}
j++;
}
}
int main ()
{
ios::sync_with_stdio(false);
cin.tie(0);
int zxc = 1;
// cin >> zxc;
while (zxc--)
{
ma1n ();
}
return 0;
}
Compilation message (stderr)
# | 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... |