算法協會寒假訓練Three

A - How Many Tables 題目大意:給所有到場參加party的人安排最少需要的桌子,要求認識的要坐在一起。 輸入:樣例個數T,接下來第一行給出總共的人數N和好友對數M,其後每行給出一對好友。 輸出:最少需要的桌子數。 #include<iostream> #include<cmath> #include<algorithm> #include<cstring> using names
相關文章
相關標籤/搜索