NP14. 不用循环语句的重复输出
描述
输入描述
输入一个字符串。输出描述
输出重复100次之后的字符串,字符串之间没有间隔。示例1
输入:
Hello
输出:
HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHello
Python 解法, 执行用时: 11ms, 内存消耗: 2944KB, 提交时间: 2022-08-05
a=raw_input() print(a*100)
Python 解法, 执行用时: 12ms, 内存消耗: 2944KB, 提交时间: 2022-07-29
name = raw_input() print(name*100)
Python 解法, 执行用时: 12ms, 内存消耗: 2948KB, 提交时间: 2022-08-04
str=raw_input()*100 print(str)
Python 3 解法, 执行用时: 27ms, 内存消耗: 4480KB, 提交时间: 2022-08-05
a= input() b= '' for i in range(100): b = b + a print(b)
Python 3 解法, 执行用时: 28ms, 内存消耗: 4432KB, 提交时间: 2022-07-27
a = input() b = ' ' for i in range(100): b = b+a print(b[1:])