题解列表

筛选

没人写,就我来吧。

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,t,b[1005]={0}; cin>>n; i……

1157: 亲和数

摘要:```cpp #include #include using namespace std; int main() { int i,M,j,k; cin>>M; ……

1158: 作业调度方案

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

温度转换(C++)

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

成绩归类(c++)

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

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

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

药房管理c语言版

摘要:解题思路:本题的意思是如果病人要的药不超过总量,则给他,如果超过则不给他换下一个人继续。注意事项:参考代码:#include<stdio.h>int main(){    int m,n,i,sum=……

多方法求阶乘(迭代、递归)

摘要:思路:本题考的非常简单,就是自定义一个函数,然后求阶乘的倒数之和。而求阶乘有两种方法,第一种是:使用迭代求阶乘(for循环);第二种使用递归来求阶乘。 注意事项:注意数据类型,题目涉及到小数,使……