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

2015年7月21日

求车速

摘要: 1050: 【C语言训练】求车速Time Limit:1 SecMemory Limit:128 MBSubmit:236Solved:211[Submit][Status][BBS]Description一辆以固定速度行驶的汽车,司机在上午10点看到里程表上的读数是一个对称数(即这个数从左向右读和... 阅读全文

posted @ 2015-07-21 09:49 甜蜜蜜吖甜蜜蜜 阅读(216) 评论(0) 推荐(0)

2015年7月18日

尼科彻斯定理

摘要: 1037: 【C语言训练】尼科彻斯定理Time Limit:1 SecMemory Limit:128 MBSubmit:406Solved:248[Submit][Status][BBS]Description验证尼科彻斯定理,即:任何一个正整数的立方都可以写成一串连续奇数的和。Input任一正整... 阅读全文

posted @ 2015-07-18 11:00 甜蜜蜜吖甜蜜蜜 阅读(495) 评论(0) 推荐(0)

2015年7月17日

Tom数

摘要: 1028: Tom数Time Limit:1 SecMemory Limit:128 MBSubmit:648Solved:306[Submit][Status][BBS]Description正整数的各位数字之和被Tom称为Tom数。求输入数(#include int main(){ int... 阅读全文

posted @ 2015-07-17 16:56 甜蜜蜜吖甜蜜蜜 阅读(942) 评论(0) 推荐(0)

弟弟的作业

摘要: 1018: 弟弟的作业Time Limit:1 SecMemory Limit:128 MBSubmit:413Solved:188[Submit][Status][BBS]Description你的弟弟刚做完了“100以内数的加减法”这部分的作业,请你帮他检查一下。每道题目(包括弟弟的答案)的格式... 阅读全文

posted @ 2015-07-17 15:09 甜蜜蜜吖甜蜜蜜 阅读(295) 评论(0) 推荐(0)

汽水瓶

摘要: 1017: 汽水瓶Time Limit:1 SecMemory Limit:128 MBSubmit:657Solved:341[Submit][Status][BBS]Description有这样一道智力题:“某商店规定:三个空汽水瓶可以换一瓶汽水。小张手上有十个空汽水瓶,她最多可以换多少瓶汽水喝... 阅读全文

posted @ 2015-07-17 11:37 甜蜜蜜吖甜蜜蜜 阅读(181) 评论(0) 推荐(0)

2015年7月16日

POJ-2533-Longest Ordered Subsequence(LIS模板)

摘要: Description A numeric sequence of ai is ordered if a1 #include #include using namespace std;int main(){ int n,i,j,a[1005],d[1005]; while(scanf("... 阅读全文

posted @ 2015-07-16 17:00 甜蜜蜜吖甜蜜蜜 阅读(142) 评论(0) 推荐(0)

2015年7月15日

HDU-1331-Function Run Fun(动态规划3)

摘要: DescriptionWe all love recursion! Don't we?Consider a three-parameter recursive function w(a, b, c):if a 20 or b > 20 or c > 20, then w(a, b, c) retu... 阅读全文

posted @ 2015-07-15 14:29 甜蜜蜜吖甜蜜蜜 阅读(211) 评论(0) 推荐(0)

HDU-1159 Common Subsequence(动态规划2)

摘要: DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence... 阅读全文

posted @ 2015-07-15 11:08 甜蜜蜜吖甜蜜蜜 阅读(165) 评论(0) 推荐(0)

2015年7月14日

POJ-1163-The Triangle (动态规划1)

摘要: Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of... 阅读全文

posted @ 2015-07-14 10:50 甜蜜蜜吖甜蜜蜜 阅读(153) 评论(0) 推荐(0)

2015年7月13日

CF-Pasha and Tea(贪心6)

摘要: DescriptionPasha decided to invite his friends to a tea party. For that occasion, he has a large teapot with the capacity of w milliliters and 2n tea ... 阅读全文

posted @ 2015-07-13 14:03 甜蜜蜜吖甜蜜蜜 阅读(305) 评论(0) 推荐(0)

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

导航