diff --git a/zeta_python/completed/10814.py b/zeta_python/completed/10814.py new file mode 100644 index 0000000..e3d6d83 --- /dev/null +++ b/zeta_python/completed/10814.py @@ -0,0 +1,2 @@ +N = int(input()) +for s in sorted([tuple(map(str, input().split())) for i in range(N)], key=lambda v: int(v[0])): print(s[0], s[1]) diff --git a/zeta_python/completed/11651.py b/zeta_python/completed/11651.py new file mode 100644 index 0000000..07821b9 --- /dev/null +++ b/zeta_python/completed/11651.py @@ -0,0 +1,3 @@ +T = int(input()) +S = [tuple(map(int, input().split()))for _ in range(T)]; S.sort(key=lambda v: (v[1], v[0])) +[print(i, j)for i, j in S] diff --git a/zeta_python/completed/1181.py b/zeta_python/completed/1181.py new file mode 100644 index 0000000..3995feb --- /dev/null +++ b/zeta_python/completed/1181.py @@ -0,0 +1,6 @@ +N = int(input()) +S = [input() for i in range(N)] +S = list(set(S)) +S.sort(key=lambda v: (len(v), v)) +for s in S: + print(s) diff --git a/zeta_python/completed/1431.py b/zeta_python/completed/1431.py new file mode 100644 index 0000000..82f17ca --- /dev/null +++ b/zeta_python/completed/1431.py @@ -0,0 +1,8 @@ +N = int(input()) + + +def c(v): + return sum([int(i) for i in v if i.isdigit()]) + + +for c in sorted([input() for i in range(N)], key=lambda v: (len(v), c(v), v)):print(c) diff --git a/zeta_python/completed/2752.py b/zeta_python/completed/2752.py new file mode 100644 index 0000000..1f1a98c --- /dev/null +++ b/zeta_python/completed/2752.py @@ -0,0 +1,7 @@ +T = list(map(int, input().split())) +for i in range(2): + for j in range(2 - i): + if T[j] > T[j + 1]: + T[j], T[j + 1] = T[j + 1], T[j] +for i in T: + print(i, end=' ') # 버블 diff --git a/zeta_python/stdin.txt b/zeta_python/stdin.txt index e69de29..354bbaf 100644 --- a/zeta_python/stdin.txt +++ b/zeta_python/stdin.txt @@ -0,0 +1 @@ +3 1 2 \ No newline at end of file