题解列表

筛选

蓝桥杯算法提高VIP-插入排序

摘要:解题思路:  这题有问题注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; long long sum[200]……

自定义函数处理素数-C语言

摘要:解题思路:首先注意1既不是素数也不是偶数,所以i从2开始计数;遍历在2~n之间是否存在i值能被n整除,如存在则n为非素数;注意事项:找到一个能被n整除的i后即刻用break跳出for循环,不然会打印n……

Python字典映射

摘要:score = int(input())number = score//10switcher = {    10: &#39;A&#39;,    9: &#39;A&#39;,    8: &#39……

编写题解 1118: Tom数

摘要:解题思路:注意事项:参考代码:while True:    try:        n = str(input())        sum = 0        for i in n:        ……