
Codeforces
景天的天
我害怕你心碎没人帮你擦眼泪
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces 313B : Ilya and Queries
大兄弟, 非得用这种弱智提给自己找存在感吗? (不用memset不能确保数组的初值全部为0) #include #include #include #include #define maxn 100010 using namespace std; int main() { char s[maxn]; int dp[maxn]; memset(dp原创 2015-08-24 15:49:05 · 1050 阅读 · 0 评论 -
Codeforces 525C:Ilya and Sticks
一道很简单的贪心的题目 排序然后将数组从大到小扫描一遍 注意求的是总和 然后很奇怪的一点就是一开始我数组开小了 结果过Test 8 的时候不断超时 为啥不是RE? 搞的我以为是方法问题 卡了一个小时 很是纳闷。。。 #include #include #include #define maxn 111111 using namespace std; //int原创 2015-08-06 09:58:10 · 598 阅读 · 0 评论