究极无敌超级C语言狗屎做法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int m,n,x; scanf("%d %d %d",&m,&n,&x);…… 题解列表 2024年08月15日 0 点赞 0 评论 580 浏览 评分:9.9
究极无敌超级C语言计算多项式的导函数 摘要:解题思路: 由题可知,只需要记录最高幂和从最高幂到0次幂,然后求出他们的导,输出其系数。因此只需要记录1~n次幂的系数,因为0次幂时导的系数为0。 系数=原系数*幂…… 题解列表 2024年08月15日 0 点赞 0 评论 669 浏览 评分:9.9
超级简单的数字统计C语言 摘要:解题思路:利用for与%10反复求每个数的个位数,有2则和加1注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int l,r,l…… 题解列表 2024年08月14日 1 点赞 0 评论 693 浏览 评分:9.9
C语言简单思路 判度质数 摘要:解题思路:已知:n=i*(n/i),其中i与n/i都为质数,求最大质数。 因此,只需要将i从最小质数开始算,当i和(n/i)都为质数时,(n/i)变为最大质数。//(因为i…… 题解列表 2024年08月14日 0 点赞 0 评论 754 浏览 评分:9.9
字符数组遍历解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100] = { 0 };//初始化字符数组 …… 题解列表 2024年08月14日 0 点赞 0 评论 625 浏览 评分:0.0
十分简单,一看就会 摘要:参考代码:#include<stdio.h>int main(){ int n,k=0; int num,a[100]; scanf("%d",&n); for(int i=1;i<n;i++){ …… 题解列表 2024年08月14日 0 点赞 0 评论 471 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100] = { 0 }; …… 题解列表 2024年08月13日 0 点赞 0 评论 400 浏览 评分:9.9
我看没有人用结构体数组解,那我就写了一个(C语言) 1)**常规解法**我真的服了,第一次我是用这个方法,结果只过了50%,说是时间超限,找了半天实在不知道哪有问题,我就想着那就用结构体数组,用空间换时间。结构体数组过了,然后我看题解,发现大家都用常规解法,然后我再写一次居然过了,气死我了。```c#include#includeintmain(){i 题解列表 2024年08月12日 2 点赞 0 评论 687 浏览 评分:10.0
船新解法,结构体(c语言) ```c#include#includetypedefstruct{intjishuwei[10],oushuwei[10];}link;inthaoshu(intn){link*arr=malloc(sizeof(link));//动态分配内存, 题解列表 2024年08月12日 0 点赞 0 评论 702 浏览 评分:9.9
C语言训练-求PI* 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e2 + 10…… 题解列表 2024年08月12日 0 点赞 0 评论 607 浏览 评分:0.0