高中不会的题现在终于解决了!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i; float a,b,m,n; scanf("%f…… 题解列表 2024年11月13日 0 点赞 0 评论 151 浏览 评分:0.0
有详细解题思考方向,执果索因, 随便写啦 摘要:解题思路: 观察题目给出的具体输出例子,有正三角形,倒三角形,空格(正三角形前面有空格,两个三角形中间也有空格)先分别写一下正三角形和倒三角形输出代码,要求两个代码限制循环的条件相同,用具体的例子,然…… 题解列表 2024年11月13日 1 点赞 0 评论 218 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b=1; scanf("%d",&a); for(i=1;i<a;i++) …… 题解列表 2024年11月13日 0 点赞 0 评论 205 浏览 评分:0.0
2875: 回文子串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main( ){ char s[501]={0}; int n,len,beg…… 题解列表 2024年11月14日 0 点赞 0 评论 229 浏览 评分:0.0
排列 dfs暴力 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; // 全局变量声明 int n, a[5], b[5], m = 0;…… 题解列表 2024年11月14日 0 点赞 0 评论 168 浏览 评分:0.0
STL map解法 和为给定数 摘要:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7 + 10;ll num[N];ma…… 题解列表 2024年11月14日 0 点赞 0 评论 144 浏览 评分:0.0
1107: 纪念品分组 摘要:解题思路:动态数组:vector<int>p(n)sort 对数组进行降序排序两重遍历,只要两项加起来小于等于w,就分为一组已分配好的纪念品置成-1(价格不会达到的数)第一重遍历会遇到已经分配好的纪念…… 题解列表 2024年11月14日 0 点赞 0 评论 277 浏览 评分:0.0
只用循环做出本题 摘要:解题思路:穷举每个情况注意事项:想好逻辑就行参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); …… 题解列表 2024年11月14日 2 点赞 0 评论 400 浏览 评分:0.0
简单算法,易理解 摘要:解题思路:a和b分别接收字符串,用加号拼接注意事项:参考代码:a=input()b=input()print(a+b)…… 题解列表 2024年11月14日 0 点赞 0 评论 338 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); sum=n*2+n*(n-1)/2*…… 题解列表 2024年11月14日 1 点赞 0 评论 246 浏览 评分:0.0