ios::sync_with_stdio(0);

cin.tie(0); cout.tie(0);


항상 백준 풀면서 이렇게 써왔는데


혹시 0들을 false랑 NULL로 쓰는게 더 정확할까요?