L1-035 情人节 分数 15
// 3'42"
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<string> v;
string str;
while(cin >> str)
{
if(str == ".") break;
v.push_back(str);
}
if(v.size() >= 14)
cout << v[1] << " and " << v[13] << " are inviting you to dinner...";
else if(v.size() >= 2)
cout << v[1] << " is the only one for you...";
else
cout << "Momo... No one is for you ...";
return 0;
}
浙公网安备 33010602011771号