题解列表

筛选

编写题解 2929: 网线主管

摘要:解题思路:定义一个函数用来计算绳子数量,只需要假设最后的输出结果是x,然后采用二分法计算出x的最大值注意事项:此函数的使用条件是在整数的时候,也就是把小数化成了整数,然后采用二分法,这里如何+-1是比……

成绩等级字母输出c语言

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); switch(x/10) { case 10: case 9……

阶乘公式求职(c++)(怀氏)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;double fact(double n)                         {……

成绩归类(c++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n1=0,n2=0,n3=0,n;    do    {……

寻找矩阵最值(C++)简单思路

摘要:解题思路:用二维数组,具体看代码注释注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,i,j,t,a[10][1……

温度转换(C++)

摘要:解题思路:注意事项:输出格式参考代码:#include<iostream>using namespace std;float cyof(int c){    float f;    f=32+c*9/……

1158: 作业调度方案

摘要:```cpp #include using namespace std; struct node { int id,cost; } w[21][21]; int m,n,ord……