1925: ArrayList class
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:58
解决:40
题目描述
define a student class including name,number,sex
define an arrayList to store students,and do some operations on it,like insertion,deletion, search and display
输入
there are many cases,for each case,input n to denote the number of students,and then input n students;
input m to denote the times to operate on the arrayList,and then input m lines, for each line,input a letter,I or D
1)I,denoting an insertion,following by the insertion index and a student to insert
2)D,denoting a deletion,following by the deletion index
finally,output the content of the arrayList
输出
as required
样例输入 复制
2
zhangsan 20120866601 m
lishi 20120866603 f
4
I 2 wangwu 20120866604 m
I 0 lai 20120866605 f
D 2
I 1 erqu 20120866602 f
样例输出 复制
the information of 4 students is:
lai 20120866605 f
erqu 20120866602 f
zhangsan 20120866601 m
wangwu 20120866604 m