1953: ArrayList 二

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:29 解决:25

题目描述

define a student class including name,number,sex
define an arrayList to store students,and delete a student from the list

输入


there are many cases,for each case,input n to denote the number of students, 

and then input n students; 

input an correct index where a student is to be deleted,

if the index is incorrect,output “Deletion failed”

finally,display the arrayList 

输出

as required

样例输入 复制

3
zhangsan 20120866601 m
lishi 20120866603 f
wangwu 20120866604 m
1
3
zhangsan 20120866601 m
lishi 20120866603 f
wangwu 20120866604 m
3
3
zhangsan 20120866601 m
lishi 20120866603 f
wangwu 20120866604 m
-1

样例输出 复制

the information of 2 students is:
zhangsan 20120866601 m
wangwu 20120866604 m
Deletion failed
Deletion failed