알고리즘/백준
BOJ 11723 집합/ C++
https://www.acmicpc.net/problem/11723 11723번: 집합 첫째 줄에 수행해야 하는 연산의 수 M (1 ≤ M ≤ 3,000,000)이 주어진다. 둘째 줄부터 M개의 줄에 수행해야 하는 연산이 한 줄에 하나씩 주어진다. www.acmicpc.net 백준온라인저지 2146번 다리만들기 문제입니다. 아이디어 bitset을 이용해서 각 comand에 대해 수행하도록 작성했습니다. #include #include #include using namespace std; bitset bit; int main(void) { ios_base::sync_with_stdio(0); cin.tie(0); int t; cin >> t; string s; int n; while(t--) { cin >..
2022. 5. 22.