码迷,mamicode.com
首页 >  
搜索关键字:namespace 命名空间    ( 47219个结果
2017省赛A第4题
参考文章 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int X[] = {0, -1, 1, 0, 0}; 5 int Y[] = {0, 0, 0, -1, 1}; 6 7 bool vis[10][10]; 8 int res = ...
分类:其他好文   时间:2021-04-20 14:10:10    阅读次数:0
「图论」第2章 最小生成树课堂过关
「图论」第2章 最小生成树课堂过关 A. 【例题1】繁忙都市 题目 代码 prim #include <iostream> #include <cstdio> #include <cstring> using namespace std; #define N 310 #define M 200010 ...
分类:其他好文   时间:2021-04-19 16:02:22    阅读次数:0
vector容器 单端数组、动态数组
1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 using namespace std; 6 7 void test01() 8 { 9 vector<int> v; 10 for( ...
分类:编程语言   时间:2021-04-19 15:55:39    阅读次数:0
DP-最大上升序列
进入题目 思路(代码主体) sum[i]=max(sum[i],sum[j]+m[i]) 代码 #include <iostream> #include <cstdio> #include <vector> using namespace std; int main() { int n,Max=0; ...
分类:其他好文   时间:2021-04-19 15:26:22    阅读次数:0
HDU1160 - FatMouse's Speed - 最长上升子序列的变形+记录路径
##思路 最长上升子序列的变形+记录路径 ##AC代码 #include<iostream> #include<cmath> #include<string.h> #include<algorithm> #include<stdio.h> #include<iomanip> #define inf ...
分类:其他好文   时间:2021-04-19 14:43:51    阅读次数:0
发布-订阅模式
模拟订阅报纸: 消费者与出版社之间没有联系,甚至互不相识,但报纸却从出版社到达了消费者手中,发布-订阅模式就是通过模拟订阅报纸,实现消息在模块之间的传递、模块与模块之间的调用。 Python样例 from blinker import Namespace # 创建一个Signal,其名为test m ...
分类:其他好文   时间:2021-04-16 11:41:15    阅读次数:0
mapper(StudentDao)
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <m ...
分类:移动开发   时间:2021-04-16 11:40:46    阅读次数:0
sw抄来的主席树
//本模板是离散后对权值建树 #include<bits/stdc++.h> #define mid (l+r>>1) using namespace std; const int N=2e5+10; struct TR { int sum,lo,ro; }tr[N<<5]; int tr_cnt; ...
分类:其他好文   时间:2021-04-15 12:28:09    阅读次数:0
MarkDown学习
MarkDown学习 标题 三级标题 四级标题 分割线 字体 斜体 加粗 斜体加粗 列表 无序 A B 代码 #include<iostream> using namespace std; int main(){ cout<<"HelloWorld!"<<endl; return 0; } ...
分类:其他好文   时间:2021-04-15 12:10:09    阅读次数:0
leetcode_1-两数之和
#题目 #代码 #include <unordered_map> #include <vector> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &nums, int target) { v ...
分类:其他好文   时间:2021-04-13 12:55:20    阅读次数:0
47219条   上一页 1 ... 19 20 21 22 23 ... 4722 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!