11 2017 档案

摘要:题目 题目     分析 写了个平淡无奇的栈处理表达式,在WA了5发后发现,我没处理空串,,,,(或者说鲁棒性差?     代码 cpp include using namespace std; bool equal(char a,char b) { if(( 阅读全文
posted @ 2017-11-28 19:04 noble_(noblex) 阅读(218) 评论(0) 推荐(0)
摘要:题目 题目     分析 第一次用stringstream,真TMD的好用     代码 cpp include using namespace std; int main() { int n; cin n; getchar();//回车 while(n ) 阅读全文
posted @ 2017-11-27 19:06 noble_(noblex) 阅读(228) 评论(0) 推荐(0)
摘要:题目 题目     分析 练习STL     代码 cpp include using namespace std; int main() { int n; while(scanf("%d",&n) && n!=0) { queue q; printf("Di 阅读全文
posted @ 2017-11-26 00:35 noble_(noblex) 阅读(143) 评论(0) 推荐(0)
摘要:题目 题目     分析 自认已经很简洁了,虽说牺牲了一些效率     代码 cpp include using namespace std; set m; string s[120003]; int main() { int n; while(cin s[n 阅读全文
posted @ 2017-11-26 00:32 noble_(noblex) 阅读(169) 评论(0) 推荐(0)
摘要:题目 题目     分析 练习STL     代码 cpp include using namespace std; int main() { int t; scanf("%d",&t); while(t ) { int n,m,a[105],cnt=0; q 阅读全文
posted @ 2017-11-26 00:28 noble_(noblex) 阅读(123) 评论(0) 推荐(0)
摘要:题目 题目     分析 算是个模拟吧     代码 cpp include using namespace std; map a[130]; char s[85]; int n[130]; int PosIs() { int len=strlen(s); f 阅读全文
posted @ 2017-11-26 00:21 noble_(noblex) 阅读(260) 评论(0) 推荐(0)
摘要:题目 "题目"     分析 记录一下再预处理一下。     代码 阅读全文
posted @ 2017-11-22 21:59 noble_(noblex) 阅读(261) 评论(0) 推荐(0)
摘要:题目 "题目"     分析 理清思路,上模拟。     代码 cpp include using namespace std; const int maxn=10005,INF=1 阅读全文
posted @ 2017-11-20 20:58 noble_(noblex) 阅读(170) 评论(0) 推荐(0)
摘要:题目 "题目"     分析 没什么好说的,字符串拼接一下再放进map。其实可以直接开俩数组排序后对比一下,但是我还是想熟悉熟悉map用法。 呃400ms,有点慢。     代码 阅读全文
posted @ 2017-11-20 20:54 noble_(noblex) 阅读(159) 评论(0) 推荐(0)
摘要:题目 "题目"     分析 真的快疯了,中午交了一题WA了好久,最后发现最后一个数据不能加\n,于是这次学乖了,最后一组不输出\n,于是WA了好几发,最后从Udebug发现最后一组是要输出的!!!     代码 cpp include include inc 阅读全文
posted @ 2017-11-18 22:44 noble_(noblex) 阅读(161) 评论(0) 推荐(0)
摘要:题目 "题目"     分析 无力了,noip考完心力憔悴,想随便切道题却码了250line,而且还是错的,知道自己哪里错了,但特殊情况判起来太烦了,唯一选择是重构,我却没有这勇气。 有空再写吧,最近真的快疯了。     代码 对拍 ` 随机数 cpp inc 阅读全文
posted @ 2017-11-18 22:21 noble_(noblex) 阅读(151) 评论(0) 推荐(0)
摘要:题目 题目描述 给定一个多项式(by+ax)^k,请求出多项式展开后x^n y^m 项的系数。 输入输出格式 输入格式: 输入文件名为factor.in。 共一行,包含5 个整数,分别为 a ,b ,k ,n ,m,每两个整数之间用一个空格隔开。 输出格式: 输出共1 行,包含一个整数,表示所求的系 阅读全文
posted @ 2017-11-08 19:51 noble_(noblex) 阅读(278) 评论(0) 推荐(0)
摘要:题目 题目描述 监狱有连续编号为1...N的N个房间,每个房间关押一个犯人,有M种宗教,每个犯人可能信仰其中一种。如果相邻房间的犯人的宗教相同,就可能发生越狱,求有多少种状态可能发生越狱 输入输出格式 输入格式: 输入两个整数M,N.1 include using namespace std; ty 阅读全文
posted @ 2017-11-06 20:52 noble_(noblex) 阅读(168) 评论(0) 推荐(0)
摘要:题目 题目描述 输入输出格式 输入格式: 输入文件名为input.txt 输入文件的第一行为正整数n和正整数R,接下来的n行每行有3个正整数,分别表示 xi,yi ,vi 。 输出格式: 输出文件名为output.txt 输出文件仅有一个正整数,表示一颗炸弹最多能炸掉地图上总价值为多少的目标(结果不 阅读全文
posted @ 2017-11-04 22:49 noble_(noblex) 阅读(189) 评论(0) 推荐(0)
摘要:Markdown入门 最近把博客园的编辑器换成了Markdown。   语法入门 Markdown确实好用,本来我想总结一下常用Markdown的语法,但有下面这篇文章在,我实在是不敢画蛇添足了。 基本语法在这: " 传送门 "     注意事项 我在这里只总结一下几点 阅读全文
posted @ 2017-11-04 15:07 noble_(noblex) 阅读(212) 评论(0) 推荐(0)
摘要:Cheapest Palindrome Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10943 Accepted: 5232 Description Keeping track of all the cows can be a 阅读全文
posted @ 2017-11-03 20:19 noble_(noblex) 阅读(186) 评论(0) 推荐(0)
摘要:Milking Time Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10898 Accepted: 4591 Description Bessie is such a hard-working cow. In fact, s 阅读全文
posted @ 2017-11-02 17:36 noble_(noblex) 阅读(255) 评论(0) 推荐(0)

/* */