mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 21:48:48 +00:00
parent
6198b3d6c9
commit
1781eb4dc1
24
S2OJ/1546/1546.cpp
Normal file
24
S2OJ/1546/1546.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include <iostream>
|
||||
#include <numeric>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
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<char, int> 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;
|
||||
}
|
BIN
S2OJ/1546/data/data1.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data1.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data1.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data1.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data10.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data10.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data10.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data10.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data11.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data11.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data11.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data11.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data12.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data12.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data12.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data12.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data13.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data13.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data13.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data13.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data14.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data14.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data14.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data14.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data15.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data15.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data15.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data15.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data16.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data16.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data16.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data16.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data17.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data17.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data17.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data17.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data18.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data18.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data18.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data18.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data19.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data19.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data19.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data19.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data2.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data2.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data2.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data2.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data20.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data20.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data20.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data20.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data3.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data3.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data3.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data3.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data4.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data4.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data4.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data4.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data5.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data5.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data5.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data5.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data6.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data6.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data6.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data6.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data7.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data7.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data7.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data7.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data8.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data8.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data8.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data8.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data9.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data9.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/data9.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/data9.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/ex_data1.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/ex_data1.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/ex_data1.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/ex_data1.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/ex_data2.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/ex_data2.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/ex_data2.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/ex_data2.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/ex_data3.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/ex_data3.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/ex_data3.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/ex_data3.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/1546/data/problem.conf
(Stored with Git LFS)
Normal file
BIN
S2OJ/1546/data/problem.conf
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user