摘要: 计算前两盘A赢,最后一盘B赢的情况下,B获得的球的值总和大于A获得的球总和值的概率。 存储每一对球的差值有几个,然后处理一下前缀和,暴力枚举就好了...... #include<cstdio> #include<cstring> #include<cmath> #include<string> #i 阅读全文
posted @ 2016-02-20 16:21 Fighting_Heart 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 构造AC的。左右两边都先不用6的倍数,然后哪边数字大那一边往回退一下,然后再比较哪边数字大.......直到结束 #include<cstdio> #include<cstring> #include<cmath> #include<string> #include<vector> #include 阅读全文
posted @ 2016-02-20 16:18 Fighting_Heart 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 瞎搞题。。。凭直觉+猜测写了一发,居然AC了。。 #include<cstdio> #include<cstring> #include<cmath> #include<string> #include<vector> #include<queue> #include<algorithm> #inc 阅读全文
posted @ 2016-02-20 16:17 Fighting_Heart 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 枚举一下就好,时间复杂度o(n*n) #include<cstdio> #include<cstring> #include<cmath> #include<string> #include<vector> #include<queue> #include<algorithm> #include<i 阅读全文
posted @ 2016-02-20 16:16 Fighting_Heart 阅读(168) 评论(0) 推荐(0) 编辑