1968: [Ahoi2005]common Approximate study time limit:1 Sec Memory limit:64 MB
submit:1127 solved:852
[Submit] [Status] [Discuss] Descriptioninput only one line of an integer N (0 < N < 1000000). Output has only one row of outputs, the sum of integers m, or f (1) to F (N). Sample Input3
Sample Output5
HINT Source
Day2
Puzzle: A god problem (hansbug: In fact, the first to see someone else's AC code hundreds of B a bit frightened), in fact, we can reverse thinking about this problem, do not always think of the primary school to learn the number of numbers in the number of the formula, it will only cause chaos, Just consider the extent to which the various approximations contribute to the answer, i.e. [n/i] (set approximate to I), then no, it can be used as a water question = =
1/**************************************************************2Problem:19683 User:hansbug4 language:pascal5 result:accepted6Time: theMs7Memory: -KB8****************************************************************/9 Ten varN,m,ans:int64; One begin AREADLN (n); m:=n;ans:=0; - whileM>0 Do - begin theInc (Ans,nDivm); - Dec (m); - End; - writeln (ans); + Readln; - End.
1968: [Ahoi2005]common approximate study