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;
}
posted @ 2024-08-02 23:58  Frodnx  阅读(23)  评论(0)    收藏  举报