Bamboo is coming

[210908] 백준 2751 수 정렬하기2 실버5 문제풀이 python 본문

PS

[210908] 백준 2751 수 정렬하기2 실버5 문제풀이 python

twenty 2022. 1. 12. 15:04

 

- 알고리즘 분류 : 정렬

 


 

 

#백준 2751 수 정렬하기2 실버5

import sys
input=sys.stdin.readline
write=sys.stdout.write

N = int(input())
A = []

for i in range(N):
    A.append(int(input()))

A.sort()

write('\n'.join(map(str,A)))
 

 

 

 

바로 다음 문제에서 효율성을 개선하는 문제가 나왔다.

sys로 효율성 높이기

 

 


 

 

 

전에 문제 그대로 넣었다가 시간초과가 났다. ㅋㅋㅋ

 

Comments