| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 632 | 482 | 436 | 77.305% |
The National Identity Card number of the city state of Eropagnis, NICE, consists of seven digits and a letter appended behind. This letter is calculated from the digits using the Modulo Eleven method.
The steps involved in the computation are as follows:
Example: Given the digits “6830907”, the sum is 2 × 6 + 7 × 8 + 6 × 3 + 5 × 0 + 4 × 9 + 3 × 0 + 2 × 7 = 12 + 56 + 18 + 0 + 36 + 0 + 14 = 136. The number 136 has a remainder of 4, when divided by 11, and 4 is mapped to the letter “D”. So, the actual NICE should be “6830907D”.
Write a program to read the seven digits of the NICE, and output the letter that needs to be appended.
The input consists of seven digits of the NICE.
The output contains a single capital character, which is the letter to be appended to form the correct NICE.
6830907
D