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.
大蒟蒻 920a583abc
Wed, 11 Mar 2020 19:37:48 +0800
6 years ago
..
input.txt Wed, 11 Mar 2020 19:37:48 +0800 6 years ago
output.txt Wed, 11 Mar 2020 19:37:48 +0800 6 years ago
readme.txt Wed, 11 Mar 2020 19:37:48 +0800 6 years ago

readme.txt

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这一行后面跟着一个任意长度整数一个位置输出删除这个整数指定位置上的数字的结果

注意:

当前版本的测试数据共600行前200行为加法测试201-400行为插入测试最后200行为删除测试。

*插入
对于一个数字,需要插入的位置为从左数第 i 项的前边,插在末尾对应的 i 为数字长度+1。
示例:
输入2 1234567890 3 5
输出12534567890

*删除
对于一个数字,需要删除的位置为从左数第 i 项。
示例:
输入3 -1234567890 7
输出:-123456890