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

32682번 - Which Number Kind Is It? 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 (추가 시간 없음) 1024 MB41321519150.933%

문제

There are many number kinds out there and I am sure you know some of them already! To name a few:

  • Odd number (O): 1,ドル 3, 5, 7, 9, \ldots$
  • Square number (S): 0,ドル 1, 4, 9, 16, 25, \ldots$

In this problem, you just need to output whether a given number $N$ is one of these special kinds of numbers. Print O if $N$ is odd, S if it's a perfect square, and OS if $N$ is both odd and a perfect square. If $N$ isn't either kind of special number, print EMPTY instead.

입력

The first line of input consists of an integer $T$ $(1 \leq T \leq 10^5),ドル the number of test cases.

The remaining $T$ lines each contains a single integer $N$ $(0 \leq N \leq 10^6)$.

출력

Print $T$ lines, one per test case. On each line, print either O or S or OS or EMPTY, as described above.

제한

예제 입력 1

4
1
7
20
9

예제 출력 1

OS
O
EMPTY
OS

힌트

출처

ICPC > Regionals > North America > Mid-Central Regional > 2024 Mid-Central USA Programming Contest O번

  • 문제를 만든 사람: Christian Yongwhan Lim
(追記) (追記ここまで)

출처

대학교 대회

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

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