摘要:
阅读全文
posted @ 2012-12-14 22:41
xxx0624
阅读(178)
评论(0)
推荐(0)
摘要:
n^n=10^( n*log10( n ) );View Code 1 /* 2 n^n 的最高位 3 */ 4 #include<stdio.h> 5 #include<stdlib.h> 6 #include<string.h> 7 #include<iostream> 8 #include<algorithm> 9 #include<queue>10 #include<map>11 #include<math.h>12 using namespace std;13 const int maxn 阅读全文
posted @ 2012-12-14 20:07
xxx0624
阅读(303)
评论(0)
推荐(0)
摘要:
规律题View Code 1 /* 2 n^n 个位 3 */ 4 #include<stdio.h> 5 #include<stdlib.h> 6 #include<string.h> 7 #include<iostream> 8 #include<algorithm> 9 #include<queue>10 #include<map>11 #include<math.h>12 using namespace std;13 const int maxn = 1005;14 const int in 阅读全文
posted @ 2012-12-14 20:06
xxx0624
阅读(252)
评论(0)
推荐(0)
摘要:
完全:题意:给定E,F,分别表示空的存钱罐的重量和装了钱之后的重量。给定n种money的价值和重量dp[ i ][ j ]:表示从前 i 种money中选出某些,使得重量至少为 j 得到的最大价值。View Code 1 /* 2 完全背包 变形 3 */ 4 #include<stdio.h> 5 #include<stdlib.h> 6 #include<string.h> 7 #include<iostream> 8 #include<algorithm> 9 #include<queue>10 #include&l 阅读全文
posted @ 2012-12-14 19:05
xxx0624
阅读(611)
评论(0)
推荐(0)

浙公网安备 33010602011771号