直接循环(Python) 摘要:while 1: list1=list(map(float,input().split())) if len(list1)==0: break P=list1[0]/1…… 题解列表 2021年04月20日 0 点赞 0 评论 693 浏览 评分:0.0
直接查找输出(Python) 摘要:while 1: s=input() if len(s)==0: break list1=list(s) if len(list1)<101: ma…… 题解列表 2021年04月20日 0 点赞 0 评论 445 浏览 评分:0.0
直接计算(Python) 摘要:import mathT=int(input())zt=1for i in range(2,int(math.sqrt(T))+1): if T % i==0: zt=0 …… 题解列表 2021年04月20日 0 点赞 0 评论 457 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 python 摘要:解题思路:基础if else语句注意事项:无参考代码:list1 = list(map(int,input().split())) if list1[0] == 0: if list1[1…… 题解列表 2021年04月20日 0 点赞 0 评论 384 浏览 评分:0.0
1389: 程序员的表白 python 摘要:解题思路:注意python输出会默认换行,需要填入end参数注意事项:换行参考代码:while True: try: a = int(input()) f…… 题解列表 2021年04月20日 0 点赞 0 评论 671 浏览 评分:0.0
直接转换(Python) 摘要:N=int(input())list1=[]for i in range(N): list2=list(map(int,input().split())) list1.append(lis…… 题解列表 2021年04月21日 0 点赞 0 评论 374 浏览 评分:0.0
直接计算(Python) 摘要:n = int(input())while n: list1=list(map(int,input().split())) list1.pop(0) list1.sort() …… 题解列表 2021年04月21日 0 点赞 0 评论 400 浏览 评分:0.0
不用等差数列做(虽然挺挖苦的) 摘要:解题思路:有等差数列公式,哎,我不用,就是玩儿注意事项:i=i+3;参考代码:#include<stdio.h>int main(){ int i,sum=0,n; scanf("%d",…… 题解列表 2021年04月21日 0 点赞 0 评论 544 浏览 评分:0.0
用了一下数组 摘要:解题思路:用数组初始化第一个和第二个数注意事项:由于当N=1时,不能同时打印a[0]和a[1],所以要做一个if条件循环。参考代码:#include<stdio.h>int main(){ int …… 题解列表 2021年04月21日 0 点赞 0 评论 312 浏览 评分:0.0
运用do while循环来解题(正向思维) 摘要:解题思路:运用do while循环来解题,内镶嵌一个for循环,循环遍历;注意事项:因为x最后为1所以最后只用循环9次,最后需要保证x可以被整除所以用x=0来判断,重新赋一个值.参考代码:#inclu…… 题解列表 2021年04月21日 0 点赞 0 评论 335 浏览 评分:0.0