算法竞赛前 准备文档

来源:互联网 发布:淘宝搜索宝贝显示地址 编辑:程序博客网 时间:2024/05/01 12:21

1.常用格式。

#include<cstdio>#include<iostream>#include<cstring>#include<cstdlib>#include<cmath>#include<cctype>#include<string>#include<algorithm>#include<stack>#include<queue>#include<set>#include<map> #include<ctime>#include<vector>#include<fstream>using namespace std;int main(){    freopen("E:\\data.txt","r",stdin);    ios::sync_with_stdio(false);    printf("%.3f seconds\n",(double)clock()/CLOCKS_PER_SEC);    return 0;}

2.isalpha() isdigit() toupper() tolower()
3.fgets(arr,sizeof(arr),stdin);
4.字符数字-48 等于 数字。
5.ascii码表:
ascii码
6.queue test:push() pop() front() back() size();
7.stack test:push() pop() top() size();

1 0
原创粉丝点击