# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
218779 | Lawliet | "The Lyuboyn" code (IZhO19_lyuboyn) | C++14 | 609 ms | 30236 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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++)
{
if( i%2 == 1 )
{
for(int j = 0 ; j < n ; j++)
ans[i][j] = '0' + '1' - ans[i][j];
}
cout << ans[i] << endl;
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |