0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 13:38:47 +00:00
OI-codes/LibreOJ/118/118.cpp

16 lines
277 B
C++
Raw Normal View History

#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;
}