Submission #957871

#TimeUsernameProblemLanguageResultExecution timeMemory
957871Darren0724"The Lyuboyn" code (IZhO19_lyuboyn)C++17
14 / 100
14 ms5212 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...