2023年11月1日
摘要: 【20CSPJ普及组】优秀的拆分 直接用二进制处理,不断对2取余,除2,如果奇数,那肯定就是不行的 #include<bits/stdc++.h> using namespace std; const int maxn=10100; const int INF=0x3fffffff; typedef 阅读全文
posted @ 2023-11-01 17:49 shirlybabyyy 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 其实哪里需要模拟啊!!!这么简单的问题!!!是头猪也想得到 #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 阅读全文
posted @ 2023-11-01 16:14 shirlybabyyy 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 直接模拟即可,注意特判 #include<iostream> #include<cstdio> #include<ctime> #include<cstdlib> #include<cmath> #include<cstring> #include<algorithm> #define maxn 2 阅读全文
posted @ 2023-11-01 14:32 shirlybabyyy 阅读(3) 评论(0) 推荐(0) 编辑