• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

ural

URAL 1008 Image Encoding (BFS)

#include <stdio.h> #define SIZE 10 int n; int leftBottomX, leftBottomY; int x, y; int image[SIZE + 1][SIZE + 1]; typedef struct{ int x; int y; } PIXEL; PIXEL queue[SIZE * SIZE + 1]; int head, tail; PIXEL pixelPoped, pixe...

image1008encodingbfsural

URAL 1039 Anniversary Party(트리 DP)

#include <stdio.h> #define MAX_EMPLOYEES 6000 #define MAX(x, y) ( (x) > (y) ? (x) : (y) ) int numOfEmployees; int convivialityRate[MAX_EMPLOYEES + 1]; typedef struct Subordinate{ int subordinate; int next; }Subordinate; ...

dppartyanniversary나무모양1039ural

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more