| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 291028 | Autoratch | "The Lyuboyn" code (IZhO19_lyuboyn) | C++14 | 731 ms | 5852 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int N = 1<< 18;
int n,k,t,s;
string ss;
bool used[N];
int main()
{
ios_base::sync_with_stdio(0); cin.tie(0);
cin >> n >> k >> t >> ss;
for(int i = 0;i < n;i++) if(ss[i]=='1') s+=(1 << i);
cout << (1 << n) << '\n' << ss << '\n';
used[s] = true;
for(int i = 1;i < (1 << n);i++)
{
for(int j = 0;j < n;j++) for(int k = j+1;k < n;k++) for(int l = k+1;l < n;l++)
{
int t = s^(1 << j)^(1 << k)^(1 << l);
if(!used[t]){ s = t; break; }
}
used[s] = true;
for(int j = 0;j < n;j++) cout << (bool)((1 << j)&s);
cout << '\n';
}
}
| # | 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... | ||||
