计负均正(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip> …… 题解列表 2022年10月23日 0 点赞 0 评论 324 浏览 评分:7.3
同因查找(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i; for(i=10;i<=1000;i++) …… 题解列表 2022年10月23日 0 点赞 0 评论 398 浏览 评分:9.9
等差数列(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i=1,j=2,sum=2; cin>>n; …… 题解列表 2022年10月23日 0 点赞 0 评论 390 浏览 评分:9.9
求偶数和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,s=0,a[20]; cin>>n; …… 题解列表 2022年10月23日 0 点赞 0 评论 287 浏览 评分:9.9
分段函数(C++) 摘要:解题思路:用f()分段;参考代码:#include<iostream>using namespace std;#include <iomanip> …… 题解列表 2022年10月23日 0 点赞 0 评论 629 浏览 评分:9.9
温度转换(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float c,F; c…… 题解列表 2022年10月23日 0 点赞 0 评论 527 浏览 评分:9.9
dp,讲述一些经验和细节注意 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//最大上升子序列的问题,O(n^2)算法轻松解决//这种题用不了O(nlogn)的二分算法,因为存在两个元素无法比较的现象…… 题解列表 2022年10月23日 0 点赞 0 评论 278 浏览 评分:9.9
进制转换(简短) 摘要:解题思路:8进制满8进1,因此要不断取n/8和n%8;n%8取出低位的数,再乘以该位的位数,如10,100,1000,(利用power()实现)b/8是使n不断降位,(利用while实现),至0时退出…… 题解列表 2022年10月22日 0 点赞 0 评论 355 浏览 评分:9.9
计算素数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int m,n,i,j,s;int main(){ cin>>m>>n; fo…… 题解列表 2022年10月22日 0 点赞 0 评论 266 浏览 评分:9.9
平均值计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ float s[10],c=0,t; int i; …… 题解列表 2022年10月22日 0 点赞 0 评论 2321 浏览 评分:9.9