As you probably know, Anton goes to school. One of the school subjects that Anton studies is Bracketology. On the Bracketology lessons students usuall ...
分类:
其他好文 时间:
2017-04-03 16:26:04
阅读次数:
200
本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作。 本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作。 本文作者:ljh2000 作者博客:http://www.cnblogs.com/ljh2000-jump/转载请注 ...
分类:
其他好文 时间:
2017-03-25 15:19:53
阅读次数:
184
题意:给你一个由'('和')'组成的字符串,问你有多少个子串,前半部分是由'('组成后半部分由')'组成 思路:枚举这个字符串中的所有'('左括号,它左边的所有'('左括号的个数为num1,它的右边的所有’)'右括号的个数为num2, 根据范德蒙恒等式计算得出 代码: ...
分类:
其他好文 时间:
2017-03-23 14:48:56
阅读次数:
171
Codeforces Round #404 (Div. 2) C. Anton and Fairy Tale 题意:仓库容量n,每天运来m粮食,第 i 天被吃 i 粮食,问第几天仓库第一次空掉。 tags:==SB题 注:二分边界判断,数据范围爆long long判断。 // CF404 C #in ...
分类:
其他好文 时间:
2017-03-23 03:11:24
阅读次数:
223
Vue.component('currency-input', { template: '\ \ {{ label }}\ $\ \ \ ', props: { value: { type: Number, default: 0 }, label: { type: S... ...
分类:
Web程序 时间:
2017-03-21 15:49:33
阅读次数:
1075
As you probably know, Anton goes to school. One of the school subjects that Anton studies is Bracketology. On the Bracketology lessons students usuall ...
分类:
其他好文 时间:
2017-03-19 22:26:26
阅读次数:
255
A: Anton and Polyhedrons(水题) B: Anton and Classes(水题) C: Anton and Fairy Tale(二分) 思路:m>=n时 ans=n;m<n时 前m天都能补满,第m+1天时就要开始减少了,n-m-(x+1)*x/2是m天后第x天的剩余,二分 ...
分类:
其他好文 时间:
2017-03-16 20:27:39
阅读次数:
163
A. Anton and Polyhedrons 直接统计+答案就可以了。 #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> #define maxn 1000 #define LL long long us ...
分类:
其他好文 时间:
2017-03-16 19:01:58
阅读次数:
225
位运算。 两个数的和:$A+B=(AandB)+(AorB)$,那么$b[i]+c[i]=n*a[i]+suma$。可以解出一组解,然后再按位统计贡献验证一下。 ...
分类:
其他好文 时间:
2017-02-12 17:39:31
阅读次数:
164