Submission #957869

#TimeUsernameProblemLanguageResultExecution timeMemory
957869Darren0724"The Lyuboyn" code (IZhO19_lyuboyn)C++17
3 / 100
12 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){ 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...