for里面是n小于不是s小于等于
供参考:
#include <stdio.h> int main() { int t=1, n=1, s = 1; while (s <= 8000) { t *= 5; s += t; n++; } printf("%d", n-1); return 0; }