码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
C++ vector动态容量变化
Tips:也可以尝试对deque,list进行类似的实验以加深理解。 #include <iostream> #include <vector> //#include <deque> using namespace std; int main() { vector <int> a; for(int ...
分类:编程语言   时间:2021-03-15 11:09:37    阅读次数:0
LRU代码实现
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> PII; #define ls l,mid,rt<<1 #define rs mid+1,r,rt<<1|1 const ...
分类:其他好文   时间:2021-03-15 11:08:22    阅读次数:0
C++实现对本地文件加行号并输出到本地文件
#include <fstream> #include <strstream> using namespace std; int main(int argc,char*argv[]) { strstream textfile; ifstream in(argv[1]); textfile << in ...
分类:编程语言   时间:2021-03-15 11:07:17    阅读次数:0
所谓“编译器以引用对象的类型做为auto的类型”自测代码
class CTestA { public: CTestA(){ std::cout<<"CTestA(){"<<std::endl; } CTestA(const CTestA &){ std::cout<<"CTestA(const CTestA &){"<<std::endl; } }; cl ...
分类:其他好文   时间:2021-03-11 14:17:16    阅读次数:0
pipioj 1026: a+b问题(简单模拟)
http://www.pipioj.online/problem.php?id=1026 1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); 2 #define bug(x) cout<<#x<<" is "<<x<<e ...
分类:其他好文   时间:2021-03-10 13:26:07    阅读次数:0
顺序表
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 #include <cstdlib> 7 using namespace std; 8 ...
分类:其他好文   时间:2021-03-10 13:13:30    阅读次数:0
[模板]最小圆覆盖
#include <bits/stdc++.h> using namespace std; const double EPS = 1e-8; const int N = 1e5+10; struct Point{ double x, y; }; int n; Point p[N]; bool equ ...
分类:其他好文   时间:2021-03-10 12:57:35    阅读次数:0
1287【毕设课设】基于单片机T6963C液晶显示的模拟射击训练游戏
【资源下载】百度网盘下载地址如下:https://docs.qq.com/doc/DTlRSd01BZXNpRUxl #include<reg52.h> #include <intrins.h> #include <string.h> #include <stdlib.h> #include <st ...
分类:其他好文   时间:2021-03-09 13:47:15    阅读次数:0
Python某个文件夹下的所有文件的重命名
flag为1文件名前+Python_ flag为2删除Python_ import os flag = 2 # 获取当前目录下所有文件名并返回一个列表 filelist = os.listdir() # 遍历列表进行重命名 for i in filelist: if flag == 1: new_n ...
分类:编程语言   时间:2021-03-09 13:38:18    阅读次数:0
Codeforces Global Round 13 D
Codeforces Global Round 13 D 大意 给定一幅无限节点的有向图,顶点u指向顶点u+v的充要条件是 \(u\&v=v\) 。 现在有q组询问,每次询问给出u,t,问:能否从u到t,回答 yes/no 思路 找规律... 以下皆为2进制 u+v 的位为1的个数小于等于 u 的位 ...
分类:其他好文   时间:2021-03-08 14:03:37    阅读次数:0
41627条   上一页 1 ... 26 27 28 29 30 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!