정렬중 1436 2751 10989
This commit is contained in:
8
zeta_python/completed/10989.py
Normal file
8
zeta_python/completed/10989.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
N = int(sys.stdin.readline())
|
||||
K = [0]*10000
|
||||
for i in range(N):
|
||||
K[int(sys.stdin.readline())-1] += 1
|
||||
for i in range(1,10001):
|
||||
for k in range(K[i-1]):
|
||||
print(i)
|
||||
21
zeta_python/completed/1436.py
Normal file
21
zeta_python/completed/1436.py
Normal file
@@ -0,0 +1,21 @@
|
||||
N = int(input())
|
||||
count = 0
|
||||
now = 666
|
||||
|
||||
|
||||
def isEnd(n):
|
||||
k = 100
|
||||
while k != 666:
|
||||
if n < 100:
|
||||
break
|
||||
k = n % 1000
|
||||
n //= 10
|
||||
else:
|
||||
return True
|
||||
|
||||
|
||||
while count != N:
|
||||
if isEnd(now):
|
||||
count += 1
|
||||
now += 1
|
||||
print(now - 1) # Simple is the best
|
||||
1
zeta_python/completed/2751.py
Normal file
1
zeta_python/completed/2751.py
Normal file
@@ -0,0 +1 @@
|
||||
for i in sorted(map(int,(j for j in [*open(0)][1:]))):print(i)
|
||||
Reference in New Issue
Block a user