Submission #287885

# Submission time Handle Problem Language Result Execution time Memory
287885 2020-09-01T06:01:33 Z dvdg6566 "The Lyuboyn" code (IZhO19_lyuboyn) C++14
0 / 100
74 ms 7916 KB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pi;
typedef vector<ll> vi;
typedef vector<pi> vpi;
#define pb emplace_back
#define mp make_pair
#define f first
#define s second
#define SZ(x) (int)x.size()
#define ALL(x) x.begin(),x.end()
#define lb lower_bound
const int MAXN=1001000;
const ll MOD=998244353;

vi V;
int N,K,T,S;

void tobin(int y){
	string x;
	while(y){
		x+=('0' + y%2);
		y/=2;
	}
	while(SZ(x) <N)x+='0';
	reverse(ALL(x));
	cout<<x<<'\n';
}


int main(){
	ios_base::sync_with_stdio(0);cin.tie(0);
	cin>>N>>K>>T>>S;
	assert(S==0);
	assert(K==1);
	V.pb(0);
	for(int i=0;i<N;++i){
		stack<int> tm;
		for(auto i:V)tm.push(i);
		while(SZ(tm)){
			V.pb(tm.top() | (1<<i));
			tm.pop();
		}
	}
	for(auto i:V){
		tobin(i);
	}
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 512 KB Execution killed with signal 11
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 512 KB Execution killed with signal 11
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 512 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 74 ms 7916 KB Expected integer, but "000000000000000000" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 512 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 512 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 74 ms 7916 KB Expected integer, but "000000000000000000" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 544 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -