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