# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
681597 | 2023-01-13T12:27:28 Z | Karuk | "The Lyuboyn" code (IZhO19_lyuboyn) | C++14 | 523 ms | 6368 KB |
#include<bits/stdc++.h> using namespace std; int main() { int n,k,t;cin>>n>>k>>t; int s;cin>>s;if(t!=1){cout<<-1;return 0;} vector<int>a; a.push_back(0); cout<<(1<<n)<<endl; for(int i=0;i<n;i++) { vector<int>b=a; reverse(b.begin(),b.end()); for(int j=0;j<b.size();j++)b[j]|=(1<<i); for(int j:b)a.push_back(j); } if(n==0)cout<<0; for(int i:a) { int k=i; for(int j=0;j<n;j++) { cout<<k%2; k/=2; } cout<<endl; } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | First number in answer is not x 1 0 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 304 KB | Fail, not exactly k bits are different: line = 0 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 14 ms | 468 KB | Found solution while it does not exist |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 523 ms | 6368 KB | Ok |
2 | Correct | 245 ms | 3284 KB | Ok |
3 | Correct | 2 ms | 212 KB | Ok |
4 | Correct | 1 ms | 300 KB | Ok |
5 | Correct | 1 ms | 452 KB | Ok |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 216 KB | Output -1 while solution exists |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output -1 while solution exists |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 523 ms | 6368 KB | Ok |
2 | Correct | 245 ms | 3284 KB | Ok |
3 | Correct | 2 ms | 212 KB | Ok |
4 | Correct | 1 ms | 300 KB | Ok |
5 | Correct | 1 ms | 452 KB | Ok |
6 | Incorrect | 1 ms | 216 KB | Output -1 while solution exists |
7 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 246 ms | 3268 KB | First number in answer is not x 92826 0 |
2 | Halted | 0 ms | 0 KB | - |