1235: 检查金币 摘要:解题思路:题目可以直接用10个for循环搞定,虽然代码不是很简洁,但思路简单。注意事项:参考代码:while True: try: n=int(input()) fo…… 题解列表 2023年02月03日 0 点赞 0 评论 511 浏览 评分:0.0
1227: 日期排序 摘要:解题思路:输入很简单,不用多说,我们把年月日做成一个小列表,塞进大列表里,然后再排序输出就可以了,很简单的一道题。注意事项:参考代码:n=[]while True: try: s=…… 题解列表 2023年02月03日 0 点赞 0 评论 843 浏览 评分:0.0
2797: 最高的分数 摘要:解题思路: 搞不懂这道题的意义在哪里?注意事项:参考代码:n = int(input()) #成绩个数a = list(map(int,input().split())) #把成绩转换为列表p…… 题解列表 2023年02月03日 0 点赞 0 评论 873 浏览 评分:9.6
1229: 最小公倍数 摘要:解题思路:用递归的方法,就可以用简洁的代码解决了。注意事项:参考代码:n1,n2=map(int,input().split())def get(n1,n2): if n1%n2==0: …… 题解列表 2023年02月03日 0 点赞 0 评论 534 浏览 评分:0.0
文科生的悲哀(找规律) 解题思路:第一次第二次第三次第四次第五次政治历史政治历史政治地理历史地理综合政治地理地理观察题目和表格可以发现,奇数次的政治和地理的数目分别和上一奇数次的政治和地理的数目有关系,即第x次的政治数量为x-2次的政治数量+第x-2次的地理数量,第x次的地理数量为x-2的政治数量+第x-2次的地理数量*2, 题解列表 2023年02月03日 0 点赞 0 评论 684 浏览 评分:8.0
程序员的总统梦 摘要:解题思路:蒙混过关注意事项:我是彩笔,仅限参考参考代码: while True: c = [] a=int(input()) if a==0: break e…… 题解列表 2023年02月02日 0 点赞 0 评论 548 浏览 评分:0.0
python最大配对简单解法 摘要:B=[]n=int(input())A=list(map(int,input().split()))A.sort() #正序排序(小到大)b=list(map(int,input().split()…… 题解列表 2023年02月02日 0 点赞 0 评论 498 浏览 评分:0.0
python两行代码通过 #####关于找到规律之后python两行代码通过这件事```pythonn,s=map(int,input().split())print((int(s)+int(2**(n+1)-n-2))//int(2**(n+1)-1))```>######ps.代码题还是应该认真写代码, 题解列表 2023年02月01日 0 点赞 0 评论 612 浏览 评分:9.0
1127基础解法(Python) 解题思路:可以用数学原理,也可以当做找规律注意事项:参考代码:n=int(input())cubic=pow(n,3)square=pow(n,2)ifsquare%2==0:i=nlst=[iforiinrange(square-i+1,square+i, 题解列表 2023年02月01日 0 点赞 0 评论 497 浏览 评分:0.0
数字的处理与判断 ```pythonwhileTrue:try:a=list(map(int,input()))b=a[-1:-7:-1]print(len(a))[print(a[i],end="")foriinrange(0,len(a))ifi!=len(a)-1]print(a[len(a)-1])[print 题解列表 2023年01月31日 0 点赞 0 评论 613 浏览 评分:2.0