使用动态规划,求前i项犯罪值之和sum,然后然后判断是否是c名罪犯。 import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n = sc.nextInt(); int t = sc.nextInt(); int c = sc.nextInt(); ...