摘要:
一、题目描述有红黄蓝3种颜色的n个珠子,师傅希望悟空把它们排成红色珠子在左,黄色珠子居中,蓝色珠子在右的一行,然后告诉师傅,从左数起,第m个珠子是什么颜色。众所周知,悟空是只猴子,他没有这个耐心,你帮帮他吧。二、输入输入第一行为一个整数t(0三、输出为每个测试用例单独一行输出指定的... 阅读全文
摘要:
一、题目描述A common divisor for two positive numbers is a number which both numbers are divisible by. It’s easy to calculate the greatest common d... 阅读全文
摘要:
一、题目描述The number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as bac... 阅读全文