摘要: 留意到,每一种语言的情况其实是独立的,也就是说,每一种语言的集合的包含的情况都是符合要求的。一种语言在图上可以有32种情况(由数据2知),所以,总的数就是32^nimport java.util.*;import java.math.*;public class Main { static publ... 阅读全文
posted @ 2015-05-29 21:46 chenjunjie1994 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 这道题的概率可以单独考虑每个格子对期望的贡献值。因为其实每个格子是否被选都可以认为是独立的,单独一个格子贡献的期望为1*(该格子K次被选的概率),所以答案其实就是每个格子K次被选中的概率之和。#include #include #include #include #define LL long lo... 阅读全文
posted @ 2015-05-29 21:12 chenjunjie1994 阅读(143) 评论(0) 推荐(0) 编辑
摘要: E. Mike and Foamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike is a bartender at Rico's ba... 阅读全文
posted @ 2015-05-29 20:15 chenjunjie1994 阅读(158) 评论(0) 推荐(0) 编辑