From 484b367ec5c85a872f9fa4e99819d65fd37bde4d Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Wed, 2 Jul 2025 20:37:11 +0900 Subject: [PATCH] 20250702 baekjoon --- code_study/Baekjoon/python/11651.py | 7 +++++++ code_study/Baekjoon/ts/1920.ts | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 code_study/Baekjoon/python/11651.py create mode 100644 code_study/Baekjoon/ts/1920.ts 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