Pat-Level B-1048 Digital Encryption

Source: Internet
Author: User

This question requires a digital encryption method. First, fix an encryption using a positive integer A. For any positive integer B, perform the following operations on each digit and the number at the corresponding position of A: For odd digits, after the numbers of the corresponding bits are added, the remainder of 13 is obtained. Here, j Represents 10, Q represents 11, and K represents 12. The dual digit is subtracted from the number of A by the number of B, if the result is negative, add 10. Here, the single digit is 1st bits.

Input Format:

The input values are given in sequence as A and B in a row. They are positive integers of no more than 100 bits, separated by spaces.

Output Format:

Output the encrypted result in a row.

Input example:
1234567 368782971
Output example:
20175q8118

Pat-Level B-1048 Digital Encryption

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.