整数序列的元素最大跨度值(max,min) 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())t = [int(i) for i in l]print(max(t) - min(t)…… 题解列表 2024年07月29日 0 点赞 0 评论 206 浏览 评分:0.0
最高的分数 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())t = [int(i) for i in l]print(max(t))…… 题解列表 2024年07月29日 0 点赞 0 评论 309 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:import cmathdef greater_p(a,b,c): p = b**2-4*a*c x1 = (-b + cmath.sqrt(p)) / (2…… 题解列表 2024年07月29日 0 点赞 0 评论 244 浏览 评分:0.0
模拟计算器(if else) 摘要:解题思路:注意事项:参考代码:l = input().split()a = int(l[0])b = int(l[1])if l[2] == '+': print(a+b)eli…… 题解列表 2024年07月28日 1 点赞 0 评论 196 浏览 评分:0.0
使用max函数 摘要:解题思路:注意事项:参考代码:l = input().split() # 读取输入并分割成列表 t = [] # 创建一个空列表 # 使用列表推导式将 l 中的每个字符串转换为浮点数,并添…… 题解列表 2024年07月28日 0 点赞 0 评论 696 浏览 评分:0.0
python方法解决 摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == 'y': s = 5a = int(l[0])if a …… 题解列表 2024年07月28日 0 点赞 0 评论 555 浏览 评分:0.0
无敌妈妈存钱计划!!!!!!!!!!!!!!!! 摘要:解题思路:数组存储接收变量注意事项:参考代码:/* residue[0]=300-budget; residue[1]= 循环//residue[0]+300-budget[1];// …… 题解列表 2024年07月28日 0 点赞 0 评论 346 浏览 评分:9.9
含k个3的数的解 摘要:解题思路:注意事项:参考代码:m = int(input())k=int(input())if m%19==0: m=str(m) count=m.count('3') …… 题解列表 2024年07月28日 0 点赞 0 评论 183 浏览 评分:0.0
【欧拉筛法】哥德巴赫曾猜测 摘要:```cpp #include using namespace std; const int N = 32770; int prime[N];//存储质数 int num[N];//标注是…… 题解列表 2024年07月27日 0 点赞 0 评论 193 浏览 评分:0.0
二维数组的转置及C代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[3][3],count=0; for(i=0;i<3;i++) { for…… 题解列表 2024年07月27日 1 点赞 0 评论 299 浏览 评分:9.9