题解 | 复读机

复读机

https://www.nowcoder.com/practice/9d381551b6ab40c4b5c3c8d60fe4066e

'''
import sys
n=[]
for i in range(5):
    n.append(input().split())
print(e for i in range(5):n[i])
'''
# 读取5行输入
a = int(input())          # 第一行:整数a(范围在-10^9到10^9)
b = int(input())          # 第二行:整数b(范围在-10^18到10^18)
c = float(input())        # 第三行:浮点数c
d = input().strip()       # 第四行:小写字母d(用strip()去除可能的空白字符)
e = input().strip()       # 第五行:字符串e

# 按要求输出5行内容
print(a)                  # 直接输出整数a
print(b)                  # 直接输出整数b
print(f"{c:.1f}")         # 浮点数c保留1位小数(用f-string格式化)
print(d)                  # 输出字符d
print(e)                  # 输出字符串e
'''
for i in range(5):
    if i==2:
        a=float(input())
        print("{:.1f}".format(a))
    else:
        a=input()
        print(a)
'''

全部评论

相关推荐

牛客28967172...:跟着卡子哥才是正道,灵茶属实不太行
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务