蓝桥杯 数列求值

    技术2025-01-25  13

    public class Main {

    public static void main(String[] args) { int a = 1, b = 1, c = 1; for (int i = 3; i < 20190324; i++) { int temp = (a + b + c) % 10000; a = b; b = c; c = temp; } System.out.println(c); }

    }

    Processed: 0.008, SQL: 9