[課程] 單班計程作業 12

作者: realturner (rt)   2010-12-11 20:14:09
剛剛有人寫信來問我為什麼他一直測都沒錯,丟上批改娘只有 4 分…
如果有同學有類似的情況可以試試以下的程式碼:
int friends[500];
Graph *g = (Graph*) malloc(sizeof(Graph));
init(g);
add_node(g, 500);
add_node(g, 499);
printf("%d\n", add_edge(g, 500, 499));
printf("%d\n", add_edge(g, 499, 500));
printf("%d\n", find_friends(g, 500, friends));
作者: radar735 (雷達)   2010-02-11 20:18:00
所以是1~500?
作者: bztfir (恩恩呵呵)   2010-02-11 22:21:00
科科
作者: m80126colin (許胖)   2010-02-12 00:59:00
no greater than 500 這句話真的是害人不淺

Links booklink

Contact Us: admin [ a t ] ucptt.com