• 常用板子


    写题板子

    #include <algorithm>
    #include <iostream>
    #include <cstring>
    #include <cstdlib>
    #include <cstdio>
    #include <vector>
    #include <queue>
    #include <cmath>
    #include <stack>
    #include <deque>
    #include <ctime>
    #include <map>
    #include <set>
    
    #define ll long long
    #define inf 0x3f3f3f3f
    #define il inline
    
    namespace io {
    
    #define in(a) a = read()
    #define out(a) write(a)
    #define outn(a) out(a), putchar('
    ')
    
    #define I_int ll
    inline I_int read() {
        I_int x = 0, f = 1;
        char c = getchar();
        while (c < '0' || c > '9') {
            if (c == '-') f = -1;
            c = getchar();
        }
        while (c >= '0' && c <= '9') {
            x = x * 10 + c - '0';
            c = getchar();
        }
        return x * f;
    }
    char F[200];
    inline void write(I_int x) {
        if (x == 0) return (void) (putchar('0'));
        I_int tmp = x > 0 ? x : -x;
        if (x < 0) putchar('-');
        int cnt = 0;
        while (tmp > 0) {
            F[cnt++] = tmp % 10 + '0';
            tmp /= 10;
        }
        while (cnt > 0) putchar(F[--cnt]);
    }
    #undef I_int
    
    }
    using namespace io;
    
    using namespace std;
    
    #define N 100010
    
    int main() {
    	
    }
    

    对拍板子

    对拍代码

    #include <bits/stdc++.h>
    #include <Windows.h>
    using namespace std;
    #define N 100010
    
    int main() {
        int C = 0;
        while(1) {
            system("maker.exe");
            system("bf.exe");
            Sleep(500);
            system("std.exe");
            //Sleep(500);
            if(system("fc bf.out std.out")) {
                printf("wa on test #%d
    ", ++C);
                break;
            } else printf("ac on test #%d
    ", ++C);
        }
    }
    

    maker板子。

    #include <bits/stdc++.h>
    using namespace std;
    #define ll long long
    inline ll random(ll n) {
    	return (ll)rand() * rand() % n;
    }
    
    char in[10][10] = {"1.in", "2.in", "3.in", "4.in", "5.in", "6.in", "7.in", "8.in", "9.in", "10.in"};
    char out[10][10] = {"1.out", "2.out", "3.out", "4.out", "5.out", "6.out", "7.out", "8.out", "9.out", "10.out"};
    
    int main() {
    	freopen("data.in", "w", stdout);
    	
    }
    
  • 相关阅读:
    Java中的List转换成JSON报错(一)
    关于侦听的注册
    TCMalloc小记
    ocp|ocm考证系列文章
    开源HTML5 APP开发神器CanTK发布
    实例级别的回滚
    MySQL查询所有数据库表出错
    java.lang.ArrayIndexOutOfBoundsException
    如何修改64位Eclipse中的代码字体大小
    gpt 分区容量错误
  • 原文地址:https://www.cnblogs.com/henry-1202/p/10473370.html
Copyright © 2020-2023  润新知