雕刻时光

just do it……nothing impossible
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月2日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1237不用栈的形式View Code #include<stdio.h>#include<stack>#include<string.h>#include<iostream>using namespace std;char s[209];double num[209];char fu[209];int main(){ while(gets(s)) { if(s[0]=='0'&&strlen(s)==1) return 0; me 阅读全文

posted @ 2012-04-02 20:53 huhuuu 阅读(209) 评论(0) 推荐(0) 编辑

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4195组成多边形的边最小为多少1。先找三角形的垂心(注意线段垂直的情况)2。以垂心画圆YY,这个三角形可以把这个圆分成多少弧度(注意钝角三角形的第三边所对应的边的弧度为 2*PI的补数)3。接着枚举最小弧度的 n分之几,是否可以把其它弧度近似整除(如1801可以近似整除600)控制精度!!!View Code #include<stdio.h>#include<string.h>#include<math.h>#include<iostream>using na 阅读全文

posted @ 2012-04-02 18:59 huhuuu 阅读(417) 评论(0) 推荐(0) 编辑