본문 바로가기

DOTY

검색하기
DOTY
프로필사진 증식세포

  • 분류 전체보기 (156)
    • Algorithm (80)
      • Concept (8)
      • Data Structure (6)
      • Math (1)
      • Greedy (11)
      • Recursion (7)
      • BFS&DFS (22)
      • Dynamic Programming (14)
      • ect (11)
    • DesignPatterns (0)
    • Unity (11)
    • DirectX (13)
    • Unreal Engine (4)
      • BoxHero (0)
    • WEB (31)
      • JS (7)
      • HTML & CSS (14)
      • Backend (8)
      • Frontend (1)
    • GIT (2)
    • Firebase (10)
    • Animation (2)
    • 똥글 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Algorithm/Math (1)

DOTY

1) 백준 2477 - 참외밭

2477번: 참외밭 (acmicpc.net) 2477번: 참외밭 첫 번째 줄에 1m2의 넓이에 자라는 참외의 개수를 나타내는 양의 정수 K (1 ≤ K ≤ 20)가 주어진다. 참외밭을 나타내는 육각형의 임의의 한 꼭짓점에서 출발하여 반시계방향으로 둘레를 돌면서 지 www.acmicpc.net 머리로는 대충 떠오르는데 예외 처리 하는데 하나씩 놓치는거 보면 머리가 안굴러가는 것 같기도..ㅠㅠ #include using namespace std; int main(void) { int K; cin >> K; pair way_check[6]; int way, length; int max_H = 0; int max_V = 0; int answer = 0; for(int i = 0; i < 6; i++) { cin..

Algorithm/Math 2023. 2. 24. 15:57
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바