目录
一、链接
二、题目
三、代码
#include<bits/stdc++.h>
using namespace std;
int main()
{
string str,A,B;
int n=0;
cin>>str;
n++;
for(;str!=".";)
{
cin>>str;
n++;
if(str!="."&&n==2)
{
A=str;
}
if(str!="."&&n==14)
{
B=str;
}
}
n--;
if(n<2)
cout<<"Momo... No one is for you ..."<<endl;
else if(n>=2&&n<14)
cout<<A<<" is the only one for you..."<<endl;
else
cout<<A<<" and "<<B<<" are inviting you to dinner..."<<endl;
return 0;
}