paiza Python3編昇順ソート

python3の勉強を再開しました。phpと勝手が違ってまだ慣れないです。

# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ!!

n = int(input())
s = [0]*n


for i in range(n):
    s[i] = int(input())
    #print("hello = "+s[0]+" , world = "+s[1])
s.sort()

for i in range(n):
  print(s[i])

https://paiza.jp/works/mondai/c_rank_level_up_problems/c_rank_sort_step1

0

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です