Logo
(追記) (追記ここまで)

10176번 - Opposite Words 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB36326123176.238%

문제

One of the listeners of the NPR Sunday Puzzle show described the following puzzle: The word "wizard" has the peculiar property that its letters can be grouped in pairs,

  • A and Z
  • B and Y
  • C and X
  • M and N

that are opposite each other in the alphabet. That is, A and Z are at opposite ends of the alphabet, C and X are three letters in from their respective ends, and M and N are 13 letters in from their respective ends. Can you name a well-known brand name in six letters that has this same property? Answer: La-Z-Boy (Notice the alphabetic opposites don't have to appear in opposite positions in the word)

Given a list of words you must determine which of the words are “opposite” words. Note that capitalization is not important when determining is a word is an “opposite” word.

입력

The first line of input will be a positive integer, n, indicating the number of problem sets that follow. Following the positive integer will be n text strings, one per line.

출력

For each problem set print “Yes” if the string is an “opposite” word and “No” if it is not an “opposite” word.

제한

  • 1 ≤ the length of text string ≤ 15

예제 입력 1

5
Wizard
Mark
La-Z-Boy
Love
Hello

예제 출력 1

Yes
No
Yes
Yes
No

힌트

출처

School > PLU High School Programming Contest > PLU 2014 > Novice 7번

  • 빠진 조건을 찾은 사람: jaehoo1
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /