由买买提看人间百态

topics

全部话题 - 话题: newx
(共0页)
o********r
发帖数: 79
1
来自主题: JobHunting版 - google面经(挂了)
不要吵了。
我按beanbun的思路写了一遍,指教一下
typedef pair COORD;
void extend(COORD cur,
vector >& visited,
vector > matrix,
queue& current,
queue& next )
{
vector shift;
shift.push_back(make_pair(0,-1));
shift.push_back(make_pair(0,1));
shift.push_back(make_pair(1,0));
const int m = matrix.size();
const int n = matrix[0].size();
for(const auto s:shift)
... 阅读全帖
c*********n
发帖数: 128
2
来自主题: Programming版 - Python擂台:算24点
这程序恰好我以前写过,哈哈。interface稍微不一样,懒得改了,直接贴过来。
import sys
from itertools import permutations
#from operator import __add__
EPS = 0.0000001
isEqual = lambda x, y: [False, True][abs(x-y) def main():
line = sys.stdin.readline()
numbers = map(float, line.split())
if(len(numbers) == 0): numbers = [2.0, 2.0, 3.0, 5.0]
xs = map(X, numbers, map(str, map(int, numbers)))
expressions = []
findExpression(expressions, 24.0, xs)
print '\n'.join(set(expressions))

class myoperator... 阅读全帖
h***g
发帖数: 337
3
☆─────────────────────────────────────☆
newx (newx) 于 (Thu Mar 19 01:17:08 2009) 提到:
本科学历认证太麻烦了
☆─────────────────────────────────────☆
wl123 (wl123) 于 (Thu Mar 19 01:26:17 2009) 提到:
CA should be one.

☆─────────────────────────────────────☆
newx (newx) 于 (Thu Mar 19 02:24:06 2009) 提到:
PE好像在日本和韩国也有考点,可以在那边参加考试么?
☆─────────────────────────────────────☆
wzg (88888) 于 (Thu Mar 19 12:58:32 2009) 提到:
Nevada.
☆─────────────────────────────────────☆
yaok (half animal, half man..
t********e
发帖数: 25
4
来自主题: JobHunting版 - 也问两个算法题
Bubble sort recursively?
SortStack(stack s)
{
if s.notEmpty()
{
x = s.pop();
if( x < s.top() )
{ newx = s.pop() ;
s.push(x);
x = newx;
}
SortStack(s);
s.push(x);
}
}
Call this n times.
k******4
发帖数: 94
5
来自主题: JobHunting版 - divide two integers
unsigned int newx = x;
If (x<0)
newx = 1+abs(1+x);

abs(INT_MIN)结果还是-2147483648,不是2147483648,所以要转换成long long,这是
一个原因,好像还有其他原因
s****y
发帖数: 478
6
来自主题: CS版 - Question about java applet
I have two java applets which are listed here.
Program 1:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class MouseDetails extends JApplet {
private String s = "";
private int xPos, yPos;
private int newX, newY;
public void init(){
newX = 0;
newY = 0;
xPos = -1;
yPos = -1;
addMouseMotionListener( new MouseMotionHandler() );
setBackground(Color.black);
setSize( 350, 150 );
}
public void paint( Graphics g )
{
L***m
发帖数: 4594
7
来自主题: LosAngeles版 - 哪一家移民中心口碑好?
寄信人: nikeman (已经颓了的北京超酷男胖子,简称酷胖)
标 题: Re: 美国公共管理硕士的学校????? 真心求建议
发信站: 未名空间 (Sat Oct 1 14:58:05 2011)
来 源: 71.80.
你好!俺原来在湾区做大学商学院教授,有很多同学和朋友在美国各个大学(主要是
商学院)当教授或管招生。现在俺出来自主经营了,主要为国内的同学做大学及以上
(包括博士)的申请服务。如果您有什么问题,可以站内短信我,或email:
j******[email protected],电话:650-898-7818。谢了!
James
P******n
发帖数: 1220
8
来自主题: TongJi版 - 我爱同济(zhuan)
" target="_blank" class="a2">http://www.chinastu.com/cgi-bin/bbs/bbs.cgi?a_method=show&slttitle=2000-09-07.13:46:06&id=newx
文章标题: 我爱同济         
同济大学虽然在计算机,通讯方面不如交大,但是交大的, 你们看看下面的专业,你们那一个比的过同济。
1 建筑设计与建筑理论,北有清华,南有同济。
2 城市规划专业 同济排名全国第一。 恐怕交大根本没有这个专业。
3 工业设计专业 同济这个专业在全国除清华无人出其右,交大呢?
4 工业与民用建筑专业 同济大学在这方面绝对是与清华齐名,甚至还超过她。
5 交通信息工程及控制专业 同济绝对是这方面的权威。除清华,没人可比。
6 道路工程专业 没有同济,我看中国还是不要修机场,造高速公路了。
7 桥梁工程专业 同济是全国第一,桥梁工程专业在国际上都是享有盛名的。拥有亚洲最大的风洞群。
8 地下工程 同济大学拥有被剑桥大学评为世界十大杰出青年科学家的28岁的孙立均教授。
9 环境工程专业 同济这个专业在全国也是与
r****y
发帖数: 1437
9
来自主题: Mathematics版 - matlab上的排序问题
[y, i] = sort(x(:, 1));
newx = [y, x(i, 2)];

This is not a math problem at all...
N******l
发帖数: 190
10
来自主题: MedicalCareer版 - 临床研究opportunity:请版主置顶两周
I am sorry, Big "F". It's not about being 很黄啊.
Regardless of the gender, she pulled out one dick first, so I threw out two
balls.
Now she pulls out two dicks, actually I have more balls waiting for her.
Just those words will be too nasty and Bamboos wound ban me at least for a
week or so.
So I just keep silence.
Didn't you see that I barely dare to type in English?
Because of my broken English, I bet within 2 rounds I wound be beat back by
Dr. NewX.
蒙古大夫英语好,除了老刀以外。
当年惊天地泣鬼神之华山论剑,年轻的朋友们怕是无缘复见。
自从
D******n
发帖数: 2836
11
来自主题: Statistics版 - 【欢迎进来讨论】for loop in R
Ya, because people keep saying the apply family is faster, so i was
surprised to find out (see floor 17), apply alone is not C code(or other non
R script) based while other family members are.
just type apply in R , you can find out it is totally R code with a loop.
.....
else for (i in 1L:d2) {
tmp <- FUN(array(newX[, i], d.call, dn.call), ...)
if (!is.null(tmp))
ans[[i]] <- tmp
}
.....
for lapply it is like this
function (X, FUN, ...)
{
FUN <- match.fun(... 阅读全帖
x*****i
发帖数: 112
12
来自主题: Statistics版 - R: load data 帮忙看看是什么问题
试了试下面的代码,没有问题。
x <- matrix(rnorm(900), ncol = 30)
save(x, file = "xdata.rda")
save(x, file = "xdataset.Rda")
newx <- load("xdata.rda")
newx2 <- load("xdataset.Rda")
那应该是文件坏了吧。
(共0页)