上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 46 下一页
  2016年7月22日
摘要: C. Vacations time limit per test 1 second time limit per test memory limit per test 256 megabytes memory limit per test input standard input input out 阅读全文
posted @ 2016-07-22 21:27 Beserious 阅读(225) 评论(0) 推荐(0) 编辑
  2016年7月17日
摘要: Oracle Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 122 Accepted Submission(s): 53 Problem D 阅读全文
posted @ 2016-07-17 23:35 Beserious 阅读(306) 评论(0) 推荐(0) 编辑
  2016年7月16日
摘要: Score : 200 points Problem Statement Snuke is having a barbeque party. At the party, he will make N servings of Skewer Meal. Example of a serving of S 阅读全文
posted @ 2016-07-16 23:34 Beserious 阅读(309) 评论(0) 推荐(0) 编辑
  2016年7月15日
摘要: import java.math.*; import java.util.*; public class Main{ /** * @param args */ public static void main(String[] args) { Scanner cin=new Scanner(System.in... 阅读全文
posted @ 2016-07-15 20:52 Beserious 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 读入一个自然数,将nn分解为质因子连乘的形式输出。 Input 有多组测试数据。输入的第一行是整数TT(0<T≤10000),表示测试数据的组数。每一组测试数据只有一行,包含待分解的自然数nn。该行没有其它多余的符号。1<n<2^31 Input 有多组测试数据。输入的第一行是整数TT(0<T≤10 阅读全文
posted @ 2016-07-15 18:00 Beserious 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 小Q被邪恶的大魔王困在了迷宫里,love8909决定去解救她。迷宫里面有一些陷阱,一旦走到陷阱里,就会被困身亡:(,迷宫里还有一些古老的传送阵,一旦走到传送阵上,会强制被传送到传送阵的另一头。现在请你帮助love8909算一算,他至少需要走多少步才能解救到小Q? 小Q被邪恶的大魔王困在了迷宫里,lo 阅读全文
posted @ 2016-07-15 17:17 Beserious 阅读(310) 评论(0) 推荐(0) 编辑
摘要: King's Sanctuary King's Sanctuary Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) The king found his adherents were bu 阅读全文
posted @ 2016-07-15 16:01 Beserious 阅读(201) 评论(0) 推荐(0) 编辑
  2016年7月14日
摘要: 一个正整数N的因子中可能存在若干连续的数字。例如630可以分解为3*5*6*7,其中5、6、7就是3个连续的数字。给定任一正整数N,要求编写程序求出最长连续因子的个数,并输出最小的连续因子序列。 输入格式: 输入在一行中给出一个正整数N(1<N<231)。 输出格式: 首先在第1行输出最长连续因子的 阅读全文
posted @ 2016-07-14 11:21 Beserious 阅读(634) 评论(0) 推荐(0) 编辑
  2016年7月12日
摘要: 今天真是sb 已dp[n]表示每次数m个人,总人数为n时的幸存者编号. 显然,n个人时,有一个人翘了辫子,这使人数变成了n-1,并且人们的编号发生了变化。显然,按照重新编号的规则,每个人的编号都小了m。那么,从n-1个人变回n个人,编号便应加上m。 阅读全文
posted @ 2016-07-12 23:45 Beserious 阅读(166) 评论(0) 推荐(0) 编辑
  2016年7月10日
摘要: 题目大意:一个人走n个格子到终点。通过骰子确定每次走几步。每个格子上有黄金,问最后得到黄金数量的期望。 假设dp[i]为到第i个格子的概率。 a[i]为第i个格子的黄金数量。 那么期望就是 Σa[i]*dp[i] 重点是怎么求概率。 拿样例举例。 3 3 6 9 dp[1]=1;没毛病 dp[2]= 阅读全文
posted @ 2016-07-10 21:02 Beserious 阅读(309) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 46 下一页