1226题解——贪心 摘要:解题思路:分奇偶两种情况考虑。注意事项:参考代码:#include <stdio.h> #include <iostream> using namespace std; int gc…… 题解列表 2024年03月17日 0 点赞 0 评论 350 浏览 评分:0.0
切开字符串-C语言 摘要:## 切开字符串-C语言 函数:正回文子串种类(manacher算法)、所有子串种类-正回文子串种类 ``` #include #define MaxChar 100001 int O…… 题解列表 2024年03月18日 0 点赞 0 评论 340 浏览 评分:0.0
自定义函数求一元二次方程,非常简单的做法 摘要:参考代码:#include<iostream> #include<math.h>using namespace std;int main(){ double a,b,c; double x1,x2,x…… 题解列表 2024年03月18日 0 点赞 0 评论 459 浏览 评分:0.0
数学真的很重要 摘要:解题思路:这是一个数学类型的题目,代码很简单,只要核心想到了答案就出来了。最大的不能买到的数字就是两个数字的最小公倍数再减去它们之和(设它为t),为什么是这样呢?最小公倍数就是两个数都可以单独构成,在…… 题解列表 2024年03月18日 0 点赞 0 评论 566 浏览 评分:0.0
成绩评定用if的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x>=90) printf("A\n"); else if…… 题解列表 2024年03月18日 0 点赞 0 评论 472 浏览 评分:0.0
丢掉大脑!无脑分糖果! 摘要:解题思路:把糖果数目放到列表里,用最大值最小值判断是否全部相等注意事项:参考代码:n = int(input())list0 = list(map(int,input().split()))sum =…… 题解列表 2024年03月18日 0 点赞 0 评论 348 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or …… 题解列表 2024年03月18日 0 点赞 0 评论 208 浏览 评分:0.0
[编程入门]利润计算注意前面的计算要进行叠加,,, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d",&i); if(i<=100000) j=0.1*i; if(i…… 题解列表 2024年03月18日 0 点赞 0 评论 265 浏览 评分:0.0
2811 救援(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,a,b,c; double t1,t=0.0; s…… 题解列表 2024年03月18日 0 点赞 0 评论 328 浏览 评分:0.0
使用sort,lamba和二维列表,简单易懂 摘要:解题思路:注意事项:参考代码:# 读取输入n = int(input())students = [] # 学生列表,每个元素为一个列表:[学号, 语文成绩, 总成绩]for i in range(n…… 题解列表 2024年03月18日 0 点赞 0 评论 251 浏览 评分:0.0