EsayWay in an online exam for new graduates of any discipline to find entry level jobs in their fields. The website generates the roll number of its registered students with the help of the students application numbers.The process induce a key K for generating an individual roll number. To generate the roll number, each digit in the application number is replaced by the Kth digits that comes after it in the application number. the series of digits is considered in a cyclic fashion for the last k digits. write an algorithm to generate the roll number from the given application number. Input The nput consists of two space-separated positive integers - applicanum and key, representing the application number and key (K), respectively. Output Print an integer representing the roll number. Constraints 0< applicaNum <= 10^9. Example input : 432513 Output : 25143 Explanation: replace 4 with 2;3 with 5;2 with 1; 5 with 4; and 1 with 3. So, the output is 25143
Answers
Answered by
0
Answer:
Is this a question or a paragraph???
Answered by
0
Answer:
PYTHON
Explanation:
# cook your dish here
s=input("")
W="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
r=27
while r>26:
x=[]
for i in s:
x.append(int(i))
#print(x)
r=sum(x)
s=str(r)
#print("r=",r)
if r==0:
print("Z")
else:
print(W[r-1])
Similar questions
Science,
2 months ago
English,
2 months ago
Hindi,
5 months ago
Social Sciences,
10 months ago
Geography,
10 months ago