摘要:
树状数组 单点修改,区间询问 #include<iostream> #include<cstdio> using namespace std; int read() //读入优化 { char ch=getchar(); int a=0,x=1; while(ch<'0'||ch>'9') { if 阅读全文
摘要:
题目描述 There are \(n\) towns in Byteotia, connected with only \(n-1\) roads. Each road directly links two towns. All the roads have the same length and 阅读全文
摘要:
CF730J Bottles 题目描述 Nick has n n bottles of soda left after his birthday. Each bottle is described by two values: remaining amount of soda \(a_{i}\) a 阅读全文