From b94642ddc69c1bddd1d5ae7f23c2e3bb95a6c9bc Mon Sep 17 00:00:00 2001 From: Baoshuo Ren Date: Sat, 4 Dec 2021 19:50:03 +0800 Subject: [PATCH] =?UTF-8?q?#118.=20=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE?= =?UTF-8?q?=E5=BC=8F=20[80pts]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://loj.ac/s/1316374 --- LibreOJ/118/118.cpp | 15 +++++++++++++++ LibreOJ/118/data/regular1.in | 3 +++ LibreOJ/118/data/regular1.out | 3 +++ LibreOJ/118/data/regular10.in | 3 +++ LibreOJ/118/data/regular10.out | 3 +++ LibreOJ/118/data/regular2.in | 3 +++ LibreOJ/118/data/regular2.out | 3 +++ LibreOJ/118/data/regular3.in | 3 +++ LibreOJ/118/data/regular3.out | 3 +++ LibreOJ/118/data/regular4.in | 3 +++ LibreOJ/118/data/regular4.out | 3 +++ LibreOJ/118/data/regular5.in | 3 +++ LibreOJ/118/data/regular5.out | 3 +++ LibreOJ/118/data/regular6.in | 3 +++ LibreOJ/118/data/regular6.out | 3 +++ LibreOJ/118/data/regular7.in | 3 +++ LibreOJ/118/data/regular7.out | 3 +++ LibreOJ/118/data/regular8.in | 3 +++ LibreOJ/118/data/regular8.out | 3 +++ LibreOJ/118/data/regular9.in | 3 +++ LibreOJ/118/data/regular9.out | 3 +++ LibreOJ/118/data/regular_hack.in | 3 +++ LibreOJ/118/data/regular_hack.out | 3 +++ 23 files changed, 81 insertions(+) create mode 100644 LibreOJ/118/118.cpp create mode 100644 LibreOJ/118/data/regular1.in create mode 100644 LibreOJ/118/data/regular1.out create mode 100644 LibreOJ/118/data/regular10.in create mode 100644 LibreOJ/118/data/regular10.out create mode 100644 LibreOJ/118/data/regular2.in create mode 100644 LibreOJ/118/data/regular2.out create mode 100644 LibreOJ/118/data/regular3.in create mode 100644 LibreOJ/118/data/regular3.out create mode 100644 LibreOJ/118/data/regular4.in create mode 100644 LibreOJ/118/data/regular4.out create mode 100644 LibreOJ/118/data/regular5.in create mode 100644 LibreOJ/118/data/regular5.out create mode 100644 LibreOJ/118/data/regular6.in create mode 100644 LibreOJ/118/data/regular6.out create mode 100644 LibreOJ/118/data/regular7.in create mode 100644 LibreOJ/118/data/regular7.out create mode 100644 LibreOJ/118/data/regular8.in create mode 100644 LibreOJ/118/data/regular8.out create mode 100644 LibreOJ/118/data/regular9.in create mode 100644 LibreOJ/118/data/regular9.out create mode 100644 LibreOJ/118/data/regular_hack.in create mode 100644 LibreOJ/118/data/regular_hack.out diff --git a/LibreOJ/118/118.cpp b/LibreOJ/118/118.cpp new file mode 100644 index 00000000..f5faa80f --- /dev/null +++ b/LibreOJ/118/118.cpp @@ -0,0 +1,15 @@ +#include + +using std::cin; +using std::cout; +using std::endl; + +std::string s, re; + +int main() { + std::ios::sync_with_stdio(false); + while (cin >> re >> s) { + cout << (std::regex_match(s, std::regex(re)) ? "Yes" : "No") << endl; + } + return 0; +} diff --git a/LibreOJ/118/data/regular1.in b/LibreOJ/118/data/regular1.in new file mode 100644 index 00000000..3e9c1563 --- /dev/null +++ b/LibreOJ/118/data/regular1.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8392256c862f83368d3ae5be7a53c915ecda110851e8050a3ca0872524ada84a +size 160 diff --git a/LibreOJ/118/data/regular1.out b/LibreOJ/118/data/regular1.out new file mode 100644 index 00000000..a51703f4 --- /dev/null +++ b/LibreOJ/118/data/regular1.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:824ea746c44949bb4122bfdf673e7ec3e45dcb813a04f57937f8b0d1645fdc69 +size 21 diff --git a/LibreOJ/118/data/regular10.in b/LibreOJ/118/data/regular10.in new file mode 100644 index 00000000..9181ae71 --- /dev/null +++ b/LibreOJ/118/data/regular10.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebae5a183e0853748fea60dccb2ba8fa9ed0147d3e740159bf650d02c5e687f0 +size 916 diff --git a/LibreOJ/118/data/regular10.out b/LibreOJ/118/data/regular10.out new file mode 100644 index 00000000..c2534b76 --- /dev/null +++ b/LibreOJ/118/data/regular10.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70f167cd6b7f861e0c2e1d76222993a66d65b5c522b27c2ba5c1fd50c249e75c +size 76 diff --git a/LibreOJ/118/data/regular2.in b/LibreOJ/118/data/regular2.in new file mode 100644 index 00000000..fe1e48cf --- /dev/null +++ b/LibreOJ/118/data/regular2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a09b682c5575d456e1934c8383f76cf5e1c7586d1b07cc22e45f4661a6977bcb +size 122 diff --git a/LibreOJ/118/data/regular2.out b/LibreOJ/118/data/regular2.out new file mode 100644 index 00000000..e68c7144 --- /dev/null +++ b/LibreOJ/118/data/regular2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e3911282b422e3865c19be45d3121a6a7b248181677c307c580ec1b50e70a2d +size 26 diff --git a/LibreOJ/118/data/regular3.in b/LibreOJ/118/data/regular3.in new file mode 100644 index 00000000..8e540657 --- /dev/null +++ b/LibreOJ/118/data/regular3.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e141694b3848706278100952752b613005a9f456f5cadd00b243ba5bb98ec67 +size 181 diff --git a/LibreOJ/118/data/regular3.out b/LibreOJ/118/data/regular3.out new file mode 100644 index 00000000..6fc46916 --- /dev/null +++ b/LibreOJ/118/data/regular3.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:921362df1d1f858ea8af0392e6c0792d998ba397e6ba9eed5c928cc2c4f228e8 +size 26 diff --git a/LibreOJ/118/data/regular4.in b/LibreOJ/118/data/regular4.in new file mode 100644 index 00000000..28b49c9c --- /dev/null +++ b/LibreOJ/118/data/regular4.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5adb54225bae29b7e38ffaad114068744f78318b0128d57a6a8a78ba86952442 +size 437 diff --git a/LibreOJ/118/data/regular4.out b/LibreOJ/118/data/regular4.out new file mode 100644 index 00000000..6489b479 --- /dev/null +++ b/LibreOJ/118/data/regular4.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e163ec5419452466e28749eea450aa3b67dccfb3be223d50d4f421857c5762c +size 19 diff --git a/LibreOJ/118/data/regular5.in b/LibreOJ/118/data/regular5.in new file mode 100644 index 00000000..8e6d10c4 --- /dev/null +++ b/LibreOJ/118/data/regular5.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2260859a79e18540dd221480013b9cdc2e5b15aa1c3f1b870ed4113c557a44a +size 167 diff --git a/LibreOJ/118/data/regular5.out b/LibreOJ/118/data/regular5.out new file mode 100644 index 00000000..e81b34c6 --- /dev/null +++ b/LibreOJ/118/data/regular5.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6778799ff113ca0918abb9132626d71d505b3fcabbda38866ba2ed274b3a860 +size 34 diff --git a/LibreOJ/118/data/regular6.in b/LibreOJ/118/data/regular6.in new file mode 100644 index 00000000..85680d4e --- /dev/null +++ b/LibreOJ/118/data/regular6.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cad1c875582b7df0fe669cae638a7b987d4d17d503fa166f2997c407822a7da +size 693 diff --git a/LibreOJ/118/data/regular6.out b/LibreOJ/118/data/regular6.out new file mode 100644 index 00000000..14d14848 --- /dev/null +++ b/LibreOJ/118/data/regular6.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a6a7841369db7a414da53fbe2df30f74d99341554a72158654faa40a2916894 +size 60 diff --git a/LibreOJ/118/data/regular7.in b/LibreOJ/118/data/regular7.in new file mode 100644 index 00000000..c0a49a64 --- /dev/null +++ b/LibreOJ/118/data/regular7.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80add5784dda24477586ceed355e6a85d879b60985a50849f646f81bf8e4ab6e +size 965 diff --git a/LibreOJ/118/data/regular7.out b/LibreOJ/118/data/regular7.out new file mode 100644 index 00000000..74c64d4b --- /dev/null +++ b/LibreOJ/118/data/regular7.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29b0d1b05993fdf87709dcd4609f2e079f83043ce41e51631a895951c72905cb +size 56 diff --git a/LibreOJ/118/data/regular8.in b/LibreOJ/118/data/regular8.in new file mode 100644 index 00000000..3ed4a646 --- /dev/null +++ b/LibreOJ/118/data/regular8.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e14ceaca60021ce1549148914c097f9a303b2790d85cd4e90cc506b3763ecbf +size 670 diff --git a/LibreOJ/118/data/regular8.out b/LibreOJ/118/data/regular8.out new file mode 100644 index 00000000..4464f729 --- /dev/null +++ b/LibreOJ/118/data/regular8.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e82cdfcbb9ae6fce573c692b7c7fd39d4cd37171dd8b23d9e3a1bb4b64c8080a +size 43 diff --git a/LibreOJ/118/data/regular9.in b/LibreOJ/118/data/regular9.in new file mode 100644 index 00000000..dc4158ab --- /dev/null +++ b/LibreOJ/118/data/regular9.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7aa573889ec456697713f94dc8c144bf7241bec3e69a678dbcb43ab4d5d9e0b8 +size 1244 diff --git a/LibreOJ/118/data/regular9.out b/LibreOJ/118/data/regular9.out new file mode 100644 index 00000000..454d58d5 --- /dev/null +++ b/LibreOJ/118/data/regular9.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:220c4c92c6221c0ed09a0095e4a5ac2c26305cceefa0ca209574a01b3e35cdbe +size 78 diff --git a/LibreOJ/118/data/regular_hack.in b/LibreOJ/118/data/regular_hack.in new file mode 100644 index 00000000..bb39a9b6 --- /dev/null +++ b/LibreOJ/118/data/regular_hack.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b94e49649e81bfa5778c3374e3d280d2ef016053dbe778ef01cdc402a79f50cc +size 109 diff --git a/LibreOJ/118/data/regular_hack.out b/LibreOJ/118/data/regular_hack.out new file mode 100644 index 00000000..eeec6523 --- /dev/null +++ b/LibreOJ/118/data/regular_hack.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31375587f8bedb1f33f6eca3d8cee94ab70845a6dd1a7c7eeb929f4aa7dc10ab +size 3