Advertisement
Guest User

№1 C++11

a guest
Oct 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. string s;
  7. cin>>s;
  8. if ((65<=s[0]) && (s[0]<=90) && (65<=s[5]) && (s[5]<=90) && (65<=s[4]) && (s[4]<=90) && (48<=s[1]) && (s[1]<=57) && (48<=s[2]) && (s[2]<=57) && (48<=s[3]) && (s[3]<=57) ) cout<<"Yes";
  9. else cout<<"No";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement