2018年HPUACM暑期集训招新赛

南开大学ACM队集训教程 南开大学ACM集训队的教程,非常好,还有很多解题报告的详细讲解。 立即下载

A - 青年歌手大奖赛_评委会打分

 

青年歌手大奖赛_评委会打分
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 104819    Accepted Submission(s): 51776


Problem Description
青年歌手大奖赛中,评委会给参赛选手打分。选手得分规则为去掉一个最高分和一个最低分,然后计算平均得分,请编程输出某选手的得分。
 

Input
输入数据有多组,每组占一行,每行的第一个数是n(2<n<=100),表示评委的人数,然后是n个评委的打分。
 

Output
对于每组输入数据,输出选手的得分,结果保留2位小数,每组输出占一行。
 

Sample Input

 
3 99 98 974 100 99 98 97
 
Sample Output

 
98.0098.50
 

Author
lcy


注意一下数据类型为浮点型就好了

#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e3+6;
double a[maxn];
int main()
{
	int n;
	while(~scanf("%d",&n))
	{
		for(int i=0;i<n;i++)
			scanf("%lf",a+i);
		sort(a,a+n);
		double sum=0;
		for(int i=1;i<n-1;i++)
			sum+=a[i];
		printf("%.2f\n",sum/(n-2));
	}
	return 0;
}

B - 偶数求和

 



偶数求和

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 106685    Accepted Submission(s): 44357


Problem Description
有一个长度为n(n<=100)的数列,该数列定义为从2开始的递增有序偶数,现在要求你按照顺序每m个数求出一个平均值,如果最后不足m个,则以实际数量求平均值。编程输出该平均值序列。
 

Input
输入数据有多组,每组占一行,包含两个正整数n和m,n和m的含义如上所述。
 

Output
对于每组输入数据,输出一个平均值序列,每组输出占一行。
 

Sample Input

     
3 24 2
 
Sample Output

     
3 63 7
 

细心一点儿就好了

#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e5+6;
int a[120];

int main()
{
	for(int i=0;i<102;i++)
		a[i]=i*2;
	int n,m,sum;
	while(~scanf("%d %d",&n,&m))
	{
		
		for(int i=0;i<n/m;i++) 
		{
			sum=0;
			for(int j=i*m+1;j<=m*(i+1);j++)
			{
				sum+=a[j];
			} 
			if(i)	printf(" ");
			printf("%d",sum/m);
		}		
		if(n%m)
		{
			sum=0;
			int x=n-(n/m)*m;
			for(int i=m*(n/m)+1;i<=n;i++)
				sum+=a[i];
			printf(" %d",sum/x);
		}
		printf("\n");
	}
	return 0;
}

C - 三角形

三角形

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 108913    Accepted Submission(s): 35707


Problem Description
给定三条边,请你判断一下能不能组成一个三角形。
 

Input
输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000;
 

Output
对于每个测试实例,如果三条边长A,B,C能组成三角形的话,输出YES,否则NO。
 

Sample Input

 
21 2 32 2 2
 
Sample Output

 
NOYES
 

Author
linle


水题,注意一下数据范围是实数

#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e3+6;

int main()
{
	double a,b,c;
	int t;
	scanf("%d",&t);
	while(t--)
	{
		scanf("%lf %lf %lf",&a,&b,&c);
		double x=max(a,max(b,c));
		if(x<(a+b+c-x))	printf("YES\n");
		else			printf("NO\n");
	}
	return 0;
}

D - Text Volume

A. Text Volume
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

You are given a text of single-space separated words, consisting of small and capital Latin letters.

Volume of the word is number of capital letters in the word. Volume of the text is maximum volume of all words in the text.

Calculate the volume of the given text.

Input

The first line contains one integer number n (1 ≤ n ≤ 200) — length of the text.

The second line contains text of single-space separated words s1, s2, ..., si, consisting only of small and capital Latin letters.

Output

Print one integer number — volume of text.

Examples
input
Copy
7
NonZERO
output
Copy
5
input
Copy
24
this is zero answer text
output
Copy
0
input
Copy
24
Harbour Space University
output
Copy
1
给你一行短文, 由单个空格分开的一些单词组成,仅包含大写字母和小写字母.


单词的Volume代表: 这个单词中大写字母的个数


短文的Volume等于该短文包含的所有单词的Volume的最大值


你的目标是计算给定短文的Volume.


Input
第一行包含一个整数n (1 ≤ n ≤ 200) — 代表短文的长度.


第二行包含一行短文,由单个空格分开的一些单词s1, s2, ..., si组成,由大写字母和小写字母组成.


Output

输出一个整数 — 该短文的Volume.


#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e3+6;
char s[maxn];
int main()
{
	int n;
	scanf("%d",&n);
	getchar();//吸收回车符 
	gets(s);
	int v=0;//记录单词的Volume 
	int ans=0;//记录短文的Volume 
	for(int i=0;i<n;i++)
	{
		if(s[i]==' ')
		{
			ans=max(ans,v);
			v=0;
		}
		if(s[i]>='A'&&s[i]<='Z')	v++;
	 } 
	 ans=max(ans,v);
	 printf("%d\n",ans);
	return 0;
}

E - Digit Sums

Digit Sums


Time limit : 2sec / Memory limit : 1024MB

Score : 200 points

Problem Statement

Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101)=1+0+1=2.

Given an integer N, determine if S(N) divides N.

Constraints

  • 1≤N≤109

Input

Input is given from Standard Input in the following format:

N

Output

If S(N) divides N, print Yes; if it does not, print No.


Sample Input 1

Copy
12

Sample Output 1

Copy
Yes

In this input, N=12. As S(12)=1+2=3, S(N) divides N.


Sample Input 2

Copy
101

Sample Output 2

Copy
No

As S(101)=1+0+1=2, S(N) does not divide N.


Sample Input 3

Copy
999999999

Sample Output 3

Copy
Yes
令S(N) : 十进制表示法中,N 的各位数字相加之和. 例如, S(101) = 1 + 0 + 1 = 2.


给你一个整数 N, 判断 S(N) 能否整除 N .


Constraints
1 <= N <= 10^9


Input
输入仅一行,一个整数N


Output
如果 S(N) 能整除 N, 输出 Yes; 否则, 输出 No.

根据题意直接做就行了

#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e3+6;


int s(int n)
{
	int ans=0;
	while(n)
	{
		ans+=n%10;
		n/=10;
	}
	return ans;
}

int main()
{
	int n;
	while(~scanf("%d",&n))
	{
		if(n%s(n))	printf("No\n");
		else		printf("Yes\n");
	}
	return 0;
}

F - Generous Kefa

Generous Kefa
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase letter of the Latin alphabet. Also Kefa has k friends. Friend will be upset, If he get two baloons of the same color. Kefa want to give out all baloons to his friends. Help Kefa to find out, can he give out all his baloons, such that no one of his friens will be upset — print «YES», if he can, and «NO», otherwise. Note, that Kefa's friend will not upset, if he doesn't get baloons at all.

Input

The first line contains two integers n and k (1 ≤ n, k ≤ 100) — the number of baloons and friends.

Next line contains string s — colors of baloons.

Output

Answer to the task — «YES» or «NO» in a single line.

You can choose the case (lower or upper) for each letter arbitrary.

Examples
input
Copy
4 2
aabb
output
Copy
YES
input
Copy
6 3
aacaab
output
Copy
NO
Note

In the first sample Kefa can give 1-st and 3-rd baloon to the first friend, and 2-nd and 4-th to the second.

In the second sample Kefa needs to give to all his friends baloons of color a, but one baloon will stay, thats why answer is «NO».


别想太多......

#include<cstdio>
#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e5+6;
int a[100];
bool cmp(int x,int y)
{
	return x>y;
}
int main()
{
	int n,m;
	while(~scanf("%d %d",&n,&m))
	{
		memset(a,0,sizeof(a));
		char s[maxn];
		scanf("%s",s);
		for(int i=0;i<strlen(s);i++)
			a[s[i]-'A']++;
		sort(a,a+100,cmp);
		if(a[0]>m)	printf("NO\n");
		else		printf("YES\n");
	}
	return 0;
}

G - Godsend

 

 Godsend
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Leha somehow found an array consisting of n integers. Looking at it, he came up with a task. Two players play the game on the array. Players move one by one. The first player can choose for his move a subsegment of non-zero length with an odd sum of numbers and remove it from the array, after that the remaining parts are glued together into one array and the game continues. The second player can choose a subsegment of non-zero length with an even sum and remove it. Loses the one who can not make a move. Who will win if both play optimally?

Input

First line of input data contains single integer n (1 ≤ n ≤ 106) — length of the array.

Next line contains n integers a1, a2, ..., an (0 ≤ ai ≤ 109).

Output

Output answer in single line. "First", if first player wins, and "Second" otherwise (without quotes).

Examples
input
Copy
4
1 3 2 3
output
Copy
First
input
Copy
2
2 2
output
Copy
Second
Note

In first sample first player remove whole array in one move and win.

In second sample first player can't make a move and lose.

#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=1e3+6;


int main()
{
	int n;
	while(~scanf("%d",&n))
	{
		ll sum=0;
		int k=0;
		for(int i=0;i<n;i++)
		{
			int x;
			scanf("%d",&x);
			sum+=x;
			if(x&1)	k=1;
		}
		if(sum&1)	printf("First\n");
		else if(k)	printf("First\n");
		else		printf("Second\n");
	}
	return 0;
}

H - Sorting Railway Cars

 Sorting Railway Cars
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

An infinitely long railway has a train consisting of n cars, numbered from 1 to n (the numbers of all the cars are distinct) and positioned in arbitrary order. David Blaine wants to sort the railway cars in the order of increasing numbers. In one move he can make one of the cars disappear from its place and teleport it either to the beginning of the train, or to the end of the train, at his desire. What is the minimum number of actions David Blaine needs to perform in order to sort the train?

Input

The first line of the input contains integer n (1 ≤ n ≤ 100 000) — the number of cars in the train.

The second line contains n integers pi (1 ≤ pi ≤ n, pi ≠ pj if i ≠ j) — the sequence of the numbers of the cars in the train.

Output

Print a single integer — the minimum number of actions needed to sort the railway cars.

Examples
input
Copy
5
4 1 2 5 3
output
Copy
2
input
Copy
4
4 1 3 2
output
Copy
2
Note

In the first sample you need first to teleport the 4-th car, and then the 5-th car to the end of the train.


这一题是要找最长的连续递增子序列,自己想了好久没想出来,竞赛结束后看了网上大佬们写的代码,发现原来是这样做的,


#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
using namespace  std;
const int maxn=1e5+6;
typedef long long ll;
int a[maxn];
int main()
{
	int n;
	while(~scanf("%d",&n))
	{
		int k;
		int ans=0;
		memset(a,0,sizeof(a));
		for(int i=0;i<n;i++)
		{
			scanf("%d",&k);
			if(a[k-1])
			{
				a[k]=a[k-1]+1;
			}
			else
				a[k]=1;
			ans=max(ans,a[k]);
		 } 
		printf("%d\n",n-ans);
	}
	return 0;
}

南开大学ACM集训队教程 PPT DOC PDF 南开大学ACM集训队教程 PPT DOC PDF,学习和共享一下!!! 立即下载

相关推荐

告别官方WebRTC的30G编译:我用libdatachannel给USB摄像头做了个轻量级网页监控

本文介绍了一种基于libdatachannel的轻量级WebRTC监控方案,通过USB摄像头实现实时视频推流。相比官方WebRTC库30GB的庞大编译体积,libdatachannel仅需几十MB,大幅简化了开发流程。文章详细讲解了从视频采集、FFmpeg编码到WebRTC传输的全过程,并提供了性能优化和部署方案,帮助开发者快速构建高效的网页监控系统。

weixin_29207533的博客 533

15、青年歌手大赛_评委打分

除去最大值与最小值,求平均数

m0_65594779的博客 561

2023-2024深度学习框架之争——选pytorch还是tensorflow?

深度学习是人工智能领域的一个重要分支,它利用多层神经网络来模拟人类的学习和推理能力,解决各种复杂的问题,如图像识别、自然语言处理、语音识别、推荐系统等。深度学习框架是一种软件工具,它提供了构建、训练、测试和部署深度学习模型的便利,使得开发者和研究者可以更高效地进行深度学习的开发和应用。目前,市场上有许多不同的深度学习框架,如PyTorch、TensorFlow、Keras、MXNet、Caffe2等,它们各有优劣,适用于不同的场景和需求。

flchen_nchu的博客 6756

【acm2014】 青年歌手大奖赛_评委会打分

***问题: Problem Description 青年歌手大奖赛中,评委会给参赛选手打分。选手得分规则为去掉一个最高分和一个最低分,然后计算平均得分,请编程输出某选手的得分。 Input 输入数据有多组,每组占一行,每行的第一个数是n(2<n<=100),表示评委的人数,然后是n个评委的打分。 Output 对于每组输入数据,输出选手的得分,结果保留2位小数,每组输出占一行。 Sa...

欢迎来到胡桃木的博客 705

微信小程序利用Echarts加载中国地图的步骤

微信小程序如何利用Echarts加载地图?可按照如下四个步骤进行。(阅读时间大概3分钟)。

成都都成 5276

手把手教你用Logisim搞定华科计组实验:单总线CPU硬布线控制器设计(含Excel自动生成电路技巧)

本文详细解析了如何使用Logisim完成华科计组实验中的单总线CPU硬布线控制器设计,特别分享了利用Excel自动生成电路逻辑的高效技巧。从实验准备、状态机表格填写到模块化构建和系统联调,提供全流程实战指导,帮助读者快速掌握计算机组成原理核心概念,大幅提升实验效率。

weixin_28744423的博客 321

2022年acm招新赛

小白入门acm,第一篇文章,就记录一下学校acm的招新比赛😁

m0_73079611的博客 743

信息奥赛课课通(C++)p154-1近似排序

试题描述 读入一对正整数,将这两个数之间(包括这两个数本身)的所有数按下述特别规则排序后输出,该特别规则是按两数倒过来的值进行比较决定其大小,如30倒过来为3,29倒过来为92,则29大于30. 输入要求 1行,包含两个用空格隔开的自然数,这两个自然数给出了待排序数的范围,其中1≤第一个数≤第二个数≤999999999,两个数之差不超过100. 输出要求 输出排序后的数据,每行输出...

mengdicfm的博客 7283

2023NYIST(计科ACM&TC)第一次招新赛——题解

2023NYIST(计科ACM&TC)第一次招新赛——题解

Vision_1的博客 913

注意力机制模块:注意力机制新宠:EMA 注意力(高效多尺度注意力),即插即用,涨点明显

无降维成为共识:越来越多的研究者意识到,传统注意力机制的通道降维操作会造成不可逆的信息损失。EMA 提出的“保留每个通道信息”理念正在成为新一代注意力模块的设计标准。分组并行走向成熟:特征分组 + 并行处理的设计范式已在多个前沿架构中得到验证,兼顾了表达能力和计算效率。多尺度与跨空间融合:单纯的多尺度或单纯的跨空间交互都已无法满足复杂任务需求,两者的深度融合是当前的主流方向。边缘部署导向:2026 年的新论文越来越关注在资源受限设备上的高效运行,轻量化设计成为评估注意力模块的重要指标。

ZXSXJ的博客 950

华为OD机试 新系统真题 【数字系统转换器】

华为OD机试 新系统真题【数字系统转换器】,提供C语言、Java、C++、Python、Go、JavaScript源码实现,并提供完整思路讲解,以及在线OJ模拟做题。华为OD机试真题【数字系统转换器】多语言题解。

qq_45776114的博客 542

SDUFE-ACM招新

作为一个服务于广大计算机及相关专业学生的学生社团,我们致力于:1. 为计算机科学及相关专业的同学们搭建学术交流和职业发展的平台。2. 组织各类技术讲座、编程竞赛、学术论坛等丰富多彩的活动,促进同学们对计算机科学的学习和研究兴趣。3. 加强与ACM总部及其他分会的联系,汲取国内外计算机前沿知识和经验。4. 培养同学们的团队合作精神、创新意识和责任心,为他们未来的职业发展打下坚实基础。CCPC山东站!

nighty_nightzzq的博客 499

【学习系列】SAP RAP 7:行为定义-Draft

本文介绍了RAP框架中的草稿表(Draft)功能及其应用。草稿表允许用户临时保存数据,在激活前不影响业务逻辑,支持保存继续、暂存和设备切换功能。草稿分为独占草稿(仅限同一用户编辑)和协作草稿(允许多用户协同编辑)。启用草稿需在行为定义和投影中包含标准action,并创建包含TotalETag等管理字段的草稿表。TotalETag确保草稿转换时活动数据未被修改,而ETagmaster则防止并发修改。文章通过OData调用示例详细说明了ETag验证过程,强调草稿功能由RAP框架自动处理,开发者只需关注定义和配置

DeveloperMrMeng的博客 443

2013hpuacm第八周周赛题

并查集+最小生成树,DP,数据结构

繁华过后你还有我 1427

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

HPUACM暑期集训第二次积分训练赛 A——又是斐波那契数列??

题目链接:A——又是斐波那契数列?? A 又是斐波那契数列?? 时间限制 内存限制 出题人 1 Second 128 Mb 李战士 题目描述 大家都知道斐波那契数列吧?斐波那契数列的定义是这样的: f0 = 0, f1 = 1, fi = fi−1 + fi−2 现在给你一个数x,聪明的你一定知道这是斐波那契数列中的第几项。 (数据保证x一定有对应的项y,且 2 ≤ y &lt; 1e4) 输入...

x_mn的博客 267

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

HPUACM暑期集训第二次积分训练赛 C——Simplest

题目链接: C——Simplest C Simplest 时间限制 内存限制 出题人 1 Second 512 Mb 桑大朋 题目描述 给你一段由数字0 − 9组成的字符串,请你输出它的最简自然数形式. 输入 第一行一个T,表示T组测试数据.(1 ≤ T ≤ 100) 每一组数据占一行,每一行一串字符 S. (1 ≤ strlen(S) ≤ 100000) 输出 输出字符串对应的最简自然数形式....

x_mn的博客 338

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

HPUACM暑期集训第二次积分训练赛 K——括号括号

题目链接:K——括号括号 K 括号括号 时间限制 内存限制 出题人 1 Second 512 Mb 刘帅坤 题目描述 小明今年上大学,在大学里发现有很多同学都女朋友,两人整天都在一起腻歪,小明看到后感 觉很孤单,现在,给你一行括号序列,你来判断一下其中的括号是否配对。 输入 第一行输入一个数N(0&lt;N≤100),表示有N组测试数据。后面的N行输入多组输入数据,每组 输入数据都是一个字符串S...

x_mn的博客 229

HPUACM暑期集训第二次积分训练赛 D——zz’s math problem Ⅰ

题目链接:D——zz’s math problem Ⅰ D zz’s math problem Ⅰ 时间限制 内存限制 出题人 3 Second 32768 kB 王湧博 题目描述 zz很喜欢数学,但是他又是一个数学渣,我们称这种生物叫做学渣. zz又碰到了一个数学小问题,定义一个函数P(x) ,例如:P(123) = 1! ∗ 2! ∗ 3! 求在满足P(z) = P(x)的情况下,最大化z ...

x_mn的博客 354

HPUACM暑期集训第二次积分训练赛 E——zz’s math problem Ⅱ

题目链接:E——zz’s math problem Ⅱ E zz’s math problem Ⅱ 时间限制 内存限制 出题人 3 Second 32768 kB 赵向阳 题目描述 zz作为一个数学盲也认为这个数学题真的很简单,学弟学妹们终于可以顺利签到了qwq 给出N个正整数a1, a2, ..., aN , 我们寻找一个这个表达式的最大的值 f(m) = (m mod a1) + (m mo...

x_mn的博客 218

HPUACM第三次积分赛

A:CodeForces 520AA. Pangramtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA word or a sentence in some language is called a pangram if all the ch...

鸿杰 的博客 954

暑期学校ACM之旅

原本以为,学校的暑期ACM培训课以让自己学到很多知识,可现实并非如此。 幻想中会有老师每天给你上课,讲讲算法,写写程序。然而来到学校后只有几个校队学生在负责。每天除了让你自己写程序就是让你自己写程序。不知算法的我们只能苦苦编代码,靠着自己仅有的知识,消磨时间。效率极其低下。 经过两天的培训,我应该好好反省一下,自己当初选择在暑期来学校的目的到底是什么。 大一过的很快,本身自己也因为篮球队的原

Changer_Wu的专栏 818

回看ACM之路(暑假集训总结)

1、整个集训队的情况         说实话,觉得这个暑假没有去年暑假过的充实,也曾到达过做好的状态(一天A掉5道题),可是想想大多时间却不是这样的。暑假ACM集训正式开始是在7月15日,可是对于我来说却迟到了整整5天,20日下午从家来学校,还好开始劲头够足,大概两天半的时间就把第一次测试的题目解决了。看得出来,我回来之后大家的速度也上来了,心里窃喜(我还是有点作用的)!可是慢慢地随着题目难

supersnow0622的专栏 3432

2024年暑假ACM集训第1场

想必你应该做过这么一道题:一只小青蛙一次可以跳1级台阶,也可以一次跳2级台阶。求该青蛙跳上第N级台阶总共有多少种跳法?(假设小青蛙的初始位置是第0级台阶)现在小青蛙遇到了一点麻烦,因为其中有一级台阶是坏的,小青蛙不能跳到这一级。假设坏掉的这一级台阶是第M级,且1<M<N,请问此时小青蛙跳到第N级台阶有多少种跳法?

weixin_73947887的博客 1429

NEUQ2022ACM招新赛题解

2022neuqACM招新赛题解

j295924119的博客 474

2022学年第一学期郑州大学ACM招新赛&选拔赛

2022学年第一学期郑州大学ACM招新赛&选拔赛 A SW的与众不同数组 B WASD机器人 C SW的糖果树(困难版本) D SW的七星光芒剑 E 井字棋游戏 F SW的糖果树(简单版本) G 凑数字 H 旋转数组 I 最小字典序序列 J SW玩扫雷 K 亮度 L SW的妙妙区间

ZZU_LGY 4136

2021-12-5 学习的打卡学习第十三天(一些习题)

一些习题

normalhyh的博客 682
上一篇: HPUACM第三次积分赛
下一篇: 暑假集训之——sort+结构体练习
陶鸿杰
博客等级 码龄9年 93粉丝 298原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值