与2无关的数——python 摘要:解题思路:注意事项:参考代码:def bxg(n): if '2' in str(n) or n%2 == 0: return 0 else: …… 题解列表 2023年04月05日 0 点赞 0 评论 376 浏览 评分:0.0
区间中最大的数 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))m = int(input())for i in range(m): …… 题解列表 2023年04月05日 0 点赞 0 评论 469 浏览 评分:0.0
一眼顶真,纯纯的nt题,注意加空行就行了 摘要:解题思路:纯纯的nt题,注意加空行就行了注意事项:参考代码:#include<iostream> using namespace std; int main(){ int a,n; c…… 题解列表 2023年04月05日 0 点赞 0 评论 404 浏览 评分:0.0
蓝桥杯2015年第六届真题-饮料换购 摘要:解题思路:注意事项:参考代码:n = int(input())s = nwhile n>=3: a = n//3 s+=a n = a+n-3*aprint(s)…… 题解列表 2023年04月05日 0 点赞 0 评论 350 浏览 评分:0.0
事实证明,C语言代码要有数学的基本功(流泪) 摘要:解题思路:既然是定理,我们用数学问题证明这个定理是对的就行,然后带入数据C语言结构框架注意事项:先判断首项是否具有普遍性参考代码:#include<stdio.h>int main(){ int…… 题解列表 2023年04月05日 0 点赞 0 评论 346 浏览 评分:0.0
还是喜欢简短的代码,哎哟看到长代码就心浮气躁这可肿么办哟 摘要:解题思路:就是一冒泡排序,多写的我的数据结构老师哈哈哈注意事项:参考代码:#include<stdio.h> int main(){ int a[4]; int temp; for…… 题解列表 2023年04月05日 0 点赞 0 评论 374 浏览 评分:0.0
蓝桥杯2018年第九届真题-次数差 摘要:解题思路:注意事项:参考代码:L = input()n = L.count(max(L,key=L.count))m = L.count(min(L,key=L.count))print(n-m)…… 题解列表 2023年04月05日 0 点赞 0 评论 328 浏览 评分:0.0
蓝桥杯2018年第九届真题-缩位求和 摘要:解题思路:注意事项:参考代码:n = int(input())while len(str(n))!= 1: n = sum(int(i) for i in str(n))print(n)…… 题解列表 2023年04月05日 0 点赞 0 评论 386 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-特别数的和 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0for i in range(1,n+1): for j in str(i): if j in '2…… 题解列表 2023年04月05日 0 点赞 0 评论 351 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-等差数列 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))L.sort()L1 = []for i in range(len(L…… 题解列表 2023年04月05日 0 点赞 0 评论 309 浏览 评分:0.0