ReiAC's Blog

Recent content on ReiAC's Blog

马上订阅 ReiAC's Blog RSS 更新: https://rei.ac/index.xml

Codeforces Round #497 (Div. 2)

2018年7月14日 16:55
Featured image of post Codeforces Round #497 (Div. 2)

A Romaji

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include<iostream>
  
using namespace std;
  
string str;
  
bool check(char c)
{
    if(c=='a' || c=='o' || c=='u' || c=='i' || c=='e')
        return true;
    else
        return false;
}
  
int main()
{
    cin>>str;
    for(int i=0;i<str.size();i++)
    {
        if(str[i]=='n')
            continue;
        else if(check(str[i]))
            continue;
        else if(!check(str[i+1]))
        {
            cout<<"NO"<<endl;
            return 0;
        }
    }
    cout<<"YES"<<endl;
    return 0;
}

B Turn the Rectangles

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36...

剩余内容已隐藏

查看完整文章以阅读更多