1 #include 2 using namespace std; 3 const int b[8][2]={{-1,-1},{-1,0},{-1,1},{1,-1},{1,0},{1,1},{0,-1},{0,1}}; 4 int n,m; 5 char a[110][110]; 6 7 vo.....

tyvj 1213嵌套矩形Fromadmin描述 Description有n个矩形，每个矩形可以用a,b来描述，表示长和宽。矩形X(a,b)可以嵌套在矩形Y(c,d)中当且仅当a#includeusing namespace std;#define N 2005struct rec{int l;in...

#include #include using namespace std; float Sqrt(float x); float InvSqrt(float x); int main(void) {            system("color F0");      cout.setf(ios::fixed);                      ...

#include#include#include#include#include#include#include#include#includeusing namespace std;int main(){ int n,m,a,b; scanf("%d%d",&n,&m); lon...

ones时间限制：1000ms | 内存限制：65535KB难度：3描述Given a positive integer N (0#include#include#includeusing namespace std;const int maxn=10005;int n,dp[maxn];void....

/*f[i][j]表示 前j个时间 看完 i个所得的最大价值*/#include#include#include#include#include#include#includeusing namespace std;int n,m,l,f[110][1010],ans;int main(){ ...

#include#include#include#include#include#include#include#include#includeusing namespace std;const int N=22, M=1000;int map[N][N],dp[N][N];int main(){i...

#include#include#include#include#include#include#include#include#includeusing namespace std;int map[150][150];int dp[150][150];int main(){int t,n,m;sc...

/*n 她的素数有n/ln(n)个。*/#include#include#include#include#include#include#include#include#include#includeusing namespace std;int n;int main(){ while(s...