上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 59 下一页
摘要: 解题报告:由于每天晚上垂头丧气的概率都相同,设为Q,那么可以分开处理,DP算出Q 设f[i][j]表示一共打了i场,赢了j场的概率 $f[i][j]=f[i 1][j 1] p+f[i 1][j] (1 p)$ 最后$Q=\sum_{i=0}^nf[n][i](i include include i 阅读全文
posted @ 2017-09-05 23:02 PIPIBoss 阅读(86) 评论(0) 推荐(1) 编辑
摘要: Description 这里有一个n m的矩阵,请你选出其中k个子矩阵,使得这个k个子矩阵分值之和最大。注意:选出的k个子矩阵 不能相互重叠。 Input 第一行为n,m,k(1≤n≤100,1≤m≤2,1≤k≤10),接下来n行描述矩阵每行中的每个元素的分值(每个元素的 分值的绝对值不超过3276 阅读全文
posted @ 2017-09-05 20:38 PIPIBoss 阅读(162) 评论(0) 推荐(1) 编辑
摘要: The Terminal Radar Approach CONtrol (TRACON) controls aircraft approaching and departing when they are between 5 and 50 miles of the airport. In this 阅读全文
posted @ 2017-09-05 10:00 PIPIBoss 阅读(124) 评论(0) 推荐(1) 编辑
摘要: The Bandulu Space Agency (BSA) has plans for the following three space missions: • Mission A: Landing on Ganymede, the largest moon of Jupiter. • Miss 阅读全文
posted @ 2017-09-05 08:49 PIPIBoss 阅读(212) 评论(0) 推荐(1) 编辑
摘要: Description 我们知道,从区间[L,H](L和H为整数)中选取N个整数,总共有(H L+1)^N种方案。小z很好奇这样选出的数的最大公约数的规律,他决定对每种方案选出的N个整数都求一次最大公约数,以便进一步研究。然而他很快发现工作量太大了,于是向你寻求帮助。你的任务很简单,小z会告诉你一个 阅读全文
posted @ 2017-09-02 14:48 PIPIBoss 阅读(114) 评论(0) 推荐(1) 编辑
摘要: Description 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 Input 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、d、k Output 共n行,每行一个整数表示满足要 阅读全文
posted @ 2017-09-02 01:18 PIPIBoss 阅读(102) 评论(1) 推荐(1) 编辑
摘要: Problem Description Given 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y) means the greatest common div 阅读全文
posted @ 2017-09-01 21:07 PIPIBoss 阅读(126) 评论(0) 推荐(1) 编辑
摘要: Problem Description Nike likes playing cards and makes a problem of it. Now give you n integers, ai(1≤i≤n) We define two identical numbers (eg: 2,2) a 阅读全文
posted @ 2017-08-31 19:29 PIPIBoss 阅读(281) 评论(2) 推荐(2) 编辑
摘要: Problem Description Monkey A lives on a tree, he always plays on this tree. One day, monkey A learned about one of the bit operations, xor. He was kee 阅读全文
posted @ 2017-08-31 17:08 PIPIBoss 阅读(326) 评论(0) 推荐(1) 编辑
摘要: Problem Description Bob's school has a big playground, boys and girls always play games here after school. To protect boys and girls from getting hurt 阅读全文
posted @ 2017-08-31 17:00 PIPIBoss 阅读(201) 评论(0) 推荐(1) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 59 下一页