题解列表
题解 1641: 蓝桥杯算法训练VIP-星际交流 C++ 18行代码 next_permutation
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[10005];int n,m;int mai……
蓝桥杯2014年第五届真题-排列序数-题解(C++代码和STL容器)简单高效易懂。
摘要:解题思路:先求出1到10的各个阶乘,再输入字符串,复制该字符串并排序,然后进入循环,详见解析。注意事项:及时除去c中的c[j]可以简化代码复杂度。由于表达能力有限,文字描述不是很好,望各位多多包涵,若……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int gcd(int a, int b)//最大公约数
{
if (b == 0)
return ……
信息学奥赛一本通T1588-数字游戏-题解(C++代码)
摘要: 数位DP板子题(本质记忆化搜索)constexpr auto Inf = 0X3F3F3F3F;
#ifndef LOCAL
#include <bits/stdc++.h>
……
朴实无华的解法,只要你懂结构体,冒泡排序,strcmp函数,就能看得懂。
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>struct student{ char name[101]; int age; ……