一个域名可以建几个网站,私人可以有官方网址吗,400电话申请,自适应型网站建设费用感觉特别像那个分治的日程表问题。是f的话就填#xff0c;否则就不填#xff0c;然后同一个表填两次。那么就是最后的结果。 1 #include iostream2 #include cstring3 #include string4 #include map5 #include set6 #include a…感觉特别像那个分治的日程表问题。是f的话就填否则就不填然后同一个表填两次。那么就是最后的结果。 1 #include iostream2 #include cstring3 #include string4 #include map5 #include set6 #include algorithm7 #include fstream8 #include cstdio9 #include cmath
10 #include stack
11 #include queue
12 using namespace std;
13 const double Pi3.14159265358979323846;
14 typedef long long ll;
15 const int MAXN50005;
16 const int dx[5]{0,0,0,1,-1};
17 const int dy[5]{1,-1,0,0,0};
18 const int INF 0x3f3f3f3f;
19 const int NINF 0xc0c0c0c0;
20 const ll mod1e97;
21 int a[MAXN][MAXN];
22 void build(string str,int cnt,int r1,int r2,int c1,int c2)
23 {
24 char sstr[cnt];
25 if(sp)
26 {
27 int midr(r1r2)/2,midc(c1c2)/2;
28 build(str,cnt,r1,midr,midc1,c2);
29 build(str,cnt,r1,midr,c1,midc);
30 build(str,cnt,midr1,r2,c1,midc);
31 build(str,cnt,midr1,r2,midc1,c2);
32 }
33 else if(sf)
34 {
35 //wcout in;
36 for(int ir1;ir2;i)
37 for(int jc1;jc2;j)
38 a[i][j]1;
39 }
40
41 }
42
43 int main()
44 {
45 int t;cint;
46 while(t--)
47 {
48 int cnt0;
49 string str1,str2;
50 cinstr1str2;
51 memset(a,0,sizeof(a));
52 build(str1,cnt,1,32,1,32);
53 /*for(int i1;i32;i)
54 {
55 for(int j1;j32;j)
56 {
57 cout a[i][j] ;
58 }
59 cout endl;
60 }*/
61 cnt0;
62 build(str2,cnt,1,32,1,32);
63 int ans0;
64 for(int i1;i32;i)
65 {
66 for(int j1;j32;j)
67 {
68 if(a[i][j]) ans;
69 }
70
71 }
72
73 printf(There are %d black pixels.\n,ans);
74 }
75 return 0;
76 }
77
78 转载于:https://www.cnblogs.com/Msmw/p/10670744.html