选数异或(线段树思路详解) 摘要:解题思路: 思路详解在:https://www.acwing.com/solution/content/228403/参考代码:const int N = 1e5; #include <iostre…… 题解列表 2024年03月27日 2 点赞 0 评论 788 浏览 评分:10.0
利用重载进行多个数字相加 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int add(int a,int b){ return (a+b);}int add(…… 题解列表 2024年03月27日 0 点赞 0 评论 438 浏览 评分:0.0
python代码解决问题 摘要:解题思路:注意事项:参考代码:x1,y1,x2,y2,x3,y3,x4,y4=map(int,input().split())s1=(x2-x1)*(y2-y1)+(x4-x3)*(y4-y3)x_l…… 题解列表 2024年03月27日 0 点赞 0 评论 398 浏览 评分:0.0
蓝桥杯算法训练VIP-摆动序列(秒解) 摘要:解题思路: 每一组数只有唯一两种排列方式,先对K内求得长度在2以上的组合数,然后求和后乘2即可。 1&n 题解列表 2024年03月27日 0 点赞 0 评论 503 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-平面切分 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct node { long double x,y; }a[…… 题解列表 2024年03月27日 0 点赞 0 评论 548 浏览 评分:9.9
信息学奥赛一本通T1432-糖果传递(数学递推的应用) 摘要:解题思路:https://blog.csdn.net/qq_41890797/article/details/90244567 公式推理**代码解释:****输入处理:*** 读…… 题解列表 2024年03月27日 1 点赞 0 评论 606 浏览 评分:9.9
编写题解 2833: 金币,python超简单 摘要:def calculate_coins(days): coins = 0 # 初始化骑士收到的金币总数为0 n = 1 # 初始化每天的金币数量为1 day_coun…… 题解列表 2024年03月27日 0 点赞 0 评论 468 浏览 评分:0.0
编写题解 2825: 计算多项式的值,python超简单 摘要:x,n = input().split() x = float(x) n = int(n) # 初始化result和item变量 result = 1.0 item = 1.0 # 使用…… 题解列表 2024年03月27日 0 点赞 0 评论 461 浏览 评分:0.0
耿直思路的代码解决输出亲朋字符串 摘要:解题思路:注意事项:101参考代码:a=input()A=list(a)B=[]for i in range(len(A)): if i<len(A)-1: C=ord(A[i])+o…… 题解列表 2024年03月27日 0 点赞 1 评论 502 浏览 评分:9.9
猪鼻巴巴暴力法 摘要:解题思路:定义俩数组,一个是上一天,一个是今天上一天的每个点都判断,有细菌就把变化赋给今天的数组(有细菌就周围全加一倍自己加两倍),意思是只把变化赋给今天,昨天本来位置留着的细菌都四妹了然后把今天的再…… 题解列表 2024年03月27日 0 点赞 0 评论 407 浏览 评分:0.0