摘要:
Problem DescriptionGiven a positive integer N, your task is to calculate the sum of the positive integers less than N which are not coprime to N. A ... 阅读全文
摘要:
题意:两个操作:c l r x l到r之间的颜色变成x q l r 询问l到r有多少种颜色思路:记一个整数表示哪种颜色是否取了 这里真的是煞笔了,看到这一题第一直觉是异或,但是A^A=0,相同的肿么办..然后搜题解....反应了一个下午,发现有按位或这样神气的存在 1|1=1 1|0=1 0|1=1... 阅读全文