結果
| 問題 | No.3741 Used to be Polyominal Constructive |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-08-07 22:35:56 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 10,000 ms |
| + 689µs | |
| コード長 | 1,144 bytes |
| 記録 | |
| コンパイル時間 | 2,077 ms |
| コンパイル使用メモリ | 335,820 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-19 12:38:24 |
| 合計ジャッジ時間 | 5,338 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
constexpr int n = 666;
constexpr int m = (n - 3) / 4;
constexpr int side = 4 * m + 3;
vector<string> base(side, string(side, '.'));
const auto add_plus = [&](int x, int y) {
const int row = 2 * x + 1;
const int column = 2 * y + 1;
base[row][column] = '#';
base[row - 1][column] = '#';
base[row + 1][column] = '#';
base[row][column - 1] = '#';
base[row][column + 1] = '#';
};
for (int x = 0; x <= 2 * m; ++x) {
if (x % 2 == 0) {
for (int y = m; y <= 2 * m; ++y) add_plus(x, y);
} else {
for (int y = 0; y <= m; ++y) add_plus(x, y);
}
}
vector<string> changed = base;
changed[2][1] = '.';
cout << n << '\n';
const string padding(n - side, '.');
for (const auto* piece : {&base, &base, &changed}) {
for (const string& row : *piece) cout << row << padding << '\n';
for (int row = side; row < n; ++row) cout << string(n, '.') << '\n';
}
return 0;
}