diff --git a/S2OJ/1546/1546.cpp b/S2OJ/1546/1546.cpp new file mode 100644 index 00000000..b55a19bd --- /dev/null +++ b/S2OJ/1546/1546.cpp @@ -0,0 +1,24 @@ +#include +#include +#include +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +int main() { + std::ios::sync_with_stdio(false); + cin.tie(nullptr); + + std::string a, b; + std::unordered_map map; + + cin >> a >> b; + + for (char c : b) map[c]++; + + cout << (a.size() + 1) * (b.size() + 1) - std::accumulate(a.begin(), a.end(), 0ll, [&](long long lhs, char rhs) -> long long { return lhs + map[rhs]; }) << endl; + + return 0; +} diff --git a/S2OJ/1546/data/data1.in b/S2OJ/1546/data/data1.in new file mode 100644 index 00000000..c66910bd --- /dev/null +++ b/S2OJ/1546/data/data1.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b007fe5807791e2586a35e6faca773e59d6c6a5ed65be26ccf1492f8bd01d44 +size 202 diff --git a/S2OJ/1546/data/data1.out b/S2OJ/1546/data/data1.out new file mode 100644 index 00000000..4e8a73f0 --- /dev/null +++ b/S2OJ/1546/data/data1.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1cdb8e1bf7849ac0b13fa3985a9a0de6ffa68ecec355fe7d6b01d8d3e9122c1 +size 5 diff --git a/S2OJ/1546/data/data10.in b/S2OJ/1546/data/data10.in new file mode 100644 index 00000000..aabf69de --- /dev/null +++ b/S2OJ/1546/data/data10.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd1d193b624b2918e5ce01bea7917af91bd86d817cccb0444631b9763e52d2d8 +size 1346509 diff --git a/S2OJ/1546/data/data10.out b/S2OJ/1546/data/data10.out new file mode 100644 index 00000000..4ecca19d --- /dev/null +++ b/S2OJ/1546/data/data10.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae4d40a5ed21d46bc926fa292292e9b5a4591e6039759b61a530a993b5e0f87c +size 13 diff --git a/S2OJ/1546/data/data11.in b/S2OJ/1546/data/data11.in new file mode 100644 index 00000000..82d0c1b6 --- /dev/null +++ b/S2OJ/1546/data/data11.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a6ab4800e1d7fd9fd582904e56ce166446cb0812caeb4c343095648d1c13870 +size 2000002 diff --git a/S2OJ/1546/data/data11.out b/S2OJ/1546/data/data11.out new file mode 100644 index 00000000..0dabaf16 --- /dev/null +++ b/S2OJ/1546/data/data11.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ece4a8c967aeab75bee27a12502a9f764cc5af97da4bf322ae0f543590df776c +size 13 diff --git a/S2OJ/1546/data/data12.in b/S2OJ/1546/data/data12.in new file mode 100644 index 00000000..1326caeb --- /dev/null +++ b/S2OJ/1546/data/data12.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8f6a5dada5b720302bb0cddf85f56a2032b19dc6edfa911628d03302b446cb8 +size 2000002 diff --git a/S2OJ/1546/data/data12.out b/S2OJ/1546/data/data12.out new file mode 100644 index 00000000..224acf98 --- /dev/null +++ b/S2OJ/1546/data/data12.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2ef6ab604b087eb8661fdf1dad1270bdd58ea080dc496dfd0a314e060d16d9c +size 13 diff --git a/S2OJ/1546/data/data13.in b/S2OJ/1546/data/data13.in new file mode 100644 index 00000000..7d126955 --- /dev/null +++ b/S2OJ/1546/data/data13.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc78944293bb337fe9b3c84cec2f8456ce86fbf0c72554bb04e56c673fd716ed +size 2000002 diff --git a/S2OJ/1546/data/data13.out b/S2OJ/1546/data/data13.out new file mode 100644 index 00000000..effe41ad --- /dev/null +++ b/S2OJ/1546/data/data13.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3677d048617bb09d21f4dcb9402a284fa486d1f54a2dae033e9a0fd9e2888e85 +size 13 diff --git a/S2OJ/1546/data/data14.in b/S2OJ/1546/data/data14.in new file mode 100644 index 00000000..29fabc1d --- /dev/null +++ b/S2OJ/1546/data/data14.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c9cbef55f92ac22a3e6411d0f8e93b38e001b3ab758c767eb2527304fc1be9f +size 2000002 diff --git a/S2OJ/1546/data/data14.out b/S2OJ/1546/data/data14.out new file mode 100644 index 00000000..ca7b0895 --- /dev/null +++ b/S2OJ/1546/data/data14.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33dabe8b9eb189b47e343036dc23748a76dd3c30cbc41c03913a90fcb6b67808 +size 13 diff --git a/S2OJ/1546/data/data15.in b/S2OJ/1546/data/data15.in new file mode 100644 index 00000000..033c761e --- /dev/null +++ b/S2OJ/1546/data/data15.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc07a86064cb33cd251456437a6de00eacda83366ded208c895c648ed4439853 +size 2000002 diff --git a/S2OJ/1546/data/data15.out b/S2OJ/1546/data/data15.out new file mode 100644 index 00000000..f05226a3 --- /dev/null +++ b/S2OJ/1546/data/data15.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e55a6df8e41b468e9975b240360a3d93a33c53bb4cc05e3ff6a31879ea4060ee +size 13 diff --git a/S2OJ/1546/data/data16.in b/S2OJ/1546/data/data16.in new file mode 100644 index 00000000..133a9d3f --- /dev/null +++ b/S2OJ/1546/data/data16.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:575fb1a3e5989abb436ec0244661156e3fa8982d2f0e925de9c91c68518d2e87 +size 2000002 diff --git a/S2OJ/1546/data/data16.out b/S2OJ/1546/data/data16.out new file mode 100644 index 00000000..d8d166d1 --- /dev/null +++ b/S2OJ/1546/data/data16.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f5a20fed9479cff6a594ed6f67763c7125da3204b93d633f0ea78a82eddb53c +size 13 diff --git a/S2OJ/1546/data/data17.in b/S2OJ/1546/data/data17.in new file mode 100644 index 00000000..c4c4221e --- /dev/null +++ b/S2OJ/1546/data/data17.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ded1465ed7602b6373bfa32be5be87c80a5ec07c5ae0ba1f68cb025445ef27fc +size 2000002 diff --git a/S2OJ/1546/data/data17.out b/S2OJ/1546/data/data17.out new file mode 100644 index 00000000..248e055a --- /dev/null +++ b/S2OJ/1546/data/data17.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87bb41e2cfa214b1127a170bec001dc24e9ca1ef4de9ce489379578d05fbe55b +size 13 diff --git a/S2OJ/1546/data/data18.in b/S2OJ/1546/data/data18.in new file mode 100644 index 00000000..0b0f18cc --- /dev/null +++ b/S2OJ/1546/data/data18.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87858ce53b1aa57a189094d03aa3b29b6cbd3338d5657ff7726d44b246a69af5 +size 2000002 diff --git a/S2OJ/1546/data/data18.out b/S2OJ/1546/data/data18.out new file mode 100644 index 00000000..e9167e71 --- /dev/null +++ b/S2OJ/1546/data/data18.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e10c06be16f58a2dd55223af73ed672c6e615431698fddc10f541af395a0647d +size 13 diff --git a/S2OJ/1546/data/data19.in b/S2OJ/1546/data/data19.in new file mode 100644 index 00000000..305f15b7 --- /dev/null +++ b/S2OJ/1546/data/data19.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82fcd7c58a8ef0363e02f84e3f1d484c81ea2df047adf241db521cc91ba92e28 +size 2000002 diff --git a/S2OJ/1546/data/data19.out b/S2OJ/1546/data/data19.out new file mode 100644 index 00000000..6ed999b9 --- /dev/null +++ b/S2OJ/1546/data/data19.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb457e58f299fb2cdd123505709e9a68a78fdb8e6de69fbe76c72cfa5faceebd +size 13 diff --git a/S2OJ/1546/data/data2.in b/S2OJ/1546/data/data2.in new file mode 100644 index 00000000..eb3d3b41 --- /dev/null +++ b/S2OJ/1546/data/data2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b10c1a9bec8bd32965c7c38bb84936821e37a895e08b66dbecbe5e783d19ca19 +size 202 diff --git a/S2OJ/1546/data/data2.out b/S2OJ/1546/data/data2.out new file mode 100644 index 00000000..942007f1 --- /dev/null +++ b/S2OJ/1546/data/data2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e1b9239b1ec703c249328248ef3170a400d8905583e8ef30cf5518a2b341256 +size 5 diff --git a/S2OJ/1546/data/data20.in b/S2OJ/1546/data/data20.in new file mode 100644 index 00000000..47a30a47 --- /dev/null +++ b/S2OJ/1546/data/data20.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8b72bcf3718b60918339256d87e4c29e572e520b52ca54fcdfdef83aa2fcf92 +size 2000002 diff --git a/S2OJ/1546/data/data20.out b/S2OJ/1546/data/data20.out new file mode 100644 index 00000000..2ce8fac9 --- /dev/null +++ b/S2OJ/1546/data/data20.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:518253d5e468442933a276a73a537c0a29b13039db92196111f39d8d3c33c7bc +size 13 diff --git a/S2OJ/1546/data/data3.in b/S2OJ/1546/data/data3.in new file mode 100644 index 00000000..312f2ca8 --- /dev/null +++ b/S2OJ/1546/data/data3.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1c80b064174fe5de61eff0cc42b099158645df082184e88fe1196bee15c98e9 +size 1696669 diff --git a/S2OJ/1546/data/data3.out b/S2OJ/1546/data/data3.out new file mode 100644 index 00000000..f58951a7 --- /dev/null +++ b/S2OJ/1546/data/data3.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77a8541e1c39126e5b567aad9e9e6e7254ec64d1f5310a69f4fa408eb63b57ad +size 13 diff --git a/S2OJ/1546/data/data4.in b/S2OJ/1546/data/data4.in new file mode 100644 index 00000000..1ddc3c40 --- /dev/null +++ b/S2OJ/1546/data/data4.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b0df1879aeab19282e1b79a361791181e1f0da796176966c975c36cd2058a7d +size 727200 diff --git a/S2OJ/1546/data/data4.out b/S2OJ/1546/data/data4.out new file mode 100644 index 00000000..7611a85e --- /dev/null +++ b/S2OJ/1546/data/data4.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a86c4d8e053d4d22f1cb659e33bf39e7e8a231e0ed5e19e393cb4b2335cfd008 +size 13 diff --git a/S2OJ/1546/data/data5.in b/S2OJ/1546/data/data5.in new file mode 100644 index 00000000..792a5298 --- /dev/null +++ b/S2OJ/1546/data/data5.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a077a8e9b8d0211915265ff19cd10f9c237e831f8a89e80a5a6ba1785cd86441 +size 1143201 diff --git a/S2OJ/1546/data/data5.out b/S2OJ/1546/data/data5.out new file mode 100644 index 00000000..156e2f75 --- /dev/null +++ b/S2OJ/1546/data/data5.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1909d62f9fca0392613d33dd6c29e10bc02bc6daf313da5301fb2e10f10e0d51 +size 13 diff --git a/S2OJ/1546/data/data6.in b/S2OJ/1546/data/data6.in new file mode 100644 index 00000000..32fb3d4c --- /dev/null +++ b/S2OJ/1546/data/data6.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a12c999114ef9f64a117fa2ae30ec8e128c7863e3234cf5143db8f841346f7c +size 1117519 diff --git a/S2OJ/1546/data/data6.out b/S2OJ/1546/data/data6.out new file mode 100644 index 00000000..2325a4f7 --- /dev/null +++ b/S2OJ/1546/data/data6.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e32f3be2da88e7696cc1ad4c240ae435483482c7d3e9eb88631fdbd9cb2d0ce +size 13 diff --git a/S2OJ/1546/data/data7.in b/S2OJ/1546/data/data7.in new file mode 100644 index 00000000..64fdbecd --- /dev/null +++ b/S2OJ/1546/data/data7.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0fcb526e4ca675971d28e475386bc8844dae9a84f72acc448b52cf1091ff241 +size 1037282 diff --git a/S2OJ/1546/data/data7.out b/S2OJ/1546/data/data7.out new file mode 100644 index 00000000..b966602c --- /dev/null +++ b/S2OJ/1546/data/data7.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10fca57057a2fb237a6aa8f30d25eb5fce679221261fd3e5947e9bb0dc3acafb +size 13 diff --git a/S2OJ/1546/data/data8.in b/S2OJ/1546/data/data8.in new file mode 100644 index 00000000..2fa19ac9 --- /dev/null +++ b/S2OJ/1546/data/data8.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b84f9fa5e3faafde8c2ec1911f1f2f04ff9980f4fe5e45c97bfd35f6295c1b05 +size 1548622 diff --git a/S2OJ/1546/data/data8.out b/S2OJ/1546/data/data8.out new file mode 100644 index 00000000..fc184284 --- /dev/null +++ b/S2OJ/1546/data/data8.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:449ae848374cc67b7d3c718b362f9f8f5e7b4a43c7c45ccc5199d0a674a022d2 +size 13 diff --git a/S2OJ/1546/data/data9.in b/S2OJ/1546/data/data9.in new file mode 100644 index 00000000..beb29b00 --- /dev/null +++ b/S2OJ/1546/data/data9.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddbf32c5edb303bad541fd6c2b6161f3ed0f4a9876ee858ded38b01fb1520ca1 +size 1514248 diff --git a/S2OJ/1546/data/data9.out b/S2OJ/1546/data/data9.out new file mode 100644 index 00000000..6a9e0890 --- /dev/null +++ b/S2OJ/1546/data/data9.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a2af8e30e7b1d46421cd243410ad17f42ba1c31c511d06f7daf909e9af50e44 +size 13 diff --git a/S2OJ/1546/data/ex_data1.in b/S2OJ/1546/data/ex_data1.in new file mode 100644 index 00000000..bfeea5de --- /dev/null +++ b/S2OJ/1546/data/ex_data1.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3236b984d4db6cd65c272850687f599f55316c5e7929964341d14d3ea123415f +size 8 diff --git a/S2OJ/1546/data/ex_data1.out b/S2OJ/1546/data/ex_data1.out new file mode 100644 index 00000000..c65f1158 --- /dev/null +++ b/S2OJ/1546/data/ex_data1.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a252402972f6057fa53cc172b52b9ffca698e18311facd0f3b06ecaaef79e17 +size 3 diff --git a/S2OJ/1546/data/ex_data2.in b/S2OJ/1546/data/ex_data2.in new file mode 100644 index 00000000..6b3a2bef --- /dev/null +++ b/S2OJ/1546/data/ex_data2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:912ca61beca78a135805c7a8c2dcc80810a0ded382658fe93918afeacd438940 +size 202 diff --git a/S2OJ/1546/data/ex_data2.out b/S2OJ/1546/data/ex_data2.out new file mode 100644 index 00000000..770f59eb --- /dev/null +++ b/S2OJ/1546/data/ex_data2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb0fb5336c8c4bdab72b84368fb3f2f0cd9177128bd22bd2428ab41066668879 +size 5 diff --git a/S2OJ/1546/data/ex_data3.in b/S2OJ/1546/data/ex_data3.in new file mode 100644 index 00000000..3530bab1 --- /dev/null +++ b/S2OJ/1546/data/ex_data3.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c6e77fcd2d38cf063333f3396caccb65de1a11860b55d13b48e37f7a34213f7 +size 2000002 diff --git a/S2OJ/1546/data/ex_data3.out b/S2OJ/1546/data/ex_data3.out new file mode 100644 index 00000000..1498ec39 --- /dev/null +++ b/S2OJ/1546/data/ex_data3.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a37d6a30e3b937776c81d2de68ae242af12466ea009497405bc2e2961e37b1c3 +size 13 diff --git a/S2OJ/1546/data/problem.conf b/S2OJ/1546/data/problem.conf new file mode 100644 index 00000000..7c2f56e8 --- /dev/null +++ b/S2OJ/1546/data/problem.conf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:745c21085cd88bbe35cee3b8c7f059a1f8c4e6a1e2fa885b1ffaed7ef5bc71b1 +size 193