mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-18 14:11:59 +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;
|
|
}
|