<p>For each list of words, output a line with each word reversed without changing the order of the words.</p>

2020年1月17日 0条评论 1163点热度 0人点赞 code 阅读全文

<p>Your chemistry lab instructor is a very enthusiastic graduate student who clearly has forgotten what their undergraduate Chemistry 101 lab experience was like. Your instructor has come up with the brilliant idea that you will monitor the temperature o…

2020年1月17日 0条评论 1355点热度 0人点赞 code 阅读全文

Mathematics can be so easy when you have a computer. Consider the following example. You probably know that in a right-angled triangle, the length of the three sides a, b, c (where c is the longest side, called the hypotenuse) satisfy the relation a*a+b*b=c*c.…

2020年1月17日 0条评论 1689点热度 0人点赞 code 阅读全文

In most languages, text is written from left to right. However, there are other languages where text is read and written from right to left. As a first step towards a program that automatically translates from a left-to-right language into a right-to-left lang…

2020年1月17日 0条评论 1827点热度 0人点赞 code 阅读全文

Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. "Look, I've built a wall!", he tells his older sister Alice. "Nah, you should make all stacks the same height. Then you would have a rea…

2020年1月17日 0条评论 1229点热度 0人点赞 code 阅读全文

<p>The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the pro…

2020年1月17日 0条评论 1050点热度 0人点赞 code 阅读全文