2990:python十进制到八进制(超级简单两行!!!) 摘要: n = int(input()) // 只用了两行,直接发布题解c语言网不让。 // 这系统嫌我太简洁。 // 真服了。 // 只能多几行废话了。 // 凑活看吧。 …… 题解列表 2023年02月21日 0 点赞 0 评论 445 浏览 评分:9.9
1332: 津津的储蓄计划(python) 摘要:解题思路:注意事项:参考代码:m = 0 x = 0 month = 1 isTrue = True while True: try: n = int(input(…… 题解列表 2023年02月21日 0 点赞 0 评论 646 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split(" ")))b = int(input())b = b+30count = 0for i in range…… 题解列表 2023年02月21日 0 点赞 0 评论 294 浏览 评分:2.0
就是通过分支选择来写 摘要:解题思路:注意事项:“整数”还有一个长边和短边的顺序好像也要调整一下参考代码:def inchjudge1(n): lside=1189 #初始设置边长 rside=841 …… 题解列表 2023年02月20日 0 点赞 0 评论 471 浏览 评分:9.0
1006: [编程入门]三个数找最大值python题解 摘要:运用列表简易找出,还能举一反三print输出时用变量名直接表述参考代码:a=list(map(int,input().split()) print(max(a))…… 题解列表 2023年02月20日 1 点赞 0 评论 561 浏览 评分:8.0
python最长字符串 带解析 摘要:s=list(input().split()) #以列表方式存储Max=len(s[0]) #记录字符串最大长度 首先记录第一个n=[] #记录字符串最大长度对应字符的下标n.append(0) #首…… 题解列表 2023年02月19日 0 点赞 0 评论 331 浏览 评分:9.9
python字符串输入输出函数 摘要:def GetReal(): x=input() return xdef GetString(): X=input() return Xdef main(): while…… 题解列表 2023年02月19日 0 点赞 0 评论 409 浏览 评分: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 评论 457 浏览 评分: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 评论 295 浏览 评分: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 评论 349 浏览 评分:9.9