1 #include <iostream> //万能头文件#include<bits/stdc++.h> 方便时用 2 #include <algorithm> 3 #include <cmath> 4 #include <cstring> 5 #include <cstdio> 6 #include <map> 7 #include <stack> 8 #include <queue> 9 #include <set> 10 #include <cstdlib> 11 #include <stack> 12 #include <vector> 13 #include <sstream> 14 #include <iomanip> 15 #include <functional> 16 using namespace std; 17 //int的范围 在 -2e9~2e9之间 18 const int maxn = 110; 19 const int INF = 0x3f3f3f3f; //无限大 20 typedef long long ll; 21 typedef unsigned long long ull; 22 23 int main() 24 { 25 ios::sync_with_stdio(0); //取消cin与stdin的同步,增加运行速度,防止大量数据输入超时 26 27 return 0; 28 }
1 int a[10]; 2 memset(a,'0',sizeof(a)); //初始化数组
1 cout<<setiosflags(ios::left)<<setw(10)<<tail; //setiosflags(ios::left) 即控制向左输入 默认向右输出
1 //优先队列 2 priority_queue<int> q;//通过操作,按照元素从大到小的顺序出队 3 priority_queue<int,vector<int>,greater<int> > q; //通过操作,按照元素从小到大的顺序出队