摘要: View Code 1 #include <iostream> 2 #include <algorithm> 3 #include <fstream> 4 #include <ctime> 5 #define mx 200000 6 using namespace std; 7 ofstream fout("fin.txt"); 8 int main() 9 {10 int i,n;11 double a,b,temp;12 srand((unsigned)time(NULL));13 cin>>n;14 fout 阅读全文
posted @ 2012-03-21 11:34 qijinbiao1 阅读(155) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&cid=14568&hide=0View Code 1 #include<iostream> 2 #include<cmath> 3 using namespace std; 4 int cont(int n)//1000886 5 { 6 int i,sum; 7 int temp;//long long temp; 8 sum=(n/2)*2; 9 for(i=1;(temp=pow(4,i))<n;i++)10 {11 ... 阅读全文
posted @ 2012-03-21 11:32 qijinbiao1 阅读(310) 评论(0) 推荐(0) 编辑