CSPJ
2020 CSPJ
【20CSPJ普及组】优秀的拆分 直接用二进制处理,不断对2取余,除2,如果奇数,那肯定就是不行的 #include<bits/stdc++.h> using namespace std; const int maxn=10100; const int INF=0x3fffffff; typedef ......
2021 CSPJ
其实哪里需要模拟啊!!!这么简单的问题!!!是头猪也想得到 #include <bits/stdc++.h> using namespace std; const int maxn=505; int main() { int n,l,r; cin>>n>>l>>r; if(l/n==r/n) cou ......
2022 CSPJ
直接模拟即可,注意特判 #include<iostream> #include<cstdio> #include<ctime> #include<cstdlib> #include<cmath> #include<cstring> #include<algorithm> #define maxn 2 ......