Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- #include <string>
- #include <iostream> //cout, cin
- using namespace std;
- int main() {
- string id;
- cin>>id;
- int len = id.length();
- for(int i=0; i<len; i++){
- if((id[i] <= 'z' && id[i] >= 'a')){
- cout<<"Not Accept";
- exit(0);
- }
- }
- if(id[len-1] == '.'){
- cout<<"Not Accept";
- exit(0);
- }
- cout<<"Accept";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement