题解列表

筛选

结构体之成绩记录(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ char id[20]; char name[20]; int……

来自欧亚的天才刘磊

摘要:解题思路:这都能不懂了?注意事项:带上你的脑子,和一颗专注且想要求知的心来吧参考代码:int t,n,k=0; scanf("%d",&n); t=n; int i; for(i=0;i<5;i++)……

二级C语言-自定义函数

摘要:#include double fact(double n) {     int i;     double sum=1.0;     for(i=1;i<=n;i++)         s……

猴子吃桃问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i;     scanf("%d",&n);    int t=1;    for(i=1;i……

链表合并(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id; int score; student *nex……

蓝桥杯算法提高VIP-排队打水问题

摘要:解题思路:将每个人的打水时间进行排序,根据水龙头个数进行分组,然后每次记录等待时间+打水时间即可。(由于每人打水时间不同,因此排序后分组可以确保x结束时y也正好结束或者y在x之前结束。其中,Tx < ……

二级C语言-阶乘公式求职

摘要:#include <stdio.h> double fack(int k) {     int i;     double sum=1.0;     for(i=1;i<=k;i++)  ……

数字逆序输出的写法

摘要:解题思路:      一次输入10个数字,则定义一个数组元素为10的数组;后利用从右往左递降输出即可注意事项:数组长度为10,所以数组下标从0开始参考代码:#include<stdio.h>int m……