摘要: HDOJ 1089:#include using namespace std;int main(){ int a,b; while(cin>>a>>b) { coutusing namespace std;int main(){ int a,b; int c; cin>>c; for(int i=0;i>a>>b; coutus... 阅读全文
posted @ 2013-03-02 06:18 码代码的猿猿 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 如果直接按秒模拟的话,结果精度不够!但可以按1/10秒模拟,精度就够了,但是会超时! #include #include #include #define MT (12*36000)using namespace std;int isD(double a,double b,int D){ double k=fabs(a-b); if(k=D) return 1; } e... 阅读全文
posted @ 2013-03-02 05:12 码代码的猿猿 阅读(408) 评论(0) 推荐(0) 编辑