题解列表

筛选

c语言代码解决问题

摘要:解题思路:注意事项:#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct student{ char id[21]; ……

电报加密(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100];    gets(a);    int i; ……

查找特定的值

摘要:解题思路:首先通过scanf获取数据,接着对给定的一串数据,通过数组记录,开始获取的数据即为数组长度,再由这个数组长度来声明数组,并通过循环遍历给数据赋值,至此已经获得了一串代找数据,然后先给一共变量……

结构体之时间设计(简单C语言)

摘要:解题思路:1月到12月没什么规律,所以用个数组来累加,累加玩后在month>=3月开始判断是闰年与否,是的话sum++注意事项:参考代码:#include<stdio.h>#include<stdli……

三个数字的排序

摘要:#include using namespace std; int main(){ int a[3]; for(int i=0;i>a[i]; } sort(a,a+3……

2909: 直方图

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long tong[10000];int main(){    int ……

2974: 统计字符数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[200];int main(){//输入随机个数字    cha……

题解 2974: 统计字符数

摘要:解题思路:首先,观察题目,就本题分成几个任务:第一个任务:输入字符串。我们可以发现,本题中输入的变量(字符)的数量是不固定的,用普通的循环无法完成,就需要一种特殊的方法。while(cin>>c)//……

白细胞计数(OwO)

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

结构体之成绩记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct DATA{    char Numb[100];    char Name[20];    int sco……