using System.Collections.Generic; using System; public class Program { public static void Main() { Queue q = new Queue(); //读取操作个数 int n = int.Parse(Console.ReadLine()); while (n-- >0 ) { string opr = Console.ReadLine(); if(opr.IndexOf...