| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1314204 | andrei_n | Binary Subsequences (info1cup17_binary) | C++20 | 35 ms | 4676 KiB |
#include <bits/stdc++.h>
using namespace std;
void testcase() {
int k; cin>>k;
++k;
int best = 0;
for(int i=1; i*i<=k; ++i) {
if(k % i == 0) {
best = i;
}
}
cout<<"-1\n";
for(int i=1; i<best; ++i) {
cout<<"0 ";
}
for(int i=1; i<k/best; ++i) {
cout<<"1 ";
}
cout<<'\n';
}
int main() {
ios::sync_with_stdio(false); cin.tie(0);
int Z; cin>>Z;
while(Z--) {
testcase();
}
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
