diff --git a/S2OJ/1536/1536.cpp b/S2OJ/1536/1536.cpp new file mode 100644 index 00000000..91077692 --- /dev/null +++ b/S2OJ/1536/1536.cpp @@ -0,0 +1,42 @@ +#include +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +const int N = 20005; + +int n, ans; +std::string s, t; + +int main() { + std::ios::sync_with_stdio(false); + cin.tie(nullptr); + + cin >> s >> n; + + int s_len = s.size(); + + for (int i = 1; i <= n; i++) { + cin >> t; + + int t_len = t.size(); + + if (s_len == t_len) { + bool flag = true; + + for (int i = 0; i < t_len; i++) { + if (s[i] != '#') { + flag &= s[i] == t[i]; + } + } + + if (flag) ans++; + } + } + + cout << ans << endl; + + return 0; +} diff --git a/S2OJ/1536/data/matching1.in b/S2OJ/1536/data/matching1.in new file mode 100644 index 00000000..c2a18103 --- /dev/null +++ b/S2OJ/1536/data/matching1.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f26ea4c48b88d295161d6c411282744803f8143717dd694ed20d52e8a98019bb +size 296 diff --git a/S2OJ/1536/data/matching1.out b/S2OJ/1536/data/matching1.out new file mode 100644 index 00000000..38118f32 --- /dev/null +++ b/S2OJ/1536/data/matching1.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3 +size 2 diff --git a/S2OJ/1536/data/matching10.in b/S2OJ/1536/data/matching10.in new file mode 100644 index 00000000..6cdcd9cd --- /dev/null +++ b/S2OJ/1536/data/matching10.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c45208cdcf9c7017f7871b6e2fb379fd22692221d21b9161ea5ef4d029ee630 +size 1596891 diff --git a/S2OJ/1536/data/matching10.out b/S2OJ/1536/data/matching10.out new file mode 100644 index 00000000..b48b1743 --- /dev/null +++ b/S2OJ/1536/data/matching10.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06bd41aff740cf0e783f9bb292f1f638923d987cb2c34b21239a160026ef465d +size 6 diff --git a/S2OJ/1536/data/matching2.in b/S2OJ/1536/data/matching2.in new file mode 100644 index 00000000..1d4bc88b --- /dev/null +++ b/S2OJ/1536/data/matching2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08a78d1d6817ce25d571b46554d2e1d1ae41aa43a05b2e050fbe6896b1d41056 +size 265 diff --git a/S2OJ/1536/data/matching2.out b/S2OJ/1536/data/matching2.out new file mode 100644 index 00000000..1afab5f7 --- /dev/null +++ b/S2OJ/1536/data/matching2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 +size 2 diff --git a/S2OJ/1536/data/matching3.in b/S2OJ/1536/data/matching3.in new file mode 100644 index 00000000..d7e7e3e8 --- /dev/null +++ b/S2OJ/1536/data/matching3.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a31cd9075cfe4e1c646ccae6d30cbc4f215ea7db7588e518563f84c4890bb4c8 +size 1847 diff --git a/S2OJ/1536/data/matching3.out b/S2OJ/1536/data/matching3.out new file mode 100644 index 00000000..cb90f684 --- /dev/null +++ b/S2OJ/1536/data/matching3.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06e9d52c1720fca412803e3b07c4b228ff113e303f4c7ab94665319d832bbfb7 +size 2 diff --git a/S2OJ/1536/data/matching4.in b/S2OJ/1536/data/matching4.in new file mode 100644 index 00000000..f37325ae --- /dev/null +++ b/S2OJ/1536/data/matching4.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b3f5f4f655396f1099647b804530649efab258ca4ba36babedcfcabeecf42c0 +size 1808 diff --git a/S2OJ/1536/data/matching4.out b/S2OJ/1536/data/matching4.out new file mode 100644 index 00000000..c7967cd5 --- /dev/null +++ b/S2OJ/1536/data/matching4.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25d4f2a86deb5e2574bb3210b67bb24fcc4afb19f93a7b65a057daa874a9d18e +size 3 diff --git a/S2OJ/1536/data/matching5.in b/S2OJ/1536/data/matching5.in new file mode 100644 index 00000000..7a629714 --- /dev/null +++ b/S2OJ/1536/data/matching5.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a254060e5fbe41e1d65613a50dc8549406fc346858b289f38d687f941e304609 +size 1907228 diff --git a/S2OJ/1536/data/matching5.out b/S2OJ/1536/data/matching5.out new file mode 100644 index 00000000..4f1eac0d --- /dev/null +++ b/S2OJ/1536/data/matching5.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b141fffb34e0acd669d00d8d967239206b67225b7f3889da4c4d385caa8334fc +size 6 diff --git a/S2OJ/1536/data/matching6.in b/S2OJ/1536/data/matching6.in new file mode 100644 index 00000000..ac0d634f --- /dev/null +++ b/S2OJ/1536/data/matching6.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:153fbd4ef218060faca6732e2d24d2387754130abb69156495755c8de3faf24a +size 1683272 diff --git a/S2OJ/1536/data/matching6.out b/S2OJ/1536/data/matching6.out new file mode 100644 index 00000000..82ff92b5 --- /dev/null +++ b/S2OJ/1536/data/matching6.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab1f4641dfc183d4db7ad31cfc2299be1220af4cd2c43f2b4478cd4a2c51c1ed +size 6 diff --git a/S2OJ/1536/data/matching7.in b/S2OJ/1536/data/matching7.in new file mode 100644 index 00000000..1695f1ba --- /dev/null +++ b/S2OJ/1536/data/matching7.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5d468125281ecb966acc8b3d1d0dcdaa955b8055e3b78a474d63e33552531b1 +size 1901382 diff --git a/S2OJ/1536/data/matching7.out b/S2OJ/1536/data/matching7.out new file mode 100644 index 00000000..5ca2db92 --- /dev/null +++ b/S2OJ/1536/data/matching7.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d45bf3ff4421d383c6e429499c8ee5b0892f79e3ca0b005bd947ad1a34832542 +size 6 diff --git a/S2OJ/1536/data/matching8.in b/S2OJ/1536/data/matching8.in new file mode 100644 index 00000000..4b43380f --- /dev/null +++ b/S2OJ/1536/data/matching8.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa597cbdb23293db0f7ecaaa98725a09a02221817bc1e7a8ab97c0f3af150f62 +size 1818309 diff --git a/S2OJ/1536/data/matching8.out b/S2OJ/1536/data/matching8.out new file mode 100644 index 00000000..cfc525d6 --- /dev/null +++ b/S2OJ/1536/data/matching8.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac5930f1d5c27386de87cfb249c0f1b93bee689bcb9a5fc4d7c7c1b5d9b2060c +size 6 diff --git a/S2OJ/1536/data/matching9.in b/S2OJ/1536/data/matching9.in new file mode 100644 index 00000000..feb8eeed --- /dev/null +++ b/S2OJ/1536/data/matching9.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7123b6a24fd06bff7ba7048048a4ab9bd747bbffb847260f064d0148f34ddb40 +size 1828238 diff --git a/S2OJ/1536/data/matching9.out b/S2OJ/1536/data/matching9.out new file mode 100644 index 00000000..c9975485 --- /dev/null +++ b/S2OJ/1536/data/matching9.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39eb5c0c89bf1024c86453d2df3f31f38b23e5402da2d009994f3de7912c85ac +size 6 diff --git a/S2OJ/1536/data/problem.conf b/S2OJ/1536/data/problem.conf new file mode 100644 index 00000000..4db8a4f3 --- /dev/null +++ b/S2OJ/1536/data/problem.conf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea6f425706f539d60225dae8fa752bc5046b3adc265ae6d2f775e79cf5928956 +size 185