列表

详情


NC214226. 抗疫必胜2

描述

2020年,抗击疫情,众志成城,我们一定能取得疫情战役最后的胜利(Victory)。乎乎想输出n行“China will win the battle against COVID-19.”,请帮他编程实现。

输入描述

一行,一个整数n(3~100),表示输出的行数。

输出描述

针对输入,输出n行“China will win the battle against COVID-19.”

示例1

输入:

4

输出:

China will win the battle against COVID-19.
China will win the battle against COVID-19.
China will win the battle against COVID-19.
China will win the battle against COVID-19.

原站题解

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

Python2 解法, 执行用时: 15ms, 内存消耗: 3068K, 提交时间: 2022-04-21 22:45:35

a=int(input())
for i in range (a):
    print('China will win the battle against COVID-19.')

Python3(3.9) 解法, 执行用时: 20ms, 内存消耗: 2816K, 提交时间: 2020-12-08 13:48:59

print("China will win the battle against COVID-19.\n"*int(input()))

上一题