ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Linear Data Structures: Arrays > задача:


50445 - Cryptography

Гость
• Вопросы к жюри (1)

Задачи раздела

• 50334 - What is the class average?
• 50383 - Noisy Mornings
• 51129 - Hexagon
• 51097 - Sum of Borders
• 50419 - The longest bitonic sequence
• 50420 - Teachers Sightseeing
• 50344 - Profit or Loss
• 50431 - Sultan's Game
• 50445 - Cryptography
• 51246 - Swap largest word, reverse ...
• 50516 - Lines
• 50446 - Snake
• 50345 - Orders
• 50822 - Linked List
• 50529 - Row to Table
• 50499 - Table to Row
• 50990 - Two Neighbors

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Erisa Terolli.

Crytography

Mr. Alban has a cryptographic company which uses a computerized system named Secret. Its main job is encrypting users passwords to protect them against different attacks. Each user must submit a 5 digit integer as a password. Secret uses the following encrypting schema:

  • The first is swapped with the fifth digit.
  • The second is swapped with the fourth digit.
  • The third digit is replaced with the result of adding 7 to the digit and getting the remainder after dividing the new value by 10.

Question:
Write a program that outputs the Encrypted password entered by a user into Secret system.

Input specification
There is a 5 digit number.

Output specification
You will show the encrypted 5 digit number.

 Sample Input I   
  12345
 Sample Input II   
  70341
 Sample Output I   
  54021
 Sample Output II   
  14007


Для отправки решений необходимо выполнить вход.

www.contester.ru