K-进制数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int zuhe(int n,int m){ int z=1; for(int i=…… 题解列表 2023年02月09日 0 点赞 0 评论 493 浏览 评分:9.9
有详解 简单易懂 ```cpp//目标:计算每个科目的平均分以及输出总分最高的学生的信息#include#includeusingnamespacestd;structstudent{stringxuehao;stringname;intkm1,km2,km3;};intmain(){//n个学生的成绩, 题解列表 2023年02月09日 0 点赞 0 评论 767 浏览 评分:0.0
最简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)…… 题解列表 2023年02月09日 0 点赞 0 评论 448 浏览 评分:0.0
计算球的体积(Python) 摘要:解题思路:注意事项:参考代码:import math pi = math.pi while True: try: r = float(input()) …… 题解列表 2023年02月09日 0 点赞 1 评论 1275 浏览 评分:7.5
最大上升子序列和-DP ####DP问题####注意事项-与最长上升子序列问题思路相同,仅仅改变维护的信息。######代码```#include#includeusingnamespacestd;constintN=1010;intn;inta[N],f[N];intmain(){cin>>n;for(inti=1;i 题解列表 2023年02月09日 0 点赞 0 评论 730 浏览 评分:9.9
题解 2811: 救援 摘要:解题思路:注意事项:参考代码:import math # 调用数学模块 t = 0 n = int(input()) #屋顶数 for i in range(n): a = …… 题解列表 2023年02月09日 0 点赞 0 评论 633 浏览 评分:6.0
最长上升子序列问题3-友好城市 ##最长上升子序列问题3###注意事项1.通过分析可以发现,符合标准的序列首先应该满足上下城市的编号都是递增的。2.那么先对一边的坐标进行排序,再对另一边进行最长上升子序列问题的求解即可。3.可以使用结构体或pair存储。4.其他类似问题有《登山》《怪盗基德的滑翔翼》《合唱队形》#####代码```/ 题解列表 2023年02月09日 1 点赞 0 评论 654 浏览 评分:9.9
球弹跳高度的计算C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h; scanf("%d",&h); int i; double h1=h; double s=0; f…… 题解列表 2023年02月09日 0 点赞 1 评论 927 浏览 评分:5.3
最长上升子序列问题3 ##最长上升子序列问题####注意事项1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.com/oj/problem3051.html)####代码```#include#includeusingnames 题解列表 2023年02月09日 0 点赞 0 评论 607 浏览 评分:0.0
最长上升子序列问题2 #最长上升子序列问题##注意事项1.从题目中可以看出,一开始上升后面下降,即先求上升子序列再求下降子序列。2.如果用三重循环可能超时,可以先预处理出左右循环,这样就是两重循环。####代码```#include#includeusingnamespacestd;constintN=1010;intn; 题解列表 2023年02月09日 0 点赞 0 评论 660 浏览 评分:9.9