题解列表

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int m,consume=0;    char demand;    scanf("%d %c",&m,……

编写题解 2919: 奖学金

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { int id; int yw, sx, yy; int sum;};struct student a[……

1328: 移动服务员

摘要:```cpp #include #include #include using namespace std; int f[2][210][210],p[1010],c[210][210],l……
优质题解

2797: 最高的分数(C++STL)解题

摘要:###### 解题思路: 将所有的数据存储到数组中去,,使用sort函数对他们进行排序,然后再输出就可以啦 ###### 注意事项: 在使用sort函数前,先了解一下它吧 它是ST……

二级C语言-同因查找

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; for(n=10;n<=1000;n++) { if(……

C++for循环简单实现

摘要:###### 解题思路: 对于输入中的换行,我们可以使用while()条件循环去解决,在输入n之后,在使用数组对输入的数进行存储,在定义一个double类型的sum(如果是int类型,就会出现结果是……

C语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct student{    long int id;    float score;};i……

题解 2189: diamond

摘要:解题思路:    1.找规律,把图形分成上三角和下三角两个部分            上三角:每一行“*”比下一行少两个;偶数行不输出;居中对齐            下三角:每一行“*&

组合数学题

摘要:解题思路:注意事项:参考代码:import sysread=lambda:int(sys.stdin.readline().strip())dpf={0:0,1:0}dph={0:0,1:0}def ……