常用头文件和一些简单的函数

Posted 爱国呐

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常用头文件和一些简单的函数相关的知识,希望对你有一定的参考价值。

常用头文件和一些简单函数

#include <bits/stdc++.h>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <string>
#include <queue>
#include <stack>
#include <map>
#include <set>

#define IO ios::sync_with_stdio(false);\
    cin.tie(0);    cout.tie(0);

typedef long long LL;
const long long INF = 0x3f3f3f3f;
const long long mod = 1e9+7;
const double PI = acos(-1.0);
const int maxn = 100000;
const char week[7][10]= {"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
const char month[12][10]= {"Janurary","February","March","April","May","June","July",
                           "August","September","October","November","December"
                          };
const int daym[2][13] = {{0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
    {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
};
const int dir4[4][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
const int dir8[8][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}, {1, 1}, {-1, -1}, {1, -1}, {-1, 1}};

using namespace std;

int main()
{
    IO;
    int T;
    cin>>T;
    while(T--)
    {
        ;
    }
    return 0;
}

 

以上是关于常用头文件和一些简单的函数的主要内容,如果未能解决你的问题,请参考以下文章

ACM比赛常用代码,函数,头文件。有哪些?

C语言里面输入命令的头文件是啥啊

常用Javascript代码片段集锦

IOS开发-OC学习-常用功能代码片段整理

单片机c语言中常用的头文件有哪些?分别有啥作用啊?

常用python日期日志获取内容循环的代码片段