http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=388&sca=99&sfl=wr_hit&stx=1108 JUNGOL www.jungol.co.kr #include /*서로 다른 A->B로 가는 총 클릭 횟수: 구해야 함 서로 다른 A->B의 가짓수: nP2*/ int N, path[505][505], exist[505], checked[505], NodeCnt; //(i,j): i->j로 가는 방향 struct Node { int s, cnt; } buf[250000]; int s, e; void push_back(int src, int count) { buf[e].s = src; buf[e++].cnt = count; } Node& pop() {..