题意:题解:
原创 2023-06-29 00:02:56
19阅读
 PPP(Point-to-Point Protocol点到点协议)是为在同等单元之间传输数据包这样的简单链路设计的链路层协议。这种链路提供全双工操作,并按照顺序传递数据包。设计目的主要是用来通过拨号或专线方式建立点对点连接发送数据,使其成为各种主机、网桥和路由器之间简单连接的一种共通的解决方案。   PPP的特点:1)明确地划分出一帧的尾部和下一帧的头部的成帧方式,这种
转载 2012-08-25 16:47:09
256阅读
Some people will make friend requests. The list of their ages is given and ages[i] is the age of the ith person. Person A will NOT friend request pers
转载 2021-03-15 12:12:00
24阅读
2评论
题目:在一个N*M的网格中,从左上角走到右下角,有一些点不能经过,求最短路的条数。分析:dp,帕斯卡三角。每一个点最短的就是走N条向下,M条向右的路。 到达每一个点的路径条数为左边和上面的路径之和。说明:注意数据输入格式。#include #include #include #includ...
转载 2015-12-26 12:36:00
205阅读
2评论
Some people will make friend requests. The list of their ages is given and ages[i] is the ag
原创 2022-08-03 20:53:37
47阅读
Square City is a very easy place for people to walk around. Th
原创 2022-11-09 18:37:09
20阅读
Cisco自15号来疯狂变题,不仅是NA还有NP也难逃一劫,N多考生就此纷纷落马.特别是642-825变题,下面是其中一道实验题,自己有答案又认为对的可以发出来分享一下!!!   Acme is a small export comany that has an existing enterprise network that is made up exclusively of ro
原创 2008-08-26 12:32:22
1279阅读
2评论
UVa 825题意:给定一个网格图(街道图),其中有一些交叉路口点不能走。问从西北角走到东南角最短走法有多少种。(好像没看到给数据范围。、。)简单的递推吧,当然也就是最简单的动归了。显然最短路长度就是row+co...
转载 2017-08-16 19:25:00
26阅读
2评论
UVA_825     一个比较容易的计数问题,如果(i,j)这个点可以通过的话f[i][j]=f[i-1][j]+f[i][j-1],否则f[i][j]=0。 #include<stdio.h>#include<string.h>#include<ctype.h>#define MAXD 1010char b[10010];int N, M, G[MAXD]
转载 2011-11-14 00:17:00
109阅读
2评论
Some people will make friend requests. The list of their ages is given and ages[i] is the age of the ith person. Person A will NOT friend request pers
sed
转载 2019-01-07 21:05:00
46阅读
2评论
825. Friends Of Appropriate Ages**https://leetcode.com/problems/friends-of-appropriate-ages/题目描述
原创 2022-05-30 11:07:30
61阅读
UVa 825题意:给定一个网格图(街道图),其中有一些交叉路口点不能走。问从西北角走到东南角最短走法有多少种。(好像没看到给数据范围。、。)简单的递推吧,当然也就是最简单的动归了。显然最短路长度就是row+co...
转载 2017-08-16 19:25:00
74阅读
2评论
Polycarp has just invented a new binary protocol for data transmission. He is encoding positive integer decimal number to binary string using followin
原创 2022-05-25 10:41:19
106阅读
1点赞
题目大意:有一个矩阵,要求从起点走
原创 2023-04-07 10:36:59
27阅读
题目链接:825 - Walking on the Safe Side 题目大意:给出n,m,现在给出n行数据, 每行有k(k为不定值)个数字, 第一个数字代表行数, 后面k - 1个数代表当前行的这个位置不可走, 问有多少路径可以从(1,1)到(n,m),只能向下或向右。 解题思路:dp[i][j] = dip[i - 1][j] + dp[i][j - 1], 很简单的dp问题。 #include #include const int N = 1005;int n, m, dp[N][N], g[N][N];void handle(int k, char str[]) { int len
转载 2013-09-18 20:15:00
55阅读
2评论
题意:公园在(1,1)点,火车站在(n,m)点,你需要从公园走到火车站,前进时只能距离车站越来越近不能往回走~路上有些地方有障碍(unsafe)不能走,问总的路线有多少。简单的dp,不过dp我是写成函数而不是简答的数组,用a[i][j]=0表示可以走,a[i][j]=1表示不能走。递归调用时注意边界,不要越界。代码:View Code 1 #include <stdio.h> 2 #include <string> 3 #include <string.h> 4 #include <sstream> 5 #include <iostream
转载 2013-02-13 12:38:00
21阅读
2评论
uva 825 Walking on the Safe SideSquare City is a very easy plac
原创 2023-07-26 16:56:04
57阅读
原题链接在这里:https://leetcode.com/problems/friends-of-appropriate-ages/ 题目: Some people will make friend requests. The list of their ages is given and ages
转载 2019-12-10 11:57:00
49阅读
2评论
DescriptionSome people will make friend requests. The
原创 2022-08-11 17:18:28
31阅读
在社交媒体网站上有 n 个用户。给你一个整数数组 ages,其中 ages[i] 是第 i 个用户的年龄。如果下述任意一个条件为真,那么用户 x
原创 2022-08-02 16:51:16
259阅读
  • 1
  • 2
  • 3
  • 4
  • 5