07 2012 档案

摘要:最近都没有做什么,很懒,也做不出来,干脆看别人的吧这份代码很漂亮#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> struct Teams { char name[35]; int a_rank, b_point, c_games, d_wins, e_ties, f_losses, g_dif, h_sco, i... 阅读全文
posted @ 2012-07-17 21:21 godjob 阅读(306) 评论(0) 推荐(0)
摘要:AnanagramsMost crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have this attribute, no matter how you rearrange their letters, you cannot form another word. Such words are ca 阅读全文
posted @ 2012-07-14 22:51 godjob 阅读(501) 评论(0) 推荐(0)
摘要:滑雪Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 58507Accepted: 21298DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 516 17 18 19 615 24 25 20 714 23 22 21 813 12 11 10 9一个人可以从某个点滑向... 阅读全文
posted @ 2012-07-13 16:11 godjob 阅读(362) 评论(0) 推荐(0)
摘要:就是翻转饼干的题目,代码写得不是很好,算了#include <iostream>#include <string>#include <algorithm>#include <sstream>#include <vector>//#include <iterator>//#include "boost/foreach.hpp"using namespace std;int main(){ //循环处理输入的每组字符串。每次循环一轮要输出最后的0和换行 for (string strLine; getlin 阅读全文
posted @ 2012-07-07 23:34 godjob 阅读(154) 评论(0) 推荐(0)