编写题解 1266: 马拦过河卒 摘要:解题思路:动态规划注意事项:参考代码:a, b, c, d = map(int, input().split())stop_point = [(0, 0), (-1, -2), (1, -2), (-…… 题解列表 2024年02月22日 0 点赞 0 评论 157 浏览 评分:0.0
Sn的公式求和,递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int ret) { if (ret > 9) { return ret + fun(ret / 10); } els…… 题解列表 2024年02月22日 0 点赞 0 评论 162 浏览 评分:0.0
编写题解 1577: 蓝桥杯算法提高VIP-铺地毯 摘要:解题思路:注意事项:参考代码:n = int(input())rugs = []result = []for j in range(n): a, b, g, k = map(int, input…… 题解列表 2024年02月22日 0 点赞 0 评论 140 浏览 评分:0.0
C++(乘积最大)与题目1312同一种解法 摘要://与题目1312思路完全一致,若代码看不太明白可以去洛谷上看“算式”这题的题解,不用考虑那题的特殊情况,看dp[i][j]那种思路就行 #include <iostream> #include …… 题解列表 2024年02月22日 0 点赞 0 评论 153 浏览 评分:0.0
编写题解 2762: 计算(a+b)*c的值 摘要:解题思路:wu注意事项:wu,超级简单参考代码:a,b,c=map(int,input().split())print((a+b)*c)…… 题解列表 2024年02月23日 0 点赞 0 评论 594 浏览 评分:0.0
编写题解 3003: 鸡兔同笼问题 摘要:解题思路:数学问题,列方程即可注意事项:参考代码:a,b=map(int,input().split())j=(4*a-b)/2t=(b-2*a)/2print('%d %d'%(j,…… 题解列表 2024年02月23日 0 点赞 0 评论 284 浏览 评分:0.0
题解 1014: [编程入门]阶乘求和 摘要:解题思路:数据类型,阶乘表达注意事项:数据类型参考代码:#include<stdio.h>int main(){long sn=0,sum1=1;int n;scanf("%d",&n);if(n<=…… 题解列表 2024年02月23日 0 点赞 0 评论 176 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a=1,n; cin>>n…… 题解列表 2024年02月23日 0 点赞 0 评论 150 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,jp=0,yp=0,tp=0,j,y,t…… 题解列表 2024年02月23日 0 点赞 0 评论 122 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-买瓜 摘要:```java import java.util.Scanner; // 1:无需package // 2: 类名必须Main, 不可修改 public class Main { st…… 题解列表 2024年02月23日 0 点赞 0 评论 610 浏览 评分:0.0