摘要:
1.链接地址:http://bailian.openjudge.cn/practice/2001http://poj.org/problem?id=20012.题目:Shortest PrefixesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 12208Accepted: 5210DescriptionA prefix of a string is a substring starting at the beginning of the given string. The prefixes of "carbon&q 阅读全文
posted @ 2014-03-04 21:53
mobileliker
阅读(229)
评论(0)
推荐(0)
摘要:
1 cout.setf(ios::fixed);2 cout.precision(2);3 cout << sum << endl; 阅读全文
posted @ 2014-03-04 21:43
mobileliker
阅读(147)
评论(0)
推荐(0)
摘要:
1.链接地址:http://bailian.openjudge.cn/practice/2795/2.题目:总Time Limit:3000msMemory Limit:65536kBDescription某天KID利用飞行器飞到了一个金银岛上,上面有许多珍贵的金属,KID虽然更喜欢各种宝石的艺术品,可是也不拒绝这样珍贵的金属。但是他只带着一个口袋,口袋至多只能装重量为w的物品。岛上金属有s个种类, 每种金属重量不同,分别为n1, n2, ... , ns,同时每个种类的金属总的价值也不同,分别为v1,v2, ..., vs。KID想一次带走价值尽可能多的金属,问他最多能带走价值多少的金属。注 阅读全文
posted @ 2014-03-04 21:42
mobileliker
阅读(444)
评论(0)
推荐(0)
浙公网安备 33010602011771号