上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页
摘要: 题意: 某公司要举办一次晚会,但是为了使得晚会的气氛更加活跃,每个参加晚会的人都不希望在晚会中见到他的直接上司,现在已知每个人的活跃指数和上司关系(当然不可能存在环),求邀请哪些人(多少人)来能使得晚会的总活跃指数最大。 解题思路: 任何一个点的取舍可以看作一种决策,那么状态就是在某... 阅读全文
posted @ 2017-05-07 16:28 xushukui 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Problem Description Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toy... 阅读全文
posted @ 2017-05-04 19:37 xushukui 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 问题描述在 应 用 中,常 用 诸 如 点、圆 等 简 单 的 几 何 对 象 代 表 现 实 世 界 中 的实 体 。 在涉 及 这 些 几 何 对 象 的 问 题 中 ,常 需 要 了 解 其 邻 域 中 其 他... 阅读全文
posted @ 2017-05-04 19:09 xushukui 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 先缩短一半的时间:早上的12个小时和下午的12小时对时钟是一样的,因为时钟12小时与0小时的三针位置相同。接着就是了解到每次所有的针从有重合到再次有重合至多有一段连续的段符合三针分离度大于n。所以只要枚举每个重合到重合的时间段,然后求出每段中符合条件的时间段即可。 由于枚举的是重合到... 阅读全文
posted @ 2017-04-28 17:35 xushukui 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Let us consider undirected graph G = which has N vertices and M edges. Incidence matrix of this graph is N * M matrix A = {a ij}, such that a ... 阅读全文
posted @ 2017-04-25 19:54 xushukui 阅读(191) 评论(0) 推荐(0) 编辑
摘要: You must have heard that the Chinese culture is quite different from that of Europe or Russia. So some Chinese habits seem quite unusual or ev... 阅读全文
posted @ 2017-04-20 18:23 xushukui 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include #include #define M 1000005 char s1[M],s2[M]; int a[M]; void ss(int m)//减运算 { int i=0,j; while(1) { if(s... 阅读全文
posted @ 2017-04-19 21:26 xushukui 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include #include //大数乘小数void mult(char c[],int m,char t[]) { char s[100]; int len=strlen(c); for(int i=0; i=10) ... 阅读全文
posted @ 2017-04-19 21:23 xushukui 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 描述 做了A+B Problem,A/B Problem不是什么问题了吧! 输入 每组测试样例一行,首先一个号码A,中间一个或多个空格,然后一个符号( / 或者 % ),然后又是空格,后面又是一个号码B,A可能会很长,B是一个int范围的数。 输出 输出结果。 样例输入 110 /... 阅读全文
posted @ 2017-04-19 21:08 xushukui 阅读(217) 评论(0) 推荐(0) 编辑
摘要: DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation o... 阅读全文
posted @ 2017-04-19 21:06 xushukui 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页