题号:NC237408
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
The jersey number 17 has been worn by several famous athletes, e.g., John Havlicek (NBA), Don Meredith (NFL), and Felipe Alou (MLB). The jersey number 18 has also been worn by several famous athletes, e.g., Peyton Manning (NFL), Joe Morgan (MLB), and Phil Jackson (NBA). These two jersey numbers are special to Dr. Orooji as well but for other reasons! So, whenever Dr. O is watching sports, he looks for these two special numbers.
Given a list of 10 numbers, determine which special jersey number is in the list.
输入描述:
There is one input line, it consists of exactly 10single-space-separated distinct integers (each
integer between 11and 99 inclusive) giving the jersey numbers for the players.
输出描述:
Print one of four messages (17, 18, both, none), indicating which special jersey number is in the list.
示例1
输入
复制
11 99 88 17 19 20 12 13 33 44
示例2
输入
复制
11 12 13 14 15 16 66 88 19 20
示例3
输入
复制
20 18 55 66 77 88 17 33 44 11
示例4
输入
复制
12 23 34 45 56 67 78 89 91 18