当前位置:网站首页>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
边栏推荐
- STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
- [1154] How to convert string to datetime
- 系统需求多变如何设计
- Draw Your Cards
- The final exam first year course
- AtCoder Beginner Contest 261 Partial Solution
- CV-Model【3】:MobileNet v2
- 验证整数输入
- Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
- The effective square of the test (one question of the day 7/29)
猜你喜欢
How to design the changing system requirements
基于opencv实现人脸检测
mysql view
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
二层广播风暴(产生原因+判断+解决)
GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
Hanyuan Hi-Tech 8-channel HDMI integrated multi-service high-definition video optical transceiver 8-channel HDMI video + 8-channel two-way audio + 8-channel 485 data + 8-channel E1 + 32-channel teleph
Nacos
成为比开发硬气的测试人,我都经历了什么?
最大路径和
随机推荐
cudaMemcpy学习笔记
医疗影像领域AI软件开发流程
Intranet Infiltration - Privilege Escalation
【AcWing 62nd Weekly Game】
汉诺塔问题
leetcode-952: Calculate max component size by common factor
mmdetection训练一个模型相关命令
【AcWing 第62场周赛】
数学解决——环形链表问题
Charging effect simulation
MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
VSCode Plugin: Nested Comments
验证整数输入
真正的CTO,是一个懂产品的技术人
tcp框架需要解决的问题
Observer mode (1)
uniapp uses 3rd party fonts
STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
英特尔软硬优化,赋能东软加速智慧医疗时代到来