进行——测试
发布时间
阅读量:
阅读量
IQ test
题面翻译
题目描述
Bob打算参加RP测试。他需要负责从n个数字中挑出奇偶性不同的那个数字。请协助检查一下他的答案是否正确。
输入格式
第一行, n (3\leq n \leq100);
第二行, n 个数字,以空格分开(保证有唯一解)。
输出格式
仅一行,奇偶性不同的数字在原序列中是第几位(从 1 开始编号)。
题目描述
准备参加智力测验的鲍勃正在积极做准备。在这个测试中,最常见的任务是识别出哪一个给定的n个数字与其他不同。鲍勃发现一个数字通常与其他数字在偶奇性上有所不同。为了帮助鲍勃检查他的答案是否正确,他需要一个程序来从给定的n个数字中找到唯一一个与之不同的数字。
输入格式
The initial line includes an integer denoted as n , where integers are bounded between 3 and 100 ( 3 \leq n \leq 100 ), representing the count of numbers involved in this task. The subsequent line lists n natural numbers separated by
全部评论 (0)
还没有任何评论哟~
