链接:https://www.nowcoder.com/acm/contest/206/B来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 1048576K,其他语言2097152K64bit IO Format: %lld题目描述恬恬有一个nx n的数组。她在用这个数组玩游戏:开始时,数组中每一个元素都是0。恬恬会做某些操作。在一次操作中,她可以将某...
原创 2022-02-06 10:36:36
51阅读
 2011-03-23
原创 2011-04-12 15:17:38
210阅读
链接:https://www.nowcoder.com/acm/contest/206/B来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 1048576K,其他语言2097152K64bit IO Format: %lld题目描述恬恬有一个nx n的数组。她在用这个数组玩游戏:开始时,数组中每一个元素都是0。恬恬会做某些操作。在一次操作中,她可以将某...
原创 2021-07-14 13:53:28
303阅读
Creating a Review Board SiteOnce Review Board is installed, a site must be created. Each site maps toa domain, subdoma
转载 2023-01-05 11:44:44
98阅读
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Y
转载 2017-01-03 00:20:00
87阅读
2评论
Board(思维)传送门思路:因为只有一个数不知道,设(x,y)=r[x]+c[y](x,y)=r[x]+c[y](x,y)=r[x]+c[y].r[i]r[i]r[i]表示对行加的数之和,c[i]c[i]c[i]表示对列加的数之和,要求r[x]+c[y]r[x]+c[y]r[x]+c[y]我们可以间接用一个矩形求出来。对任意(i,j),i!=x,j!=y(i,j),i!=x,j!=y(i,j),i!=x,j!=y显然有(x,j),(x,y),(i,j),(x,j)(x,j),(x,y),(i,j)
原创 2022-01-22 14:20:16
94阅读
Board(思维)传送门思路:因为只有一个数不知道,设(x,y)=r[x]+c[y](x,y)=r[x]+c[y](x,y)=r[x]+c[y].r[i]r[i]r[i]表示对行加的数之和,c[i]c[i]c[i]表示对列加的数之和,要求r[x]+c[y]r[x]+c[y]r[x]+c[y]我们可以间接用一个矩形求出来。对任意(i,j),i!=x,j!=y(i,j),i!=x,j!=y(i,j),i!=x,j!=y显然有(x,j),(x,y),(i,j),(x,j)(x,j),(x,y),(i,j)
原创 2021-08-10 10:10:41
102阅读
只计算每个battleship的第一个元素,所以后面‘X’如果above或者left也是'X'的话,不被计算
转载 2016-12-05 06:10:00
170阅读
2评论
https://leetcode.com/problems/battleships-in-a-board/ // 采用的是排除法,看船的最后一个节点 public class Solution { public int countBattleships(char[][] board) { int rows = board.length; int c...
i++
转载 2016-10-16 14:15:00
97阅读
2评论
### 实现"Boogie Board Sync"的流程及代码示例 #### 什么是"Boogie Board Sync"? "Boogie Board Sync"是一种技术,可以帮助我们实现Kubernetes中的应用程序同步,确保运行在不同节点上的应用程序数据一致性。在Kubernetes中,数据同步对于保证应用程序的高可用性和稳定性非常重要。 #### 实现"Boogie Board S
By 高焕堂    学习Android最核心的Context主板模式 1.  认识Android的Context主板模式  我们从典型的主板模式(MB pattern)出发,来了解Android的Context主板模式设计。于是,架构师心中有个Context接口,并且设计一个抽象父类来实现(Implement)该接口,如下图: 
                                 &n
原创 2010-08-18 10:33:28
464阅读
看到水晶易表里面的那个夺目的仪表图,真是让我感叹为什么Excel里面没有这个图表类型呢?不过Excel还是可塑性非常强的,最终我模拟出一个仪表图,但是和水晶易表酷炫的效果还是有些差距。在出Excel 报告中如果加入这些图表元素,相信会让你的报告增色不少。
原创 2013-09-24 17:29:54
512阅读
      Everyone's life is a drama, so as to the success of the theme of many stories, there is the beginning, climax, the finale. The success of life as "bucket theory", s
原创 2008-11-25 19:18:49
734阅读
Tinker Board Linux is a powerful operating system that is widely recognized for its versatility and functionality. This open-source software is designed for use on single-board computers, making it a
原创 3月前
10阅读
实现SOC和BOARD的流程 为了帮助这位刚入行的小白实现SOC和BOARD,我们首先需要了解整个流程。下面是一个展示每个步骤的表格: | 步骤 | 描述 | | ---- | ---- | | 步骤1 | 确定系统需求 | | 步骤2 | 设计SOC | | 步骤3 | 开发SOC硬件 | | 步骤4 | 编写SOC软件 | | 步骤5 | 开发BOARD硬件 | | 步骤6 | 集成SOC
原创 7月前
29阅读
/*Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules:You receive a valid boar...
原创 2021-07-09 14:11:46
36阅读
HDU_2704     由于N很小,离散化之后暴力对每块格子染色应该都能过。效率比较好的办法之一是用线段树+扫描线来做(当然也可以离散化,不过这个题目W、H比较小,所以可以不必离散化),在线段树上记录当前扫描线上当前区间被覆盖的次数cnt,扫描线上被覆盖的长度len,被覆盖的最大深度dep,以及被覆盖的深度最大的部分的长度ml就可以了。 #include<stdio.h> #inc
转载 2012-08-27 11:30:00
54阅读
2评论
Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules: * You receive a valid bo...
转载 2018-11-08 16:38:00
96阅读
2评论
System Board Replacement Notice System Board Replacement Notice for TP 770E and TP 600 Restoring the System Unit Serial Number: The EEPROM on the syst
转载 2018-10-27 22:12:00
120阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5