Submission #957871

# Submission time Handle Problem Language Result Execution time Memory
957871 2024-04-04T12:36:30 Z Darren0724 "The Lyuboyn" code (IZhO19_lyuboyn) C++17
14 / 100
14 ms 5212 KB
#include <bits/stdc++.h>
using namespace std;
#define LCBorz ios_base::sync_with_stdio(false); cin.tie(0);
#define int long long
#define all(x) x.begin(), x.end()
#define endl '\n'
const int N=200005;
const int INF=1e18;

int32_t main() {
    LCBorz;
    int n,k,t;cin>>n>>k>>t;
    string s;cin>>s;
    if(k%2==0){
        cout<<-1<<endl;
        return 0;
    }
    if(k==1){
        cout<<(1<<n)<<endl;
        cout<<s<<endl;
        for(int i=1;i<(1<<n);i++){
            int j=__lg(i&(-i));
            s[j]^=1;
            cout<<s<<endl;
        }
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Ok
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 600 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Ok
2 Correct 0 ms 348 KB Ok
3 Correct 0 ms 348 KB Ok
4 Correct 0 ms 348 KB Ok
5 Correct 0 ms 408 KB Ok
6 Correct 1 ms 348 KB Ok
7 Correct 1 ms 348 KB Ok
8 Correct 0 ms 348 KB Ok
# Verdict Execution time Memory Grader output
1 Correct 14 ms 5212 KB Ok
2 Correct 7 ms 2652 KB Ok
3 Correct 0 ms 348 KB Ok
4 Correct 0 ms 456 KB Ok
5 Correct 0 ms 348 KB Ok
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 14 ms 5212 KB Ok
2 Correct 7 ms 2652 KB Ok
3 Correct 0 ms 348 KB Ok
4 Correct 0 ms 456 KB Ok
5 Correct 0 ms 348 KB Ok
6 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -