Spreadsheet

描述:

In the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first column has number A, the second — number B, etc. till column 26 that is marked by Z. Then there are two-letter numbers: column 27 has number AA, 28 — AB, column 52 is marked by AZ. After ZZ there follow three-letter numbers, etc.

The rows are marked by integer numbers starting with 1. The cell name is the concatenation of the column and the row numbers. For example, BC23 is the name for the cell that is in column 55, row 23.

Sometimes another numeration system is used: RXCY, where X and Y are integer numbers, showing the column and the row numbers respectfully. For instance, R23C55 is the cell from the previous example.

Your task is to write a program that reads the given sequence of cell coordinates and produce each item written according to the rules of another numeration system.

输入:

The first line of the input contains integer number n (1 ≤ n ≤ 105), the number of coordinates in the test. Then there follow n lines, each of them contains coordinates. All the coordinates are correct, there are no cells with the column and/or the row numbers larger than 106 .

输出:

Write n lines, each line should contain a cell coordinates in the other numeration system.

样例输入:

2
R23C55
BC23

样例输出:

BC23
R23C55

描述:

在流行的电子表格系统(例如,在Excel中)中,使用以下列的计数,第一列是编号A,第二列是编号B,等等,直到第26列是编号Z。然后有2个字母的编号:第27列是编号AA,第28列编号AB,第52列是编号AZ。在编号ZZ之后接着有3个字母的编号,等等。

行数是用整数从1开始标记,单元格名字是列数和行数编号的拼接。例如,单元格的名字BC23是指在第55列,第23行。

有时也使用另一种计数系统:RXCY(X,Y都是正整数)。恭敬地显示出列数和行数的编号。例如,之前举例的单元格可以表示为R23C55。

你的任务是编写一个程序用来读取给定顺序的单元格坐标并根据另一种计数系统的规则产生每一项。

输入:

第一行输入包括一个整数n(1 ≤ n ≤ 105),坐标数在测试中。然后接下来有n行,每一行都包括坐标。所有的坐标都是正确的,单元格的列数和行数的编号均小于106。

输出:

输出n行,每一行应包括一个用其他计数系统所表示的单元格坐标。

样例输入:

2
R23C55
BC23

样例输出:

BC23
R23C55

题目地址链接:Problem - B - Codeforces

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Vue Spreadsheet是一个基于Vue.js框架的电子表格组件,可以用于在Vue应用程序中显示和编辑电子表格数据。您可以使用SpreadJS库来集成和操作电子表格。通过使用SpreadJS提供的API,您可以创建数据透视表。有两种方法可以创建数据透视表:使用表格的名称或使用工作表的一个范围公式。 使用表格的名称创建数据透视表的方法如下:首先,您需要创建一个Workbook对象,并在其中添加两个Sheet对象。然后,您可以设置第一个Sheet对象的行数,并使用setArray方法将数据填充到该Sheet对象中。接下来,您可以使用tables.add方法在第一个Sheet对象上添加一个表格,并指定表格的名称和位置。最后,使用pivotTables.add方法在第二个Sheet对象上添加一个数据透视表,并指定数据源为刚刚创建的表格名称。 使用工作表的一个范围公式创建数据透视表的方法如下:首先,您需要定义一个范围公式,指定数据源的范围。然后,使用pivotTables.add方法在第二个Sheet对象上添加一个数据透视表,并指定数据源为刚刚定义的范围公式。 在Vue应用程序中集成SpreadJS可以通过在Vue组件中引入SpreadJS库,并使用相关的API进行初始化和配置。您可以在Vue组件中引入SpreadSheet.vue文件,并在模板中使用合适的标签和属性来渲染电子表格。在setup函数中,可以通过ref获取到DOM元素的引用,并在onMounted钩子函数中初始化SpreadJS的Workbook对象。通过emit方法将初始化后的Workbook对象传递给父组件。 总结起来,Vue Spreadsheet是一个通过在Vue应用程序中集成SpreadJS库来实现的电子表格组件,可以使用SpreadJS的API来创建和操作数据透视表。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值