zoukankan      html  css  js  c++  java
  • 【实用】Dev C++编译器属性代码缺省源样例代码

    这是我刚刚发明的东西,比较好用。。。

    源代码复制到Dev C++编译器属性的代码缺省源内即可。。

    用法:

    包含常用头文件和ctime时间监控插件,常用缩写,快速读入,测试输出函数两个,读入函数,文件读入读出函数,work函数,主函数,还定义了常用字母变量和常用的其他数组之类的变量。。

    上手很快,功能强大。。大家自己做一点补充吧。。

    那些模板不想放进来,免得A+B都有好几K。。

    #include<iostream>
    #include<cstdlib>
    #include<cstdio>
    #include<algorithm>
    #include<cmath>
    #include<map>
    #include<stack>
    #include<queue>
    #include<ctime>
    #include<cstring>
    #define ll long long
    #define inf 0x7fffffff
    int N,M;
    int i,j,k,p,q,l,r,s,t,x,y,xx,yy,start,end,head,tail,long,left,right,use,tmp,sum,ans;
    int board[][];
    int a[][];
    int value[][];
    bool b[][];
    int temp[][];
    using namespace std;
    
    inline int read()
    {
        int x=0;char ch=getchar();
        while(ch>'9'||ch<'0')ch=getchar();
        while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
        return x;
    }
    inline void stdinout()
    {
        freopen("in.txt","r",stdin);
        freopen("out.txt","w",stdout);
    }
    //------------------------------------------------------------
    void test1()
    {
    }
    
    void test2()
    {
    }
    //------------------------------------------------------------
    void readin()
    {
        stdinout();
        n=read();
        for (i=1;i<=n;i++)
        {
            
        }
    }
    //------------------------------------------------------------
    void work()
    {
    }
    //------------------------------------------------------------
    int main()
    {
        readin();
        
    }
    noip忘记取模的痛
  • 相关阅读:
    stl测试
    noip2017逛公园
    比赛
    莫队算法
    noi.ac 第五场第六场
    重排DL
    bzoj2870
    异象石(就是sdio宝藏那题)
    Genius ACM
    模板复习
  • 原文地址:https://www.cnblogs.com/seekdreamer/p/3890949.html
Copyright © 2011-2022 走看看