2757: 浮点数向零舍入(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; int b; scanf("%f",&a); b=a; printf("%d\n",b); …… 题解列表 2022年11月14日 0 点赞 1 评论 1778 浏览 评分:9.9
2755: 类型转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("D C\n"); return 0;}…… 题解列表 2022年11月14日 0 点赞 0 评论 1672 浏览 评分:6.0
杨辉三角, 三种方法: 组合数 || 递归 || 迭代,都很简单 摘要: #include long long Fun(int n, int m)// 组合数,注意大组合数 { if (n …… 题解列表 2022年11月14日 0 点赞 0 评论 1054 浏览 评分:9.9
题解 2803: 整数的个数(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,k,i,j=0,y=0,z=0; scanf("%d",&k); for(i=1;i<=k;i++)…… 题解列表 2022年11月14日 0 点赞 0 评论 615 浏览 评分:8.7
[编程入门]最大公约数与最小公倍数(C语言题解) 摘要:解题思路:很多人使用辗转相除法来获得GCD和LCM,但在中学大家更多的应该是使用老师讲的短除法,所以这个代码采用了短除法的思路。参考代码:#include<stdio.h> int main() …… 题解列表 2022年11月13日 0 点赞 0 评论 417 浏览 评分:0.0
蓝桥杯算法训练VIP-友好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,sum1=0,sum2=0; scanf("%d %d",&m,&n); if…… 题解列表 2022年11月13日 0 点赞 0 评论 340 浏览 评分:0.0
最直观的解题思路 摘要:### 不要想的太复杂,年轻人! ```c #include int main(void) { int temp,max = -214570227; while(1) …… 题解列表 2022年11月13日 1 点赞 0 评论 450 浏览 评分:9.5
通俗易懂C++ 摘要:#include<iostream> using namespace std; // 因为n最大不超过30,足够用 char a[150][150]; void hua(int m,int t…… 题解列表 2022年11月13日 0 点赞 0 评论 407 浏览 评分:9.9
思路很简单,实现非常简单 摘要: #include int main() { char arr[100][201] = { 0 };// 每行最多两百个字符再加上一个换行符(不要像我一样,在vs上写成arr[20][1…… 题解列表 2022年11月13日 0 点赞 0 评论 417 浏览 评分:0.0
c语言计算奇数偶数之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int x=0,y=0,i=1,d=2; while(i<=n){…… 题解列表 2022年11月13日 0 点赞 0 评论 941 浏览 评分:9.9