题解列表
明明的随机数sort() + unique()两个函数使用
摘要:
### 算法
(排序去重) $$O(nlogn)$$
考察两个函数的使用:
- sort:可以将序列排序
- unique:可以将序列中所有相邻的重复元素删除(只保留一个)。此处的删除,并……
【C++】非常好的一段代码,容易理解
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int arr[10];void Shuru(){ for( int i = 0 ; i <……
用c++中库函数__gcd()求最小公倍数
摘要:解题思路: 用c++中库函数__gcd()求最小公倍数,代码非常简洁,hhh注意事项: 要包含头文件#include<
landun蚂蚁(c++)
摘要:#include<iostream>using namespace std;int landun[100][100];int m, n;int x, y, k;char s;int main(){ c……
Jam的计数法(全排列解法)
摘要:参考代码:#include <cstdio>
#include <cstdlib>
using namespace std;
const char M[] = " abcdefghijklmno……
蓝桥杯算法训练VIP-JAM计数法(全排列解法)
摘要:参考代码:#include <cstdio>
#include <cstdlib>
using namespace std;
const char M[] = " abcdefghijklmno……
蓝桥杯算法提高VIP-模拟计算器----简单易懂,算是基础编写
摘要:解题思路:参考日常使用的计算器,只要可以运行就可以。注意事项:我用到了自定义函数,如果没学过可以私信我。参考代码:#include<iostream> //计算器using namespace std……
优质题解
[NOIP2008 普及组] 立体图
摘要:算法:(字符串处理,模拟,坐标变换) O(42nmh)首先将一个小正方体的投影画出来:char box[6][8] =
{
"..+---+",
"./ /|",
"+---+ |"……