
ZOJ
文章平均质量分 64
方偲~
大佬养成中...
展开
-
ZOJ-Problem Set - 2042 Divisibility(dp)
代码参考博客感谢博主! DivisibilityTime Limit: 2 Seconds Memory Limit: 65536 KBConsider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus der...原创 2018-10-18 11:26:09 · 202 阅读 · 0 评论 -
ZOJ-2060 Fibonacci Again(斐波那契找规律,水题)
ZOJ Problem Set - 2060Fibonacci AgainTime Limit: 2 Seconds Memory Limit: 65536 KBThere are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2) Input...原创 2018-10-17 11:16:17 · 249 阅读 · 0 评论 -
zoj-2001 Adding Reversed Numbers(水题)
代码参考博客 DescriptionThe Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to t...原创 2018-10-17 11:02:36 · 219 阅读 · 0 评论 -
ZOJ-3956 Course Selection System (01背包,dp)
代码参考博客链接 DescriptionThere are n courses in the course selection system of Marjar University. The i-th course is described by two values: happiness Hi and credit Ci. If a student selects m cour...原创 2018-10-16 21:04:30 · 147 阅读 · 0 评论 -
ZOJ 3950 How Many Nine(日期)
DescriptionIf we represent a date in the format YYYY-MM-DD (for example, 2017-04-09), do you know how many 9s will appear in all the dates between Y1-M1-D1 and Y2-M2-D2 (both inclusive)?Note that...原创 2018-10-16 20:04:25 · 218 阅读 · 0 评论 -
ZOJ-3948 Marjar Cola(模拟)
DescriptionMarjar Cola is on sale now! In order to attract more customers, Edward, the boss of Marjar Company, decides to launch a promotion: If a customer returns x empty cola bottles or y cola...原创 2018-10-16 19:05:20 · 202 阅读 · 0 评论 -
ZOJ-Problem Set - 1205(大数运算,二十进制加法,水)
Martian AdditionTime Limit: 2 Seconds Memory Limit: 65536 KB In the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics...原创 2018-10-18 19:17:28 · 146 阅读 · 0 评论 -
ZOJ-Problem Set - 1037 Gridland(找规律求最短路径长度)
Time Limit: 2 Seconds Memory Limit: 65536 KBBackgroundFor years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficien...原创 2018-10-18 15:24:53 · 161 阅读 · 0 评论 -
ZOJ-1167:Trees on the Level(建立树,bfs)
转载博客链接 Trees on the LevelTime Limit: 2 Seconds Memory Limit: 65536 KBTrees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinkin...转载 2018-10-18 15:00:03 · 255 阅读 · 0 评论 -
ZOJ-1101-Gamblers【你为什么还在超时,用二分吧】
GamblersTime Limit:2 Seconds Memory Limit:65536 KBA group ofngamblers decide to play a game:At the beginning of the game each of them will cover up his wager on the table and the assi...原创 2019-03-13 13:55:13 · 301 阅读 · 1 评论