C语言题解 1093: 字符逆序 摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> int main() { char str[…… 题解列表 2024年02月22日 0 点赞 0 评论 148 浏览 评分:0.0
查找特定的值C解 摘要:解题思路:注意事项:注意看题参考代码:#include<stdio.h>int main(){ int n,a[10000],i,m,count=0; scanf("%d",&n); …… 题解列表 2024年02月22日 0 点赞 0 评论 179 浏览 评分:0.0
编写题解 1266: 马拦过河卒 摘要:解题思路:动态规划注意事项:参考代码:a, b, c, d = map(int, input().split())stop_point = [(0, 0), (-1, -2), (1, -2), (-…… 题解列表 2024年02月22日 0 点赞 0 评论 184 浏览 评分:0.0
Sn的公式求和,递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int ret) { if (ret > 9) { return ret + fun(ret / 10); } els…… 题解列表 2024年02月22日 0 点赞 0 评论 181 浏览 评分: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 评论 158 浏览 评分:0.0
C++(乘积最大)与题目1312同一种解法 摘要://与题目1312思路完全一致,若代码看不太明白可以去洛谷上看“算式”这题的题解,不用考虑那题的特殊情况,看dp[i][j]那种思路就行 #include <iostream> #include …… 题解列表 2024年02月22日 0 点赞 0 评论 174 浏览 评分:0.0
编写题解 2762: 计算(a+b)*c的值 摘要:解题思路:wu注意事项:wu,超级简单参考代码:a,b,c=map(int,input().split())print((a+b)*c)…… 题解列表 2024年02月23日 0 点赞 0 评论 688 浏览 评分: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 评论 307 浏览 评分: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 评论 194 浏览 评分: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 评论 165 浏览 评分:0.0