ログインしてください。
提出 #71361388
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
int main () {
ios_base::sync_with_stdio(0); cin.tie(0);
int x, y, z;
cin >> x >> y >> z;
if (x == y) {
for (int v: {x, z, z}) {
cout << v;
for (int i = 0; i < v; i++) cout << ' ' << 0;
cout << '\n';
}
return 0;
}
cout << y+x-1;
for (int i = 0; i < y-1; i++) cout << ' ' << 0;
for (int i = 0; i < x; i++) cout << ' ' << ((i+1)&1);
cout << '\n';
cout << z+x-1;
for (int i = 0; i < z; i++) cout << ' ' << 1;
for (int i = 0; i < x-1; i++) cout << ' ' << (i&1);
cout << '\n';
cout << y+z-1;
for (int i = 0; i < y-1; i++) cout << ' ' << 0;
for (int i = 0; i < z; i++) cout << ' ' << 1;
cout << '\n';
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Three Sequences |
| ユーザ | AndrewG |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 500 |
| コード長 | 737 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3632 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 500 / 500 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00-sample-001.txt |
| All | 00-sample-001.txt, 01-one-001.txt, 01-one-002.txt, 01-one-003.txt, 01-one-004.txt, 01-one-005.txt, 01-one-006.txt, 01-one-007.txt, 01-one-008.txt, 01-one-009.txt, 01-one-010.txt, 01-one-011.txt, 01-one-012.txt, 01-one-013.txt, 01-one-014.txt, 01-one-015.txt, 02-two-001.txt, 02-two-002.txt, 02-two-003.txt, 02-two-004.txt, 02-two-005.txt, 02-two-006.txt, 02-two-007.txt, 02-two-008.txt, 02-two-009.txt, 02-two-010.txt, 02-two-011.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00-sample-001.txt | AC | 1 ms | 3532 KiB |
| 01-one-001.txt | AC | 1 ms | 3540 KiB |
| 01-one-002.txt | AC | 1 ms | 3472 KiB |
| 01-one-003.txt | AC | 1 ms | 3528 KiB |
| 01-one-004.txt | AC | 1 ms | 3516 KiB |
| 01-one-005.txt | AC | 1 ms | 3604 KiB |
| 01-one-006.txt | AC | 1 ms | 3592 KiB |
| 01-one-007.txt | AC | 1 ms | 3484 KiB |
| 01-one-008.txt | AC | 1 ms | 3416 KiB |
| 01-one-009.txt | AC | 1 ms | 3604 KiB |
| 01-one-010.txt | AC | 1 ms | 3484 KiB |
| 01-one-011.txt | AC | 1 ms | 3524 KiB |
| 01-one-012.txt | AC | 1 ms | 3632 KiB |
| 01-one-013.txt | AC | 1 ms | 3536 KiB |
| 01-one-014.txt | AC | 1 ms | 3528 KiB |
| 01-one-015.txt | AC | 1 ms | 3532 KiB |
| 02-two-001.txt | AC | 1 ms | 3572 KiB |
| 02-two-002.txt | AC | 1 ms | 3432 KiB |
| 02-two-003.txt | AC | 1 ms | 3532 KiB |
| 02-two-004.txt | AC | 1 ms | 3524 KiB |
| 02-two-005.txt | AC | 1 ms | 3528 KiB |
| 02-two-006.txt | AC | 1 ms | 3572 KiB |
| 02-two-007.txt | AC | 1 ms | 3532 KiB |
| 02-two-008.txt | AC | 1 ms | 3532 KiB |
| 02-two-009.txt | AC | 1 ms | 3536 KiB |
| 02-two-010.txt | AC | 1 ms | 3484 KiB |
| 02-two-011.txt | AC | 1 ms | 3540 KiB |