diff --git a/problem/P4327/P4327.cpp b/problem/P4327/P4327.cpp new file mode 100644 index 00000000..2de43d34 --- /dev/null +++ b/problem/P4327/P4327.cpp @@ -0,0 +1,36 @@ +#include + +using namespace std; + +int main() { + string ans[5] = {".", ".", "#", ".", "."}; + string s; + cin >> s; + for (int i = 0; i < s.size(); i++) { + if ((i + 1) % 3 == 0) { + ans[0] += ".*.."; + ans[1] += "*.*."; + ans[2] += (string) "." + s[i] + ".*"; + ans[3] += "*.*."; + ans[4] += ".*.."; + } + else { + ans[0] += ".#.."; + ans[1] += "#.#."; + if ((i + 1) % 3 == 2 && i + 1 != s.size()) { + ans[2] += (string) "." + s[i] + ".*"; + } + else { + ans[2] += (string) "." + s[i] + ".#"; + } + ans[3] += "#.#."; + ans[4] += ".#.."; + } + } + cout << ans[0] << endl + << ans[1] << endl + << ans[2] << endl + << ans[3] << endl + << ans[4] << endl; + return 0; +} diff --git a/problem/P4327/data/P4327_2.in b/problem/P4327/data/P4327_2.in new file mode 100644 index 00000000..98004e7c --- /dev/null +++ b/problem/P4327/data/P4327_2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54df93a86b808a0ae9b57630bb96e009e7cce5cb9b1dee2447a25ae40090f99c +size 3 diff --git a/problem/P4327/data/P4327_2.out b/problem/P4327/data/P4327_2.out new file mode 100644 index 00000000..0a700d14 --- /dev/null +++ b/problem/P4327/data/P4327_2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f9605a72b4dda7ff70dc4be72dc3db99e9b931bc485c3f693b12e71fc7c8d00 +size 50