mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 19:48:51 +00:00
16 lines
277 B
C++
16 lines
277 B
C++
#include <bits/stdc++.h>
|
|
|
|
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;
|
|
}
|