L1-035 情人節 分數 15

Frodnx發表於2024-08-02
// 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;
}

相關文章