public static double Round( double
value,//要舍入的双精度浮点数。 int
digits//返回值中的小数数字。)将双精度浮点值按指定的小数位数舍入。说明:由于用十进制数表示浮点数或对浮点数进行算术运算可能导致的误差,在某些情况下,Round(Double,...
分类:
其他好文 时间:
2014-06-29 14:30:54
阅读次数:
222
DescriptionYou have an
arraya[1],?a[2],?...,?a[n], containing distinct integers from1ton. Your task is
to sort this array in increasing order with the...
分类:
其他好文 时间:
2014-05-31 01:35:23
阅读次数:
318
都怪自己太懒了
这段时间比赛参加了大部分,但是一直都没写题解,趁这几天没事,计划把这段时间的题解都补上。上一次比赛(248)终于升到了div1,所以从这次开始就开始写div1了。A.
TriangleThere is a right triangle with legs of lengthaandb...
分类:
其他好文 时间:
2014-05-30 11:15:42
阅读次数:
296
dp套一个burnside的壳子核心还是dpdp[i]表示有i个循环节时的染色方案数注意在dp的时候,不需要考虑重构的问题因为burnside会解决重构的问题dpA[i][j]表示以A开头,长度为i,结尾为j个A的合法方案数dpB[i][j]表示以B开头,长度为i,结尾为j个A的合法方案数接下来我们...
分类:
其他好文 时间:
2014-05-26 17:02:49
阅读次数:
314
Round and Round We GoTime Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):
623Accepted Submission(s): 3...
分类:
其他好文 时间:
2014-05-26 14:45:27
阅读次数:
243
题目链接题意:思路: 1 #include 2 #include 3 #include 4
#include 5 #include 6 using namespace std; 7 const int mo = 1000000000 + 7; 8
int dp[110][110][110]...
分类:
其他好文 时间:
2014-05-26 14:02:48
阅读次数:
264
Kitahara Haruki has bought n apples for Touma Kazusa and Ogiso Setsuna. Now he wants to divide all the apples between the friends.
Each apple weights 100 grams or 200 grams. Of course Kitahara Haru...
分类:
其他好文 时间:
2014-05-25 09:01:36
阅读次数:
174
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n.
The cost of the i-th stone is vi.
Kuriyama Mirai wants to know something about these sto...
分类:
其他好文 时间:
2014-05-25 07:24:48
阅读次数:
315
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits.
Now you are suggested to solve the f...
分类:
其他好文 时间:
2014-05-24 21:52:34
阅读次数:
320
Codeforces Round #247 (Div. 2)...
分类:
其他好文 时间:
2014-05-24 14:21:30
阅读次数:
195