码迷,mamicode.com
首页 >  
搜索关键字:formula 杭电 1002    ( 2060个结果
杭电2059龟兔赛跑
http://acm.hdu.edu.cn/showproblem.php?pid=2059我们需要输入的有(1)l(2)n,c,t;(3)vr,v1,v2;(4)p[1],p[2],p[3], p[n];我们需要比较的是兔子的时间和乌龟的时间兔子:1.0*l/vr;乌龟:乌龟的时间由题意可得,是需...
分类:其他好文   时间:2014-10-04 18:21:16    阅读次数:234
杭电2546
#include#include#includeusing namespace std;int max(int a,int b){ if(a>b) return a; else return b;}int main(){ int n,price[1200],i,f[1200],Max,m,j; .....
分类:其他好文   时间:2014-10-04 09:22:16    阅读次数:190
放大的X 【杭电-2655】 附题
/*放大的XTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8866 Accepted Submission(s): 2678Problem De...
分类:其他好文   时间:2014-10-02 19:00:33    阅读次数:224
杭电2058 龟兔赛跑
#include #include using namespace std; #include int main() { // freopen("input.txt", "r", stdin); int l; int n,c,t; int...
分类:其他好文   时间:2014-10-02 17:41:43    阅读次数:166
杭电2058
#include int main() { int i,j,sum=0; int n,m; while(scanf("%d%d",&n,&m)&&n!=0&&m!=0) { if(n>m) break; else...
分类:其他好文   时间:2014-10-02 17:39:43    阅读次数:159
杭电2056
#includeusing namespace std;double max(double a,double b){ if(a>b) return a; else return b;}double min(double a,double b){ if(a...
分类:其他好文   时间:2014-10-01 18:16:01    阅读次数:215
杭电2055
#includeint main(){ int num,y,x; char k; while(scanf("%d",&num)!=EOF) { while(num--) { scanf(" %c%d",&k,&y); ...
分类:其他好文   时间:2014-10-01 12:15:41    阅读次数:370
杭电2055 另一种
可以用C++来写,就可以回避这个问题#includeusing namespace std;int main(){ int num; char k; int y,x; while(cin>>num) { while(num--) { ...
分类:其他好文   时间:2014-10-01 11:56:21    阅读次数:142
杭电2054 WA
#include#includechar a[23000],b[23000];int main(){ long len1=0,len2=0,i; int flag=0; scanf("%s",&a);scanf("%s",&b); len1=strlen(...
分类:其他好文   时间:2014-10-01 01:35:00    阅读次数:281
杭电2053
#includeint main(){ int n,i; while(scanf("%d",&n)!=EOF) { int num=0; for(i=1;i<=n;i++) { if(n%i==0) ...
分类:其他好文   时间:2014-09-30 01:19:21    阅读次数:398
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!