题解列表
蓝桥杯2014年第五届真题-排列序数-题解(C++代码和STL容器)简单高效易懂。
摘要:解题思路:先求出1到10的各个阶乘,再输入字符串,复制该字符串并排序,然后进入循环,详见解析。注意事项:及时除去c中的c[j]可以简化代码复杂度。由于表达能力有限,文字描述不是很好,望各位多多包涵,若……
题解 1641: 蓝桥杯算法训练VIP-星际交流 C++ 18行代码 next_permutation
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[10005];int n,m;int mai……
蓝桥杯算法提高VIP-贪吃的大嘴
摘要:解题思路:注意事项:参考代码:#总美味度,蛋糕种类数
m,n=map(int,input().split())
#记录每种蛋糕的美味度
vals=[]
#记录每种蛋糕的数量
nums=[]
……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int a = 0, b = 0, t;
for (int i = 0; i < ……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int a[10];
for (int i = 0; i < 10; i++)
……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int LeapYear(int year) //判断是否为闰年,闰年2月有29天,平年28天
{
if (ye……
用列表计算企业利润比较简单
摘要:解题思路:注意事项:参考代码:n = float(input())bonus = [1000000, 600000, 400000, 200000, 100000]tax = [0.01, 0.015……