翻转骰子(模拟)

  • Post author:
  • Post category:其他


题目链接

点击打开链接

竟然是日本的一个大学的网站 会津大学,学习了

Write a program to simulate rolling a dice, which can be constructed by the following net.












As shown in the figures, each face is identified by a different label from 1 to 6.

Write a program which reads integers assigned to each face identified by the label and a sequence of commands to roll the dice, and prints the integer on the top face. At the initial state, the dice is located as shown in the above figures.

Input



版权声明:本文为qq_41156122原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。