当前位置:网站首页>Huawei od dice js
Huawei od dice js
2022-07-31 02:19:00 【Big chicken thighs are the best】
Title: Roll Dice | Time Limit: 1 Second | Memory Limit: 262144K | Language Limit: Unlimited
The dice is a cube, with one number on each side, the initial is left 1, right 2, front 3 (observer direction), back 4, up 5, down 6, use 123456 to represent this state, put it on the plane,It can be flipped to the left (with L for 1 time to the left), it can be flipped to the right (with R for 1 time to the right), it can be flipped forward (with F for 1 time forward), and it can be flipped backward (Use B to turn back 1 time), you can rotate counterclockwise (use A to rotate 90 degrees counterclockwise), you can rotate clockwise (use C to rotate 90 degrees clockwise), starting from the initial state of 123456, according to the inputThe action sequence is calculated to obtain the final state.
The initial state of the dice and the state after the initial state is rotated are shown in the figure

Enter a description:
Enter a line, which is a sequence of letters containing only LRFBAC, the maximum length is 50, and the letters can be repeated
Output description:
Output final state
Example 1
Enter
LR
Output
123456
Description
The dice is flipped to the left first, and then flipped back to the right, so it is still the original state 123456
Example 2
Enter
FCR
Output
342156
let s 边栏推荐
- Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
- How to expose Prometheus metrics in go programs
- leetcode-128: longest continuous sequence
- 【银行系列第一期】中国人民银行
- VSCode Plugin: Nested Comments
- Drools规则属性,高级语法
- uniapp uses 3rd party fonts
- ShardingJDBC使用总结
- 完整复制虚拟机原理(云计算)
- The principle of complete replication of virtual machines (cloud computing)
猜你喜欢

Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue

Nacos

Coldfusion file read holes (CVE - 2010-2861)

The application of AI in the whole process of medical imaging equipment

leetcode-1161: Maximum in-layer element sum

Static routing + PAT + static NAT (explanation + experiment)

12张图带你彻底搞懂服务限流、熔断、降级、雪崩

Nacos

MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
![The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]](/img/8a/28427aa773e46740eda9e95f6669f2.png)
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]
随机推荐
12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche
二层广播风暴(产生原因+判断+解决)
Introduction and use of Drools WorkBench
Crawler text data cleaning
Unity界面总体介绍
mysql index
Introduction to flask series 】 【 flask - using SQLAlchemy
两个有序数组间相加和的Topk问题
直播预告 | KDD2022博士论文奖冠亚军对话
【银行系列第一期】中国人民银行
[1153] The boundary range of between in mysql
User interaction + formatted output
最大路径和
Fiddler captures packets to simulate weak network environment testing
keep-alive cache component
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
【AcWing 62nd Weekly Game】
Problems that need to be solved by the tcp framework
Calculate S=a+aa+…+aa…a
来自一位女测试工程师的内心独白...