格式控制,没看到,开始wrong了
#include
#include
using namespace std;
int n,L;
int cnt=0;
int S[90];
int dfs(int cur){
if(cnt++ == n){
int haha=0;
for(int i=0;i<cur;i++) { if(i%4==0&&i!=0){ ...
分类:
其他好文 时间:
2015-07-31 10:42:39
阅读次数:
161
题意:求最长的连续的等差 或者 等比序列
思路: 暴力,输入的时候将它们的差和比分别存在两个数组中
ps:此题动不动就超时 很无语, 必须用传统的输入输出, 不能加mem, 如果wrong了
考虑下n==2时答案是否为2;
代码:
#include
#include
#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2015-07-31 10:35:11
阅读次数:
131
StonesProblem DescriptionBecause of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back ev...
分类:
其他好文 时间:
2015-07-28 20:57:34
阅读次数:
101
Problem Description
Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some...
分类:
其他好文 时间:
2015-07-28 18:47:22
阅读次数:
112
3xian的经历和见解。。。我深思...最后一天,漫天飘起了雪花,假装欢送我离去。这次WF之战不太顺利,早期的C题大概花了1秒钟构思,然而由于输出格式多了一个空格直到两个半小时才逃脱Wrong Answer的纠缠。还好lynncui在期间独挡一面过掉D。最终成绩不好,然而没有遗憾,从不遗憾。相比之下...
分类:
其他好文 时间:
2015-07-27 10:57:57
阅读次数:
149
http://acm.hdu.edu.cn/showproblem.php?pid=3038题意:数组第a个元素到第b个元素之间的和为sum;求有几句话是假的,如果与前面的话有冲突就为假;#include#include#include#include#include#define N 201000...
分类:
其他好文 时间:
2015-07-26 15:31:20
阅读次数:
99
还是属于并查集的变形
两个点只有一条路径连通
给出的两个点事先都是属于两个集合的
需要给出的着条边构成一个集合
算法复杂度还是挺高的
每个我都循环了100000次
set2数组没清空 wrong了一次
#include
#include
#include
using namespace std;
int sett[100000 + 100];
int set2[100000 + 10...
分类:
其他好文 时间:
2015-07-26 08:38:58
阅读次数:
167
How Many Answers Are Wrong Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription TT and FF are ... friends. Uh....
分类:
其他好文 时间:
2015-07-25 21:33:40
阅读次数:
159
题目大致意思:第一行输入n,m,表示有共有n个数字,下面会有m行操作。每次输入ai,bi,si表示从ai到bi的和为si,最后输出有m次中有几次和上面的有冲突。!!!!!!sum【x】表示从x的父节点到达x的值#include #include using namespace std;const i...
分类:
其他好文 时间:
2015-07-25 21:21:20
阅读次数:
181
First, let’s make the topic clear: Comparing with providing raw Oozie workflow/coordinator xml file, what’s disadvantages to create workflow/coordinator with Hue Oozie Editor? ( The Hue Oozie Editor ve...
分类:
其他好文 时间:
2015-07-23 13:53:23
阅读次数:
140