自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 双向排序第十二届省赛B组

这个题只通过了60%的测试,后面的测试用例都是100000个数据 主要就是用到了从大到小排序的sort(a,a+n,greater<int>()); 和从小到大排序的sort(a,a+n,less<int>()); #include <iostream> #include<algorithm> using namespace std; typedef long long ll; ll n,m; ll a[100001]; int main().

2022-04-05 11:21:31 758

原创 回文日期 第十一届蓝桥杯c++B组

在系统中测试通过了 #include <iostream> #include<algorithm> using namespace std; typedef long long ll; int main() { ll n; cin>>n; int temp1=0,re1; int temp2=0,re2; //直接从n的下一位开始找 for(ll i=n+1;i<=99999999;i++){ //获得各个位上的数 int a=i%10; i

2022-04-04 15:48:23 610

原创 (数的分解)2019蓝桥杯c++b组

#include<iostream> using namespace std; int main() { int a[2019]; int flag=0; //先把在1~9之间不含2和4的所有数字找出 for(int i=1;i<=2019;i++){ int temp=0; int x=i; while(x>0){ if((x%10==2)||(x%10==4)){ temp=1; break; } x/=10; } .

2022-04-02 22:01:24 428

转载 试题 算法训练 加法分解(C++)

内容是根据这位博主的修改的 试题 算法训练 加法分解_醒醒,写bug了!的博客-CSDN博客_加法拆分算法 #include<iostream> #include<vector> using namespace std; const int N=210; int n,m,cnt; int a[N]; void dp1(int u){ if(u==0){ cout<<n<<"="; for(int i=0;i<cnt;i++){

2022-04-01 09:47:39 452

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除