Redian新闻
>
note 3的真实分辨率?
avatar
note 3的真实分辨率?# PDA - 掌中宝
c*g
1
1. Winners
那个马楠她老公。飞来横福,在有卡有事业以后,大妈老婆知趣退出。
真是wsn的梦想。
2. Loser
wilson,这个是最大的loser了,丢了孩子,钱,大妈前妻,换来了一个老大妈。
小马和小孩:没了老公和爹,但能拿到钱。
不是winner也不是loser的。
马楠大妈,一身烂肉和谁睡都差不多。就是换个人睡而已
avatar
h*y
3
本想去SF的 没想到周末要下雨,有三天休息的时间 想出去玩玩
有什么好建议
avatar
v*s
4
不知道对不对,但是note3是pentile而note2是RGB,算下来次像素密度比note2还要低
一点?
avatar
u*m
5
1.winner, 同意你的说法。马楠她老公。飞来横福,在有卡有事业以后,大妈老婆知
趣退出。真是wsn的梦想。
2。loser:
第一,李,小马生的两个女孩。
跟着小马过日子,单身母亲精力有限,照顾不周,肯定受苦,没有了正常的幸福童
年。
跟爹妈两边一半一半跑着过,日子不安定,从小就没有安全感。在父亲家里还要跟
另一个男孩竞争父亲的关心。
第二,小马。当单身母亲有可能活活累死,而交给李养又担心女儿被后妈虐待。
女儿两边跑又心疼孩子承受太多的心理惶惑而造成心理扭曲疾病。
第三,wilson,离了大妈前妻,换来了另一个老大妈,还得面对以后家庭成员复杂的
关系。
3。不是winner也不是loser的。同意你的说法。
马楠大妈,一身烂肉和谁睡都差不多。就是换个人睡而已
avatar
h*6
6
转坐标系,转45度解吧。
avatar
a*s
7
看野花去?

【在 h******y 的大作中提到】
: 本想去SF的 没想到周末要下雨,有三天休息的时间 想出去玩玩
: 有什么好建议

avatar
k*h
8
像素其实没啥意思,眼见为实。反正note3看不见像素点,note2凑很近可以看见
avatar
s*t
9

现在老三的lg急啊!本来手里的山芋就快要出手了~怎料到小马这么一手?
急得他天天在家盘算,完了,这老三一耍泼原形毕露,这wilson到底收不收她啊?
wilson不收这个烂货,还得等着他自己去出面甩掉,理也没了,钱也会多分点走。。。。

【在 c******g 的大作中提到】
: 1. Winners
: 那个马楠她老公。飞来横福,在有卡有事业以后,大妈老婆知趣退出。
: 真是wsn的梦想。
: 2. Loser
: wilson,这个是最大的loser了,丢了孩子,钱,大妈前妻,换来了一个老大妈。
: 小马和小孩:没了老公和爹,但能拿到钱。
: 不是winner也不是loser的。
: 马楠大妈,一身烂肉和谁睡都差不多。就是换个人睡而已

avatar
c*p
10
关键不是坐标系的问题吧。。。怎么判断封闭呢?

【在 h**6 的大作中提到】
: 转坐标系,转45度解吧。
avatar
e*a
11
开了吗?

【在 a*****s 的大作中提到】
: 看野花去?
avatar
w*e
12
loser里还应该有nan的儿子
avatar
h*6
13
凡是与边上一圈相邻的都不封闭。

【在 c****p 的大作中提到】
: 关键不是坐标系的问题吧。。。怎么判断封闭呢?
avatar
a*s
14
上次我在这里贴了个野花report的网站。肯定开了。看哪里就是了。
http://www.desertusa.com/wildflo/ca.html

【在 e****a 的大作中提到】
: 开了吗?
avatar
p*p
17
不用吧,感觉就直接dfs就行了
两种45度方向定义了不同的边界限制

【在 h**6 的大作中提到】
: 转坐标系,转45度解吧。
avatar
o*9
18
想不想去沙漠?
春天的沙漠应该是生机盎然的吧~
仙人掌开花了吗? Anza-Borrego Desert.

【在 h******y 的大作中提到】
: 本想去SF的 没想到周末要下雨,有三天休息的时间 想出去玩玩
: 有什么好建议

avatar
p*p
19
刚写了个,上个部分代码
private enum Direction {LEFT, RIGHT, UP, DOWN};
private static float getCurrentPathMax(int currentRow, int currentCol, int[]
[] maze, int[][] visited, Direction lastStep) {
int rows = maze.length, cols = maze[0].length;

if (currentRow < 0 || currentRow >= rows || currentCol < 0 || currentCol
>= cols) {
return -1;
}

if (maze[currentRow][currentCol] == 0) {
// blank
if (visited[currentRow][currentCol] == 3) {
return 0;
}
visited[currentRow][currentCol] = 3;
float nextPathArea = getCurrentPathMax(currentRow - 1, currentCol,
maze, visited, Direction.UP);
if (nextPathArea == -1) {
return -1;
}
else {
return 1 + nextPathArea;
}
}
else if (maze[currentRow][currentCol] == 1) {
// slash wall
float nextPathArea = 0;
switch (lastStep) {
case UP:
if ((visited[currentRow][currentCol] & 2) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 2;
nextPathArea = getCurrentPathMax(currentRow, currentCol + 1,
maze, visited, Direction.RIGHT);
break;
case DOWN:
if ((visited[currentRow][currentCol] & 1) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 1;
nextPathArea = getCurrentPathMax(currentRow, currentCol - 1,
maze, visited, Direction.LEFT);
break;
case LEFT:
if ((visited[currentRow][currentCol] & 2) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 2;
nextPathArea = getCurrentPathMax(currentRow + 1, currentCol,
maze, visited, Direction.DOWN);
break;
case RIGHT:
if ((visited[currentRow][currentCol] & 1) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 1;
nextPathArea = getCurrentPathMax(currentRow - 1, currentCol,
maze, visited, Direction.UP);
break;
}
if (nextPathArea == -1) {
return -1;
}
else {
return 0.5f + nextPathArea;
}

}
else {
// backslash wall
float nextPathArea = 0;
switch (lastStep) {
case UP:
if ((visited[currentRow][currentCol] & 2) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 2;
nextPathArea = getCurrentPathMax(currentRow, currentCol - 1,
maze, visited, Direction.LEFT);
break;
case DOWN:
if ((visited[currentRow][currentCol] & 1) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 1;
nextPathArea = getCurrentPathMax(currentRow, currentCol + 1,
maze, visited, Direction.RIGHT);
break;
case LEFT:
if ((visited[currentRow][currentCol] & 1) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 1;
nextPathArea = getCurrentPathMax(currentRow - 1, currentCol,
maze, visited, Direction.UP);
break;
case RIGHT:
if ((visited[currentRow][currentCol] & 2) != 0) {
return 0;
}
visited[currentRow][currentCol] |= 2;
nextPathArea = getCurrentPathMax(currentRow + 1, currentCol,
maze, visited, Direction.DOWN);
break;
}
if (nextPathArea == -1) {
return -1;
}
else {
return 0.5f + nextPathArea;
}
}
}
public static float getMaxArea(int[][] maze) {
int rows = maze.length, cols = maze[0].length;
int[][] visited = new int[rows][cols];
// 0 - not visited
// 1 - upper half visited
// 2 - lower half visited
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
visited[i][j] = 0;
}
}

float max = 0;

for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
if (visited[i][j] == 3) {
continue;
}
if (maze[i][j] == 0) {
continue;
}
else {
if ((visited[i][j] & 1) == 0) {
visited[i][j] |= 1;
max = Math.max(max, 0.5f + getCurrentPathMax(i - 1, j,
maze, visited, Direction.UP));
}
if ((visited[i][j] & 2) == 0) {
visited[i][j] |= 2;
max = Math.max(max, 0.5f + getCurrentPathMax(i + 1, j,
maze, visited, Direction.DOWN));
}
}
}
}

return max;
}
avatar
a*s
20
现在去anza-borrego 可能小野花已经差不多败了,但是还有点看。
仙人掌花倒是应该还有些。
今年雨水多,会影响沙漠开花更早吗?

【在 o*******9 的大作中提到】
: 想不想去沙漠?
: 春天的沙漠应该是生机盎然的吧~
: 仙人掌开花了吗? Anza-Borrego Desert.

avatar
d*l
21
这个题如果是方格且四周全封闭就是个简单的问题。现在这样虽然也可以那么做,不过
倒下标加边界判断,一般人写起来会很容易出错吧。我觉得把每个格分成四个顶点,然
后建起图,挨个dfs,是最稳定扎实的办法。把最外圈的点跟一个面积负无穷的点连起
来,也就不用单独判断封闭了。
avatar
r*c
22
什么日子,我怎么翻一下没假啊
avatar
j*y
23
感觉就是用 dfs找出所有的 cycle .但是找所有的 cycle也不太容易阿

【在 d*******l 的大作中提到】
: 这个题如果是方格且四周全封闭就是个简单的问题。现在这样虽然也可以那么做,不过
: 倒下标加边界判断,一般人写起来会很容易出错吧。我觉得把每个格分成四个顶点,然
: 后建起图,挨个dfs,是最稳定扎实的办法。把最外圈的点跟一个面积负无穷的点连起
: 来,也就不用单独判断封闭了。

avatar
e*a
24
I don't give a dime to work/school day, LOL

【在 r*c 的大作中提到】
: 什么日子,我怎么翻一下没假啊
avatar
b*n
25
上个月刚做过,uva 705,slash maze,有兴趣的可以直接去online judge submit。应
该属于国内搞IO和ACM的基础练习题。
avatar
h*y
26
有人知道哪里看野花好吗
avatar
p*u
27
到底什么日子啊!!!!!!!!!!今天听到好几个人说长周末,翻了日历没有啊
avatar
h*y
28
是个什么宗教节日的 有些地方放假 有些不放
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。