摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>#include <cmath>using namespace std;int n;int f[] ={ 3, 5, 8, 12, 20, 34, 57, 98, 170, 300, 536, 966, 1754, 3210, 5910, 10944, 20366, 38064, 71421, 134480, 254016};int main(){ //freopen 阅读全文
posted @ 2011-10-05 16:53
undefined2024
阅读(250)
评论(0)
推荐(0)
摘要:
题意:这题的本质是给定若干条边,问能否用其中的一些组成多边形。分析:先排序,看前i个的和是否大于第i+1个,若大于则可以View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>#include <algorithm>using namespace std;#define maxn 30double f[maxn];int n;void input(){ for (int i = 0; i < n; i++) scanf(& 阅读全文
posted @ 2011-10-05 16:13
undefined2024
阅读(231)
评论(0)
推荐(0)