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>
using namespace std;
int n, k;
void solv1()
{
for (int i = 1; i <= k; ++i)
{
cout << "A=((A-(A&";
cout << "(1<<" << i << ")))";
cout << "+((A&";
cout << "(1<<" << i << "))";
cout << ">>" << i << "))\n";
}
}
int main()
{
cin >> n >> k;
if (2 <= n && n <= 100 && k == n - 1)
solv1();
return 0;
}
# | 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... |