1870: 统计字符数 摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n): st = input() ji =set(st) dict_c =…… 题解列表 2021年12月31日 0 点赞 0 评论 383 浏览 评分:0.0
1915: 蓝桥杯算法提高VIP-三个整数的排序 摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split())) ls.sort(reverse=True) for i in ls: print(i…… 题解列表 2021年12月31日 0 点赞 0 评论 453 浏览 评分:0.0
1933: 蓝桥杯算法提高VIP-约数个数 摘要:解题思路:注意事项:参考代码:n = int(input()) s = 0 for i in range(1,n+1): if n%i == 0: s+=1 prin…… 题解列表 2021年12月31日 0 点赞 0 评论 354 浏览 评分:0.0
1970: 巨大的数 摘要:解题思路:注意事项:参考代码:n = int(input()) m = map(int,input().split()) s = 1 for i in m: s *= i print…… 题解列表 2021年12月31日 0 点赞 0 评论 397 浏览 评分:0.0
1977: 求中间数 摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split())) ls.sort() print(ls[1])…… 题解列表 2021年12月31日 0 点赞 0 评论 422 浏览 评分:0.0
【C语言题解】三个数的最大值 摘要:解题思路:利用变量max更新最大值,如果a大于max,那么max赋值为a,如果b大于max,max赋值为b。。。。。注意事项: ·第一种情况:如果题目要求输入的三个数a,b,c都大于0,…… 题解列表 2022年01月01日 0 点赞 0 评论 819 浏览 评分:9.9
建议新手观看 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or …… 题解列表 2022年01月01日 0 点赞 0 评论 337 浏览 评分:0.0
1095: The 3n + 1 problem 摘要:从 a 到 b 挨个判断跌落到 1 需要的次数,保存最大的次数。注意 a 大于 b 的情形。#include <bits/stdc++.h> using namespace std; int …… 题解列表 2022年01月01日 0 点赞 0 评论 251 浏览 评分:0.0
1978: 分类计算 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split()) if a**2+b**2>100: print(a**2+b**2) else: p…… 题解列表 2022年01月01日 0 点赞 0 评论 424 浏览 评分:0.0
1121: C语言训练-8除不尽的数 摘要:暴力法解决,循环的事情就交给计算机来做吧。#include <bits/stdc++.h> using namespace std; int main(){ for(int i=0;…… 题解列表 2022年01月01日 0 点赞 0 评论 396 浏览 评分:0.0