跳到正文

tjx114514

1059849

@KoshiTachibana たまにお話を書くらしいですよ。

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

资料、奖项与版本

未来は僕等の手の中!!

誰かのルールはいらない 誰かのモラルはいらない

学校もジュクもいらない 真実を握りしめたい

僕等は泣くために 生まれてきたわけじゃないよ

僕等は負けるために 生まれてきたわけじゃない

C++
namespace IO{
	template<typename T>
	void read(T &_x){_x=0;int _f=1;char ch=getchar();while(!isdigit(ch)) _f=(ch=='-'?-1:_f),ch=getchar();while(isdigit(ch)) _x=_x*10+(ch^48),ch=getchar();_x*=_f;}
	template<typename T,typename... Args>
	void read(T &_x,Args&...others){Read(_x);Read(others...);}
	const int BUF=20000000;char buf[BUF],top,stk[32];int plen;
	#define pc(x) buf[plen++]=x
	#define flush(); fwrite(buf,1,plen,stdout),plen=0;
	template<typename T>inline void print(T x){if(!x){pc(48);return;}if(x<0) x=-x,pc('-');for(;x;x/=10) stk[++top]=48+x%10;while(top) pc(stk[top--]);}
}
using namespace IO;


inline char nc(){static char buf[1919810],*l,*r;return l==r&&(r=(l=buf)+fread(buf,1,1919810,stdin),l==r)?EOF:*l++;}
inline void read(int &x){char c=nc();for(;c<'0'||'9'<c;c=nc());for(x=0;'0'<=c&&c<='9';x=(x<<3)+(x<<1)+(c^48),c=nc());}
inline void pc(char x){static char buf[1919810],*r=buf;(!x||(*r++=x,r==buf+1919810))&&(fwrite(buf,1,r-buf,stdout),r=buf);}
inline void print(int x){if(x>9)print(x/10);pc(x%10+'0');}
C++
struct map{
	ull id[M+5];int now,val[M+5],t[M+5];
	inline void upd(ull x,int v){
		int p=(x%M+M)%M;
		while(t[p]==now&&id[p]!=x) p=(p+1)%M;
		if(t[p]<now) val[p]=0;
		val[p]=v,id[p]=x,t[p]=now;
	}
	inline int ask(ull x){
		int p=(x%M+M)%M;
		while(t[p]==now&&id[p]!=x) p=(p+1)%M;
		if(t[p]<now) return 0;
		return val[p];
	}
	inline void clear(){++now;}
}mp;