一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,w=1; int t; int i,j; int x,y; sca…… 题解列表 2022年12月02日 0 点赞 0 评论 476 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; int t; int i,j; int x,y; scanf("…… 题解列表 2022年12月02日 0 点赞 0 评论 412 浏览 评分:0.0
一种超简单标准的枚举方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ enum play{lose=-1,equality,win} result; int a,b; …… 题解列表 2022年12月02日 0 点赞 0 评论 484 浏览 评分:0.0
C语言 统计字符& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define LONG 100int main(){ char c[LONG]…… 题解列表 2022年12月02日 0 点赞 0 评论 769 浏览 评分:9.9
递归(C语言) 观察到第一年为一头,第二年为两头。。。第五年为六头以此类推,可以得到递推公式f(n)=f(n-1)+f(n-3)则可创建递归函数------------#includeintF(intx){if(x>4)returnF(x-1)+F(x-3);elseif(x>=1&&x 题解列表 2022年12月02日 0 点赞 0 评论 571 浏览 评分:7.3
三角形判断(C++) 摘要:解题思路:双边和必须大于一边注意事项:参考代码:#include<cstdio> using namespace std; int main(){ int a,b,c; scanf("%d…… 题解列表 2022年12月02日 0 点赞 0 评论 486 浏览 评分:0.0
c语言3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 1; int n; int sum1 = 0; int sum2 = 0; scanf("%d"…… 题解列表 2022年12月01日 0 点赞 0 评论 635 浏览 评分:9.9
(小白板)矩阵交换行 解题思路:很简单啊,就是一个循环直接做一个交换,但中间要用到一个交换变量注意事项:就是数组要从1开始输入,而不是从0开始,因为不符合我们数学的常规思想#includeintmain(){inta[100][100];inti,j;for(i=1;i 题解列表 2022年12月01日 0 点赞 3 评论 1311 浏览 评分:9.9
最笨的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d,e,f; scanf("%d",&a); if(a>9999){ …… 题解列表 2022年12月01日 0 点赞 2 评论 441 浏览 评分:9.9
基本思路用函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//计算素数和#include<math.h>int isprime(int x){ int i,a; for (i = 2; i <=…… 题解列表 2022年12月01日 0 点赞 0 评论 426 浏览 评分:0.0