英语翻译1433.DiamondsTime Limit:1.0 secondMemory Limit:32 MBSash

英语翻译
1433.Diamonds
Time Limit:1.0 second
Memory Limit:32 MB
Sasha is lucky to have a diamond in the form of a regular tetrahedron.Incidentally,his friend Pasha has got a diamond of exactly the same shape and size.In order to distinguish between their diamonds,the friends decided to paint the crystals.Each of them painted each face of his diamond a certain color.The diamonds became very beautiful,so Pasha and Sasha were happy.But their happiness did not last long.That night,Sasha woke up with a sudden thought — what if his and Pasha's diamonds are still indistinguishable?He decided to call Pahsa immediately.Sasha ran up to the phone,tried to grasp the receiver,but at that moment the phone rang.Of course,it was Pasha,who had the same sudden thought.So Sasha and Pasha hastened to tell each other the colors of their diamonds' faces… Their worst fears were confirmed.Their diamonds were identical,and to see it one simply had to turn one of the diamonds.
You are to write a program that could prevent this horrible mistake.Given a scheme of the supposed coloring of the diamonds,determine if these colorings are identical,i.e.,if one of them can be obtained from the other by turning the crystal.
Input
The input contains two lines.Each line contains four letters,which denote the colors of the faces in the following order:the base face,the "left front" face,the "right front" face,and the back face.There are only four paints available:red,green,blue,and yellow,denoted by the letters R,G,B,and Y,respectively.
Output
Output the word "equal" if the colored tetrahedrons will be identical,and the word "different" otherwise.
盐西金兰湾 1年前 已收到3个回答 举报

jszjzl 幼苗

共回答了18个问题采纳率:77.8% 举报

萨拉很幸运拥有一个四面体的钻石.很巧合,她的朋友帕沙也有一个和她一模一样的钻石.为了鉴别他们的钻石,朋友们决定为钻石涂上颜色.两颗钻石的表面都涂上了一种颜色.涂了颜色的钻石变得很漂亮.撒拉和帕沙都很高兴.但是他们的高兴并没有维持多久.那天晚上,萨拉醒来时突然有了一个想法--如果她和帕沙的钻石仍然没法鉴别的话那又怎么办.他决定立即打电话给帕沙.萨拉跑到电话旁,正想拿起话筒.正在这时电话刚好响了.当然,是帕沙打来的.帕沙也想到了那一点.因此帕沙和萨沙立刻告诉对方钻石表面的颜色.他们的担心得到了证实.他们的钻石是相同的.
你要编写一个程序以阻止这种可怕的错误的出现.假定一个钻石颜色的计划,决定这些颜色是否相同,比如,如果其中一个能够从另一个获得.
输入
输入包括两行.每一行包括四个字母,这些字母表明了钻石表面的颜色.钻石面排列顺序:底面,左面,右面,后面.只有四种颜色可用:红,绿,蓝,黄.这些颜色分别用字母R, G, B, and Y表示.
输出
如果颜色是相同的就输出“equal”,否则就输出“different".
供参考,自己翻译的,

1年前

1

demethe 幼苗

共回答了34个问题 举报

我建议你打开金山词霸,开自动取词然后边看边翻译,你肯定也是懂英语的吧,所以个别词不会那样就可以了,,我就是这样,

1年前

1

铁兔 幼苗

共回答了4个问题 举报

萨沙是庆幸的是钻石的形式,正四面体。顺便说一句,他的朋友帕夏得到了一个钻石的完全一样的形状和大小。为了区分他们的钻石,朋友决定油漆晶体。他们每个人都画每面对他的钻石一定的颜色。钻石变得十分美丽,因此大人和萨莎很高兴。但是,他们的幸福并没有持续多长时间。那天晚上,萨莎醒来突然想到-如果他和大人的钻石仍然区分?他决定立即致电Pahsa 。萨莎跑到了电话,试图把握接收,但在这个时候电话响了。当然,这是大...

1年前

0
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 18 q. 2.366 s. - webmaster@yulucn.com