链接: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阅读
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
95阅读
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阅读
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阅读
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阅读
只计算每个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
题目:意思就是推断给定的几条线段是否有相交的。方法:模版吧,有空在来细细学习。代码:#include <iostream>#include <cstdio>using namespace std;struct Point{ double x,y;};struct LineSeg{ Point a,b;};double Cross(Point a,
转载 2017-07-02 21:31:00
64阅读
2评论
Now given a circuit diagram, your ta
原创 2022-11-10 00:50:52
52阅读
题意思路:见这个,写的很详细了,题解,主要难在建图和流量大于等于0的时候就停止增广#include<iostream> #include<cstdio> #include<cstring> #include<vector> #include<queue> using namespace std; #define LL long long
原创 2023-06-09 18:23:37
56阅读
https://vjudge.net/problem/UVA-10652 给出n个长方形,用一个面积尽量小的凸多边形把他们围起来 求木板占包装面积的百分比 输入给出长方形的中心坐标,长,宽,以及长方形顺时针旋转的角度 求凸包 处理输入: 长方形四个顶点的向量坐标=中心点的向量坐标+从中心出发的向量旋
转载 2021-08-05 11:35:56
49阅读
  • 1
  • 2
  • 3
  • 4
  • 5