2013年11月27日

Codeforces 215A A.Sereja and Coat Rack

摘要: A. Sereja and Coat Racktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSereja owns a restaurant fornpeople. The restaurant hall has a coat rack withnhooks. Each restaurant visitor can use a hook to hang his clothes on it. Using thei-th hook costsa 阅读全文

posted @ 2013-11-27 01:12 天使是一个善良的神 阅读(313) 评论(0) 推荐(0) 编辑

Codeforces 215B B.Sereja and Suffixes

摘要: #include #include #include #include #include int sum;int n,m;int a[100010];int l[100010];int s[100010];int map[100010];int main(){ while(~scanf("%d%d",&n,&m)) { memset(a,0,sizeof(a)); memset(l,0,sizeof(l)); memset(s,0,sizeof(s));; for(int i = 1;i = 1;i --) { ... 阅读全文

posted @ 2013-11-27 01:11 天使是一个善良的神 阅读(329) 评论(0) 推荐(0) 编辑

导航