教你两秒钟解决 金航 问题(小黑子也会=_=) 摘要:解题思路: 设置一个条件,当符合该条件,金币数加1 =_=||注意事项: 天冷了,多喝热水>_< 参考代码:#include <stdio.h>int main(){ …… 题解列表 2023年01月09日 0 点赞 0 评论 653 浏览 评分:9.9
2901:查找特定的值——遍历 摘要:解题思路: 给了n个数,需要从中找值为x的数的下标。 因此可以设定一个数组a,用来存放这n个数。 然后遍历数组a,寻找某个下标k,使得 a[k…… 题解列表 2023年01月09日 0 点赞 0 评论 559 浏览 评分:0.0
蓝桥杯算法提高VIP-sign函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sign(double x){ if(x>0) { return 1; } …… 题解列表 2023年01月09日 0 点赞 0 评论 506 浏览 评分:0.0
三位数分解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,n,i; scanf("%d",&n); for(i=100;…… 题解列表 2023年01月09日 0 点赞 0 评论 575 浏览 评分:0.0
C++ 贪心 + 排序 ```cpp#includeusingnamespacestd;#definelllonglongnamespacetest1{structtool{llid;//编号llnum;//增量};lln1,n2;boolcompA(toola1, 题解列表 2023年01月09日 0 点赞 0 评论 534 浏览 评分:9.9
蓝桥杯算法提高VIP-最大最小值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[10000];int main(){ int n,i,max,min; scanf("%d",&n); …… 题解列表 2023年01月09日 0 点赞 0 评论 384 浏览 评分:0.0
二级C语言-公约公倍(水题) 摘要:解题思路:注意事项:参考代码#include <stdio.h>int gcd(int x,int y){ int r; r=x%y; do{ x=y; y=r; r=x%y; }while(r…… 题解列表 2023年01月09日 0 点赞 0 评论 471 浏览 评分:9.9
虽然简单但是注意的问题多 解题思路:看到这题,直接数组加for语句,max,min值比较就行注意事项:max,min的定义顺序很重要,你要是直接定义max,min各自=0,代入其他的数(非零的),就错误了。须得把max,min分别代入数组第一个数进行比较。参考代码:#includeintmain(){intn 题解列表 2023年01月09日 0 点赞 1 评论 953 浏览 评分:9.9
求整数的和与均值 注重细节就行 摘要:解题思路:scanf输入,for语句应用,算数格式一致注意事项:注意整数与小数的统一参考代码:#include<stdio.h>int main(){ int n,a,sum=0; dou…… 题解列表 2023年01月09日 0 点赞 0 评论 572 浏览 评分:0.0
就是比较简单的递推 有标注 应该可以看懂 解题思路:注意事项:参考代码:#includeusingnamespacestd;longlongn,k;longlongf1(longlongn,longlongk)//一般用ll防止数据过大{if(n 题解列表 2023年01月09日 0 点赞 0 评论 888 浏览 评分:9.9 « 12...655656657658659660661...29572958 »