博客导引 『未来的你会光芒万丈/而我也曾是你万分之一的光/那么闪耀』

密码

当然是\(\color{#66ccff}{\text{#66CCFF}}\)了,因为感觉最近色号当密码比较流行

闲话

\(2.1\)以后的闲话均带有【solution/学习笔记】标签

学习笔记

游记

纪要

杂项


缺省源

代码
#include<bits/stdc++.h>
using namespace std;
#ifdef ONLINE_JUDGE
FILE *Fin(stdin), *Fout(stdout);
#else
FILE *Fin(fopen("data.in","r")), *Fout(fopen("data.out","w"));
#endif
namespace Fast_IO{class qistream{private: static constexpr size_t SIZE=1<<20,BLOCK=64; FILE *fp; char buf[SIZE]; int p; bool End;void flush(){(p+BLOCK>=SIZE)&&(memmove(buf,buf+p,SIZE-p),fread(buf+SIZE-p,1,p,fp),p=0);}char getch(){flush(); return buf[p++];} qistream &Set_End(){return End=0,*this;}public:qistream(FILE *_fp=stdin):End(1),fp(_fp),p(0){fread(buf+p,1,SIZE-p,fp);}qistream &operator>>(char &str){str=getch(); while(isspace(str))str=getch(); return str<=0?Set_End():*this;} template<class T>typename enable_if<is_integral<T>::value|is_same<T,__int128_t>::value,qistream>::type &operator>>(T &x){x=0;flush();bool flag=0; for(;!isdigit(buf[p]);++p){if(buf[p]<=0) return Set_End(); flag=buf[p]=='-';}for(;isdigit(buf[p]);++p) x=x*10+buf[p]-'0'; x=flag?-x:x; return*this;} template <class T> typename enable_if<is_floating_point<T>::value,qistream>::type &operator>>(T &x){x=0; flush(); T unit = 1.0; bool flag=0;for(;!isdigit(buf[p]);++p){if(buf[p]<=0) return Set_End(); flag=buf[p]=='-';}for(;isdigit(buf[p]);++p) x=x*10+buf[p]-'0';if (buf[p]=='.') for(++p;isdigit(buf[p]);++p) x+=(unit*=0.1)*(buf[p]-'0'); x=flag?-x:x; return *this;} qistream &operator>>(char *str){char ch=getch(); while(ch<=' '){if(ch<=0) return Set_End(); ch=getch();}int i; for(i=0;ch>' ';++i,ch=getch()) str[i]=ch; str[i]='\0'; return*this;} qistream &operator>>(string& str){str.clear(); char ch=getch(); while(ch<=' '){if(ch<=0) return Set_End(); ch=getch();}while(ch>' ') str.push_back(ch),ch=getch(); return*this;} operator bool(){return End;}friend qistream &getline(qistream& in,string& s){s.clear(); char c=in.getch(); if(c<=0) return in.Set_End();while(c!='\n'&&c>0) s.push_back(c),c=in.getch(); return in;}}FastI(Fin);class qostream{static constexpr size_t SIZE=1<<20,BLOCK=64,FLSIZE=64; FILE *fp; char buf[SIZE]; int p;char flbuf[FLSIZE]; int prec; unsigned long long flen;void flush(){if(p+BLOCK>=SIZE) fwrite(buf,1,p,fp),p=0;} void putch(const char& ch){flush();buf[p++]=ch;}public:void Set_Persicion(const size_t& x){prec=x;flen=(unsigned long long)(pow(10,x));}qostream(FILE *_fp=stdout,const size_t& p=6):fp(_fp),p(0){Set_Persicion(p);} ~qostream(){fwrite(buf, 1, p, fp);}template<class T>typename enable_if<is_integral<T>::value|is_same<T,__int128_t>::value,qostream>::type &operator<<(T x){int len=0; flush(); x<0?(x=-x,buf[p++]='-'):0; do buf[p+len]=x%10+'0',x/=10,++len; while(x);for(int i=0,j=len-1;i<j;++i,--j) swap(buf[p+i],buf[p+j]); p+=len;  return*this;} template<class T> typename enable_if<is_floating_point<T>::value,qostream>::type &operator<<(T x){int len=0; flush(); x<0?(x=-x,buf[p++]='-'):0; x*=flen; unsigned long long ret=x;if(x-ret>=0.4999999999) ++ret; if(ret) do flbuf[len++]=ret%10+'0',ret/=10; while(ret);if(len>prec){do buf[p++]=flbuf[--len]; while(len>prec); buf[p++]='.';} else{buf[p++]='0',buf[p++]='.';for(size_t i=prec-len;i--;) buf[p++]='0';} do buf[p++]=flbuf[--len]; while(len);  return*this;}qostream &operator<<(const char& x){putch(x);  return*this;}qostream &operator<<(const char *str){while(*str) putch(*str++);  return*this;}qostream &operator<<(const string& str){return *this<<str.c_str();}}FastO(Fout);}
#define FastI Fast_IO::FastI
#define FastO Fast_IO::FastO
#define endl '\n'
namespace exIO{bool read(char* s){return bool(FastI>>s);} void write(char* s){FastO<<s;}template<class T> bool read(T& x){return bool(FastI>>x);} template<class T> void write(T x){FastO<<x;}template<class T,class... Args> bool read(T& x,Args&... args){return bool(read(x)|read(args...));}template<class T=int> T read(){T a; read(a); return a;}template<class T> void Write(T x){write(x),FastO<<' ';}void Write(char c){write(c);if(c!='\n') FastO<<' ';}void Write(char *c){write(c);if(c[strlen(c)-1]!='\n') FastO<<' ';}void Write(string &c){write(c);if(c[c.size()-1]!='\n') FastO<<' ';}void Write(const char *c){write(c);if(c[strlen(c)-1]!='\n') FastO<<' ';}template<class T,class... Args> void write(T x,Args... args){write(x);write(args...);}template<class T,class... Args> void Write(T x,Args... args){Write(x);Write(args...);}}using namespace exIO;
#define endl '\n'
#define int long long
#define ull unsigned long long
#define PII pair<int,int>
#define re register
#define for_(a,b,c) for(int a=b;a<=c;a++)
#define _for(a,b,c) for(int a=b;a>=c;a--)
#define For_(a,b,c,d) for(int a=b;a>=c;a+=d)
#define _For(a,b,c,d) for(int a=b;a<=c;a-=d)
#define firein(a) freopen(a".in","r",stdin)
#define fireout(a) freopen(a".out","w",stdout)
#define fire(a) (firein(a),fireout(a))
#define lc(q) (q<<1)
#define rc(q) (q<<1|1)
#define mid(l,r) ((l+r)>>1)
const int N=0x66ccff;
const int M=0x6cf;
const int INF=0x66ccff0712ll;
const int inf=LLONG_MAX;
namespace solve{
	inline void In(){
	
	}
}
using namespace solve;
signed main(){
	In();
}
vscode括号颜色等json
{
    "files.autoSave": "onFocusChange",
    "files.autoSaveDelay": 1,
    "explorer.confirmDelete": true,
    "backgroundCover.imagePath": "/home/hzoi/Downloads/3254215-20240319205120747-1462534052.jpg",
    "editor.fontLigatures": true,
    "editor.bracketPairColorization.enabled":true,
    "editor.guides.bracketPairs": true,
    "workbench.colorCustomizations": {
      "editorBracketHighlight.foreground1": "#9999ff",
      "editorBracketHighlight.foreground2": "#39c5bb",
      "editorBracketHighlight.foreground3": "#66ccff",
      "editorBracketHighlight.foreground4": "#9999ff",
      "editorBracketHighlight.foreground5": "#39c5bb",
      "editorBracketHighlight.foreground6": "#66ccff",
      "editorBracketHighlight.unexpectedBracket.foreground": "#ee0000"
    },
}

posted @ 2024-04-08 11:57  Vsinger_洛天依  阅读(236)  评论(4编辑  收藏  举报