개발자 톡

연습문제 톡 [21년 재직자 대회 예선] 로드 밸런서 트래픽 예측

반례 부탁드립니다! [21년 재직자 대회 예선] 로드 밸런서 트래픽 예측

등록일
2021-12-29 16:55:54
조회수
517
작성자
ryucha


#include 
#include  

using namespace std;

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

struct node{
	vector sub;
	int r;
	int result;
	int pos;
};

int main(int argc, char** argv) {
	int N,K,r,p,j,next_node_num;
	struct node* arr;
	
	std::cin>>N;
	std::cin>>K;
	
	arr = new node[N];
	
	//노드 구조 
	for(int i=0;i>r;
		arr[i].r = r;
		arr[i].result = 0;
		arr[i].pos = 0;
		for(int j=0;j>p;
			arr[i].sub.push_back(p);
		}
	}
	
	//로드밸런서 결과 
	for(int i=0;i


서버 개수 늘어나면 문제가 생기는 것 같은데 반례 찾기가 쉽지 않네요.ㅠ 감사합니다.  

#[21년_재직자_대회_예선]_로드_밸런서_트래픽_예측
#c++

이 카테고리의 톡 더보기