当前位置:网站首页>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
边栏推荐
- Gateway routing configuration
- MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
- LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING
- LeetCode 每日一题 2022/7/25-2022/7/31
- coldfusion8 background scheduled tasks take shell
- [WeChat applet] This article takes you to understand data binding, event binding, event parameter transfer, and data synchronization
- 221. Largest Square
- rpm install postgresql12
- MySQL stored procedure
- 基于opencv实现人脸检测
猜你喜欢
Basic introduction to ShardingJDBC
基于FPGA的图像实时采集
二层广播风暴(产生原因+判断+解决)
Force buckled brush the stairs (7/30)
Between two orderly array of additive and Topk problem
Crypto Life, a day in the life of a Web3 project partner
VSCode Plugin: Nested Comments
Drools basic introduction, introductory case, basic syntax
[Map and Set] LeetCode & Niu Ke exercise
Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
随机推荐
LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路
Brute Force/Adjacency List Breadth First Directed Weighted Graph Undirected Weighted Graph
Charging effect simulation
ShardingJDBC基本介绍
用户交互+格式化输出
f.grid_sample
Inner monologue from a female test engineer...
VSCode Plugin: Nested Comments
Layer 2 broadcast storm (cause + judgment + solution)
The application of AI in the whole process of medical imaging equipment
Drools WorkBench的简介与使用
cudaMemcpy学习笔记
真正的CTO,是一个懂产品的技术人
Installation, start and stop of redis7 under Linux
Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
mysql index
The effective square of the test (one question of the day 7/29)
C language applet -- common classic practice questions
STP选举(步骤+案列)详解
ShardingJDBC使用总结