# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
218774 | 2020-04-02T17:39:12 Z | Lawliet | "The Lyuboyn" code (IZhO19_lyuboyn) | C++14 | 585 ms | 30128 KB |
#include <bits/stdc++.h> using namespace std; int n, k, t; int main() { string s; cin >> n >> k >> t >> s; vector< string > ans; ans.push_back( "0" ); ans.push_back( "1" ); for(int i = 2 ; i <= n ; i++) { vector< string > aux = ans; for(int j = 0 ; j < ans.size() ; j++) ans[j].push_back( '0' ); for(int j = 0 ; j < ans.size() ; j++) aux[j].push_back( '1' ); for(int j = aux.size() - 1 ; j >= 0 ; j--) ans.push_back( aux[j] ); } cout << ans.size() << endl; for(int i = 0 ; i < ans.size() ; i++) cout << ans[i] << endl; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 256 KB | First number in answer is not x 1 0 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 256 KB | Fail, not exactly k bits are different: line = 0 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 25 ms | 940 KB | Found solution while it does not exist |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 578 ms | 30128 KB | Ok |
2 | Correct | 291 ms | 15036 KB | Ok |
3 | Correct | 6 ms | 384 KB | Ok |
4 | Correct | 5 ms | 256 KB | Ok |
5 | Correct | 5 ms | 256 KB | Ok |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 256 KB | Fail, not exactly k bits are different: line = 0 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 585 ms | 29992 KB | First number in answer is not x 44202 0 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 578 ms | 30128 KB | Ok |
2 | Correct | 291 ms | 15036 KB | Ok |
3 | Correct | 6 ms | 384 KB | Ok |
4 | Correct | 5 ms | 256 KB | Ok |
5 | Correct | 5 ms | 256 KB | Ok |
6 | Incorrect | 5 ms | 256 KB | Fail, not exactly k bits are different: line = 0 |
7 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 285 ms | 15040 KB | First number in answer is not x 92826 0 |
2 | Halted | 0 ms | 0 KB | - |