题解列表
【C语言题解】三个数的最大值
摘要:解题思路:利用变量max更新最大值,如果a大于max,那么max赋值为a,如果b大于max,max赋值为b。。。。。注意事项: ·第一种情况:如果题目要求输入的三个数a,b,c都大于0,……
1977: 求中间数
摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))
ls.sort()
print(ls[1])……
1970: 巨大的数
摘要:解题思路:注意事项:参考代码:n = int(input())
m = map(int,input().split())
s = 1
for i in m:
s *= i
print……
1933: 蓝桥杯算法提高VIP-约数个数
摘要:解题思路:注意事项:参考代码:n = int(input())
s = 0
for i in range(1,n+1):
if n%i == 0:
s+=1
prin……
1915: 蓝桥杯算法提高VIP-三个整数的排序
摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))
ls.sort(reverse=True)
for i in ls:
print(i……
1870: 统计字符数
摘要:解题思路:注意事项:参考代码:n = int(input())
for i in range(n):
st = input()
ji =set(st)
dict_c =……
1869: 鸡兔同笼
摘要:解题思路:注意事项:参考代码:while True:
try:
num,leg=map(int,input().strip().split())
s = ……
1867: 王牌花色
摘要:解题思路:注意事项:参考代码:n = int(input())
for i in range(n):
m = input()
a,b = map(str,input().spli……
编写题解 1011: [编程入门]最大公约数与最小公倍数 VS2019
摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c,d=1,a1,b1;cin>>a>>b;a1=a;b1=b;i……