Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 14
#include <bits/stdc++.h> using namespace std; int main() { string s; int x, y; cin >> s >> x >> y; cout << (count(s.begin(), s.end(), 'R') >= x && count(s.begin(), s.end(), 'U') >= y ? "YES\n" : "NO\n"); }