暴力解: #include <algorithm> #include <iostream> #include <utility> #include <set> #include <vector> using namespace std; int main() { string str; cin >> str; long long n = 0, m = 0; const char* p = str.c_str(); while (*p != '/') { n = n ...