Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
为什么我总是过不了?!大家帮忙呀!#include<stdio.h> void main() { float n,m; int i; scanf("%f",&n); if(n!=0) {i=2; m=0; do {m=m+(float)1/i; i=i+1; } while(m<n); printf("%d card(s)\n",i-2); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator