Home > Back-end > To a big, ac but school OJ subject
To a big, ac but school OJ subject
Time:02-06
Topic is not difficult, basically will be, but is ac, however, don't know what the reason, submitted more than 200, it passed a
It is a school with the version of the compiler:
CodePudding user response:
This problem I have tried many times, the Internet also looking for the other's answer to the question, also had not
CodePudding user response:
Give your final code display, from the way which error is above,
CodePudding user response:
What is the hidden pit? Watching isn't difficult timeout can understand,,
CodePudding user response:
Topic should be capped, so broadly speaking positive integer always lets a person lack,
CodePudding user response:
This is my add figure, shows the wrong answer
CodePudding user response:
Here is my code:
#include Int div (int x) { Int I, count; For (I=1, the count=0; i<=x; I++) { If I==0) (x % count++; } return count; } Int main () { Int a, b, I, flag=0, n); The scanf (" % d % d ", & amp; A, & amp; b); For (I=a; i<=b; I++) { N=div (I); If (n> Flag, flag=n; } Printf (" % d \ n ", flag); return 0; }