第一次做扫描线,然后使我对线段树的理解发生了动摇= =。。这个pushup写的有点神奇。代码如下: ...
分类:
其他好文 时间:
2017-01-15 09:43:55
阅读次数:
201
#include <iostream> #include <cstdio> using namespace std; int main() { int a,b,c; while (~scanf("%d%d%d",&a,&b,&c)) { if (a>168&&b>168&&c>168) printf ...
分类:
其他好文 时间:
2017-01-15 00:37:48
阅读次数:
181
using System;using System.Collections.Generic;using System.Data.Common;using System.Linq;using System.Text;using System.Threading.Tasks;using Dapper;u ...
分类:
移动开发 时间:
2017-01-14 22:55:59
阅读次数:
871
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 public partial class Index : System.Web.UI.Page 2 { 3 prote... ...
【题意分析】 要求设计一组n个m面的骰子,使每一个骰子i对骰子a[i]的胜率都大于50%。 【算法分析】 对于每个i,连一条从i指向a[i]的边,那么题目给出的关系构成了一个有向基环树森林。 对于树上的点,我们按入度进行拓扑排序,当排序到i时,已经没有能战胜i的点,于是剩下最大的m个点就分配给它,这 ...
分类:
其他好文 时间:
2017-01-14 18:40:46
阅读次数:
155
C++ STD函数 C++ STD函数 C++ STD函数 inner_product是c++标准库封装的一个函数。 函数原型: 函数1: inner_product(beg1, end1, beg2, init) 函数2: inner_product(beg1, end1, beg2, init, ...
分类:
编程语言 时间:
2017-01-14 18:38:58
阅读次数:
366
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn=505; 8 int b[maxn],dp[maxn][maxn],sum[maxn]; 9 10 int DP(int m,i... ...
分类:
其他好文 时间:
2017-01-14 17:17:22
阅读次数:
132
#include #include #include using namespace std; char t[101],p[101]; int lt,lp,f[101]; void getfail() { f[0]=0;f[1]=0; for(int i=1;i>t>>p; lt=strlen(t)... ...
分类:
其他好文 时间:
2017-01-14 12:38:30
阅读次数:
148