import sys
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
value=int(test)
result = ""
while (value > 0):
value-=1;
result = str(chr(ord('A') + value % 26)) + result
value /= 26
print result
test_cases.close()
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
value=int(test)
result = ""
while (value > 0):
value-=1;
result = str(chr(ord('A') + value % 26)) + result
value /= 26
print result
test_cases.close()
No comments:
Post a Comment