跳到正文

XhkWater

1649326

再也不吸氧了

这是 2026年10月25日 存档的第 3 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
1649326
抓取

版本

  1. v5当前
  2. v4
  3. v3
  4. v2
更早的 1 个版本
  1. v1

3573548483

JSON
{
    "OI Standard Template": {
        "prefix": "sdf",
        "body": [
            "// #pragma GCC optimize(2)",
            "// #pragma GCC optimize(\"inline\")",
            "// #pragma GCC optimize(\"unroll-loops\")",
            "// #pragma GCC target(\"avx\")",
            "",
            "// clang-format off",
            "#include <bits/stdc++.h>",
            "#include <cassert>",
            "using namespace std;",
            "#define inf long long",
            "#define db double",
            "#define INF 0x3f3f3f3f3f3f3f3f",
            "#define ff(a, b, c) for (inf a = (b); a <= (c); ++a)",
            "#ifndef ONLINE_JUDGE",
            "#define FILE(filename) 0",
            "#define CLOSE() 0",
            "#define d(w) cerr << #w << \": \" << (w) << '\\t'",
            "#define br cerr << '\\n'",
            "#else",
            "#define FILE(filename) freopen(filename\".in\", \"r\", stdin); freopen(filename\".out\", \"w\", stdout);",
            "#define CLOSE() fclose(stdin); fclose(stdout);",
            "#define d(w) 0",
            "#define br 0",
            "#endif",
            "#define pb push_back",
            "#define mmin(x, y) ((x) < (y) ? (x) : (y))",
            "#define mmax(x, y) ((x) > (y) ? (x) : (y))",
            "void read(long long& x) { scanf(\"%lld\",&x); }; void read(int &x) { scanf(\"%d\",&x); }; void read(inf &x, inf &y) {read(x);read(y);}; void read(inf &x, inf &y, inf &z) {read(x);read(y);read(z);}; void read(inf &x, inf &y, inf &z, inf &w) {read(x);read(y);read(z);read(w);} void setmin(inf &x, inf y) {x = min(x, y);} void setmax(inf &x, inf y) {x = max(x, y);}",
            "#define RUN solve(1);",
            "#define RUNT inf t;read(t);for(inf i=1;i<=t;i++) solve(i);",
            "mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); inf RND(inf l, inf r) { mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); uniform_int_distribution<inf> dist(l, r); return dist(rnd); }",
            "#define urd uniform_real_distribution",
            "// clang-format on",
            "bool mst;",
            "",
            "using arr = array<inf, 2>; using arrr = array<inf, 3>;",
            "/////////////////////////////////////////////////////////////////////////////",
            "$0",
            "",
            "bool med;",
            "",
            "void solve(inf caseid) {",
            "\t",
            "}",
            "void run() { RUN }",
            "/////////////////////////////////////////////////////////////////////////////",
            "",
            "int main() {",
            "\tcerr << (abs(&med - &mst) - 1) / 1024.0 / 1024.0 << \" Mib\\n\";",
            "\trun();",
            "",
            "\treturn 0;",
            "}"
        ],
        "description": "OI C++ template"
    }
}
C++
// #pragma GCC optimize(2)
// #pragma GCC optimize("inline")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC target("avx")

// clang-format off
#include <bits/stdc++.h>
#include <cassert>
using namespace std;
#define inf long long
#define db double
#define INF 0x3f3f3f3f3f3f3f3f
#define ff(a, b, c) for (inf a = (b); a <= (c); ++a)
#ifndef ONLINE_JUDGE
#define FILE(filename) 0
#define CLOSE() 0
#define d(w) cerr << #w << ": " << (w) << '\t'
#define br cerr << '\n'
#else
#define FILE(filename) freopen(filename".in", "r", stdin); freopen(filename".out", "w", stdout);
#define CLOSE() fclose(stdin); fclose(stdout);
#define d(w) 0
#define br 0
#endif
#define pb push_back
#define mmin(x, y) ((x) < (y) ? (x) : (y))
#define mmax(x, y) ((x) > (y) ? (x) : (y))
void read(long long& x) { scanf("%lld",&x); }; void read(int &x) { scanf("%d",&x); }; void read(inf &x, inf &y) {read(x);read(y);}; void read(inf &x, inf &y, inf &z) {read(x);read(y);read(z);}; void read(inf &x, inf &y, inf &z, inf &w) {read(x);read(y);read(z);read(w);} void setmin(inf &x, inf y) {x = min(x, y);} void setmax(inf &x, inf y) {x = max(x, y);}
#define RUN solve(1);
#define RUNT inf t;read(t);for(inf i=1;i<=t;i++) solve(i);
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); inf RND(inf l, inf r) { mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); uniform_int_distribution<inf> dist(l, r); return dist(rnd); }
#define urd uniform_real_distribution
// clang-format on
bool mst;

using arr = array<inf, 2>; using arrr = array<inf, 3>;
/////////////////////////////////////////////////////////////////////////////


bool med;

void solve(inf caseid) {
    
}
void run() { RUN }
/////////////////////////////////////////////////////////////////////////////

int main() {
    cerr << (abs(&med - &mst) - 1) / 1024.0 / 1024.0 << " Mib\n";
    run();

    return 0;
}