언어/python
문제 3
파아랑새
2017. 8. 30. 12:44

def main():
nSizeInt = input(": ")
nStr = input(": ")
sList = nStr.split(' ')
reList = []
tmpList = []
answerList = []
smallData = 0
tmpIndex = 1
for m in sList:
reList.append(int(m, 10))
tmpList.extend(reList[:])
tmpList.sort()
smallData = tmpList[0]
while True:
if smallData in reList:
inx = reList.index(smallData)
answerList.append(inx+tmpIndex)
tmpIndex += 1
del reList[inx]
else:
break
print (answerList)
if __name__ == "__main__":
main()