利用while循环的彻底性 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))while 0 in a: a.remove(0)for i in a:…… 题解列表 2022年04月06日 0 点赞 0 评论 689 浏览 评分:0.0
字符串的输出 摘要:解题思路:注意事项:参考代码:n=input()print(len(n))for i in n: print(i,end=' ')print()print(n[::-1])…… 题解列表 2022年04月06日 0 点赞 0 评论 499 浏览 评分:0.0
a,b=0时跳出循环 摘要:解题思路:注意事项:参考代码:while True: a,b=map(int,input().split()) if a==0 and b==0: break prin…… 题解列表 2022年04月06日 0 点赞 0 评论 862 浏览 评分:0.0
列表注意还原为空列表 摘要:解题思路:注意事项:参考代码:while True: a,b,c=map(int,input().split()) d=[a,b,c] xx=sorted(d) if xx[0…… 题解列表 2022年04月06日 0 点赞 0 评论 661 浏览 评分:0.0
字符串的循环输出以及注意换行 摘要:解题思路:注意事项:参考代码:while True: a=int(input()) b=' ' c='*' for i in range(1,a…… 题解列表 2022年04月06日 0 点赞 0 评论 733 浏览 评分:0.0
列表的循环输入,利用列表切片和求和 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) a=a[1:] for i in a: xx=a…… 题解列表 2022年04月06日 0 点赞 0 评论 786 浏览 评分:0.0
注意换行和列表清空 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) a=a[1:] b=sorted(a,reverse=True…… 题解列表 2022年04月06日 0 点赞 0 评论 723 浏览 评分:0.0
模拟双指针 (代码简洁) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){ int a=0,b=9;/…… 题解列表 2022年04月06日 0 点赞 0 评论 599 浏览 评分:0.0
超简短代码 摘要:解题思路:注意事项:参考代码:while True: a,b=map(int,input().split()) print(a+b) print()…… 题解列表 2022年04月06日 0 点赞 0 评论 667 浏览 评分:0.0
蓝桥杯算法提高VIP-夺宝奇兵(C语言,动态规划) 思路,动态规划#includeinta[101][101]={0},b[105]={0};intswap(inta,intb){returna>b?a:b;}intmain(){intn,i,j;scanf("%d",&n);for(i=0;i 题解列表 2022年04月06日 1 点赞 0 评论 687 浏览 评分:0.0