본문 바로가기

블로그

검색하기
블로그
프로필사진 왕방토

Solved.ac프로필


  • 분류 전체보기 (121)
    • PS (75)
    • CS (8)
    • 꿀팁 (1)
    • 생각 (2)
    • 알고리즘 정리 (13)
    • SDS ( -> PS) (21)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • 백준
  • 백준 17071
  • C++1167
  • 알고리즘
  • c언어
  • 프로그래머스
  • C++ 1937
  • DFS
  • BFS
  • 가장 긴 증가하는 부분 수열
  • C++
  • DP
  • 순열
  • 소트 게임
  • C++ 1918
  • LIS
  • C++1967
  • 조합
  • 백준 숨바꼭질5
  • 위상정렬
  • 16933
  • 다익스트라
  • 투포인터
  • C++ 17071
  • 인덱스 트리
  • 조합론
  • 백트래킹
  • 문자열
  • strtok
  • Backtracking
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록구현 (1)

블로그

[C++] 14502: 연구소

골드 Ⅴ #include #include #include using namespace std; int N, M; int map[8][8]; int testmap[8][8]; vector emptys; vector viruses; int ans = -1; void maketestmap() { for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { testmap[i][j] = map[i][j]; } } } int calculatesize() { int cnt = 0; for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { if (testmap[i][j] == 0) cnt++; } } return cnt; ..

PS 2022. 1. 29. 16:31
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바