POJ1704 Georgia and Bob

有個很毒瘤的事就是位置不是按順序給出的...... 發現每次我們能夠把一個棋子向左挪且不能越過下一個。那麼考慮兩個棋子之間的間隙,就是一個階梯博弈了。 1 #include <cstdio> 2 #include <algorithm> 3 4 const int N = 100010; 5 6 int a[N], b[N]; 7 8 inline void solve()
相關文章
相關標籤/搜索