Cyclic
ABC 379Problem 37 of 50
EasyWhat to do
Given a 3-digit number with digits a, b, c, create two new numbers by cyclically rearranging: bca and cab. Return them as a space-separated string. For example, 379 → '793 937'.
Key Concepts
String manipulation
Indexing
Basic input/output
Integer conversion
Examples
Input:
n = 379
Output:
793 937
Input:
n = 919
Output:
199 991
Tips for Beginners
- Focus on understanding the logic, not memorizing syntax
- Use print statements to debug your code
- Don't worry about input parsing - the function handles that for you
- If stuck, try writing out your solution on paper first
Python Editor
Loading Python...