HDOJ ACM
input:The input consists of T test cases. The number of test cases ) (T is given in the first line of the input. Each test case begins with a line containing an integer N , 1<=N<=200 , that represents the number of tables to move. Each of the following N lines contains two positive integers s and t, representing that a table is to move from room number s to room number t (each room number appears at most once in the N lines). From the N+3-rd line, the remaining test cases are listed in the same manner as above.
//構(gòu)造具有指定的標(biāo)簽的菜單
files = new Menu("文件(F)")
compile = new Menu("編輯(E)")
see = new Menu("查看(V)")
format = new Menu("格式(O)")
font = new Menu("字體和顏色(F)...") //在格式菜單下再添加一個字體及顏色的菜單
help = new Menu("幫助(H)")
//構(gòu)造具有指定的標(biāo)簽的菜單項(xiàng)
news = new MenuItem("新建(N)" + " " + "Ctrl+N")
open = new MenuItem("打開(O)..." + " " + "Ctrl+O")
save = new MenuItem("保存(S)" + " " + "Ctrl+S")
other = new MenuItem("另存為(A)...")
page = new MenuItem("頁面設(shè)置(U)...")
mim = new MenuItem("打印(P)..." + " " + "Ctrl+P")
quit = new MenuItem("退出(X)")