上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2015年4月17日

摘要: PalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:55018Accepted:19024DescriptionA palindrome is a symmetrical string, that is, a string ... 阅读全文

posted @ 2015-04-17 09:30 LLGemini 阅读(181) 评论(0) 推荐(0) 编辑

2015年4月16日

摘要: Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7)... 阅读全文

posted @ 2015-04-16 16:38 LLGemini 阅读(115) 评论(0) 推荐(0) 编辑

2015年4月9日

摘要: 问题描述小明为某机构设计了一个十字型的徽标(并非红十字会啊),如下所示:对方同时也需要在电脑dos窗口中以字符的形式输出该标志,并能任意控制层数。输入格式一个正整数 n (n 2 #include 3 #include 4 #include 5 using namespace std; 6 cons... 阅读全文

posted @ 2015-04-09 17:34 LLGemini 阅读(263) 评论(0) 推荐(0) 编辑

2015年3月31日

摘要: Problem DescriptionA group of transformers whose leader isOptimus Prime(擎天柱) were assigned a mission: todestroy all Decepticon's(霸天虎) bases.The bases ... 阅读全文

posted @ 2015-03-31 23:45 LLGemini 阅读(151) 评论(0) 推荐(0) 编辑

2015年3月27日

摘要: 题目链接题意:给出m行n列的棋盘,当两皇后在同行同列或同对角线上时可以互相攻击,问共有多少种攻击方式。分析:首先可以利用加法原理分情况讨论:①两皇后在同一行;②两皇后在同一列;③两皇后在同一对角线( / 或 \ ); 其次利用乘法原理分别讨论: ①同一行时(A),先选某一行某一列放置其中一个... 阅读全文

posted @ 2015-03-27 23:45 LLGemini 阅读(237) 评论(0) 推荐(0) 编辑

摘要: 题目链接题意:“铁人三项”比赛中,需要选手在t km的路程里进行马拉松和骑自行车项目。现有n名选手,每位选手具有不同的跑步速度和骑车速度。其中第n位选手贿赂了裁判员,裁判员保证第n名选手一定会取得冠军。问当马拉松路程与自行车路程分别为多少时,第n名选手才能取得冠军。输出冠军与第二名所差的秒数以及马拉... 阅读全文

posted @ 2015-03-27 10:23 LLGemini 阅读(714) 评论(0) 推荐(0) 编辑

2015年3月25日

摘要: Josephina is a clever girl and addicted to Machine Learning recently. She pays much attention to a method called Linear Discriminant Analysis, which h... 阅读全文

posted @ 2015-03-25 20:09 LLGemini 阅读(545) 评论(0) 推荐(0) 编辑

摘要: 题目链接题意:解方程:p ∗ e^(−x) + q ∗ sin(x) + r ∗ cos(x) + s ∗ tan(x) + t ∗ x^2 + u = 0 (0 =0&&F(1) 2 #include 3 #include 4 #include 5 using namespace std; 6 c... 阅读全文

posted @ 2015-03-25 18:46 LLGemini 阅读(144) 评论(0) 推荐(0) 编辑

2015年3月21日

摘要: 题目链接题意:给出一个数S,求一个最大的数,使这个数所有的因子之和为S;这个所谓“因子之和”不知道有没有误导性,因为一开始以为得是素数才行。后来复习了下小学数学,比如12的因子分别是1,2,3,4,6,12...我竟无言以对T^T...感觉复杂度应该能继续优化的。。没想到好的。。代码: 1 #inc... 阅读全文

posted @ 2015-03-21 14:21 LLGemini 阅读(232) 评论(0) 推荐(0) 编辑

摘要: 题目链接题意:给你一个数n,问最少有多少个1构成的“1”串(1,11,...)能整除n;比如:111能被3整除; 111111能被7整除;...作为水货觉得只要自己能1A的都是水题=。 = 1 #include 2 #include 3 #include 4 #include 5 using nam... 阅读全文

posted @ 2015-03-21 11:11 LLGemini 阅读(190) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页