package day22;
import java.math.BigInteger;
public class T10001 {
/**
* @param args
*/
public static void main(String[] args) {
BigInteger bi1 = new BigInteger("1");
for (int i = 2; i <= 1000; i++) {
BigInteger bi2 = new BigInteger(i + "");
bi1 = bi1.multiply(bi2);
}
String str = bi1.toString();
int count = 0;
for (int i = 0; i < str.length(); i++) {
if('0' == str.charAt(i)){
count++;
}
}
System.out.println(count);
}
}
|