摘要:
一道题目长的水题。。。。总结就一句话,给出n个(-3~3)的数,一个数m,取任意个数是使这些数的m次幂之和最大。code#include #include using namespace std;int n, m, x;int g[7];int main() { cin >> n >> m; for... 阅读全文
posted @ 2014-08-11 16:38
keambar
阅读(176)
评论(0)
推荐(0)
摘要:
时间限制:0.25s空间限制:6M;题意: 按照AB, AC, AD, BC, BD, CD.给出一个空间四面体的6条边长。求出它的体积。Solution: 欧拉四面体公式: http://blog.csdn.net/archibaldyangfan/article/de... 阅读全文
posted @ 2014-08-11 16:09
keambar
阅读(182)
评论(0)
推荐(0)
摘要:
时间限制:0.5s空间限制6M题意: 给出n个(1int n, m, x;int g[10009], pr[1009][2], f[1009][2];void write (int x) { if (pr[x][0] != 0) write (pr[x][0]); printf ("%d ", ... 阅读全文
posted @ 2014-08-11 15:54
keambar
阅读(263)
评论(0)
推荐(0)
摘要:
时间限制:0.5s空间限制:6M题意: 在b(2#include #include #include #include #include using namespace std;int b, n;struct node { int s[2009]; bool operator 0; i--)... 阅读全文
posted @ 2014-08-11 14:40
keambar
阅读(288)
评论(0)
推荐(0)
摘要:
一道简单题。火车停的位置不是在整点就是在二分之一点,坐标*2,然后枚举火车停的位置,计算总距离即可。code:#include #include #include #include #include #define INF 309using namespace std;int L, m, n, x,... 阅读全文
posted @ 2014-08-11 12:27
keambar
阅读(260)
评论(0)
推荐(0)

浙公网安备 33010602011771号