蓝桥杯冲刺打卡day15

1、斐波那契与7

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改

public class Main {
    public static void main(String[] args) {
        System.out.println("26960268160");
        /**
        long n1 = 1L,n2=1L;
	   long n=0L;
	   long s = 0L;
	  for(long i = 3;i<=202202011200L;i++) {
		  n = (n1+n2)%10;
		  if(n==7) {
			  s+=1;
		  }
		  n1 = n2;
		  n2 = n;
		  
	  }
	  System.out.println(s);
    */
    }
}

你可能感兴趣的:(蓝桥杯,java,职场和发展)