题目描述 楼梯有N阶,上楼可以一步上一阶,也可以一步上二阶。 编一个程序,计算共有多少种不同的走法。 输入格式 一个数字,楼梯数。 输出格式 走的方式几种。 输入输出样例 输入 #1 4 输出 #1 5 说明/提示 60% N<=50 100% N<=5000) 思路:一开始自己写得了40分,没想到 ...
分类:
其他好文 时间:
2020-04-17 15:49:15
阅读次数:
73
题意: 大学班级选班长,N 个同学均可以发表意见 若意见为 A B 则表示 A 认为 B 合适,意见具有传递性,即 A 认为 B 合适,B 认为 C 合适,则 A 也认为 C 合适 勤劳的 TT 收集了M条意见,想要知道最高票数,并给出一份候选人名单,即所有得票最多的同学,你能帮帮他吗? Input ...
分类:
其他好文 时间:
2020-04-17 12:48:56
阅读次数:
78
C HDU_5578 求字符串中所有相同字母的最小距离H。 Input 实例个数T然后T行字符串字符串中仅含有小写字母。1≤T≤501≤len≤1000(len为字符串长度) Output 对于每个实例输出Case #t: H,表示第t个实例的答案是H。 如果没有相同的字母,H=-1。 Sample ...
分类:
其他好文 时间:
2020-04-12 20:58:54
阅读次数:
73
传送门 题目描述 输入 输出 样例输入 2 2 3 1 2 0 0 1 1 2 1 1 0 2 4 11 1 2 1 2 3 1 3 4 0 0 1 0 2 0 3 0 4 1 2 1 0 0 1 0 2 0 3 1 3 4 1 0 3 0 4 Sample Input 样例输出 Boys win! ...
分类:
其他好文 时间:
2020-04-12 18:26:30
阅读次数:
70
1143. 两个列表的最小索引和 中文English 假设Andy和Doris想要选择一家餐馆吃晚餐,他们都有一个各自最喜爱的餐馆列表。 你需要用最少的列表索引总和来帮助他们找出他们的共同兴趣。 如果最少列表索引总和的答案不唯一,则输出所有答案并且没有顺序要求。 你可以假设总有一个答案。 样例 案例 ...
分类:
其他好文 时间:
2020-04-12 14:52:50
阅读次数:
90
sample 不定期的对 Observable 取样 sample 操作符将不定期的对源 Observable 进行取样操作。通过第二个 Observable 来控制取样时机。一旦第二个 Observable 发出一个元素,就从源 Observable 中取出最后产生的元素。 scan 持续的将 O ...
分类:
其他好文 时间:
2020-04-12 07:50:09
阅读次数:
71
题目 The Japanese government plans to increase the number of inbound tourists to forty million in the year 2020, and sixty million in 2030. Not only inc ...
分类:
其他好文 时间:
2020-04-10 19:57:21
阅读次数:
145
Xamarin.Form框架并没有提供指纹认证功能,需要分平台实现! Android的Fingerprint Authentication 参考:https://docs.microsoft.com/zh-cn/xamarin/android/platform/fingerprint-authent ...
分类:
其他好文 时间:
2020-04-10 19:53:23
阅读次数:
102
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on b ...
分类:
其他好文 时间:
2020-04-10 00:29:53
阅读次数:
80
Young boy Artem tries to paint a picture, and he asks his mother Medina to help him. Medina is very busy, that's why she asked for your help. Artem wa ...
分类:
其他好文 时间:
2020-04-09 12:41:45
阅读次数:
91