计算多项式的值(注意了你最后统计结果值的时候要用double类型,用float类型不行,估计是小了,还有pow()函数不能用,估计是精度问题,这种我一直都觉得有点迷迷糊糊的) 摘要:参考代码: ```c #include #include int main() { float x; int n; scanf("%f%d",&x,&n); double s…… 题解列表 2023年10月03日 0 点赞 0 评论 396 浏览 评分:9.9
刻录光盘(c++) 摘要:## 解题思路 求强联通分量,统计入度为0的即可 ## 参考代码 ```cpp #include using namespace std; const int N = 1e4 + 5; …… 题解列表 2023年10月03日 0 点赞 0 评论 500 浏览 评分:9.9
C语言---堆排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <assert.h> typedef int HPDatatyp…… 题解列表 2023年10月03日 0 点赞 0 评论 421 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define maxsize 1001typedef struct treenode{ int d…… 题解列表 2023年10月03日 0 点赞 0 评论 367 浏览 评分:0.0
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年10月04日 0 点赞 0 评论 350 浏览 评分:0.0
我这个巨简单 摘要:# 读取输入 L, M = map(int, input().split()) road = [0] * (L + 1) # 创建一个长度为 L+1 的数组,用于表示马路上的树 # 处理区…… 题解列表 2023年10月04日 0 点赞 0 评论 480 浏览 评分:9.9
过河卒 python 摘要:n,m,cx,cy=list(map(int,input().split()))dp=[[0 for x in range(m+1)]for y in range(n+1)]b=[[0 for x i…… 题解列表 2023年10月04日 0 点赞 0 评论 597 浏览 评分:9.9
2854: 密码翻译 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2023年10月04日 0 点赞 0 评论 286 浏览 评分:0.0
学英语的题,看懂题目就赢 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; while(~scanf("%d",&n)&&n!=0) { in…… 题解列表 2023年10月04日 0 点赞 0 评论 295 浏览 评分:0.0
The 3n + 1 problem(乐,别忘了i和j的值要比下大小,再使用,还有如果i如果大于j的话,你交换了他们的值,但最终结果输出i和j必须是输入的i和j) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; while(~scanf("%d%d",&a,&b)) { i…… 题解列表 2023年10月04日 0 点赞 0 评论 262 浏览 评分:0.0