摘要:
T1 题目意思:给出l,r,p,求区间[l,r]之间有多少数的最小质因子是p。 数据范围:1 define int long long using namespace std; const int N=1e7+1; int L,R,P; int isprime(int x){ for(int i=2 阅读全文
摘要:
T1 题目意思:给定一个01串,你可以进行区间异或操作,最少用几次能让这个串完全相同 数据范围:$n\le 1e7$ Solution: $f[i]$表示全变成1的最小操作数,$g[i]$表示全变成0,输出min值 Code: cpp include define int long long usi 阅读全文
摘要:
Problem Description Farmer John keeps a website called ‘FansBlog’ .Everyday , there are many people visited this blog.One day, he find the visits has 阅读全文
摘要:
Problem Description N sticks are arranged in a row, and their lengths are a1,a2,...,aN. There are Q querys. For i th of them, you can only use sticks 阅读全文