- 博客(4)
- 收藏
- 关注
原创 第十一届蓝桥杯大赛软件类大学B组
1.门派制作#include<stdio.h>int main(){ int count = 0; for (int i = 1; i <= 2020; i++) { for (int j=i;j > 0; j=j / 10) { if (j % 10 == 2) { count += 1; printf(...
2022-01-24 22:56:18 175
原创 思特奇杯·云上蓝桥-算法集训营】第三周
1.杨辉三角#include<iostream>using namespace std;int N;long long C(int n,int m){ long long t=1; for(int i=0;i<m;i++){ t = t*(n-i)/(i+1); if(t>N)return t; } return t;} bool find(int L,int R,int...
2022-01-22 19:30:31 370
原创 【思特奇杯·云上蓝桥-算法集训营】第二周
1.带分数#include<iostream>using namespace std;const int M = 9;int n,ans,a[M+5];void swap(int x,int y){int t=a[x];a[x]=a[y];a[y]=t;}int pow(int x,int y){if(!y)return 1;return x*pow(x,y-1);}void sort(int x,int y){ for(int i=x;i<y;i++) ...
2022-01-15 19:59:48 220
原创 【思特奇杯·云上蓝桥-算法集训营】第一周
1.跑步训练#include<iostream>using namespace std;const int SumN = 10000;const int miniPullN = 600;const int minipushN = 300;int main(){ int tmpSumN = SumN; int res=0; int resSecond=0; while(tmpSumN>=0){ res++; ...
2022-01-08 17:02:21 168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人