Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making ...
分类:
其他好文 时间:
2015-03-19 20:05:02
阅读次数:
121
1、字符数组
字符串数组资源由标签定义,在标签中包含的若干标签表示数组元素。
例如
Mercury
Values
Earth
Mars
在代码中引用字符串数组的代码如下:
String[] plans=getResources().getStringArray(R.ar...
分类:
移动开发 时间:
2015-03-14 15:23:49
阅读次数:
239
Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and a lot of power ...
分类:
其他好文 时间:
2015-03-14 11:04:05
阅读次数:
122
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4003Humans have discovered a kind of new metal mineral on Mars which are distributed in point‐like with...
分类:
Web程序 时间:
2015-03-08 18:31:43
阅读次数:
164
URAL 1294. Mars Satellites(余弦定理 数学啊 )...
分类:
其他好文 时间:
2015-03-08 10:32:13
阅读次数:
153
题意:有ABCD四个点在圆上,按顺序排列(也就是说B一定在AC之间)。 然后根据输入的四条边。
做法:因为同弦的圆周角相等,所以∠A==∠B。 然后在三角形ADC和三角形BCD中各用一遍余弦定理。可以得到两个方程。未知的只有cos∠A 和 DC,一个二元方程组,化简一下 就可以求出DC了。
余弦定理 a^2=b^2+c^2-2*b*c*cos(∠A);...
分类:
其他好文 时间:
2015-03-07 20:04:57
阅读次数:
148
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However,...
分类:
其他好文 时间:
2015-03-06 11:24:03
阅读次数:
142
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can be cut at any position ...
分类:
其他好文 时间:
2015-03-05 17:00:26
阅读次数:
144
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1, 104]. The first one who bets on ...
分类:
其他好文 时间:
2015-03-05 13:02:13
阅读次数:
126
GOTO语句使用典例。 1 #include 2 #include 3 using namespace std; 4 5 const int maxn = 100010; 6 int mindif = 2147483647; 7 int sum[maxn]; 8 int main() 9 {1...
分类:
其他好文 时间:
2015-03-04 12:40:11
阅读次数:
117