码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
题解 P4258 【[WC2016]挑战NPC】
P4258 [WC2016]挑战NPC 题目链接 小 I 浅笑:“所以,等我领图灵奖吧!” 每个筐能装三个?那我把它拆成三个筐,每个筐就只能装一个了。 球和筐的对应关系可以抽象为边。把球放进筐可以看成两两匹配。 但是现在要考虑的是怎样做到满足“一个筐子(这里指的是题面里的筐)内有不超过 \(1\) ...
分类:其他好文   时间:2021-02-01 12:19:33    阅读次数:0
有向图邻接矩阵代码实现
1 //有向图邻接矩阵代码实现 2 3 #include<iostream> 4 using namespace std; 5 #define MaxVertex 50 //最多顶点个数 6 typedef char VertexInfo[9];//定义顶点的名字 7 //定义图的数据结构 8 st ...
分类:其他好文   时间:2021-02-01 11:44:56    阅读次数:0
c++数组中最大值和最小值相加
源程序 #include <iostream>using namespace std;void main(){ int a[6]={23,15,64,33,40,58}; int s1,s2; s1=s2=a[0]; for(int *p=a+1;p<a+6;p++) { if(s1 > *p) s ...
分类:编程语言   时间:2021-02-01 11:40:52    阅读次数:0
【模板】主席树b( ̄▽ ̄)d
传送 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 int cnt=0,original_value[9000001]={0},a[ ...
分类:其他好文   时间:2021-01-30 11:54:44    阅读次数:0
HDU 1022 Train Problem I 模拟
#include<iostream> #include<stack> #include<vector> #include<cstring> using namespace std; int n; char s1[10], s2[10]; vector<int> p; //记录顺序 stack<cha ...
分类:其他好文   时间:2021-01-30 11:54:10    阅读次数:0
Cleaning the Phone
链接 : https://codeforces.com/contest/1475/problem/D 排序 + 双指针 #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.t ...
分类:其他好文   时间:2021-01-28 12:04:58    阅读次数:0
队列(c++容器queue实现)
#include<iostream> #include<queue>//队列容器 #include<string> using namespace std; class person{ public: person(string name,int age){ m_name=name; m_age=a ...
分类:编程语言   时间:2021-01-28 11:59:27    阅读次数:0
C++中私有继承公有化
当私有继承时,基类的所有public成员都变成了private。如果希望它们中的任何一个 是可视的,只要用派生类的public部分声明它们的名字即可: #include<iostream>using namespace std; class Pet {public: char eat() const ...
分类:编程语言   时间:2021-01-27 14:01:01    阅读次数:0
2019 年华东师范大学机试
找规律后可以找到这个。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll inf = 0x3f3f3f3f; const double eps = 1e-6; const ll N = 1e5+7 ...
分类:其他好文   时间:2021-01-27 13:56:17    阅读次数:0
C++第5章-循环和关系表达式
第5章-循环和关系表达式 主要知识点:递增/递减运算符。 5.1 for循环 cout.setf(ios_base::boolalpha):通常,cout在显示bool值之前都会转换成int,此函数设置了一个标记,命令cout显示true或false,而非1或0。 递增/递减运算符 分为前缀(pre ...
分类:编程语言   时间:2021-01-27 13:11:48    阅读次数:0
41627条   上一页 1 ... 37 38 39 40 41 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!