文章浏览阅读250次。time limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA stringtis calledniceif a string "2017" occurs intas asubsequencebut a st..._codeforces new year and old subsequence...
文章浏览阅读164次。题目链接:点击前往题目:A string t is called nice if a string “2017” occurs in t as a subsequence but a string “2016” doesn’t occur in t as a subsequence. For example, strings “203434107” and “9220617” are ni..._codefoces new year线段树维......