#include <iostream>
#include <string>
using namespace std;
string* Instr = new string[15];
int num = 0;
int main()
{
for (size_t i = 0; i < 15; ++i)
{
getline(cin, Instr[i]);
num += 1;
if (Instr[i] == ".")
{
Instr[i] = "";
num -= 1;
break;
}
}
if (num >= 14)
{
cout << Instr[1] << " and " << Instr[13]
<< " are inviting you to dinner..." << endl;
}
else if (num < 14 && num >= 2)
{
cout << Instr[1] << " is the only one for you..." << endl;;
}
else
{
cout << "Momo... No one is for you ..." << endl;
}
return 0;
}
PTA - L1-035 情人节
最新推荐文章于 2024-05-03 02:52:14 发布