排列-java(潮汕人做法) 摘要:解题思路:1.老爷保号!2.解题的关键在于如何得到每个四位数并存放,题目中已经有限制:四位数字只能产生24个四位数,所以定义一个长度为24的数组num来存放四位数,再定义一个长度为4的数组s来存放四个…… 题解列表 2022年01月17日 0 点赞 0 评论 494 浏览 评分:0.0
针对多个字符串比较,而不仅仅是三个 摘要:#include<stdio.h> #include<string.h> int main(){ char arr[50][50] = { '\0' }; …… 题解列表 2022年01月17日 0 点赞 0 评论 379 浏览 评分:0.0
这个数据给的奇葩,不能再一个循环中同时找最大最小值 摘要:注意事项: 最大值的下标不能提前设置为arr[0],要在找最大值是再定义.#include<stdio.h> #include<string.h> int main(){ …… 题解列表 2022年01月17日 0 点赞 0 评论 458 浏览 评分:0.0
用指针保存,不需要数组 摘要:#include<stdio.h> #include<string.h> int main(){ int state = 0; int i = 0; …… 题解列表 2022年01月17日 0 点赞 0 评论 264 浏览 评分:0.0
蓝桥杯算法提高VIP-理财计划 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<math.h>using namespace std;int main(){ …… 题解列表 2022年01月18日 0 点赞 0 评论 445 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:1.循环获取字符串中的“aeiou”,存入新的数组中,循环结束后,输出新的数组;注意事项:无参考代码:#include<stdio.h>#include<string.h>int i,x,y…… 题解列表 2022年01月18日 0 点赞 0 评论 371 浏览 评分:0.0
[编程入门]自定义函数之数字分离 摘要:解题思路:循环输入的字符串,如果不是最后一个字符,就输出字符+空格,最后一个字符,只输出它本身注意事项:无参考代码:#include<stdio.h>#include<string.h>int i,x…… 题解列表 2022年01月18日 0 点赞 0 评论 387 浏览 评分:0.0
有规律的数列求和(c语言) 摘要:参考代码:#include<stdio.h>int main(){ double Sn=0,i,j,n,a=2.0,b=1.0; scanf("%lf",&n); Sn+=a/b; …… 题解列表 2022年01月18日 0 点赞 0 评论 714 浏览 评分:0.0
1076: 内部收益率 摘要:解题思路:注意事项:参考代码:def f(x,ls): s = ls[0] for i in range(1,len(ls)): s += ls[i]/(1+x)…… 题解列表 2022年01月18日 0 点赞 0 评论 497 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:注意 0 的阶乘是 1。#include<bits/stdc++.h> using namespace std; void f(int &n){ if(n==0){ …… 题解列表 2022年01月18日 0 点赞 0 评论 335 浏览 评分:0.0