20250702 baekjoon
This commit is contained in:
parent
8e946f332d
commit
484b367ec5
7
code_study/Baekjoon/python/11651.py
Normal file
7
code_study/Baekjoon/python/11651.py
Normal file
@ -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)
|
||||
5
code_study/Baekjoon/ts/1920.ts
Normal file
5
code_study/Baekjoon/ts/1920.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export {};
|
||||
const input: String[] = require("fs").readFileSync(0,"utf8").toString().trim().split('\n');
|
||||
const N_set:Set<number> = 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));
|
||||
Loading…
x
Reference in New Issue
Block a user