杭電acm2037(今年暑假不ac)

//思路:1.先將所有節目按照結束時間從小到大排序。2.最先結束的當然要先看。然後比較後面的開始時間是否>=前面的結束時間。若條件成立,則count++. #include<iostream>//Write in vc6.0,Win7 #include<cstdlib> using namespace std; struct time // 定義時間結構 { int x,y; }; int cmp
相關文章
相關標籤/搜索