摘要:
#include#include#include#includeusing namespace std;int n;int x[30],y[30];class Coordinate{public: double xCoordinate; double yCoordinat... 阅读全文
摘要:
用dp[i]表示第i种的情况,第i个上放一个木人,共有dp[i-3]+1种情况。不放木人共有dp[i-1]种情况。所以dp[i]=dp[i-1]+1+dp[i-3]。#include#include#include#includeusing namespace std;__int64... 阅读全文
摘要:
#include#include#include#include#includeusing namespace std;struct node{ int num; int cnt;}a[10000+5];bool cmp(node n1,node n2){ retu... 阅读全文