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 |
咋就WA了-_____________________________________________________________________________- 各位大牛们help me~枚举,endless WA...... 大牛help me~ #include<iostream> using namespace std; int main() { int n,i; double c; __int64 k; cin>>n; cin>>c; while(c>=1) c/=10.0; while(1) { c=c+1; k=c*c; k++; if(c*c-(double)k<0&&c*c-(double)k>-1e-4) { cout<<k<<endl; break; } } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator