• 2024-03-18CSPJ知识点整理
    指针:https://blog.csdn.net/qq_35429198/article/details/109331937排序:https://www.cnblogs.com/myeln/articles/17576193.html递归作业:https://www.luogu.com.cn/training/370327#problems哈夫曼编码:https://zhuanlan.zhihu.com/p/415467000图:https://www.luogu.com.cn/trai
  • 2023-11-012020 CSPJ
     【20CSPJ普及组】优秀的拆分 直接用二进制处理,不断对2取余,除2,如果奇数,那肯定就是不行的#include<bits/stdc++.h>usingnamespacestd;constintmaxn=10100;constintINF=0x3fffffff;typedeflonglongLL;intn;inta[maxn];intmain(){ //二进制?? cin>>n; int
  • 2023-11-012021 CSPJ
     其实哪里需要模拟啊!!!这么简单的问题!!!是头猪也想得到#include<bits/stdc++.h>usingnamespacestd;constintmaxn=505;intmain(){ intn,l,r; cin>>n>>l>>r; if(l/n==r/n)cout<<r%n; elsecout<<n-1<<endl; return0;}【21CSPJ普及
  • 2023-11-012022 CSPJ
     直接模拟即可,注意特判#include<iostream>#include<cstdio>#include<ctime>#include<cstdlib>#include<cmath>#include<cstring>#include<algorithm>#definemaxn200010#defineLLlonglongusingnamespacestd;intmain(){