信息学奥赛一本通T1238-一元三次方程求解:浮点数分治 摘要:解题思路: 分治。 因为根差的绝对值大于1, 所以以距离为1的区间,依次分治注意事项:参考代码:#include<iostream> #include<cmath> using namespac…… 题解列表 2024年02月16日 0 点赞 0 评论 175 浏览 评分:9.9
2911: 连续出现的字符 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2911: 连续出现的字符 import java.util.Scanner; public class t_2911 …… 题解列表 2024年02月16日 0 点赞 0 评论 211 浏览 评分:0.0
编程入门]链表之报数问题(C++简洁)双链表 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;struct Node{ int data; Node* next, * prev;}a[1…… 题解列表 2024年02月16日 0 点赞 0 评论 384 浏览 评分:9.9
最长单词2(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2961: 最长单词2 import java.util.Scanner; public class t_2961 {…… 题解列表 2024年02月16日 0 点赞 0 评论 197 浏览 评分:0.0
C++过河卒(动态规划) 摘要:解题思路:首先考虑暴力解法,果不其然会超时,然后发现每个点的状态只会由左边一个点和上边一个点转化而来,想到用dp,令dp[x][y]为到该点的路径数量,可知dp[x][y]=dp[x-1][y]+dp…… 题解列表 2024年02月16日 0 点赞 0 评论 380 浏览 评分:0.0
2950: 素数回文数的个数 摘要:解题思路:注意事项:参考代码:a=int(input())count=0s=[]for i in range(11,a+1): for j in range(2,i): if i%…… 题解列表 2024年02月16日 0 点赞 0 评论 352 浏览 评分:9.9
C语言训练-8除不尽的数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"1993"; return 0;}…… 题解列表 2024年02月16日 0 点赞 0 评论 189 浏览 评分:6.0
整数序列的元素最大跨度值C 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[1000],min,max; scanf("%d",&n); for(i=…… 题解列表 2024年02月16日 0 点赞 0 评论 135 浏览 评分:0.0
编写题解 2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k = 0; scanf("%d", &k); double sn = 0; int i = 0; w…… 题解列表 2024年02月16日 0 点赞 0 评论 235 浏览 评分:0.0
Jayden-[解释通俗易懂,一看就会! ] 结构体之成绩统计2 摘要:解题思路:1.main函数只用使用for循环读取N名同学的信息 2.自定义average函数,求出三科成绩的平均数 3.然后自定义greatest函…… 题解列表 2024年02月16日 0 点赞 1 评论 244 浏览 评分:9.9