#include<bits/stdc++.h>
using namespace std;
string s[18] = {"","Happy", "birthday", "to", "you", "Happy", "birthday", "to", "you", "Happy",
"birthday","to", "Rujia", "Happy", "birthday","to", "you"};
int main()
{
int n, i;
while(cin >> n)
{
string r[n+1];
for(i=1;i<=n;i++)
cin >> r[i];
int i = 1, j = 1, k = 1;
while(k <= n)
{
cout << r[i++] << ": " << s[j++] << "\n";
if(i == n+1)
i = 1;
if(j == 17)
j = 1;
k++;
}
if(i == n+1)
i = 1;
while(j < 17)
{
cout << r[i++] << ": " << s[j++] << "\n";
if(i == n+1)
i = 1;
}
}
return 0;
}
using namespace std;
string s[18] = {"","Happy", "birthday", "to", "you", "Happy", "birthday", "to", "you", "Happy",
"birthday","to", "Rujia", "Happy", "birthday","to", "you"};
int main()
{
int n, i;
while(cin >> n)
{
string r[n+1];
for(i=1;i<=n;i++)
cin >> r[i];
int i = 1, j = 1, k = 1;
while(k <= n)
{
cout << r[i++] << ": " << s[j++] << "\n";
if(i == n+1)
i = 1;
if(j == 17)
j = 1;
k++;
}
if(i == n+1)
i = 1;
while(j < 17)
{
cout << r[i++] << ": " << s[j++] << "\n";
if(i == n+1)
i = 1;
}
}
return 0;
}
Comments
Post a Comment