시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 103 | 34 | 27 | 32.927% |
The task is to write a program that outputs the smallest possible number s for an input natural number n. The number s must have the following properties:
A value of natural number n (0 < n < 500000) is input from the keyboard.
The number s as described above must be output on the screen. If it is not possible to find the corresponding value of s to the given value of n, output one word "NAV".
3
27
61
70272