今日头条笔试题

n个珠子作成的手串,有的手串无色,有的有多种颜色。颜色的种类有c种。给出手串中珠子的序列,若是一种颜色在连续m个珠子中出现,则该颜色不合格,求不合格的颜色个数。ios #include <iostream> #include<cmath> using namespace std; #include <iostream> #include<string> #include<algorithm> #i
相关文章
相关标签/搜索