1011我就是敢说,我的是最简单的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int c,a,b,d,n;scanf("%d %d",&a,&b); c=a>b?a:b;d=a<b?a:b…… 题解列表 2021年11月07日 0 点赞 0 评论 677 浏览 评分:0.0
1018折磨我是不是C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double t,g,i,a=1,b=1,x,y=0;scanf("%lf",&x); for (i=1…… 题解列表 2021年11月07日 0 点赞 0 评论 342 浏览 评分:0.0
1091 好家伙原来是空了两行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int a,b;while (~scanf("%d %d",&a,&b)) { printf("%d\n\n…… 题解列表 2021年11月07日 0 点赞 0 评论 457 浏览 评分:0.0
1112我是服了,如果没有记得方程的简便解法,怎么写? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x1,x2,a,b,c,d,t; scanf("%lf…… 题解列表 2021年11月07日 0 点赞 0 评论 433 浏览 评分:0.0
1119难不倒我的嘿嘿C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int a,b,c,x;scanf("%d",&x); if (x>=100&…… 题解列表 2021年11月07日 0 点赞 0 评论 402 浏览 评分:0.0
母牛问题解决代码 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;typedef long long ll;ll a[100005];int main(…… 题解列表 2021年11月07日 0 点赞 0 评论 362 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:我没有用辗转相除,先计算两个数有相同的公因式的,那么最小公倍数就是你输入的较大的数,然后判断是不是两个奇数,那么最小公倍数就是两数之积(9,3这类的 数字已经被排除出去了),最后就是一个奇数…… 题解列表 2021年11月07日 0 点赞 0 评论 577 浏览 评分:0.0
DNA(c语言版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void daying(int a, int b)//a其实是表示一行要打印多少个(包括X和空格){ int i; int head =…… 题解列表 2021年11月08日 0 点赞 0 评论 431 浏览 评分:0.0
C语言训练-尼科彻斯定理 摘要:解题思路:这道题对于我来说,可能选择了暴力破解的方式,没有用其他的算法。其中你任意输入的正整数m可以通过找中间数的方式来找出中间数m*m,再自定义函数将该中间数判断奇偶分别处理。 在函数里面,以…… 题解列表 2021年11月08日 0 点赞 0 评论 440 浏览 评分:0.0
利用while和for循环求阶乘之和 摘要:解题思路:先求每个阶乘,在求和注意事项:求阶乘的时候要注意数值溢出参考代码:#include <stdio.h>int main(){ int n,i;//b是阶乘的和 long long int …… 题解列表 2021年11月08日 0 点赞 0 评论 676 浏览 评分:0.0