python字符串输入输出函数 摘要:def GetReal(): x=input() return xdef GetString(): X=input() return Xdef main(): while…… 题解列表 2023年02月19日 0 点赞 0 评论 350 浏览 评分:9.9
python字符串比较 带解析 摘要:n=list(input().split())a=len(n[0])if len(n[0])>len(n[1]): a=len(n[1])# print(a)for i in range(a):…… 题解列表 2023年02月19日 0 点赞 0 评论 417 浏览 评分:9.9
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): if i == pow(int(str(i)[0]),3)+pow(int(str(i)[1]),3)+p…… 题解列表 2023年02月18日 0 点赞 0 评论 259 浏览 评分:0.0
二维费用01背包(Python) 摘要:# 题目来源ACM训练系统 第3056题# 01背包# 1.获取数据n,m,k=map(int,input().split())list1=[]for i in range(k): list1.…… 题解列表 2023年02月16日 0 点赞 0 评论 324 浏览 评分:9.9
2814: 正常血压 摘要:解题思路:注意事项:参考代码:b = [] s = 0 n = int(input()) for i in range(0,n): l = list(map(int,input().s…… 题解列表 2023年02月16日 0 点赞 0 评论 374 浏览 评分:0.0
2813: 药房管理 摘要:解题思路:注意事项:参考代码:s = 0 m = int(input()) n = int(input()) y = list(map(int,input().split())) for i …… 题解列表 2023年02月15日 0 点赞 0 评论 419 浏览 评分:8.0
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: list1 = input().split() for i in list1: …… 题解列表 2023年02月15日 0 点赞 0 评论 504 浏览 评分:9.9
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())a1,b1,c1=0,0,0for i in range(a+1): a1+=ifor j in ran…… 题解列表 2023年02月15日 0 点赞 0 评论 181 浏览 评分:0.0
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:while True: n=int(input()) l=[1,2,3] if n==0: break else: f…… 题解列表 2023年02月15日 0 点赞 0 评论 465 浏览 评分:9.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:sum=0t=1num=int(input())for i in range(1,num+1): t=t*i sum+=tprint(sum)…… 题解列表 2023年02月15日 0 点赞 0 评论 214 浏览 评分:0.0