当前位置: 首页 > news >正文

做电影网站用什么程序企业网站免费制作

做电影网站用什么程序,企业网站免费制作,5分钟的企业宣传片多少钱,石家庄seo就是将两个矩阵进行拼接,两矩阵可以旋转90 180 270 度。 因为数据比较小,所以这基本上就是一个大的枚举模拟加搜索,直接暴力求解。 import java.io.*; import java.util.*;public class Main{static int n;static int N 101;static int mo…

 

就是将两个矩阵进行拼接,两矩阵可以旋转90 180 270 度。

因为数据比较小,所以这基本上就是一个大的枚举模拟加搜索,直接暴力求解。

import java.io.*;
import java.util.*;public class Main{static int n;static int N = 101;static int mod = (int)1e9 + 7;static StreamTokenizer stt = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));static int[][] f = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};
//	static int[][] ff = {{0, -1, 0}, {0, 0, 1}, {0, 1, 0}, {0, 0, -1}, {1, 0, 0}, {-1, 0, 0}};
//	static int[] month = {0, 31,28,31,30,31,30,31,31,30,31,30,31};static int[][] o = new int[N][N];static int[][] p = new int[N][N];static int[][] m = new int[3 * N][3 * N];static int maxi;private static int dfs(int x, int y) {int k = 1;m[x][y] = 0;for(int i = 0; i < 4; i ++) {int nx = x + f[i][0], ny = y + f[i][1];if(nx < 1 || nx > 3 * n || ny < 1 || ny > 3 * n || m[nx][ny] == 0) continue;k += dfs(nx, ny);}return k;}private static void draw(int bx, int by, int[][] o2) {for(int i = bx, ii = 1; ii <= n; ii ++, i ++) {for(int j = by, jj = 1; jj <= n; jj ++, j ++) {m[i][j] = o2[ii][jj];}}}static void asd(int x, int y) throws IOException {// 在地图上画o矩阵draw(n + 1, n + 1, o);// 在地图上画p矩阵draw(x, y, p);// 分别枚举o矩阵和p矩阵所有的1进行深搜for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j ++) {int nx = i + n, ny = j + n;if(m[nx][ny] == 1)maxi = Math.max(maxi, dfs(nx, ny));}}for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j++) {int nx = i + x - 1, ny = j + y - 1;if(m[nx][ny] == 1) maxi = Math.max(maxi, dfs(nx, ny));}}}private static void sov() throws IOException {// 在一个三倍大的地图中,枚举p矩阵的坐上角顶点,默认o在中心的n阶矩阵位置for(int i = 1; i <= 2 * n + 1; i ++) {asd(1, i);asd(2 * n + 1, i);asd(i, 1);asd(i, 2 * n + 1);}}static void rotate() {int[][] s = new int[N][N];for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j ++) {s[j][n - i + 1] = o[i][j];}}for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j ++) {o[i][j] = s[i][j];}}}static void sovle() throws Exception {n = readInt();for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j ++) {o[i][j] = readInt();}}for(int i = 1; i <= n; i ++) {for(int j = 1; j <= n; j ++) {p[i][j] = readInt();}}maxi = 0;
//		rotate();
//		for(int i = 1; i <= n; i ++){
//			for(int j = 1; j <= n; j ++) {
//				bw.write(o[i][j] + " ");
//			}
//			bw.write("\n");
//		}for(int i = 0; i < 4; i ++) {// 旋转o矩阵rotate();// 拼接两矩阵求解sov();}bw.write(maxi + "\n");}public static void main(String args[]) throws Exception {int t = 1;
//		t = Integer.parseInt(br.readLine());
//		t = readInt();while((t --) > 0) {
//		while((n = Integer.parseInt(br.readLine())) != 0) {sovle();}bw.flush();bw.close();}static int readInt() {try {stt.nextToken();} catch (IOException e) {e.printStackTrace();}return (int)stt.nval;}
}

http://www.mmbaike.com/news/74570.html

相关文章:

  • 汕头自助建站模板百度广告推广价格
  • 网站制作需要什么人员企业推广平台排行榜
  • 网站和网页的区别在于互联网项目推广平台有哪些
  • 做简历的网站百度信息流怎么收费
  • 下载手机最新版app济南网站优化培训
  • 高端建站的公司2022年明星百度指数排行
  • 企业信用信息网查询系统官网网站优化排名怎么做
  • 宁波做网站公司魔贝课凡seo
  • 站酷素材seo网站排名优化教程
  • 仿大学网站网页代码如何开网站呢
  • 宝马itms做课网站游戏推广引流
  • 网站模板50元什么是网络软文营销
  • 软件设计毕业论文太极seo
  • wordpress 站点图标百度直播平台
  • 国家军事新闻头条优化手机性能的软件
  • 做乳胶衣的网站seo文章是什么意思
  • 海南门户网站开发公司网上卖产品怎么推广
  • 徐州h5建站模板广告投放怎么做
  • 网站导航栏怎么做seo优化方案
  • 南昌二手网站开发方案拓客软件
  • 全国网站建设哪家好营销网站
  • 企业网站的栏目设置seo方法
  • 泉州最专业手机网站建设定制重庆人社培训网
  • 做钓鱼网站获利3万广东网站营销seo方案
  • 山南网站建设搜索引擎优化策略应该包括
  • 邯郸专业网站建设公司百度问一问在线咨询客服
  • onedrive wordpress郑州seo实战培训
  • 清远市疫情速告seo研究中心官网
  • 青岛网站建设公品牌营销策划与管理
  • cms做网站后台企业网络营销方案