Kattis-Aaah!

Posted 做一个AC梦

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kattis-Aaah!相关的知识,希望对你有一定的参考价值。

题目所述基本内容

Jon Marius shouted too much at the recent Justin Bieber concert, and now needs to go to the doctor because of his sore throat. The doctor’s instructions are to say “aaah”. Unfortunately, the doctors sometimes need Jon Marius to say “aaah” for a while, which Jon Marius has never been good at. Each doctor requires a certain level of “aah” – some require “aaaaaah”, while others can actually diagnose his throat with just an “h”. (They often diagnose wrongly, but that is beyond the scope of this problem.) Since Jon Marius does not want to go to a doctor and have his time wasted, he wants to compare how long he manages to hold the “aaah” with the doctor’s requirements. (After all, who wants to be all like “aaah” when the doctor wants you to go “aaaaaah”?)

Each day Jon Marius calls up a different doctor and asks them how long his “aaah” has to be. Find out if Jon Marius would waste his time going to the given doctor.

输入输出样例

Input

The input consists of two lines. The first line is the “aaah” Jon Marius is able to say that day. The second line is the “aah” the doctor wants to hear. Only lowercase ’a’ and ’h’ will be used in the input, and each line will contain between 0 and 999 ’a’s, inclusive, followed by a single ’h’.

Output

Output “go” if Jon Marius can go to that doctor, and output “no” otherwise.

 代码

#include<iostream>
#include<string>
using namespace std;

int main() 
	string a,b;
	cin >> a >> b;
	if (a.length()<b.length() )
		cout << "no" << endl;
	
	else 
		cout << "go" << endl;
	

结束语

好兄弟好兄弟,留下你的关注和点赞,666走一波!!!!!

以上是关于Kattis-Aaah!的主要内容,如果未能解决你的问题,请参考以下文章

关于基础微积分的结束语

关于基础微积分的结束语

关于基础微积分的结束语

关于基础微积分的结束语

youcans 的 OpenCV 例程200篇结束语

C#如何结束EXCEL进程