C语言 阶乘数列 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double factorial( int n); double Sn = 0…… 题解列表 2022年12月03日 0 点赞 0 评论 609 浏览 评分:0.0
2752: 整型数据类型存储空间大小 方法一:```cpp#includeusingnamespacestd;intmain(){inta;shortb;cout 题解列表 2022年12月03日 0 点赞 0 评论 1756 浏览 评分:9.9
核心:通过逆向赋值实现数值后移 ```c#includeintmain(){intn[10]={0},number;//number为我们要插入的数字for(inti=0;i 题解列表 2022年12月03日 0 点赞 0 评论 706 浏览 评分:0.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i = 0; int m; long int sum = 0; double ave…… 题解列表 2022年12月03日 0 点赞 0 评论 1075 浏览 评分:9.3
利用for循环求解编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i = 0; int m; int sum = 0; double aver = 0.0;…… 题解列表 2022年12月02日 0 点赞 0 评论 766 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,w=1; int t; int i,j; int x,y; sca…… 题解列表 2022年12月02日 0 点赞 0 评论 490 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; int t; int i,j; int x,y; scanf("…… 题解列表 2022年12月02日 0 点赞 0 评论 427 浏览 评分:0.0
一种超简单标准的枚举方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ enum play{lose=-1,equality,win} result; int a,b; …… 题解列表 2022年12月02日 0 点赞 0 评论 496 浏览 评分:0.0
C语言 统计字符& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define LONG 100int main(){ char c[LONG]…… 题解列表 2022年12月02日 0 点赞 0 评论 798 浏览 评分:9.9
时间复杂度的O(n)算法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxk 100010//0 …… 题解列表 2022年12月02日 0 点赞 0 评论 680 浏览 评分:9.9