暴力碾标算, 过百万,争做有信仰的 .
florr.io | 洛谷 | 0h h1 | Binary puzzles | 恶臭数字论证器 | Google 地图 | 洛谷帖子保存站 | 犇犇保存站 | OEIS | 题解格式化工具 | 两大智慧 | 有关打表的洛谷日报 | 洛谷名字颜色速通 | 洛谷 tag 速通 | 一道水题 | 洛谷题解标准 | 建图 | 微软数学 | 中华好花花 | 转载1 | text1 | text2 | 文档 | 预防老年痴呆 | 小数转分数 | AK-IOI-2048 | 函数图像 | 化学方程式 | 原题机 | euclidea | 青苗中学英材培育计划 | ?导导!? | 画图 | NOI 大纲 | Never Gonna Give You Up | 洛谷档案馆 | Scratch 在线运行 | github 中文版 | 在线画画 | CSP 备考 | 题解站
⢀⠆⡦⠤⠤⡄⢀⣆⣀⠐⠒⡲
⢺⠈⢠⢸⢠⠁⠄⡇⡸⠠⢼⠤⠄
⢸⠄⠃⣸⠄⠃⢀⠕⢅⠄⣸
/l、
(゚、 。 7
l、 ~ヽ
じしf_, )ノ
⠀⠀⠀⢀⠤⠚⠈⠉⠉⠉⠑⠒⢤⠀
⠀ ⠀⡴⠁⠀⠀⠀⢠⣀⠀⠠⢆⣠⡱⡄⠀
⠀⡸⠀⠀⠀⢰⣲⣶⡄⠀⠀⠀⠺⠗⠘⣄⠀
⠀⠀⡇⠀⠀⠀⠘⠙⠋⠀⠀⠔⠒⠄⠀⠀ ⡆
⠀⠀⢲⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠇
⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠃⠀
⠀⢀⡤⠼⠀⠀⠐⠒⠢⠴⠤⠢⠒⠋⠉⠓⠤⠀ ⠀
⢠⠎⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠠⡠⣀⢄ ⠲⡀
⠇⠀⠀⠤⡄⠀⠀⠀⠀⠀⠀⡴⠁⠀⠀⠀⠀⠹⣄⠀⢸
⠇⠀⠀⢙⡆⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠹⢄⡘
⠘⠢⠤⠊⡅⠀⠀⠀⠀ ⢸⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀
⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠸⡀⠀⠀⠀⠀⠀⢠⢏⠀⠀
⡔⠐⠒⢺⠀⠀⠀⠀⠀⠀⠀⠙⠤⠤⠤⠤⠚⢁⡆⠀⠀
⠈⠓⠤⡇⠀⠀⠀⠀⠀⢀⡠⠤⠤⠒⠂⠀⢀⢸⠀⠀⠀
⠀⠀⠀⢇⣠⣤⣴⡆⠯⠁⠀⠀⠘⠒⠚⠛⠚⠛⠁
nailoong
⠀⠀⠀⠀⠰⢷⢿⠄
⠀⠀⠀⠀⠀⣼⣷⣄
⠀⠀⣤⣿⣇⣿⣿⣧⣿⡄
⢴⠾⠋⠀⠀⠻⣿⣷⣿⣿⡀
只 因 ⢀ ⣿⣿⡿⢿⠈⣿
⠀⠀⠀⢠⣿⡿⠁⠀⡊⠀⠙
⠀⠀⠀⢿⣿⠀⠀⠹⣿
⠀⠀⠀⠀⠹⣷⡀⠀⣿⡄
⠀⠀⠀⠀⣀⣼⣿⠀⢈⣧
有趣的货币符号
€€£ | ₾₾₣ | ₢₢ƒ | ccf
₡$₽ | ₵₷₱ | csp
洛谷 : LG086
CodeForces : CF086
AtCoder : AT086_
Virtual Judge : VJ086
SPOJ : sp086
github : LG086-Gib
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")namespace ly{
namespace IO{
constexpr auto maxn=1<<20;
char in[maxn],out[maxn],*p1=in,*p2=in,*p3=out;
#define getchar() (p1==p2&&(p2=(p1=in)+fread(in,1,maxn,stdin),p1==p2)?EOF:*p1++)
#define flush() (fwrite(out,1,p3-out,stdout))
#define putchar(x) (p3==out+maxn&&(flush(),p3=out),*p3++=(x))
class Flush{public:~Flush(){flush();}}_;
namespace usr{
template<typename type>
inline type read(type &x){
x=0;bool flag(0);char ch=getchar();
while(!isdigit(ch)) flag^=ch=='-',ch=getchar();
while(isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
return flag?x=-x:x;
}
template<typename type>
inline void write(type x){
x<0?x=-x,putchar('-'):0;
static short Stack[50],top(0);
do Stack[++top]=x%10,x/=10;while(x);
while(top) putchar(Stack[top--]|48);
}
inline char read(char &x){do x=getchar();while(isspace(x));return x;}
inline char write(const char &x){return putchar(x);}
inline void read(char *x){static char ch;read(ch);do *(x++)=ch;while(!isspace(ch=getchar())&&~ch);}
template<typename type>inline void write(type *x){while(*x)putchar(*(x++));}
inline void read(std::string &x){static char ch;read(ch),x.clear();do x+=ch;while(!isspace(ch=getchar())&&~ch);}
inline void write(const std::string &x){for(int i=0,len=x.length();i<len;++i)putchar(x[i]);}
template<typename type,typename...T>inline void read(type &x,T&...y){read(x),read(y...);}
template<typename type,typename...T>
inline void write(const type &x,const T&...y){write(x),putchar(' '),write(y...),sizeof...(y)^1?0:putchar('\n');}
template<typename type>
inline void put(const type &x,bool flag=1){write(x),flag?putchar('\n'):putchar(' ');}
}
#undef getchar
#undef flush
#undef putchar
}using namespace IO::usr;
}using namespace ly::IO::usr;namespace FastIO{
const int BUFSIZE=1<<20;
char ibuf[BUFSIZE],*iS=ibuf,*iT=ibuf;
char obuf[BUFSIZE],*oS=obuf,*oT=obuf+BUFSIZE;
inline char gc(){
if(iS==iT){
iT=(iS=ibuf)+fread(ibuf,1,BUFSIZE,stdin);
if(iS==iT)return EOF;
}
return *iS++;
}
inline void flush(){
fwrite(obuf,1,oS-obuf,stdout);
oS=obuf;
}
inline void pc(char c){
if(oS==oT)flush();
*oS++=c;
}
struct Reader{
template<typename T>
Reader&operator>>(T&x){
static char c;static bool neg;
x=0;neg=false;c=gc();
while(c<'0'||c>'9'){
if(c==EOF)return *this;
if(c=='-')neg=true;
c=gc();
}
for(;c>='0'&&c<='9';c=gc())x=x*10+(c-'0');
if(neg)x=-x;
return *this;
}
}in;
struct Writer{
~Writer(){flush();}
template<typename T>
Writer&operator<<(T x){
if(x<0){pc('-');x=-x;}
static char stk[40];int top=0;
if(x==0)stk[top++]='0';
while(x){stk[top++]=char('0'+x%10);x/=10;}
while(top)pc(stk[--top]);
return *this;
}
Writer&operator<<(char c){pc(c);return *this;}
Writer&operator<<(const char*s){while(*s)pc(*s++);return *this;}
}out;
}
using FastIO::in;using FastIO::out;
$\color{#0aa}\cancel{\ \ \ \textrm{\textit{\textbf{{\Large\color{#0af}到 }}}}^\textrm{\textit{\textbf{{\small\color{#e99100}此}}}}_\textrm{\textit{\textbf{\large\color{#778891}一}}}\textrm{\textit{\textbf{\LARGE\color{#9c1}游}}}\circlearrowleft\ \ }$AC 第 1k 题是棵线段树.


