思路很简单,实现非常简单 摘要: #include int main() { char arr[100][201] = { 0 };// 每行最多两百个字符再加上一个换行符(不要像我一样,在vs上写成arr[20][1…… 题解列表 2022年11月13日 0 点赞 0 评论 397 浏览 评分:0.0
通俗易懂C++ 摘要:#include<iostream> using namespace std; // 因为n最大不超过30,足够用 char a[150][150]; void hua(int m,int t…… 题解列表 2022年11月13日 0 点赞 0 评论 388 浏览 评分:9.9
最直观的解题思路 摘要:### 不要想的太复杂,年轻人! ```c #include int main(void) { int temp,max = -214570227; while(1) …… 题解列表 2022年11月13日 1 点赞 0 评论 435 浏览 评分:9.5
蓝桥杯算法训练VIP-友好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,sum1=0,sum2=0; scanf("%d %d",&m,&n); if…… 题解列表 2022年11月13日 0 点赞 0 评论 326 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数(C语言题解) 摘要:解题思路:很多人使用辗转相除法来获得GCD和LCM,但在中学大家更多的应该是使用老师讲的短除法,所以这个代码采用了短除法的思路。参考代码:#include<stdio.h> int main() …… 题解列表 2022年11月13日 0 点赞 0 评论 376 浏览 评分:0.0
题解 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 评论 593 浏览 评分:8.7
杨辉三角, 三种方法: 组合数 || 递归 || 迭代,都很简单 摘要: #include long long Fun(int n, int m)// 组合数,注意大组合数 { if (n …… 题解列表 2022年11月14日 0 点赞 0 评论 1039 浏览 评分:9.9
2755: 类型转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("D C\n"); return 0;}…… 题解列表 2022年11月14日 0 点赞 0 评论 1639 浏览 评分:6.0
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 评论 1755 浏览 评分:9.9
题解1096:Minesweeper 摘要:# 1096: Minesweeper ## 知识点 ### 知识点1:无限循环输入,知道输入两个0的时候结束 我这里使用的方法是,用`times`变量进行计数,使用`for`循环。…… 题解列表 2022年11月14日 0 点赞 0 评论 344 浏览 评分:9.9