题解 | #牛牛的朋友们#

牛牛的朋友们

https://www.nowcoder.com/practice/00c5e6329d014ccab9d79c23b783b869

# import sys

# for line in sys.stdin:
#     a = line.split()
#     print(int(a[0]) + int(a[1]))
def expand(x,y):
    return x+y,x-y
def sumf(x,y):
    return x*y
h1,h2=map(int,input().split())
x,y=expand(h1,h2)
# print(expand(h1,h2))// not return values
print(x,y)
print(sumf(x,y))

写一写小脚本,比较纯粹;

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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