diff --git a/code_study/Baekjoon/python/11651.py b/code_study/Baekjoon/python/11651.py new file mode 100644 index 0000000..0c90d32 --- /dev/null +++ b/code_study/Baekjoon/python/11651.py @@ -0,0 +1,7 @@ +axis = [] +for _ in range(int(input())) : + x, y = map(int, input().split()) + axis.append((x,y)) + +for tpl in sorted(axis, key = lambda x : (x[1], x[0])) : + print(*tpl) diff --git a/code_study/Baekjoon/ts/1920.ts b/code_study/Baekjoon/ts/1920.ts new file mode 100644 index 0000000..0e69695 --- /dev/null +++ b/code_study/Baekjoon/ts/1920.ts @@ -0,0 +1,5 @@ +export {}; +const input: String[] = require("fs").readFileSync(0,"utf8").toString().trim().split('\n'); +const N_set:Set = new Set(input[1].split(' ').map(Number)); +const M_list:number[] = input[3].split(' ').map(Number); +M_list.forEach(v => console.log(N_set.has(v) ? 1 : 0)); \ No newline at end of file