上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 220 下一页
摘要: Time Limit: 1 secondMemory Limit: 128 MB【问题描述】判断一个点与已知三角形的位置关系。【输入格式】前三行:每行一个坐标,表示该三角形的三个顶点 第四行:一个点的坐标,试判断该点与前三个点围成三角形的位置关系 (详见样例) 所有坐标值均为整数。【输出格式】若点在... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(281) 评论(0) 推荐(0)
摘要: 描述在一个长宽均为10,入口出口分别为(0,5)、(10,5)的房间里,有几堵墙,每堵墙上有两个缺口,求入口到出口的最短路经。格式输入格式第一排为n(n#include #include struct point{ double x; double height[5];};int n, t[200]... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(663) 评论(0) 推荐(0)
摘要: Time Limit: 1 secondMemory Limit: 128 MB【问题描述】奶牛们打算通过锻炼来培养自己的运动细胞,作为其中的一员,贝茜选择的运动方式是每天进行N(1 int n, m, f[10001][501] = { 0 },d[10001];int max(int a, in... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(307) 评论(0) 推荐(0)
摘要: Time Limit: 1 secondMemory Limit: 128 MB【问题描述】 瑞瑞想要亲自修复在他的一个小牧场周围的围栏。他测量栅栏并发现他需要N(1≤N≤20,000)根木板,每根的长度为整数Li(1≤Li≤50,000)。于是,他神奇地买了一根足够长的木板,长度为所需的N根木板... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(198) 评论(0) 推荐(0)
摘要: Time Limit: 1 secondMemory Limit: 128 MB【问题描述】广义的斐波那契数列是指形如an=p*an-1+q*an-2的数列。今给定数列的两系数p和q,以及数列的最前两项a1和a2,另给出两个整数n和m,试求数列的第n项an除以m的余数。【输入格式】输入包含一行6个整... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(292) 评论(0) 推荐(0)
摘要: DescriptionVasiliy is fond of solving different tasks. Today he found one he wasn't able to solve himself, so he asks you to help.Vasiliy is given n s... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(183) 评论(0) 推荐(0)
摘要: DescriptionPeter has a sequence and he define a function on the sequence -- , where is the length of the longest increasing subsequence ending with ... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(178) 评论(0) 推荐(0)
摘要: Time Limit: 1 secondMemory Limit: 128 MB【问题描述】任何一个整数N都能表示成另外两个整数a和b的平方差吗?如果能,那么这个数N就叫做Couple number。你的工作就是判断一个数N是不是Couple number。【输入格式】仅一行,两个长整型范围内的整数... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(196) 评论(0) 推荐(0)
摘要: 【问题描述】一个不同的值的升序排序数列指的是一个从左到右元素依次增大的序列,例如,一个有序的数列A,B,C,D 表示A#include int n, m, ru[27],dl[10000],head,tail,w[27][27];int main(){ memset(ru, 255, sizeof(... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(254) 评论(0) 推荐(0)
摘要: Time Limit: 1 secondMemory Limit: 128 MB【问题描述】 在一个神奇的小镇上有着一个特别的电车网络,它由一些路口和轨道组成,每个路口都连接着若干个轨道,每个轨道都通向一个路口(不排除有的观光轨道转一圈后返回路口的可能)。在每个路口,都有一个开关决定着出去的轨道,... 阅读全文
posted @ 2017-10-06 19:23 AWCXV 阅读(202) 评论(0) 推荐(0)
上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 220 下一页