跳到正文

ADay

312393

Was Overrated.

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

资料、奖项与版本

资料

编号
312393
抓取

奖项

2026 ICPC Regional 第 51 届 ICPC 国际大学生程序设计竞赛区域赛西安站
银牌
2023 NOIP
二等奖
2022 NOIP
一等奖
2021 APIO
铜牌
2020 CSP-J
一等奖

版本

  1. v4当前
  2. v3
  3. v2
  4. v1

Cnblog:\Huge\mathsf{Cnblog:}aday526.cnblogs.com\Huge\mathsf{aday526.cnblogs.com}

https://mp.weixin.qq.com/s/jbfprtGiupQPUu2ABAaybQ



小事记

  • 2020−01−21:注册祭\color{CadetBlue}{2020-01-21:注册祭}
  • 2020−01−31:AC1\color{CadetBlue}{2020-01-31:\mathcal{AC}1}
  • 2020−03−10:AC100\color{CadetBlue}{2020-03-10:\mathcal{AC}100}
  • 2020−04−01:AC200\color{CadetBlue}{2020-04-01:\mathcal{AC}200}
  • 2020−04−20:红名祭\color{CadetBlue}{2020-04-20:\color{Red}{红名祭}}
  • 2020−04−24:AC300\color{CadetBlue}{2020-04-24:\mathcal{AC}300}
  • 2020−07−19:AC400\color{CadetBlue}{2020-07-19:\mathcal{AC}400}
  • 2020−11−13:AC500\color{CadetBlue}{2020-11-13:\mathcal{AC}500}
  • 2020−12−02:绿勾祭\color{CadetBlue}{2020-12-02:\color{LimeGreen}{绿勾祭}}
  • 2021−03−26:AC600\color{CadetBlue}{2021-03-26:\mathcal{AC}600}
  • 2021−08−14:公开赛rk7\color{CadetBlue}{2021-08-14:\color{Black}{公开赛rk7}}
  • 2021−10−03:AC700\color{CadetBlue}{2021-10-03:\mathcal{AC}700}
  • 2021−10−24:Away  From  OI\color{CadetBlue}{2021-10-24:\color{Grey}\mathcal{Away\;From\;OI}}
  • 2022−08−23:Back\color{CadetBlue}{2022-08-23:\color{Purple}\mathcal{Back}}
  • 2022−09−02:AC800\color{CadetBlue}{2022-09-02:\mathcal{AC}800}
  • 2022−11−23:AC900\color{CadetBlue}{2022-11-23:\mathcal{AC}900}
  • 2022−12−19:蓝勾祭\color{CadetBlue}{2022-12-19:\color{Blue}{蓝勾祭}}
  • 2025−11−22:AC1000\color{CadetBlue}{2025-11-22:\mathcal{AC}1000}


快读(C++11):

Code
C++
namespace io{char buf[1<<21],*p1=buf,*p2=buf;inline char gc(){return(p1==p2&&(p2=(p1=buf)+cin.rdbuf()->sgetn(buf,1<<21),p1==p2)?EOF:*p1++);}inline void pc(const char x){cout.rdbuf()->sputc(x);}template<typename T>inline void read(T&x){x=0;char f=0,c;while(!isdigit(c=gc()))f|=c=='-';while(isdigit(c))x=(x*10-'0'+c),c=gc();x=f?-x:x;}template<typename T=int>inline T read(){T s;read(s);return s;}inline void read(char*s){char c;while(isspace(c=gc()));while(!isspace(c)&&c!=EOF)*s++=c,c=gc();}template<typename T>inline void write(T x){static char S[150];x<0&&(pc('-'),(x=-x));int p=0;do{S[p++]=x%10^48;x/=10;}while(x);while(p--)cout.rdbuf()->sputc(S[p]);}inline void write(char*s){do{cout.rdbuf()->sputc(*s++);}while(*s);}inline void write(const char*s){do{cout.rdbuf()->sputc(*s++);}while(*s);}template<typename T>inline void writeln(const T x){write(x);pc(10);}template<typename T>inline void writesp(const T x){write(x);pc(' ');}template<typename T,typename...Args>inline void read(T&x,Args&...args){read(x),read(args...);}template<typename T,typename...Args>inline void write(T x,Args ...args){write(x),pc(' '),write(args...);}}using namespace io;
//without double

namespace io{char buf[1<<21],*p1=buf,*p2=buf;inline char gc(){return(p1==p2&&(p2=(p1=buf)+cin.rdbuf()->sgetn(buf,1<<21),p1==p2)?EOF:*p1++);}template<typename T>inline void read(T&x){x=0;char f=0,c;while(!isdigit(c=gc()))f|=c=='-';while(isdigit(c))x=(x*10-'0'+c),c=gc();x=f?-x:x;}template<typename T=int>inline T read(){T s;read(s);return s;}inline void read(char*s){char c;while(isspace(c=gc()));while(!isspace(c)&&c!=EOF)*s++=c,c=gc();}template<typename T,typename...Args>inline void read(T&x,Args&...args){read(x),read(args...);}}using namespace io;
//without output

别人的流快读

pair-hash\texttt{pair-hash}:

Code
C++
struct pairhash{
public:
    template<typename T,typename U>
    size_t operator()(const pair<T,U>&x)const{
        return hash<T>()(x.first)^hash<U>()(x.second);
    }
};unordered_map<pair<int,int>,int,pairhash>mp;

可用火车头:

Code
C++
#define orz GCC
#pragma orz optimize("Ofast,-falign-functions,-falign-jumps,-falign-labels,-falign-loops,-fcaller-saves,-fcrossjumping,-fcse-follow-jumps,-fdelete-null-pointer-checks,-fdevirtualize,-fexpensive-optimizations,-ffast-math,-fgcse,-fgcse-lm,-fhoist-adjacent-loads,-findirect-inlining,-finline,-fipa-sra,-fno-stack-protector,-foptimize-sibling-calls,-fpartial-inlining,-fpeephole2,-freorder-blocks,-freorder-functions,-frerun-cse-after-loop,-fsched-interblock,-fsched-spec,-fschedule-insns,-fschedule-insns2,-fstrict-aliasing,-fthread-jumps,-ftree-pre,-ftree-switch-conversion,-ftree-tail-merge,-ftree-vrp,-funroll-loops")
#pragma orz target("abm,avx,mmx,popcnt,sse,sse2,sse3,sse4,ssse3,tune=native")

LaTeX\LaTeX 公式大全

模板