摘要: 题目大意: 给你n支木棍,然后把这n支木棍围成一个框。要求这个框必须是矩形,也可以是正方形。一个框用4根木棍。。解题思路: 数学水题。#include#includeusing namespace std;int main(void){ map int_count; int n,i,a; cin>>n; for(i=0;i>a; ++int_count[a]; } map::... 阅读全文
posted @ 2011-11-10 11:31 cchun 阅读(129) 评论(0) 推荐(0)
摘要: 题目大意: 给你一条折线,给一个速度,求把这条折线走完的时间。。。折线要*k.解题思路: 直接暴力算吧。。唉!,这就没有什么营养了。#include#include#includeconst int MAX=105;using namespace std;typedef struct p{ double x; double y;}P;int main(void){ ... 阅读全文
posted @ 2011-11-10 11:28 cchun 阅读(112) 评论(0) 推荐(0)