结构体之时间设计C语言 ```c#define_CRT_SECURE_NO_WARNINGS1#includeintmain(){inta[12]={31,28,31,30,31,30,31,31,30,31,30,31};intnian,yue,ri,i,sum=0;scanf("%d", 题解列表 2023年10月07日 0 点赞 0 评论 490 浏览 评分:0.0
自定义函数之数字后移C语言 摘要:```c #include int main() { int n,i,j,k,t,a; int S[100]; int A[100]; scanf("%d", &n); f…… 题解列表 2023年10月07日 0 点赞 0 评论 584 浏览 评分:9.9
画矩形(呃,(╹ڡ╹ )) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); getchar(); cha…… 题解列表 2023年10月07日 0 点赞 0 评论 468 浏览 评分:0.0
计算多项式的导函数(如果出现了题目中输出格式的第二种情况,幂次为0,求导系数应该为0,但这里的话不输出,如果输出0,就会错) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a; if(n==0) { …… 题解列表 2023年10月07日 0 点赞 0 评论 687 浏览 评分:7.3
c语言代码解决问题快速排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct student{ int id; int chinese; int m…… 题解列表 2023年10月06日 0 点赞 0 评论 576 浏览 评分:0.0
糖果游戏(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[5]; for(int i=0;i<5;i++) { scanf("…… 题解列表 2023年10月06日 0 点赞 1 评论 711 浏览 评分:0.0
小题大作-用快速排序解决 会有点小题大作,适合练习算法,三个数看不出来时间复杂度的差异快排对数据排好序之后,再输出最大值即可。```c#includeintpartition(inta[],intlow,inthigh){//一次划分intpivot=a[low];while(low 题解列表 2023年10月06日 0 点赞 0 评论 641 浏览 评分:0.0
2680-纸张尺寸 摘要:解题思路:注意事项:注意格式,输出要换行参考代码:#include<stdio.h>int main(){ int q[10000],w[10000],i=0;getchar(); …… 题解列表 2023年10月06日 0 点赞 0 评论 528 浏览 评分:0.0
优质题解 数字的处理与判断(详解·) 解题思路:本题如果想直接输入数字可能处理会很麻烦,我的处理方法是先用字符串输入,再转化为数字。首先定义字符数组a[6],第一问要求求出几位数(可以直接理解为字符数组的长度),我们可以直接使用strlen函数;第二问直接利用循环输出即可;第三问也是直接逆序输出。 题解列表 2023年10月06日 8 点赞 2 评论 4037 浏览 评分:9.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101]; int i; while (scanf("%s…… 题解列表 2023年10月05日 0 点赞 0 评论 532 浏览 评分:0.0