Skip to content

Instantly share code, notes, and snippets.

View mym0404's full-sized avatar
🔊
Loud your code

MJ Studio mym0404

🔊
Loud your code
View GitHub Profile
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
void solve() {
int n;
cin >> n;
vector<int> arr(n);
for (int i = 0; i < n; i++) cin >> arr[i];
void solve() {
int n;
cin >> n;
vector<int> arr(n);
for (int i = 0; i < n; i++) cin >> arr[i];
sort(arr.begin(), arr.end());
for (int i = 0; i < n; i++) cout << arr[i] << endl;
}
N, M = map(int, input().split())
A = set(map(int, input().split()))
B = set(map(int, input().split()))
C = set()
for a in A:
if a not in B:
C.add(a)
N, M = map(int, input().split())
all_names = set()
name1 = set()
name2 = set()
for _ in range(N):
name = input()
name1.add(name)
all_names.add(name)
arr = [1, 5, 7, 7]
arr = list(set(arr))
print(arr) # [1, 5, 7]
hash_set = set()
hash_map = {}
hash_set = set()
hash_map = {}
import java.util.*;
class Main {
public static void main(String[] args) {
TreeSet<Integer> treeSet = new TreeSet();
TreeMap<Integer, Integer> treeMap = new TreeMap();
HashSet<Integer> hashSet = new HashSet();
HashMap<Integer, Integer> hashMap = new HashMap();
}
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
void solve() {
// 트리를 이용한 셋
std::set<int> tree_set;
// 트리를 이용한 맵
std::map<int, int> tree_map;
#!/bin/bash
CUR_DIR=$(pwd | grep -o '[^/]*$')
if [[ $CUR_DIR != "icon" ]]
then
if [ -d icon ]
then
cd icon
else