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
#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
#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
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
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
【资源下载】百度网盘下载地址如下: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
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 大意 给定一幅无限节点的有向图,顶点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