zzul1058_Java】的更多相关文章

import java.util.Scanner;public class zzul1058 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); double fact = 1,sum = 0; for (int i = 1; ; i++) { fact *=i;//累乘 sum +=fact;//累加 if(sum >= n){ S…