We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Apply
  • Hiring developers?
  1. Prepare
  2. Security
  3. Terminology and Concepts
  4. Security - Message Space and Ciphertext Space
  5. Discussions

Security - Message Space and Ciphertext Space

Problem
Submissions
Leaderboard
Discussions

    You are viewing a single comment's thread. Return to all comments →

  • davidboga
    3 years ago+ 0 comments

    This is my code. I know this code is not optimized.

    n = input() l = tuple(str(n)) for i in l: if int(i)+1 == 10: print(0, end='') else: print(int(i)+1, end='')

    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy