1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
667 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

输入的第一行是一个整数n代表有n组测试数据
之后有n行每行表示一组测试数据
每一行的第一个元素是操作类型
如果操作类型为1这一行后面跟着两个任意长度整数输出它们的和
如果操作类型为2这一行后面跟着一个任意长度整数一个位置以及一个数字输出将数字插入到任意长度整数的指定位置上的结果
如果操作类型为3这一行后面跟着一个任意长度整数一个位置输出删除这个整数指定位置上的数字的结果
插入是从低位到高位从1编号向高位插
删除也是从低位到高位从1编号