Submission #199764

# Submission time Handle Problem Language Result Execution time Memory
199764 2020-02-03T08:27:58 Z SamAnd Popcount (COCI19_popcount) C++17
0 / 110
5 ms 376 KB
#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
1 Incorrect 5 ms 256 KB Wrong output format.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 256 KB Wrong output format.
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 256 KB Wrong output format.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 376 KB Wrong output format.
2 Halted 0 ms 0 KB -