蓝桥杯基础练习VIP-Huffuman树 摘要:#include<iostream>#include<queue>using namespace std;const int N=1010;int main(){ int n; cin>>…… 题解列表 2022年04月05日 0 点赞 0 评论 498 浏览 评分:0.0
自定义函数处理素数简便方法 摘要:解题思路:除以不是自己的数循环不为为0不为素数注意事项:参考代码:#include<stdio.h>int main(){ int m,i; scanf("%d",&m); for(…… 题解列表 2022年04月05日 0 点赞 0 评论 419 浏览 评分:0.0
利用ascii表求 摘要:解题思路:注意事项:参考代码:n=int(input())a1='A'a='A'for i in range(1,n): a=chr(ord(a)+1) a…… 题解列表 2022年04月06日 0 点赞 0 评论 344 浏览 评分:0.0
巧用upper判断 摘要:解题思路:注意事项:参考代码:a=input()b=input()c=a.upper()d=b.upper()if len(a)!=len(b): print('1')else:…… 题解列表 2022年04月06日 0 点赞 0 评论 356 浏览 评分:0.0
将每一分钟对应的英文对应位列表 摘要:解题思路:注意事项:参考代码:h,m=map(int,input().split())a=['zero','one','two','three&…… 题解列表 2022年04月06日 0 点赞 0 评论 354 浏览 评分:0.0
利用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 评论 473 浏览 评分:0.0
字符串的输出 摘要:解题思路:注意事项:参考代码:n=input()print(len(n))for i in n: print(i,end=' ')print()print(n[::-1])…… 题解列表 2022年04月06日 0 点赞 0 评论 315 浏览 评分: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 评论 671 浏览 评分: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 评论 415 浏览 评分:0.0
字符串的循环输出以及注意换行 摘要:解题思路:注意事项:参考代码:while True: a=int(input()) b=' ' c='*' for i in range(1,a…… 题解列表 2022年04月06日 0 点赞 0 评论 512 浏览 评分:0.0