上一页 1 2 3 4 5 6 7 8 9 10 ··· 38 下一页
摘要: 小 B 的树 题目背景及题意 小 B 有一颗树,它的形态与 OI 中的树相同,有 n 个节点,n-1 条边,每条边长度为 1 随着时间的流逝这棵树长大了,每条边有 50%的概率长度变为 2 小 B 想知道这棵树期望的直径是多少,可是他太菜了并不会,所以来求教你 输入格式 第一行一个 n 代表树上点的 阅读全文
posted @ 2019-07-21 19:05 yccdu 阅读(192) 评论(0) 推荐(1) 编辑
摘要: Ghd CodeForces - 364D John Doe offered his sister Jane Doe find the gcd of some set of numbers a. Gcd is a positive integer g, such that all number fr 阅读全文
posted @ 2019-07-21 16:52 yccdu 阅读(277) 评论(0) 推荐(1) 编辑
摘要: CountTables TopCoder - 13444 sol:题意和题解都丢在上面了,自己XJByy了一下 先保证行不同,然后对列容斥,dp[i]表示i列的答案 行不同时i列的答案显然是C(c^i,n)*n!,然后在把列之间相同的去掉,就是把i列分为[1~i-1]组,钦定各组之间互不相同,就是第 阅读全文
posted @ 2019-07-21 15:05 yccdu 阅读(154) 评论(0) 推荐(1) 编辑
摘要: Toy Sum CodeForces - 405D Little Chris is very keen on his toy blocks. His teacher, however, wants Chris to solve more problems, so he decided to play 阅读全文
posted @ 2019-07-20 19:55 yccdu 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Summer Homework CodeForces - 316E3 By the age of three Smart Beaver mastered all arithmetic operations and got this summer homework from the amazed te 阅读全文
posted @ 2019-07-18 20:48 yccdu 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Sky Full of Stars CodeForces - 997C On one of the planets of Solar system, in Atmosphere University, many students are fans of bingo game. It is well 阅读全文
posted @ 2019-07-18 09:17 yccdu 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Connected Graph POJ - 1737 An undirected graph is a set V of vertices and a set of E∈{V*V} edges.An undirected graph is connected if and only if for e 阅读全文
posted @ 2019-07-17 22:28 yccdu 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Examining the Rooms HDU - 3625 A murder happened in the hotel. As the best detective in the town, you should examine all the N rooms of the hotel imme 阅读全文
posted @ 2019-07-17 20:16 yccdu 阅读(163) 评论(0) 推荐(0) 编辑
摘要: SP5973 SELTEAM - Selecting Teams #include <bits/stdc++.h> using namespace std; typedef long long ll; inline ll read() { ll s=0; bool f=0; char ch=' '; 阅读全文
posted @ 2019-07-17 20:13 yccdu 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Case of Computer Network CodeForces - 555E Andrewid the Android is a galaxy-known detective. Now he is preparing a defense against a possible attack b 阅读全文
posted @ 2019-07-17 19:20 yccdu 阅读(339) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 38 下一页