颜后最后一题没做。啊,牛客网环境比其他的强。 import java.util.*; public class Main { public static void main(String[] args) { Main main = new Main(); Scanner sc = new Scanner(System.in); while(sc.hasNext()){ Stack<Integer> stack = new Stack<Integer>(); int n = sc.nextInt(); int m = sc.nextInt(); int p = sc.n...