一:uva 10055Hashmat the brave warrior(水)注意:1.The input numbers are not greater than 2^32.这是一个陷阱,原以为只要整形int就可以满足了,可是wa了。int只能表示-2^32—2~32-1。所以需要用范围更大的long long型。2.or vice versa 反之亦然。所以结果应该是个正整数。用取绝对值abs可以,用大的减去小的也行。来自网上二:uva10071 - Back to High School Physics(水)注意:1:位移有方向的,可正可负。三:uva10300 - Ecological Read More
posted @ 2014-03-16 00:06 laiba2004 Views(130) Comments(0) Diggs(0) Edit