耿直思路的代码解决输出亲朋字符串 摘要:解题思路:注意事项: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 评论 524 浏览 评分:9.9
编写题解 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 评论 479 浏览 评分:0.0
编写题解 2833: 金币,python超简单 摘要:def calculate_coins(days): coins = 0 # 初始化骑士收到的金币总数为0 n = 1 # 初始化每天的金币数量为1 day_coun…… 题解列表 2024年03月27日 0 点赞 0 评论 494 浏览 评分:0.0
信息学奥赛一本通T1432-糖果传递(数学递推的应用) 摘要:解题思路:https://blog.csdn.net/qq_41890797/article/details/90244567 公式推理**代码解释:****输入处理:*** 读…… 题解列表 2024年03月27日 1 点赞 0 评论 639 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-平面切分 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct node { long double x,y; }a[…… 题解列表 2024年03月27日 0 点赞 0 评论 578 浏览 评分:9.9
蓝桥杯算法训练VIP-摆动序列(秒解) 摘要:解题思路: 每一组数只有唯一两种排列方式,先对K内求得长度在2以上的组合数,然后求和后乘2即可。 1&n 题解列表 2024年03月27日 0 点赞 0 评论 530 浏览 评分:9.9
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 评论 420 浏览 评分:0.0
利用重载进行多个数字相加 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int add(int a,int b){ return (a+b);}int add(…… 题解列表 2024年03月27日 0 点赞 0 评论 467 浏览 评分:0.0
选数异或(线段树思路详解) 摘要:解题思路: 思路详解在:https://www.acwing.com/solution/content/228403/参考代码:const int N = 1e5; #include <iostre…… 题解列表 2024年03月27日 2 点赞 0 评论 826 浏览 评分:10.0
Java的动态规划 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class BookBuying { public static void main(String[…… 题解列表 2024年03月27日 1 点赞 0 评论 575 浏览 评分:9.9