列表

详情


NC252841. June

描述

June is the sixth month in the Gregorian calendar and has 30 days. It is the first month of astronomical summer in the Northern Hemisphere and astronomical winter in the Southern Hemisphere.
June is named after Juno, the Roman goddess of youth and protection. Her name (Latin Iūnō) comes from the root word for “young” (Iuuen) and goes back to the idea of vital energy and fertility.
June is the month of youth and vitality. It has witnessed many wonderful times, such as the national college entrance examination, Colin's birthday, and of course the holding of the 6th Guangxi Collegiate Programming Contest!

Now there is a person named S who is going to participate in an event named T in June. 
Please output a sentence "Good luck to S in T and have fun!" (without quotes) to send him/her your best wishes!

输入描述

The first line contains a string S \text{ } (1 \le |S| \le 50 ) consisting of lowercase letters, representing the name of the person.

The second line contains a string T \text{ }(1 \le |T| \le 50 ) consisting of lowercase letters, representing the name of the event.

输出描述

A single line, output "Good luck to S in T and have fun!" (without quotes).

示例1

输入:

you
gxcpc

输出:

Good luck to you in gxcpc and have fun!

原站题解

上次编辑到这里,代码来自缓存 点击恢复默认模板

pypy3 解法, 执行用时: 70ms, 内存消耗: 21216K, 提交时间: 2023-06-05 00:23:40

print(f"Good luck to {input()} in {input()} and have fun!")

Python3 解法, 执行用时: 41ms, 内存消耗: 4932K, 提交时间: 2023-06-05 18:48:59

print(f'Good luck to {input()} in {input()} and have fun!')

上一题