ZOJ
tomjobs
别慌,慌也没用
展开
-
A - Marjar Cola ZOJ - 3948(模拟)
Marjar 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 bottle caps to t...原创 2019-08-21 21:53:16 · 232 阅读 · 0 评论 -
F - Knuth-Morris-Pratt Algorithm ZOJ - 3957(KMP)
In computer science, the Knuth-Morris-Pratt string searching algorithm (or KMP algorithm) searches for occurrences of a “word” W within a main “text string” S by employing the observation that when a ...原创 2019-08-15 18:13:44 · 203 阅读 · 0 评论 -
C - How Many Nines ZOJ - 3950(暴力)
If 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 you should tak...原创 2019-08-15 18:17:36 · 177 阅读 · 0 评论